/* ==========================================
        ABOUT PAGE HEADER
========================================== */

header{
    position:sticky;
    top:0;
    z-index:1000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 4%;
    flex-wrap:wrap;
    gap:15px;
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(0,0,0,.06);
    transition:.35s;
}

body.dark-mode header{
    background:rgba(18,18,18,.88);
    border-bottom:1px solid rgba(255,255,255,.08);
}

/* ================================= */

.logo-container{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:inherit;
}

.logo-container img{
    width:48px;
    height:48px;
    object-fit:contain;
}

.logo-container span{
    font-size:32px;
    font-weight:900;
    color:#4f7cff;
    letter-spacing:-0.5px;
}

/* ================================= */

nav{
    display:flex;
    align-items:center;
    gap:12px;
}

nav a{
    position:relative;
    text-decoration:none;
    color:inherit;
    font-weight:600;
    padding:10px 18px;
    border-radius:12px;
    transition:.3s;
}

nav a:hover{
    background:#4f7cff15;
    color:#4f7cff;
}

/* ================================= */

nav a.active{
    background:linear-gradient(135deg,#4f7cff,#2563eb);
    color:#fff;
    box-shadow:0 8px 25px rgba(79,124,255,.35);
}

/* underline animation */

nav a:not(.active)::after{
    content:"";
    position:absolute;
    left:18px;
    bottom:6px;
    width:0;
    height:2px;
    background:#4f7cff;
    transition:.3s;
}

nav a:hover::after{
    width:calc(100% - 36px);
}

/* ================================= */

@media(max-width:900px){
header{
flex-direction:column;
gap:20px;
padding:20px;
}

nav{
flex-wrap:wrap;
justify-content:center;
}

.logo-container span{
font-size:24px;
}

}

@media(max-width:600px){
nav{
gap:8px;
}

nav a{
padding:8px 14px;
font-size:14px;
}

.logo-container img{
width:42px;
height:42px;
}

}
/* ==========================================
        TABLET (≤ 992px)
========================================== */

@media (max-width:992px){
header{
padding:14px 5%;
}

.logo-container img{
width:42px;
height:42px;
}

.logo-container span{
font-size:22px;
}

nav{
gap:6px;
}

nav a{
font-size:14px;
padding:8px 12px;
}

}

/* ==========================================
        MOBILE (≤ 768px)
========================================== */

@media (max-width:768px){
header{
padding:10px 16px !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
justify-content: space-between !important;
align-items: center !important;
gap:10px !important;
}

.logo-container{
width: auto !important;
justify-content: flex-start !important;
gap: 8px !important;
}

.logo-container img{
width:36px !important;
height:36px !important;
}

.logo-container span{
font-size:20px !important;
font-weight: 800 !important;
}

nav{
display: none !important;
}
}

/* ==========================================
        SMALL MOBILE (≤ 480px)
========================================== */

@media (max-width:480px){
.logo-container img{
width:34px;
height:34px;
}

.logo-container span{
font-size:8px;
}

nav{
gap:4px;
}

nav a{
    font-size:7px;
    padding:6px 8px;
}

}

/* ==========================================
      DYNAMIC HAMBURGER & MOBILE OVERLAY MENU
========================================== */

/* Hamburger Button Icon styles */
.hamburger-btn {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001; /* Layered above other components */
    position: relative;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: #4f7cff; /* Vibe primary color */
    border-radius: 9px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.219, 1.55);
    transform-origin: left center;
}

body.dark-mode .hamburger-btn span {
    background: #6c63ff; /* Purple glow color for dark mode */
}

/* Animate to 'X' */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
    background: #ff5252 !important; /* Soft GenZ red accent */
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
    background: #ff5252 !important;
}

/* GenZ Mobile Menu Overlay */
.genz-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.genz-mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.genz-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15); /* Lightened subtle mask */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.dark-mode .genz-menu-backdrop {
    background: rgba(0, 0, 0, 0.35);
}

/* Dynamic side drawer */
.genz-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: rgba(255, 255, 255, 0.94); /* Frosted light glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    padding: 80px 24px 40px 24px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

body.dark-mode .genz-menu-drawer {
    background: rgba(20, 20, 26, 0.94); /* Dark glass for dark mode */
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45);
}

/* Glowing ambient backdrops for extra futuristic aesthetics */
.genz-menu-bg-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.25;
    pointer-events: none;
}

.genz-menu-bg-glow.g1 {
    top: 10%;
    right: -10%;
    background: radial-gradient(circle, rgba(79, 124, 255, 0.4) 0%, rgba(0,0,0,0) 70%);
}

