/* ==========================================================================
   ICITSM 2026 - Global Core Theme Stylesheet
   Extracted from committee.html
   ========================================================================== */

/* ===== 1. FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

/* ===== 2. CORE THEME VARIABLES ===== */
:root {
    /* Backgrounds */
    --bg-dark: #071827;
    --bg-deep: #0f766e;
    --bg-panel: rgba(8, 31, 47, 0.72);
    --bg-panel-hover: rgba(8, 45, 62, 0.86);

    /* Accents & Brand Colors */
    --primary: #2dd4bf;
    --primary-glow: rgba(45, 212, 191, 0.45);
    --secondary: #0f766e;
    --secondary-glow: rgba(15, 118, 110, 0.35);
    --accent: #5eead4;
    --accent-glow: rgba(94, 234, 212, 0.35);

    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: rgba(255, 255, 255, 0.76);

    /* Borders & Glassmorphic Highlights */
    --border-glass: rgba(45, 212, 191, 0.16);
    --border-glow: rgba(45, 212, 191, 0.32);

    /* Typography families */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-accent: 'Merriweather', serif;
}

/* ===== 3. PRELOADER HUB STYLES ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: #071827;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-hud {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring-outer {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px dashed transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--secondary);
    animation: spin-clockwise 2s linear infinite;
}

.preloader-ring-inner {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: var(--accent);
    border-right-color: var(--primary);
    opacity: 0.8;
    animation: spin-counter 1.2s linear infinite;
}

.preloader-core {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ffffff 0%, var(--primary) 70%);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--primary);
    animation: pulse-core 1.5s ease-in-out infinite alternate;
}

@keyframes spin-clockwise {
    to { transform: rotate(360deg); }
}

@keyframes spin-counter {
    to { transform: rotate(-360deg); }
}

@keyframes pulse-core {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 15px var(--primary-glow);
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 0 35px var(--primary);
    }
}

/* ---------- HEADER ---------- */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            transform: none;
            z-index: 1000;
            padding: 0;
            background: rgba(255, 255, 255, 0.96);
            border: none;
            border-right: 6px solid #0f766e;
            border-bottom: 1px solid rgba(15, 118, 110, 0.14);
            border-radius: 0;
            box-shadow: 0 10px 30px rgba(7, 24, 39, 0.14);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .header .container {
            max-width: 100%;
        }

        .header.scrolled {
            background: rgba(10, 28, 54, 0.96);
            border-right-color: #2dd4bf;
            border-bottom-color: rgba(45, 212, 191, 0.28);
            box-shadow: 0 10px 28px rgba(2, 8, 23, 0.28);
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 28px;
            min-height: 74px;
            padding: 0 28px;
            position: relative;
            z-index: 1;
        }

        .logo {
            display: flex;
            align-items: center;
            margin: 0 -20px;
            min-width: 180px;
            flex: 0 0 auto;
        }

        .logo a,
        .logo-link {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: inherit;
        }

        .logo-img {
            width: 100px;
            height: 100px;
            object-fit: contain;
            display: block;
            margin: auto;
        }

        .logo h1 {
            font-family: var(--font-display);
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin: 0;
            line-height: 1;
            font-weight: 800;
            font-size: 2rem;
            letter-spacing: 0;
            color: #0b1f3b;
            transition: all 0.3s;
        }

        .logo h1 span {
            font-weight: 800;
            color: #0b1f3b;
        }

        .logo h1 .logo-year {
            display: inline;
            color: #0f766e;
            font-size: 1.3rem;
            letter-spacing: 0.08em;
        }

        .header.scrolled .logo h1,
        .header.scrolled .logo h1 span {
            color: #f8fafc;
        }

        .header.scrolled .logo h1 .logo-year {
            color: #5eead4;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 10px;
            align-items: center;
            justify-content: flex-end;
            flex: 1;
            flex-wrap: nowrap;
        }

        .nav-menu a {
            font-family: var(--font-display);
            font-weight: 800;
            font-size: 0.82rem;
            line-height: 1;
            padding: 0 10px;
            border-radius: 4px;
            color: #2e3a59;
            transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
            background: transparent;
            border: 1px solid transparent;
            letter-spacing: 0.04em;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 36px;
            text-align: center;
            text-transform: uppercase;
            white-space: nowrap;
            position: relative;
            opacity: 0.82;
        }

        .nav-menu a:hover {
            color: #0f766e;
            background: #edf7f6;
            border-color: rgba(15, 118, 110, 0.32);
            box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
            transform: translateY(-2px);
            opacity: 1;
        }

        .nav-menu li:not(.active) a {
            animation: inactive-nav-settle 0.45s ease both;
        }

        .nav-menu .active a {
            background: #0f766e;
            color: #ffffff !important;
            border-color: #0f766e;
            box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
            font-weight: 800;
            opacity: 1;
            animation: active-nav-box 2.2s ease-in-out infinite;
        }

        .header.scrolled .nav-menu a {
            color: rgba(248, 250, 252, 0.84);
        }

        .header.scrolled .nav-menu a:hover {
            color: #ffffff;
            background: rgba(45, 212, 191, 0.12);
            border-color: rgba(45, 212, 191, 0.36);
            box-shadow: 0 8px 20px rgba(45, 212, 191, 0.14);
        }

        .header.scrolled .nav-menu .active a {
            background: #2dd4bf;
            color: #042f2e !important;
            border-color: #2dd4bf;
            box-shadow: 0 10px 22px rgba(45, 212, 191, 0.24);
        }

        @keyframes active-nav-box {

            0%,
            100% {
                box-shadow: 0 10px 22px rgba(45, 212, 191, 0.2);
                transform: translateY(0);
            }

            50% {
                box-shadow: 0 14px 30px rgba(45, 212, 191, 0.32);
                transform: translateY(-1px);
            }
        }

        @keyframes inactive-nav-settle {
            from {
                opacity: 0.55;
                transform: translateY(-3px);
            }

            to {
                opacity: 0.82;
                transform: translateY(0);
            }
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            flex-direction: column;
            gap: 5px;
            padding: 4px;
            cursor: pointer;
        }

        .menu-toggle span {
            width: 26px;
            height: 2px;
            background: #0f766e;
            border-radius: 6px;
            transition: 0.3s;
        }

        .header.scrolled .menu-toggle span {
            background: #5eead4;
        }

        @media (max-width: 1100px) {
            .nav-menu a {
                font-size: 0.72rem;
            }

            .nav-menu {
                gap: 12px;
            }
        }

        @media (max-width: 950px) {
            .header {
                border-right-width: 4px;
            }

            .header-inner {
                min-height: 68px;
                padding: 0 18px;
            }

            .logo h1 {
                font-size: 1.6rem;
            }

            .logo-img {
                width: 80px;
                height: 80px;
            }

            .menu-toggle {
                display: flex;
            }

            .nav-menu {
                display: none;
            }
        }

        .mobile-overlay {
            position: fixed;
            top: -100%;
            left: 0;
            right: 0;
            width: 100%;
            height: auto;
            max-height: 90vh;
            background: linear-gradient(180deg, #071827, #0b2743);
            border-bottom: 2px solid #2dd4bf;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            z-index: 99999;
            transition: top .45s cubic-bezier(.22, 1, .36, 1);
            box-shadow: 0 15px 40px rgba(0, 0, 0, .45);
            overflow-y: auto;
            padding: 20px 16px 24px;
            box-sizing: border-box;
        }

        .mobile-overlay.open {
            top: 0;
            display: block;
        }

        .mobile-overlay ul {
            list-style: none;
            padding: 36px 0 0;
            margin: 0;
        }

        .mobile-overlay ul li {
            margin: 0;
            opacity: 0;
            transform: translateY(15px);
            animation: menuFade .45s forwards;
        }

        .mobile-overlay ul li a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            margin-bottom: 4px;
            color: #fff;
            font-size: 15px;
            font-weight: 700;
            border-radius: 8px;
            transition: .35s;
        }

        .mobile-overlay ul li a::after {
            content: "›";
            color: #2dd4bf;
            font-size: 18px;
            transition: .3s;
        }

        .mobile-overlay ul li a:hover {
            color: #2dd4bf;
            background: rgba(45, 212, 191, 0.08);
            padding-left: 16px;
        }

        .mobile-overlay ul li a:hover::after {
            transform: translateX(5px);
        }

        .mobile-overlay ul li a.active {
            color: #5eead4;
            background: rgba(45, 212, 191, 0.14);
            border-left: 4px solid #2dd4bf;
            padding-left: 16px;
        }

        .mobile-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: #1bb8ad;
            color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
            cursor: pointer;
            transition: .3s;
        }

        .mobile-close:hover {
            transform: rotate(90deg);
            background: #18a89d;
        }

        .mobile-overlay.open li:nth-child(1) {
            animation-delay: .05s;
        }

        .mobile-overlay.open li:nth-child(2) {
            animation-delay: .10s;
        }

        .mobile-overlay.open li:nth-child(3) {
            animation-delay: .15s;
        }

        .mobile-overlay.open li:nth-child(4) {
            animation-delay: .20s;
        }

        .mobile-overlay.open li:nth-child(5) {
            animation-delay: .25s;
        }

        .mobile-overlay.open li:nth-child(6) {
            animation-delay: .30s;
        }

        .mobile-overlay.open li:nth-child(7) {
            animation-delay: .35s;
        }

        .mobile-overlay.open li:nth-child(8) {
            animation-delay: .40s;
        }

        .mobile-overlay.open li:nth-child(9) {
            animation-delay: .45s;
        }

        .mobile-overlay.open li:nth-child(10) {
            animation-delay: .50s;
        }

        @keyframes menuFade {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

/* ===== 6. DARK FOOTER STYLES ===== */
.footer {
    font-family: var(--font-display);
    background: #061722;
    color: rgba(255, 255, 255, 0.72);
    padding: 78px 0 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(45, 212, 191, 0.22);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: #2dd4bf;
}

.footer::after {
    content: 'ICITSM 2026';
    position: absolute;
    right: 5vw;
    top: 22px;
    color: rgba(94, 234, 212, 0.08);
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    pointer-events: none;
}

.footer a {
    font-family: var(--font-display);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    transition: all 0.3s;
}

.footer a:hover {
    color: #5eead4;
    text-shadow: none;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.85fr 1.25fr;
    justify-content: center;
    gap: 30px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(45, 212, 191, 0.14);
    position: relative;
    z-index: 1;
}

.footer-grid>div {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(45, 212, 191, 0.14);
    border-radius: 16px;
    padding: 24px;
    min-height: 178px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.footer-grid>div:hover {
    transform: translateY(-6px);
    background: rgba(45, 212, 191, 0.06);
    border-color: rgba(45, 212, 191, 0.36);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer-grid>div {
        width: 100%;
        max-width: 380px;
    }
}

.footer h4 {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    margin-bottom: 18px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 32px;
    height: 3px;
    background: #2dd4bf;
    border-radius: 999px;
}

.footer p {
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    font-weight: 600;
    letter-spacing: 0;
}

.footer p i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    color: #042f2e !important;
    background: #2dd4bf;
    border-radius: 8px;
    font-size: 0.82rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin: 8px 0;
}

.footer ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 2px 0;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.footer ul li a::before {
    content: '→';
    font-size: 0.8rem;
    opacity: 1;
    color: #2dd4bf;
    transition: transform 0.3s;
}

.footer ul li a:hover::before {
    transform: translateX(4px);
    opacity: 1;
    color: #5eead4;
}

.footer-credits {
    text-align: center;
    padding-top: 28px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.48);
    position: relative;
    z-index: 1;
}

