/* ============================================================
   NCIM 2027 - GLOBAL & RESET
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
    color: #2d2a3e;
}

.font-orbitron {
    font-family: "Orbitron", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background: rgba(255, 255, 255, 0.86);

    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);

    border-bottom: 1px solid rgba(255, 255, 255, 0.45);

    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.97);

    box-shadow: 0 8px 35px rgba(0, 159, 63, 0.1);

    border-bottom-color: rgba(0, 159, 63, 0.08);
}

/* ============================================================
   DESKTOP NAV LINKS
   ============================================================ */

.nav-link-custom {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.875rem;
    color: #1a4d2e;

    /* Remove padding from here */
    transition:
        color 0.2s ease,
        background 0.2s ease;

    letter-spacing: 0.01em;
    cursor: pointer;
}

.nav-link-custom::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2.5px;

    background: linear-gradient(90deg, #009f3f, #00cc55);

    border-radius: 4px;

    transition: width 0.3s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #009f3f;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 100%;
}

/* ============================================================
   DROPDOWN CONTAINER
   ============================================================ */

.nav-dropdown {
    position: relative;
}

.dropdown-glass {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    min-width: 220px;

    padding: 0.5rem 0;

    background: rgba(255, 255, 255, 0.98);

    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);

    border: 1px solid rgba(0, 159, 63, 0.1);

    border-radius: 14px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.12),
        0 5px 20px rgba(0, 159, 63, 0.06);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 10000;
}

/*
   Invisible bridge between button and dropdown.
   Prevents dropdown from disappearing while moving mouse.
*/

.dropdown-glass::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: -10px;

    height: 10px;
}

/* Desktop hover */

.nav-dropdown:hover > .dropdown-glass,
.nav-dropdown.dropdown-open > .dropdown-glass {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

/* ============================================================
   DROPDOWN ITEMS
   ============================================================ */

.dropdown-glass .dropdown-item {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 0.7rem 1.2rem;

    font-size: 0.875rem;
    font-weight: 500;

    color: #1a4d2e;

    background: transparent;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        padding-left 0.15s ease;

    cursor: pointer;
}

.dropdown-glass .dropdown-item:hover {
    background: #f0faf3;

    color: #009f3f;

    padding-left: 1.4rem;
}

/* ============================================================
   DROPDOWN ARROW
   ============================================================ */

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

#mobileMenu {
    position: relative;
    z-index: 9998;

    max-height: calc(100vh - 80px);

    overflow-y: auto;

    border-top: 1px solid rgba(0, 159, 63, 0.08);
}

/* Mobile nav links */

#mobileMenu .nav-link-custom {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 0.9rem;
}

#mobileMenu .nav-link-custom::after {
    display: none;
}

#mobileMenu .nav-link-custom:hover,
#mobileMenu .nav-link-custom.active {
    color: #009f3f;

    background: #f0faf3;

    border-radius: 8px;

    padding-left: 0.7rem;
}

/* ============================================================
   MOBILE DROPDOWN
   ============================================================ */

.mobile-dropdown-section {
    padding-top: 0.5rem;
    margin-top: 0.35rem;

    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-dropdown-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 0.65rem 0.25rem;

    color: #009f3f;

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    cursor: pointer;

    background: transparent;
    border: none;
}

.mobile-dropdown-list {
    display: none;

    padding-left: 0.75rem;
}

.mobile-dropdown-list.open {
    display: block;
}

/* ============================================================
   MOBILE MENU BUTTON
   ============================================================ */

#menuToggle {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

#menuToggle:hover {
    background: #f0faf3;

    color: #009f3f;
}

/* Mobile menu toggle - hidden on desktop */
#menuToggle {
    display: none;
}

/* Show only on tablet/mobile */
@media (max-width: 1023px) {
    #menuToggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =========================================================
   NCIM 2027 — PROFESSIONAL CONFERENCE HERO
========================================================= */

.hero-section {
    --hero-green: #009f3f;
    --hero-green-light: #72e6a0;
    --hero-white: #ffffff;

    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
    background: #082318;
    color: var(--hero-white);
}

/* Background image */

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

/* Deep green cinematic overlay */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        180deg,
        rgba(4, 23, 15, 0.78) 0%,
        rgba(5, 36, 21, 0.82) 48%,
        rgba(3, 20, 13, 0.96) 100%
    );
}

/* Soft background glow */

.hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.24;
}

.hero-glow-one {
    width: 480px;
    height: 480px;
    top: -200px;
    right: -100px;
    background: #00bd59;
}

.hero-glow-two {
    width: 400px;
    height: 400px;
    bottom: 5%;
    left: -180px;
    background: #007a3d;
}

/* Main layout */

.hero-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 125px 28px 65px;
}