.genz-menu-bg-glow.g2 {
    bottom: 10%;
    left: -10%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.4) 0%, rgba(0,0,0,0) 70%);
}

/* Close Button */
.genz-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #475569;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10002;
    line-height: 1;
}

body.dark-mode .genz-menu-close {
    color: rgba(255, 255, 255, 0.7);
}

.genz-menu-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #ff5252;
    transform: rotate(90deg);
}

body.dark-mode .genz-menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ff5252;
}

/* Menu Inner Links Container */
.genz-menu-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.genz-menu-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: left;
}

/* GenZ styled links with staggered slide in from right */
.genz-menu-links a {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #1e293b; /* Dark text for light mode background */
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(30px);
    opacity: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .genz-menu-links a {
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

/* Opening State */
.genz-mobile-menu.active:not(.closing) .genz-menu-links a {
    transform: translateX(0);
    opacity: 1;
}

/* Staggered entrance loop (options come one by one) */
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(1) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(2) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.14s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(3) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.20s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(4) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.26s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(5) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.32s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(6) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.38s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(7) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.44s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(8) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.50s; }

/* Closing State (options exit one by one) */
.genz-mobile-menu.closing .genz-menu-links a {
    transform: translateX(40px);
    opacity: 0;
}

/* Staggered exit loop (options close one by one) */
.genz-mobile-menu.closing .genz-menu-links a:nth-child(1) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.02s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(2) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.07s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(3) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.12s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(4) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.17s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(5) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.22s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(6) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.27s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(7) { transition-delay: 0.32s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(8) { transition-delay: 0.37s; }

/* Closing Drawer slide out */
.genz-mobile-menu.closing .genz-menu-drawer {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.84, 0) 0.1s;
}

.genz-mobile-menu.closing {
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

/* Link Hover State */
.genz-menu-links a:hover {
    background: rgba(79, 124, 255, 0.15);
    border-color: rgba(79, 124, 255, 0.3);
    color: #4f7cff;
    transform: translateX(4px);
}

body.dark-mode .genz-menu-links a:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
    color: #8b80ff;
}

/* Link Active State */
.genz-menu-links a.active {
    background: linear-gradient(135deg, #4f7cff, #2563eb);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(79, 124, 255, 0.4);
}

body.dark-mode .genz-menu-links a.active {
    background: linear-gradient(135deg, #6c63ff, #4f7cff);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

/* Responsive Hamburger Toggle Button - Hidden on Desktop (>768px), Visible on Mobile (<=768px) */
.hamburger-btn {
    display: none !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    border-radius: 10px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-left: 8px;
}

.hamburger-btn:hover {
    background: rgba(79, 124, 255, 0.1);
    transform: scale(1.05);
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text, #333);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.dark-mode .hamburger-btn span {
    background: #fff;
}

/* Header Controls Container & Fixed Line Layout */
#uiThemeSwitch,
.ui-switch,
.header-theme-toggle {
    order: 1 !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}

.logo-container {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

header nav {
    order: 3 !important;
}

.header-controls {
    order: 4 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    z-index: 1001 !important;
}

/* Mobile responsive layout overrides */
@media (max-width: 768px) {
    header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 12px !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        height: 56px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #uiThemeSwitch,
    .ui-switch,
    .header-theme-toggle {
        order: 1 !important;
        margin: 0 6px 0 0 !important;
        transform: scale(0.85) !important;
    }
    
    .logo-container {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .logo-container img {
        width: 28px !important;
        height: 28px !important;
    }

    .logo-container span {
        font-size: 17px !important;
        font-weight: 800 !important;
        letter-spacing: -0.3px !important;
        white-space: nowrap !important;
    }
    
    header nav {
        display: none !important;
    }
    
    .header-controls {
        order: 4 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    #antigravityToggleBtn,
    .antigravity-trigger-btn {
        order: 1 !important;
        display: inline-flex !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        margin: 0 !important;
    }

    .hamburger-btn {
        order: 2 !important;
        display: flex !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 5px !important;
        margin: 0 !important;
    }
}

.top-translate-bar {
    min-height: 42px;
    contain: layout size;
}

/* ==========================================================================
   GenZClass Executive Language Switcher Button Styles
   ========================================================================== */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    line-height: 1;
}

body.dark-mode .lang-toggle-btn {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.25);
}

.lang-toggle-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.lang-toggle-btn.lang-hi {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.25);
}

body.dark-mode .lang-toggle-btn.lang-hi {
    color: #34d399;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.lang-toggle-btn.lang-hi:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}