.footer-credits a {
    color: #5eead4;
    font-weight: 800;
}

/* ===== 7. GLOBAL PAGE HERO STYLES (slanted dark command layout) ===== */
.page-hero {
    margin-top: 74px;
    background: #071827;
    padding: 96px 0 112px;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(45, 212, 191, 0.22);
    isolation: isolate;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto auto;
    width: min(58vw, 720px);
    height: 100%;
    background: #0f766e;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0.86;
    z-index: -2;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(45, 212, 191, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(45, 212, 191, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 78%, transparent 100%);
    opacity: 0.28;
    z-index: -1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .container::before {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5eead4;
    border: 1px solid rgba(45, 212, 191, 0.38);
    background: rgba(45, 212, 191, 0.1);
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-hero .container::after {
    content: '';
    position: absolute;
    right: 34px;
    top: 18px;
    width: 148px;
    height: 148px;
    border: 1px solid rgba(45, 212, 191, 0.44);
    border-radius: 50%;
    box-shadow: inset 0 0 0 18px rgba(94, 234, 212, 0.08), 0 0 42px rgba(45, 212, 191, 0.16);
    animation: hero-orbit 8s linear infinite;
}

@keyframes hero-orbit {
    to { transform: rotate(360deg); }
}

.page-hero h1 {
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.2rem);
    color: #ffffff;
    position: relative;
    z-index: 2;
    letter-spacing: 0;
    line-height: 0.96;
    max-width: 840px;
    text-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.page-hero h1 span {
    color: #5eead4;
    -webkit-text-fill-color: currentColor;
    background: none;
    position: relative;
    display: inline-block;
}

.page-hero h1 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.08em;
    width: 100%;
    height: 0.12em;
    background: rgba(45, 212, 191, 0.2);
    z-index: -1;
}

.page-hero p,
.page-hero .subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    margin: 28px 0 0;
    font-weight: 600;
    line-height: 1.9;
    letter-spacing: 0;
    padding-left: 24px;
    border-left: 4px solid #5eead4;
}

.page-hero p i,
.page-hero .subtitle i {
    color: #5eead4;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 82px 0 92px;
        text-align: left;
    }

    .page-hero::before {
        width: 100%;
        clip-path: none;
        opacity: 0.32;
    }

    .page-hero .container::after {
        right: -24px;
        top: 4px;
        width: 100px;
        height: 100px;
        opacity: 0.5;
    }

    .page-hero p,
    .page-hero .subtitle {
        padding-left: 16px;
    }
}

/* ===== GLOBAL TABLE SCROLL & SWIPE HINTS ===== */
.fee-scroll, .table-scroll, .directory-table-wrapper {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #0f766e #e0f7f4;
}

.fee-scroll::-webkit-scrollbar, .table-scroll::-webkit-scrollbar, .directory-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.fee-scroll::-webkit-scrollbar-track, .table-scroll::-webkit-scrollbar-track, .directory-table-wrapper::-webkit-scrollbar-track {
    background: #e0f7f4;
}

.fee-scroll::-webkit-scrollbar-thumb, .table-scroll::-webkit-scrollbar-thumb, .directory-table-wrapper::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 999px;
}

.table-scroll-hint {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f766e;
    background: #edf7f6;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    padding: 6px 12px;
    margin: 0 auto 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: max-content;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.05);
}

@media (max-width: 768px) {
    .table-scroll-hint {
        display: flex;
    }
}