/* =========================================================
   CONFERENCE INTRODUCTION
========================================================= */

.hero-main-content {
    max-width: 1060px;
    margin: 0 auto;
    text-align: center;
}

/* Eyebrow label */

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    color: #a8efc0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.hero-eyebrow-line {
    display: block;
    width: 32px;
    height: 1px;
    background: #65d991;
}

/* Date and venue */

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.91rem;
    font-weight: 600;
}

.hero-meta-item i {
    color: var(--hero-green-light);
    font-size: 0.95rem;
}

.hero-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #72e6a0;
}

/* =========================================================
   CONFERENCE TITLE
========================================================= */

.hero-title {
    max-width: 1060px;
    margin: 0 auto;
    color: #fff;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 3px 28px rgba(0, 0, 0, 0.22);
}

/* Edition */

.hero-edition {
    display: block;
    margin-bottom: 18px;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: rgba(255, 255, 255, 0.94);
}

.hero-edition sup {
    position: relative;
    top: -0.6em;
    color: var(--hero-green-light);
    font-size: 0.58em;
    font-weight: 700;
}

/* Main conference name */

.hero-subtitle {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    font-size: clamp(2.5rem, 5.2vw, 4.6rem);
    line-height: 1.12;
    letter-spacing: -0.055em;
    font-weight: 800;
    text-wrap: balance;
}

.hero-title-accent {
    color: #76e8a2;
}

/* Decorative title underline */

.hero-title-divider {
    display: flex;
    justify-content: center;
    margin: 27px auto 23px;
}

.hero-title-divider span {
    display: block;
    width: 76px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, #009f3f, #81f0aa);
    box-shadow: 0 0 20px rgba(0, 200, 90, 0.25);
}

/* =========================================================
   INSTITUTION DETAILS
========================================================= */

.hero-institution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin: 0 auto;
}

.hero-department,
.hero-university,
.hero-location {
    margin: 0;
    text-align: center;
}

.hero-department {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.96rem, 1.6vw, 1.14rem);
    font-weight: 500;
    line-height: 1.6;
}

.hero-university {
    color: #fff;
    font-size: clamp(1rem, 1.8vw, 1.24rem);
    font-weight: 700;
    line-height: 1.55;
}

.hero-location {
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.9rem;
}

/* =========================================================
   CALL TO ACTION BUTTONS
========================================================= */

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn-primary-gradient,
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 49px;
    padding: 13px 23px;
    border-radius: 7px;
    font-size: 0.91rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-primary-gradient {
    color: #fff;
    background: linear-gradient(135deg, #008d38, #00b953);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 159, 63, 0.24);
}

.btn-primary-gradient:hover {
    color: #fff;
    background: linear-gradient(135deg, #007c32, #009f3f);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 159, 63, 0.35);
}

.hero-btn-arrow {
    margin-left: 5px;
    transition: transform 0.25s ease;
}

.btn-primary-gradient:hover .hero-btn-arrow {
    transform: translateX(4px);
}

.btn-outline-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-outline-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border-color: #72e6a0;
    transform: translateY(-2px);
}

/* =========================================================
   RESEARCH FOCUS PANEL
========================================================= */

.hero-bottom-panel {
    max-width: 1120px;
    margin: 62px auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 14px;
    background: rgba(7, 30, 19, 0.66);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Panel heading */

.hero-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel-kicker {
    color: #8cebb0;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hero-panel-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

/* Four research areas */

.hero-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-topic {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 24px 19px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease;
}

.hero-topic:last-child {
    border-right: none;
}

.hero-topic:hover {
    background: rgba(0, 159, 63, 0.12);
}

.hero-topic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(114, 230, 160, 0.25);
    border-radius: 10px;
    background: rgba(0, 159, 63, 0.15);
    color: #83eaaa;
    font-size: 1.15rem;
}

.hero-topic-content {
    min-width: 0;
}

.hero-topic h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.4;
}

.hero-topic p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Publication statement */

.hero-publication {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: center;
}

.hero-publication i {
    flex-shrink: 0;
    color: #82e9a7;
}

/* =========================================================
   TABLET RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
    .hero-container {
        padding-top: 115px;
        padding-bottom: 55px;
    }

    .hero-subtitle {
        font-size: clamp(2.5rem, 5.5vw, 3.7rem);
    }

    .hero-bottom-panel {
        margin-top: 48px;
    }

    .hero-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-topic {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-topic:nth-child(2) {
        border-right: none;
    }

    .hero-topic:nth-child(3),
    .hero-topic:nth-child(4) {
        border-bottom: none;
    }
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 640px) {
    .hero-section {
        min-height: auto;
    }

    .hero-bg-image {
        background-position: center;
    }

    .hero-container {
        padding: 108px 18px 42px;
    }

    .hero-eyebrow {
        gap: 9px;
        margin-bottom: 20px;
        font-size: 0.64rem;
        letter-spacing: 0.14em;
    }

    .hero-eyebrow-line {
        width: 22px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }

    .hero-meta-item {
        font-size: 0.83rem;
    }

    .hero-meta-divider {
        display: none;
    }

    .hero-edition {
        margin-bottom: 14px;
        font-size: 1.22rem;
        line-height: 1.45;
    }

    .hero-subtitle {
        font-size: clamp(2rem, 8.4vw, 3rem);
        line-height: 1.19;
        letter-spacing: -0.04em;
    }

    .hero-title-divider {
        margin: 22px auto 19px;
    }

    .hero-department {
        font-size: 0.91rem;
    }

    .hero-university {
        font-size: 0.98rem;
    }

    .hero-location {
        font-size: 0.84rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .btn-primary-gradient,
    .btn-outline-light {
        width: 100%;
        max-width: 330px;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .hero-bottom-panel {
        margin-top: 42px;
        border-radius: 11px;
    }

    .hero-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .hero-panel-caption {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .hero-topic {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        padding: 17px 14px;
    }

    .hero-topic-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .hero-topic h3 {
        font-size: 0.84rem;
    }

    .hero-topic p {
        font-size: 0.72rem;
    }

    .hero-publication {
        align-items: flex-start;
        padding: 14px;
        font-size: 0.74rem;
        text-align: left;
    }

    .hero-glow-one {
        width: 300px;
        height: 300px;
    }

    .hero-glow-two {
        width: 250px;
        height: 250px;
    }
}

/* Small phones */

@media (max-width: 380px) {
    .hero-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hero-subtitle {
        font-size: 1.9rem;
    }

    .hero-edition {
        font-size: 1.08rem;
    }

    .hero-topic {
        padding: 14px 10px;
    }

    .hero-topic h3 {
        font-size: 0.79rem;
    }
}

/* Respect accessibility preferences */

@media (prefers-reduced-motion: reduce) {
    .hero-topic,
    .btn-primary-gradient,
    .btn-outline-light,
    .hero-btn-arrow {
        transition: none;
    }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */

.section-overline {
    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.15em;

    text-transform: uppercase;

    color: #009f3f;

    margin-bottom: 0.25rem;

    display: inline-block;
}

.section-title {
    font-family: "Orbitron", sans-serif;

    font-weight: 700;

    font-size: 2rem;

    background: linear-gradient(135deg, #1a4d2e, #009f3f);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;

    display: inline-block;
}

/* ============================================================
   DATE BADGE
   ============================================================ */

.date-badge {
    border-radius: 40px;

    padding: 0.3rem 1rem;

    font-size: 0.75rem;

    font-weight: 600;

    letter-spacing: 0.02em;
}

/* ============================================================
   TRACK CARDS
   ============================================================ */

.track-card {
    border-left: 4px solid #009f3f;

    border-radius: 16px;

    background: #ffffff;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);

    transition: all 0.25s ease;
}

.track-card:hover {
    box-shadow: 0 12px 36px rgba(0, 159, 63, 0.08);

    transform: translateY(-4px);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-gradient {
    background: linear-gradient(145deg, #0d2617, #1a4d2e);

    color: rgba(255, 255, 255, 0.85);

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-gradient a {
    color: rgba(255, 255, 255, 0.7);

    transition: color 0.2s;

    text-decoration: none;
}

.footer-gradient a:hover {
    color: #00cc55;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
    position: fixed;

    bottom: 2rem;
    right: 2rem;

    background: linear-gradient(135deg, #009f3f, #00b34a);

    color: #ffffff;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 1.2rem;

    box-shadow: 0 8px 28px rgba(0, 159, 63, 0.35);

    cursor: pointer;

    transition: all 0.25s ease;

    z-index: 99999;

    border: none;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.04);

    box-shadow: 0 12px 36px rgba(0, 159, 63, 0.45);
}

.back-to-top.hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1023px) {
    .navbar-glass {
        background: rgba(255, 255, 255, 0.97);
    }

    .dropdown-glass {
        display: none;
    }

    .hero-section {
        min-height: 100vh;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-section {
        min-height: 100vh;
    }

    .hero-section .floating-shape:first-child {
        width: 300px;
        height: 300px;

        top: -80px;
        right: -80px;
    }

    .hero-section .floating-shape:last-child {
        width: 200px;
        height: 200px;

        bottom: 40px;
        left: -40px;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;

        width: 42px;
        height: 42px;

        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.65rem;

        padding: 0.25rem 0.9rem;
    }

    .btn-primary-gradient,
    .btn-outline-light {
        padding: 0.6rem 1.4rem;

        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 1.85rem !important;
    }
}
