/* CSS Variables for Theme Support - Default: Beautiful Cyan */
:root {
    /* Default Theme - Beautiful Cyan */
    --bg-primary: #f0f9ff;
    --bg-secondary: #e0f2fe;
    --bg-tertiary: #bae6fd;
    --nav-bg: rgba(240, 249, 255, 0.95);
    --footer-bg: #e0f2fe;

    /* Default Theme - Text Colors */
    --text-primary: #0c4a6e;
    --text-secondary: #075985;
    --text-tertiary: #0284c7;

    /* Default Theme - Cyan Colors */
    --color-primary: #06b6d4;
    --color-primary-hover: #0891b2;
    --color-primary-light: #cffafe;
    --color-primary-dark: #0e7490;

    /* Default Theme - Accent */
    --accent-color: var(--color-primary);
    --accent-hover: var(--color-primary-hover);

    /* Default Theme - Border & Shadow */
    --border-color: #bae6fd;
    --border-color-light: #e0f2fe;
    --shadow: rgba(6, 182, 212, 0.15);
    --shadow-md: rgba(6, 182, 212, 0.2);
    --shadow-lg: rgba(6, 182, 212, 0.25);
    --glow-shadow: rgba(6, 182, 212, 0.4);
}

[data-theme="light"] {
    /* Light Theme - Soothing Bright Lavender */
    --bg-primary: #faf8ff;
    --bg-secondary: #f5f2ff;
    --bg-tertiary: #ede8ff;
    --nav-bg: rgba(250, 248, 255, 0.95);
    --footer-bg: #f5f2ff;

    /* Light Theme - Text Colors */
    --text-primary: #2d1b4e;
    --text-secondary: #6b5b8a;
    --text-tertiary: #9d8fb5;

    /* Light Theme - Bright Lavender Colors */
    --color-primary: #9b7ed8;
    --color-primary-hover: #8a6bc7;
    --color-primary-light: #e8dff5;
    --color-primary-dark: #7c5fb8;

    /* Light Theme - Accent (using primary) */
    --accent-color: var(--color-primary);
    --accent-hover: var(--color-primary-hover);

    /* Light Theme - Border & Shadow */
    --border-color: #e0d5f0;
    --border-color-light: #ede8ff;
    --shadow: rgba(155, 126, 216, 0.15);
    --shadow-md: rgba(155, 126, 216, 0.2);
    --shadow-lg: rgba(155, 126, 216, 0.25);
    --glow-shadow: rgba(155, 126, 216, 0.4);
}

[data-theme="dark"] {
    /* Dark Theme - Soothing Dark Lavender */
    --bg-primary: #1a1526;
    --bg-secondary: #241d35;
    --bg-tertiary: #2e2544;
    --nav-bg: rgba(26, 21, 38, 0.95);
    --footer-bg: #241d35;

    /* Dark Theme - Text Colors */
    --text-primary: #e8dff5;
    --text-secondary: #c4b3d9;
    --text-tertiary: #9d8fb5;

    /* Dark Theme - Dark Lavender Colors */
    --color-primary: #7c5fb8;
    --color-primary-hover: #8a6bc7;
    --color-primary-light: #4a3a6e;
    --color-primary-dark: #6b4fa3;

    /* Dark Theme - Accent */
    --accent-color: var(--color-primary);
    --accent-hover: var(--color-primary-hover);

    /* Dark Theme - Border & Shadow */
    --border-color: #3a2f4d;
    --border-color-light: #2e2544;
    --shadow: rgba(124, 95, 184, 0.25);
    --shadow-md: rgba(124, 95, 184, 0.3);
    --shadow-lg: rgba(124, 95, 184, 0.4);
    --glow-shadow: rgba(124, 95, 184, 0.5);
}

[data-theme="cyan"] {
    /* Cyan Theme - Soothing Cyan */
    --bg-primary: #f0f9ff;
    --bg-secondary: #e0f2fe;
    --bg-tertiary: #bae6fd;
    --nav-bg: rgba(240, 249, 255, 0.95);
    --footer-bg: #e0f2fe;

    /* Cyan Theme - Text Colors */
    --text-primary: #0c4a6e;
    --text-secondary: #075985;
    --text-tertiary: #0284c7;

    /* Cyan Theme - Cyan Colors */
    --color-primary: #06b6d4;
    --color-primary-hover: #0891b2;
    --color-primary-light: #cffafe;
    --color-primary-dark: #0e7490;

    /* Cyan Theme - Accent */
    --accent-color: var(--color-primary);
    --accent-hover: var(--color-primary-hover);

    /* Cyan Theme - Border & Shadow */
    --border-color: #bae6fd;
    --border-color-light: #e0f2fe;
    --shadow: rgba(6, 182, 212, 0.15);
    --shadow-md: rgba(6, 182, 212, 0.2);
    --shadow-lg: rgba(6, 182, 212, 0.25);
    --glow-shadow: rgba(6, 182, 212, 0.4);
}

[data-theme="lightblue"] {
    /* Light Blue Theme - Pastel Light Blue */
    --bg-primary: #f8fbff;
    --bg-secondary: #f0f7ff;
    --bg-tertiary: #e6f2ff;
    --nav-bg: rgba(248, 251, 255, 0.95);
    --footer-bg: #f0f7ff;

    /* Light Blue Theme - Text Colors */
    --text-primary: #2c5282;
    --text-secondary: #4a6fa5;
    --text-tertiary: #6b8db8;

    /* Light Blue Theme - Pastel Blue Colors */
    --color-primary: #7ab8e8;
    --color-primary-hover: #6ba8d8;
    --color-primary-light: #e6f2ff;
    --color-primary-dark: #5a9bc8;

    /* Light Blue Theme - Accent */
    --accent-color: var(--color-primary);
    --accent-hover: var(--color-primary-hover);

    /* Light Blue Theme - Border & Shadow */
    --border-color: #d4e7f5;
    --border-color-light: #e6f2ff;
    --shadow: rgba(122, 184, 232, 0.12);
    --shadow-md: rgba(122, 184, 232, 0.18);
    --shadow-lg: rgba(122, 184, 232, 0.22);
    --glow-shadow: rgba(122, 184, 232, 0.35);
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
}

body {
    font-family: 'Lexend', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Top Bar - Login/Sign Up - Now integrated in navbar */

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-end;
    padding: 0.25rem 0 0.5rem 0;
    position: absolute;
    top: 0;
    right: 1rem;
    z-index: 1002;
}

.top-bar-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.top-bar-link:hover {
    color: var(--color-primary);
}

.user-greeting {
    color: var(--color-primary);
    font-weight: 600;
    cursor: default;
}

.user-greeting:hover {
    color: var(--color-primary);
}


/* Profile Picture with Animated Ring */
.profile-pic-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-left: 0.5rem;
    position: relative;
}

.profile-pic-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.profile-pic-link:hover .profile-pic-small {
    transform: scale(1.1);
}

.profile-pic-ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-primary);
    animation: profileRingRotate 2s linear infinite;
    z-index: 1;
}

@keyframes profileRingRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-pic-link:hover .profile-pic-ring {
    border-top-color: var(--color-primary-hover);
    border-right-color: var(--color-primary-hover);
    animation-duration: 1s;
}

/* Mobile profile pic adjustments */
.mobile-top-bar-content .profile-pic-link {
    margin-left: 0.25rem;
}

.mobile-top-bar-content .profile-pic-wrapper {
    width: 26px;
    height: 26px;
}

.mobile-top-bar-content .profile-pic-small {
    width: 22px;
    height: 22px;
}

.mobile-top-bar-content .profile-pic-ring {
    width: 26px;
    height: 26px;
}

.apply-now-btn {
    background: transparent;
    color: #06b6d4; /* Fallback color - Cyan */
    background: linear-gradient(90deg,
        #0891b2 0%,
        #06b6d4 25%,
        #22d3ee 50%,
        #06b6d4 75%,
        #0891b2 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
    padding: 0.25rem 0.6rem !important;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

@supports not (-webkit-background-clip: text) {
    .apply-now-btn {
        -webkit-text-fill-color: #06b6d4;
        color: #06b6d4;
    }
}

/* Light Lavender Theme */
[data-theme="light"] .apply-now-btn {
    color: #9b7ed8; /* Fallback color */
    background: linear-gradient(90deg,
        #7c5fb8 0%,
        #9b7ed8 25%,
        #b89de8 50%,
        #9b7ed8 75%,
        #7c5fb8 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="light"] .apply-now-btn {
        -webkit-text-fill-color: #9b7ed8;
        color: #9b7ed8;
    }
}

/* Dark Lavender Theme */
[data-theme="dark"] .apply-now-btn {
    color: #b89de8; /* Fallback color */
    background: linear-gradient(90deg,
        #9b7ed8 0%,
        #b89de8 25%,
        #d4c4f0 50%,
        #b89de8 75%,
        #9b7ed8 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="dark"] .apply-now-btn {
        -webkit-text-fill-color: #b89de8;
        color: #b89de8;
    }
}

/* Cyan Theme */
[data-theme="cyan"] .apply-now-btn {
    color: #06b6d4; /* Fallback color */
    background: linear-gradient(90deg,
        #0891b2 0%,
        #06b6d4 25%,
        #22d3ee 50%,
        #06b6d4 75%,
        #0891b2 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="cyan"] .apply-now-btn {
        -webkit-text-fill-color: #06b6d4;
        color: #06b6d4;
    }
}

/* Light Blue Theme */
[data-theme="lightblue"] .apply-now-btn {
    color: #7ab8e8; /* Fallback color */
    background: linear-gradient(90deg,
        #5a9bc8 0%,
        #7ab8e8 25%,
        #9cc5f0 50%,
        #7ab8e8 75%,
        #5a9bc8 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="lightblue"] .apply-now-btn {
        -webkit-text-fill-color: #7ab8e8;
        color: #7ab8e8;
    }
}

.apply-now-btn:hover {
    transform: translateY(-1px);
}

.top-bar-separator {
    color: var(--border-color);
    font-weight: 300;
    user-select: none;
    font-size: 0.7rem;
}

.top-bar-search-form {
    display: inline-block;
}

.top-bar-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.search-input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem; /* 16px at 16px base */
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-primary);
    width: 7.5rem; /* 120px at 16px base */
    min-width: 7.5rem;
    max-width: 100%;
    transition: all 0.3s ease;
    font-family: 'Lexend', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    width: 9.375rem; /* 150px at 16px base */
    max-width: 100%;
}

.search-input::placeholder {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.search-btn {
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--color-primary-hover);
}

.search-btn svg {
    width: 14px;
    height: 14px;
}

/* Desktop: hide the new wrapper classes, keep original layout */
.nav-logo-wrapper {
    display: contents; /* Don't affect desktop layout */
}

/* Hide mobile search button on desktop */
.nav-search-btn {
    display: none;
}

/* Desktop: Arrange elements in order: Logo → Heart → Nav Menu → Theme → Notification */
@media (min-width: 768px) {
    /* Make nav-buttons-row and nav-actions use display: contents so children become direct children */
    .nav-buttons-row,
    .nav-actions {
        display: contents;
    }
    
    /* Hide only mobile-specific buttons from nav-buttons-row on desktop */
    .nav-buttons-row > .hamburger,
    .nav-buttons-row > .nav-search-btn {
        display: none !important;
    }
    
    /* Show desktop buttons from nav-buttons-row (heart, notification) */
    .nav-buttons-row > .nav-love-btn,
    .nav-buttons-row > .notification-btn {
        display: flex !important;
    }
    
    /* Hide theme-toggle-wrapper from nav-buttons-row (use the one from nav-actions) */
    .nav-buttons-row > .theme-toggle-wrapper {
        display: none !important;
    }
    
    /* Show theme-toggle-wrapper from nav-actions on desktop */
    .nav-actions > .theme-toggle-wrapper {
        display: flex !important;
    }
    
    /* Position elements using flexbox order */
    .nav-logo-wrapper {
        order: 0; /* Logo first */
    }
    
    .nav-buttons-row > .nav-love-btn {
        order: 1; /* Heart after logo */
    }
    
    .nav-menu {
        order: 2; /* Nav menu after heart */
        flex: 1; /* Take up remaining space */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .nav-actions > .theme-toggle-wrapper {
        order: 3; /* Theme after nav menu */
        margin-right: 0.75rem; /* Add spacing between theme and notification */
    }
    
    .nav-buttons-row > .notification-btn {
        order: 4; /* Notification after theme */
    }
    
    /* Keep notification modal in nav-actions but don't affect order */
    .nav-actions > .notification-modal {
        order: 5; /* Modal after everything */

    }
}

@media (max-width: 767px) {
    /* Hide nav-actions buttons on mobile (they're in nav-buttons-row instead) */
    .nav-actions > .theme-toggle-wrapper,
    .nav-actions > .notification-btn {
        display: none !important;
    }
    
    .top-bar-right {
        display: none;
    }

    .navbar {
        top: 0;
        border-top: none;
        padding: 0.2rem 0 0.25rem 0;
        overflow: visible;
    }

    .nav-container {
        flex-direction: row;
        min-height: auto;
        padding: 0 0.5rem 0.2rem 0.5rem;
        position: relative;
        overflow: visible;
        max-width: 100%;
    }
    
    .nav-logo-wrapper,
    .nav-buttons-row {
        display: flex;
    }
    
    .nav-search-btn {
        display: flex;
    }

    .nav-main-content {
        width: 100%;
        padding: 0;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .nav-logo-wrapper {
        order: 1;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 0.1rem;
    }

    .nav-logo {
        height: 22px;
        flex-shrink: 0;
        max-width: 95px;
        margin: 0 auto;
    }

    .nav-buttons-row {
        order: 2;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding: 0 0.2rem;
        gap: 0;
    }
    
    /* Hamburger stays on left */
    .nav-buttons-row > .hamburger {
        display: flex !important;
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        z-index: 1002;
        position: relative;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0;
        margin-right: auto; /* Push to left */
    }
    
    .hamburger span {
        height: 2.5px;
    }

    /* Justified buttons container: Heart → Theme → Search → Notification */
    .nav-buttons-row > .nav-love-btn,
    .nav-buttons-row > .theme-toggle-wrapper,
    .nav-buttons-row > .nav-search-btn,
    .nav-buttons-row > .notification-btn {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        min-width: 0;
    }

    .nav-buttons-row > .nav-love-btn {
        width: 20px;
        height: 20px;
        margin: 0;
    }

    .nav-heart {
        font-size: 0.65rem;
    }

    .nav-buttons-row > .theme-toggle-wrapper {
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .nav-buttons-row > .theme-toggle-wrapper > .theme-toggle {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }

    .nav-buttons-row > .theme-toggle-wrapper > .theme-toggle svg {
        width: 14px;
        height: 14px;
    }

    .nav-buttons-row > .nav-search-btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--text-primary);
        padding: 0;
        border-radius: 50%;
        transition: all 0.2s ease;
        margin: 0;
    }

    .nav-buttons-row > .nav-search-btn:hover {
        background-color: var(--bg-tertiary);
        color: var(--color-primary);
    }

    .nav-buttons-row > .nav-search-btn svg {
        width: 14px;
        height: 14px;
    }

    .nav-buttons-row > .notification-btn {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
        flex-shrink: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background: transparent !important; /* No background on mobile */
        box-shadow: none !important; /* No shadow on mobile */
        border: none !important;
        padding: 0;
        cursor: pointer;
    }
    
    .nav-buttons-row > .notification-btn:hover {
        background: transparent !important;
        transform: none;
        box-shadow: none !important;
        color: var(--color-primary);
    }
    
    .nav-buttons-row > .notification-btn:active {
        background: var(--bg-tertiary) !important;
        border-radius: 50%;
    }

    .nav-buttons-row > .notification-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .nav-buttons-row > .notification-btn .notification-badge {
        top: -0.2rem;
        right: -0.2rem;
        font-size: 0.6rem;
        min-width: 1.1rem;
        height: 1.1rem;
        padding: 0 0.3rem;
    }


    .nav-main-content > .nav-menu {
        order: 999;
    }

    .nav-menu {
        top: 45px;
        height: calc(100vh - 45px);
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.4rem 0.2rem 0.4rem;
    }
    
    .nav-main-content {
        margin-top: 1.2rem;
        gap: 0.25rem;
    }
    
    .nav-logo {
        height: 20px;
        max-width: 85px;
    }
    
    .nav-buttons-row {
        padding: 0 0.15rem;
    }
    
    .nav-buttons-row > .hamburger,
    .nav-search-btn {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }
    
    .nav-search-btn {
        margin-left: 0.3rem;
    }
    
    .nav-search-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .nav-buttons-row > .nav-love-btn {
        width: 18px;
        height: 18px;
        margin-left: 0.3rem;
    }
    
    .nav-heart {
        font-size: 0.6rem;
    }
    
    .notification-btn,
    .theme-toggle {
        width: 24px;
        height: 24px;
    }
    
    .notification-btn svg,
    .theme-toggle svg {
        width: 12px;
        height: 12px;
    }
    
    .nav-buttons-row > .nav-actions {
        gap: 0.25rem;
    }
    
    .nav-menu {
        top: 42px;
        height: calc(100vh - 42px);
    }
}

/* Very tall/narrow phones (like Samsung Galaxy) */
@media (max-width: 767px) and (max-height: 900px) and (min-aspect-ratio: 9/16) {
    .nav-container {
        padding: 0 0.5rem 0.3rem 0.5rem;
    }
    
    .nav-main-content {
        margin-top: 1.2rem;
        gap: 0.35rem;
    }
    
    .nav-logo {
        height: 24px;
        max-width: 100px;
    }
    
    .nav-buttons-row {
        gap: 0.25rem;
        padding: 0 0.25rem;
    }
    
    .nav-buttons-row > .hamburger,
    .nav-search-btn {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
    }
    
    .notification-btn,
    .theme-toggle {
        width: 28px;
        height: 28px;
    }
}

/* Navbar Styles - Glass Design */
.navbar {
    background: rgba(240, 249, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: none;
    border-top: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    overflow: visible;
    /* padding: 0 0 1.5rem 0; */
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(6, 182, 212, 0.2);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    align-self: flex-start; /* Important for flex containers */
    flex-shrink: 0;
}

/* Navbar scrolled state - slightly smaller */
.navbar.scrolled {
    box-shadow: 0 2px 20px var(--glow-shadow), 0 0 15px rgba(6, 182, 212, 0.15);
}

.nav-container {
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .nav-container {
    padding: 0.6rem 1rem 1.2rem 1rem;
    min-height: 85px;
}

.nav-main-content {
    transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .nav-main-content {
    margin-top: 1.8rem;
}

.nav-logo {
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .nav-logo {
    height: 36px;
}

.top-bar-right {
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .top-bar-right {
    padding: 0.2rem 0 0.4rem 0;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 21, 38, 0.7);
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(124, 95, 184, 0.3);
    border-top: none;
}

[data-theme="cyan"] .navbar {
    background: rgba(240, 249, 255, 0.7);
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(6, 182, 212, 0.3);
    border-top: none;
}

[data-theme="lightblue"] .navbar {
    background: rgba(248, 251, 255, 0.7);
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(122, 184, 232, 0.25);
    border-top: none;
}

[data-theme="light"] .navbar {
    background: rgba(250, 248, 255, 0.7);
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(155, 126, 216, 0.3);
    border-top: none;
}


.nav-container {
    max-width: 85rem; /* 1360px at 16px base, scales with root font-size */
    margin: 0 auto;
    padding: 0.75rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    min-height: 6.25rem; /* 100px at 16px base */
    width: 100%;
}

.nav-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 2.5rem;
    max-width: 85rem; /* Match container width */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Hamburger Menu - Mobile Only */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Higher z-index to ensure visibility */
    gap: 4px;
    position: relative; /* Ensure proper positioning */
    flex-shrink: 0; /* Prevent shrinking */
    min-width: 32px; /* Ensure minimum size */
    min-height: 32px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex: 1;
    max-width: 150px;
}

.nav-love-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 0.75rem;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid transparent;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-love-btn:hover {
    opacity: 1;
    color: var(--color-primary);
    border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
    background: color-mix(in srgb, var(--color-primary) 5%, transparent);
    transform: scale(1.15);
}

.nav-love-btn:active {
    transform: scale(0.95);
}

.nav-heart {
    font-size: 0.9rem;
    line-height: 1;
    display: inline-block;
    animation: subtle-pulse 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}
.nav-love-btn:active .nav-heart {
    transform: scale(1.4);
    transition: transform 0.12s ease;
}

.nav-love-btn:hover .nav-heart {
    animation: heartbeat-subtle 1s ease-in-out infinite;
    transform: scale(1.3);
}

@keyframes subtle-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes heartbeat-subtle {
    0%, 100% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.5);
    }
}

/* Nav Actions - Notification & Theme Toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    position: relative;
}

@media (max-width: 767px) {
    .nav-actions {
        gap: 0.5rem; /* Reduced gap on mobile */
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 0.4rem; /* Even smaller gap on very small screens */
    }
}
/* Notification Button */
.notification-btn {
    position: relative;
    background: var(--bg-secondary);
    border: none;
    outline: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow);
    flex-shrink: 0; }
.notification-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--glow-shadow);
    background: var(--color-primary-light);
    color: var(--color-primary); }
.notification-btn svg
{ width: 20px; height: 20px; }
.notification-badge {
    position: absolute;
    top: -0.25rem; /* -4px at 16px base */
    right: -0.25rem; /* -4px at 16px base */
    background: #ef4444; color: white;
    font-size: 0.6875rem; /* 11px at 16px base - better readability */
    font-weight: 700; min-width: 1.25rem; /* 20px at 16px base */
    height: 1.25rem; /* 20px at 16px base */
    padding: 0 0.375rem; /* Allow horizontal padding for multi-digit numbers */
    border-radius: 0.625rem; /* 10px at 16px base - pill shape for better readability */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.125rem solid var(--bg-primary); /* 2px at 16px base */
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap; }
@keyframes pulse { 0%, 100% { transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 50% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); } } /* Notification Modal - Frosted Glass Design */ .notification-modal { position: fixed; top: 5.5rem; /* Position below navbar */ right: 1rem; /* Position at top right corner */ z-index: 10001; display: none; opacity: 0; transform: translateY(-0.625rem) scale(0.95); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: visible; max-width: 30rem; width: auto; min-width: 12.5rem; /* 200px at 16px base */ box-sizing: border-box; padding: 1rem; line-height: 1.25; /* desktop line height */ } /* Desktop: Position modal relative to notification button */ @media (min-width: 768px) { .notification-modal { position: fixed; top: 5.5rem; /* Below navbar */ right: calc((100vw - 85rem) / 2 + 1rem); /* Align with container edge + padding */ max-width: 30rem; } /* Adjust for smaller screens */ @media (max-width: 1440px) { .notification-modal { right: 1rem; /* Fallback to simple right positioning */ } } } /* Desktop active */ .notification-modal.active { display: flex; opacity: 1; transform: translateY(0) scale(1); } /* Medium screens (tablets) */ @media (max-width: 1024px) { .notification-modal { max-width: 90%; right: 5%; left: 5%; top: calc(100% + 0.5rem); padding: 1rem; } } /* Small screens (phones) */ @media (max-width: 768px) { .notification-modal { position: fixed; top: 10rem; left: 50%; transform: translateX(-50%) translateY(-0.625rem) scale(0.95); right: auto; width: 22rem; height: 25rem; max-width: 22rem; max-height: 25rem; min-width: 12.5rem; /* 200px at 16px base */ padding: 0.5rem; line-height: 1.1; overflow-y: auto; z-index: 10001; display: none; opacity: 0; } .notification-modal.active { display: flex !important; opacity: 1 !important; width: 22rem; height: 25rem; transform: translateX(-50%) translateY(0) scale(1); } } .notification-modal-content { width: 35rem; max-width: 100%; max-height: 35rem; display: flex; flex-direction: column; overflow: hidden; background: color-mix(in srgb, var(--bg-primary) 85%, transparent); backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%); border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent-color) 30%, transparent); box-shadow: 0 20px 60px var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--accent-color) 20%, transparent) inset, 0 8px 32px var(--shadow), 0 0 40px color-mix(in srgb, var(--accent-color) 15%, transparent); clip-path: inset(0 round 20px); }

[data-theme="dark"] .notification-modal-content {
    background: color-mix(in srgb, var(--bg-primary) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-color) 25%, transparent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px color-mix(in srgb, var(--accent-color) 15%, transparent) inset,
                0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 40px color-mix(in srgb, var(--accent-color) 20%, transparent);
}

.notification-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-color) 15%, transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: color-mix(in srgb, var(--accent-color) 8%, var(--bg-secondary));
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
}

[data-theme="dark"] .notification-modal-header {
    border-bottom: 1px solid color-mix(in srgb, var(--accent-color) 20%, transparent);
    background: color-mix(in srgb, var(--accent-color) 5%, var(--bg-secondary));
}

.notification-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.notification-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-all-btn {
    padding: 0.4rem 0.85rem;
    background: color-mix(in srgb, var(--accent-color) 15%, var(--bg-tertiary));
    border: 1px solid color-mix(in srgb, var(--accent-color) 25%, transparent);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.clear-all-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--glow-shadow);
}

.close-notification-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
}

.close-notification-btn:hover {
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
}

.notification-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: transparent;
    border-radius: 0 0 20px 20px;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.notification-modal-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--bg-primary) 70%, transparent);
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-color) 10%, transparent);
    border-radius: 0;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.notification-item:first-child {
    border-radius: 0;
}

.notification-item:last-child {
    border-bottom: none;
    border-radius: 0 0 20px 20px;
}

.notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent-color) 8%, transparent) 0%,
        color-mix(in srgb, var(--accent-color) 3%, transparent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.notification-item:hover {
    background: color-mix(in srgb, var(--bg-primary) 85%, transparent); /* just slightly brighter */
    transform: translateX(4px);
    box-shadow: inset 0 0 10px color-mix(in srgb, var(--accent-color) 5%, transparent);
}

.notification-item:hover::before {
    opacity: 0; /* keep it hidden since no frosted effect needed */
}


.notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--accent-color) 15%, var(--bg-tertiary));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid color-mix(in srgb, var(--accent-color) 20%, transparent);
    color: var(--accent-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-color) 10%, transparent);
}

.notification-item:hover .notification-icon {
    background: color-mix(in srgb, var(--accent-color) 20%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--accent-color) 30%, transparent);
    transform: scale(1.05);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-color) 15%, transparent);
}

.notification-icon.notif-type-notice {
    background: color-mix(in srgb, var(--accent-color) 15%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--accent-color) 25%, transparent);
    color: var(--accent-color);
}

.notification-icon.notif-type-events {
    background: color-mix(in srgb, var(--accent-hover) 15%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--accent-hover) 25%, transparent);
    color: var(--accent-hover);
}

.notification-icon.notif-type-seminars {
    background: color-mix(in srgb, var(--accent-color) 12%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--accent-color) 20%, transparent);
    color: var(--accent-color);
}

.notification-icon.notif-type-workshop {
    background: color-mix(in srgb, var(--color-primary-dark) 15%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--color-primary-dark) 25%, transparent);
    color: var(--color-primary-dark);
}

.notification-icon.notif-type-others {
    background: color-mix(in srgb, var(--accent-color) 15%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--accent-color) 25%, transparent);
    color: var(--accent-color);
}

.notification-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
    word-wrap: break-word;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.notification-type {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    background: color-mix(in srgb, var(--accent-color) 12%, var(--bg-tertiary));
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid color-mix(in srgb, var(--accent-color) 18%, transparent);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-type.notif-type-notice {
    background: color-mix(in srgb, var(--accent-color) 12%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--accent-color) 20%, transparent);
    color: var(--accent-color);
}

.notification-type.notif-type-events {
    background: color-mix(in srgb, var(--accent-hover) 12%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--accent-hover) 20%, transparent);
    color: var(--accent-hover);
}

.notification-type.notif-type-seminars {
    background: color-mix(in srgb, var(--accent-color) 10%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--accent-color) 18%, transparent);
    color: var(--accent-color);
}

.notification-type.notif-type-workshop {
    background: color-mix(in srgb, var(--color-primary-dark) 12%, var(--bg-tertiary));
    border-color: color-mix(in srgb, var(--color-primary-dark) 20%, transparent);
    color: var(--color-primary-dark);
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.notification-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.notification-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.notification-empty svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.notification-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    /*.notification-modal {*/
    /*    position: fixed;*/
    /*    top: 0;*/
    /*    left: 0;*/
    /*    right: 0;*/
    /*    bottom: 0;*/
    /*    max-width: 100%;*/
    /*    max-height: 100vh;*/
    /*    border-radius: 0;*/
    /*    background: rgba(0, 0, 0, 0.5);*/
    /*    backdrop-filter: blur(4px);*/
    /*    display: none;*/
    /*    align-items: center;*/
    /*    justify-content: center;*/
    /*    padding: 1rem;*/
    /*}*/

    .notification-modal.active {
        display: flex;
    }

    .notification-modal-content {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px;
        background: var(--bg-primary);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .notification-modal-header {
        padding: 1rem;
    }

    .notification-item {
        padding: 1rem;
    }
}

/* Nav Menu - Mobile First (Hidden by default, shown in hamburger) */
.nav-menu {
    position: fixed;
    top: 55px;
    left: 0;
    width: 100%;
    height: calc(100vh - 55px);
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    list-style: none;
    flex-direction: column;
    padding: 1rem 0.75rem;
    gap: 0.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 30px var(--glow-shadow);
    overflow-y: auto;
    display: flex;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-menu li {
    width: 100%;
}

.nav-menu .nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.mobile-top-bar {
    display: none;
}

.nav-divider {
    display: none;
}

@media (max-width: 767px) {
    .mobile-top-bar {
        display: block;
        padding: 0.5rem 0.5rem;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0.25rem;
    }

    .mobile-top-bar-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-top-bar-content .top-bar-link {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }

    .mobile-top-bar-content .apply-now-btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.85rem;
        text-align: center;
        display: block;
        width: 100%;
    }

    .mobile-top-bar-content .top-bar-separator {
        display: none;
    }

    .mobile-top-bar-content .top-bar-search {
        width: 100%;
    }

    .mobile-search .search-input {
        width: 100%;
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .mobile-search .search-input:focus {
        width: 100%;
    }

    .mobile-search .search-btn {
        width: 32px;
        height: 32px;
    }

    .mobile-search .search-btn svg {
        width: 14px;
        height: 14px;
    }

    .nav-divider {
        display: block;
        height: 1px;
        background: var(--border-color);
        margin: 0.25rem 0;
        padding: 0 !important;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--color-primary),
        var(--color-primary-hover),
        var(--color-primary)
    );
    background-size: 200% 100%;
    border-radius: 6px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--glow-shadow);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::before {
    width: 100%;
    animation: underlineGlow 2s ease-in-out infinite;
}

.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::before {
    width: 100%;
    animation: underlineGlow 2s ease-in-out infinite;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 6px;
    box-shadow: 0 0 8px var(--glow-shadow);
    opacity: 0;
}

@keyframes underlineGlow {
    0%, 100% {
        background-position: 0% center;
        box-shadow: 0 0 8px var(--glow-shadow);
        transform: scaleX(1);
    }
    50% {
        background-position: 100% center;
        box-shadow: 0 0 15px var(--glow-shadow), 0 0 25px var(--glow-shadow);
        transform: scaleX(1.05);
    }
}

/* Dropdown Menu - Liquid Glass Design */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-menu {
    pointer-events: auto;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 220px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px var(--shadow-lg),
                0 0 20px var(--glow-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1001;
    overflow: hidden;
    pointer-events: none;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
    border-radius: 16px;
}

.nav-dropdown.active .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-link {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    margin-bottom: 0.25rem;
    pointer-events: auto;
    cursor: pointer;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
    transform: translateX(4px);
    box-shadow: 0 2px 8px var(--shadow);
}

.dropdown-link:last-child {
    margin-bottom: 0;
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Mobile Dropdown Styles */
@media (max-width: 767px) {
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        margin-left: 0;
        max-height: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 1000px;
        padding: 0.5rem 0 0.5rem 1.5rem;
        margin-top: 0.25rem;
    }

    .dropdown-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
        border-radius: 10px;
        margin-bottom: 0.2rem;
    }

    .dropdown-link:hover {
        transform: translateX(2px);
    }

    .dropdown-arrow {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.theme-toggle-wrapper {
    position: relative;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: none;
    outline: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 8px var(--shadow);
    flex-shrink: 0;
    z-index: 1000;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.1;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 16px var(--glow-shadow);
    background: var(--color-primary-light);
}

.theme-toggle:active {
    transform: scale(0.95) rotate(15deg);
}

.theme-icon {
    position: absolute;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.theme-icon-cyan {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.theme-icon-lightblue {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon-cyan {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .theme-icon-lightblue {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}


[data-theme="light"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-icon-cyan {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="light"] .theme-icon-lightblue {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}


[data-theme="cyan"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="cyan"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="cyan"] .theme-icon-cyan {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="cyan"] .theme-icon-lightblue {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="lightblue"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="lightblue"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="lightblue"] .theme-icon-cyan {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="lightblue"] .theme-icon-lightblue {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}


.theme-toggle:hover .theme-icon {
    transform: rotate(180deg) scale(1.1);
}

[data-theme="dark"] .theme-toggle:hover .theme-icon-sun {
    transform: rotate(180deg) scale(1.1);
}

/* Theme Menu */
.theme-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-color-light);
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    pointer-events: none;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: none;
}

.theme-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
    display: block;
}

.theme-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.theme-menu-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.theme-menu-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-indicator-cyan {
    background: #06b6d4;
}

.theme-indicator-light {
    background: #9b7ed8;
}

.theme-indicator-dark {
    background: #7c5fb8;
}

.theme-indicator-lightblue {
    background: #7ab8e8;
}


/* Animation for theme switch */
body.theme-transitioning * {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Main Content */
.main-content {
    flex: 1;
     padding-top: 150px;
}


.container {
    max-width: 85rem; /* 1360px at 16px base, scales with root font-size */
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

.hero-section {
    margin-bottom: 3rem;
}

.content-section {
    margin-top: 3rem;
}

/* Typography Styles */
h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    margin-top: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--text-primary);
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.875rem;
    margin-top: 1.25rem;
    color: var(--text-primary);
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
    color: var(--text-primary);
}

h6 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    margin-top: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 85rem; /* 1360px at 16px base, scales with root font-size */
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
    width: 100%;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Color Test Cards */
.color-test-section {
    margin: 3rem 0;
}

.color-test-section h2 {
    margin-bottom: 2rem;
}

.color-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.color-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.color-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-md);
}

.color-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.color-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.color-card-body {
    margin-top: 1rem;
}

.color-card-body p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.color-code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background-color: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    color: var(--text-primary);
    display: inline-block;
}

/* Color Variant Cards */
.color-variant {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 0.5rem;
}

.color-variant-swatch {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.color-variant-info {
    flex: 1;
}

.color-variant-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.color-variant-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Specific Color Classes - Lavender Only */
.color-primary { background-color: var(--color-primary); }
.color-primary-light { background-color: var(--color-primary-light); }
.color-primary-dark { background-color: var(--color-primary-dark); }

/* Animated Text - Color Gradient Animation (Default: Cyan) */
.animated-text {
    font-size: 3rem;
    font-weight: 800;
    color: #06b6d4; /* Fallback color - Cyan */
    background: linear-gradient(90deg,
        #0891b2 0%,
        #06b6d4 25%,
        #22d3ee 50%,
        #06b6d4 75%,
        #0891b2 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
    margin: 2rem 0;
    line-height: 1.2;
    display: inline-block;
}

/* Ensure browser support */
@supports not (-webkit-background-clip: text) {
    .animated-text {
        -webkit-text-fill-color: #06b6d4;
        color: #06b6d4;
    }
}

/* Light Lavender Theme Animation */
@keyframes colorShift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

/* Light Lavender Theme Animation */
[data-theme="light"] .animated-text {
    color: #9b7ed8; /* Fallback color */
    background: linear-gradient(90deg,
        #7c5fb8 0%,
        #9b7ed8 25%,
        #b89de8 50%,
        #9b7ed8 75%,
        #7c5fb8 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="light"] .animated-text {
        -webkit-text-fill-color: #9b7ed8;
        color: #9b7ed8;
    }
}

[data-theme="light"] .animated-text-section::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(155, 126, 216, 0.1),
        transparent
    );
}

/* Dark Lavender Theme Animation */
[data-theme="dark"] .animated-text {
    color: #b89de8; /* Fallback color - brighter for dark theme */
    background: linear-gradient(90deg,
        #9b7ed8 0%,
        #b89de8 25%,
        #d4c4f0 50%,
        #b89de8 75%,
        #9b7ed8 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="dark"] .animated-text {
        -webkit-text-fill-color: #b89de8;
        color: #b89de8;
    }
}

/* Cyan Theme Animation */
[data-theme="cyan"] .animated-text {
    color: #06b6d4; /* Fallback color */
    background: linear-gradient(90deg,
        #0891b2 0%,
        #06b6d4 25%,
        #22d3ee 50%,
        #06b6d4 75%,
        #0891b2 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="cyan"] .animated-text {
        -webkit-text-fill-color: #06b6d4;
        color: #06b6d4;
    }
}

.animated-text-section {
    margin: 4rem 0;
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.animated-text-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(6, 182, 212, 0.1),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

[data-theme="dark"] .animated-text-section::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(124, 95, 184, 0.15),
        transparent
    );
}

[data-theme="cyan"] .animated-text-section::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(6, 182, 212, 0.1),
        transparent
    );
}

/* Light Blue Theme Animation */
[data-theme="lightblue"] .animated-text {
    color: #7ab8e8; /* Fallback color - pastel */
    background: linear-gradient(90deg,
        #5a9bc8 0%,
        #7ab8e8 25%,
        #9cc5f0 50%,
        #7ab8e8 75%,
        #5a9bc8 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="lightblue"] .animated-text {
        -webkit-text-fill-color: #7ab8e8;
        color: #7ab8e8;
    }
}

[data-theme="lightblue"] .animated-text-section::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(122, 184, 232, 0.08),
        transparent
    );
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.animated-text-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Toast Notification - Liquid Glass Design */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem 1.25rem 1rem 1rem;
    border-radius: 1.25rem; /* 20px at 16px base */
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1), 0 0 1.25rem var(--glow-shadow);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateY(1.25rem) scale(0.95); /* 20px at 16px base */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 18.75rem; /* 300px at 16px base */
    width: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

[data-theme="light"] .toast {
    background: rgba(250, 248, 255, 0.15);
    border: 1px solid rgba(155, 126, 216, 0.2);
}

[data-theme="dark"] .toast {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(124, 95, 184, 0.3);
}

[data-theme="lightblue"] .toast {
    background: rgba(248, 251, 255, 0.15);
    border: 1px solid rgba(122, 184, 232, 0.2);
}

[data-theme="cyan"] .toast {
    background: rgba(240, 249, 255, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2),
                0 0 30px rgba(6, 182, 212, 0.3),
                0 0 60px rgba(6, 182, 212, 0.15);
    animation: cyanGlow 2s ease-in-out infinite;
}

@keyframes cyanGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2),
                    0 0 30px rgba(6, 182, 212, 0.3),
                    0 0 60px rgba(6, 182, 212, 0.15);
    }
    50% {
        box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3),
                    0 0 40px rgba(6, 182, 212, 0.4),
                    0 0 80px rgba(6, 182, 212, 0.25);
    }
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--color-primary),
                0 0 20px var(--color-primary);
    animation: pulseIndicator 2s ease-in-out infinite;
}

[data-theme="light"] .toast-indicator {
    background: #9b7ed8;
    box-shadow: 0 0 10px rgba(155, 126, 216, 0.8),
                0 0 20px rgba(155, 126, 216, 0.6);
}

[data-theme="dark"] .toast-indicator {
    background: #7c5fb8;
    box-shadow: 0 0 10px rgba(124, 95, 184, 0.8),
                0 0 20px rgba(124, 95, 184, 0.6);
}

[data-theme="cyan"] .toast-indicator {
    background: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.8),
                0 0 30px rgba(6, 182, 212, 0.6),
                0 0 45px rgba(6, 182, 212, 0.4);
    animation: cyanPulse 1.5s ease-in-out infinite;
}

[data-theme="lightblue"] .toast-indicator {
    background: #7ab8e8;
    box-shadow: 0 0 10px rgba(122, 184, 232, 0.8),
                0 0 20px rgba(122, 184, 232, 0.6);
}

@keyframes pulseIndicator {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes cyanPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.8),
                    0 0 30px rgba(6, 182, 212, 0.6),
                    0 0 45px rgba(6, 182, 212, 0.4);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 20px rgba(6, 182, 212, 1),
                    0 0 40px rgba(6, 182, 212, 0.8),
                    0 0 60px rgba(6, 182, 212, 0.6);
    }
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* Home Hero Section */
.home-hero {
    display: flex;
    align-items: flex-start;
    padding: 2rem 0 0 0;
    background: var(--bg-primary);
    position: relative;
}


.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 30%,
        var(--bg-tertiary) 60%,
        var(--bg-secondary) 80%,
        var(--bg-primary) 100%
    );
    opacity: 1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 5%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0.3) 95%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 5%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0.3) 95%,
        transparent 100%
    );
}

.home-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 40%, var(--color-primary-light) 0%, transparent 40%),
                radial-gradient(ellipse at 80% 60%, var(--color-primary-light) 0%, transparent 40%);
    opacity: 0.2;
    pointer-events: none;
}

.hero-container {
    max-width: 85rem; /* 1360px at 16px base, scales with root font-size */
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.6rem;
    align-items: center;
    margin-left: 6rem;
}

.hero-text {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}
.hero-welcome {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: none;
    -webkit-text-stroke: none;
}

.hero-title {
    font-size: 6.75rem;
    font-weight: 900;
    line-height: 1.08;
    margin: 0;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #667eea 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: researchGradient 3s ease infinite;
    text-shadow: none;
    -webkit-text-stroke: none;
}

@keyframes researchGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-tagline {
    font-size: 1.62rem;
    font-style: normal;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
    font-weight: 600;
    text-shadow: none;
    -webkit-text-stroke: none;
}

.hero-stats {
    font-size: 3.15rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 2.2rem;
    line-height: 1.2;
    text-shadow: none;
    -webkit-text-stroke: none;
}


.stats-prefix {
    font-size: 1.62rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.stats-dynamic {
    display: inline-block;
    color: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: none;
    -webkit-text-stroke: none;
    font-weight: 900;
}

.hero-greeting {
    font-size: 2.7rem;
    font-weight: 700;
    margin-top: 2rem;
    line-height: 1.2;
    display: block;
    text-align: center;
    width: 100%;
}

.brief-text {
    color: #06b6d4; /* Fallback color - Cyan */
    background: linear-gradient(90deg,
        #0891b2 0%,
        #06b6d4 25%,
        #22d3ee 50%,
        #06b6d4 75%,
        #0891b2 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
    display: inline-block;
}

@supports not (-webkit-background-clip: text) {
    .brief-text {
        -webkit-text-fill-color: #06b6d4;
        color: #06b6d4;
    }
}

/* Light Lavender Theme */
[data-theme="light"] .brief-text {
    color: #9b7ed8; /* Fallback color */
    background: linear-gradient(90deg,
        #7c5fb8 0%,
        #9b7ed8 25%,
        #b89de8 50%,
        #9b7ed8 75%,
        #7c5fb8 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="light"] .brief-text {
        -webkit-text-fill-color: #9b7ed8;
        color: #9b7ed8;
    }
}

/* Dark Lavender Theme */
[data-theme="dark"] .brief-text {
    color: #b89de8; /* Fallback color */
    background: linear-gradient(90deg,
        #9b7ed8 0%,
        #b89de8 25%,
        #d4c4f0 50%,
        #b89de8 75%,
        #9b7ed8 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="dark"] .brief-text {
        -webkit-text-fill-color: #b89de8;
        color: #b89de8;
    }
}

/* Cyan Theme */
[data-theme="cyan"] .brief-text {
    color: #06b6d4; /* Fallback color */
    background: linear-gradient(90deg,
        #0891b2 0%,
        #06b6d4 25%,
        #22d3ee 50%,
        #06b6d4 75%,
        #0891b2 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="cyan"] .brief-text {
        -webkit-text-fill-color: #06b6d4;
        color: #06b6d4;
    }
}

/* Light Blue Theme */
[data-theme="lightblue"] .brief-text {
    color: #7ab8e8; /* Fallback color */
    background: linear-gradient(90deg,
        #5a9bc8 0%,
        #7ab8e8 25%,
        #9cc5f0 50%,
        #7ab8e8 75%,
        #5a9bc8 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 5s ease-in-out infinite;
}

@supports not (-webkit-background-clip: text) {
    [data-theme="lightblue"] .brief-text {
        -webkit-text-fill-color: #7ab8e8;
        color: #7ab8e8;
    }
}

.hero-visuals {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-left: 100px;
  margin-top: 30px;
}

.polaroid-container {
  position: relative;
  height: 405px;
  width: 100%;
  max-width: 432px;
  padding-top: 2.5rem;
  margin-left: 170px;
  margin-top: 0.9rem;
}

.polaroid-link {
  position: absolute;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.6s ease, opacity 0.6s ease;
  will-change: transform, opacity;
}

.polaroid-frame {
  width: 216px;
  background: #fafafa;
   padding: 10px 10px 38px 10px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
              0 0 30px var(--glow-shadow);
  overflow: hidden;
    justify-content: space-between;
  opacity: 1;
  filter: blur(0);
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
}

/*.polaroid-frame.moving-back {*/
/*  transform: scale(0.95);*/
/*  opacity: 1;*/
/*}*/

/*.polaroid-frame.moving-forward {*/
/*  transform: scale(1.05);*/
/*  opacity: 1;*/
/*}*/

.polaroid-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg,
      var(--color-primary-light) 0%,
      var(--color-primary) 50%,
      var(--color-primary-hover) 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.polaroid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.polaroid-caption {
  margin-top: 10.0px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.2;
  max-height: 2.4em; /* restrict caption height */
  overflow: visible;
  white-space: normal; /* allow wrapping */
  word-break: break-word;
}

.polaroid-frame:hover {
  z-index: 10 !important;
  transform: translateY(-10px) scale(1.1) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 80px var(--glow-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}


/* Responsive Design - Mobile First */
/* Desktop styles (768px and up) */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-container {
        padding: 0.75rem 1rem 1.5rem 1rem;
    }
    
    .nav-main-content {
        padding: 0 1rem;
    }

    .home-hero {
        margin: 1rem;
        border-radius: 24px;
    }

    .nav-logo {
        height: 2.8125rem; /* 45px at 16px base */
        max-width: 11.25rem; /* 180px at 16px base */
        flex: 0;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: row;
        padding: 0;
        gap: 2rem;
        transform: translateX(0);
        box-shadow: none;
        overflow: visible;
        display: flex;
        flex: 1;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .nav-menu li {
        width: auto;
    }

    .nav-menu .nav-link {
        padding: 0;
        width: auto;
        font-size: 1rem;
        text-align: center;
        display: inline-flex;
        align-items: center;
    }

    /* Hide mobile top bar items on desktop */
    .mobile-top-bar,
    .nav-divider {
        display: none !important;
    }

    /* Desktop Dropdown Styles */
    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown .dropdown-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        min-width: 220px;
    }

    .nav-menu li {
        width: auto;
    }

    .notification-btn {
        width: 44px;
        height: 44px;
    }

    .theme-toggle {
        width: 44px;
        height: 44px;
    }
}

/* Mobile styles (default, below 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .color-cards-grid {
        grid-template-columns: 1fr;
    }

    .animated-text {
        font-size: 2rem;
    }

    .animated-text-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: 100%;
        font-size: 0.9rem;
        padding: 0.875rem 1rem 0.875rem 0.875rem;
    }

    .toast-indicator {
        width: 10px;
        height: 10px;
    }

    /* Mobile Hero Adjustments */
    .home-hero {
        min-height: auto;
        padding: 3rem 0 2rem 0;
        margin-top: 0;
    }

    .home-hero::before {
        mask-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.2) 3%,
            rgba(0, 0, 0, 1) 15%,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 0.2) 97%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.2) 3%,
            rgba(0, 0, 0, 1) 15%,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 0.2) 97%,
            transparent 100%
        );
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-left: 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-welcome {
        font-size: 1.4rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .hero-stats {
        font-size: 2.5rem;
    }

    .stats-prefix {
        font-size: 1.4rem;
    }

    .hero-greeting {
        font-size: 2rem;
    }


    .hero-greeting {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    .nav-main-content {
    margin-top:1.2rem;
}
}

/* =============================== */
/*     MOBILE RESPONSIVE FIXES     */
/* =============================== */
@media (max-width: 768px) {
.nav-main-content {
    margin-top:1.2rem;
}
    .hero-visuals {
        margin-top: 1.5rem;
        margin-left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .polaroid-container {
        height: 260px;
        max-width: 260px;
        margin: 0 auto;
        padding-top: 1rem;
        position: relative;
    }

    /* Frame resize — FIXED WIDTH */
    .polaroid-frame {
        width: 140px !important;         /* << FIX: consistent width */
        padding: 8px 8px 35px 8px;
        border-radius: 12px;
        overflow: hidden;               /* << FIX: prevent stretching */
    }

    .polaroid-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 10px;
        overflow: hidden;               /* << FIX: protects layout */
    }

    .polaroid-image::after {
        width: 40px;
        height: 40px;
    }

    /* FIX: ensure text doesn't break card width */
    .polaroid-title,
    .polaroid-text {
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
        text-align: center;
    }
.polaroid-caption {
    overflow: visible;
    font-size: 0.8rem;
  }
    /* Centered stack positions */
    .polaroid-link.polaroid-1 {
        top: 0;
        left: 40px;
    }

    .polaroid-link.polaroid-2 {
        top: 30px;
        left: 65px;
    }

    .polaroid-link.polaroid-3 {
        top: 60px;
        left: 90px;
    }

    /* Reduce hover intensity */
    .polaroid-frame:hover {
        transform: translateY(-6px) scale(1.05) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    }
}

/* =============================== */
/*       EXTRA SMALL SCREENS       */
/* =============================== */
@media (max-width: 480px) {

    .polaroid-container {
        height: 220px;
        max-width: 220px;
    }

    .polaroid-frame {
        width: 120px !important;        /* << FIX: stable small width */
        padding: 6px 6px 30px 6px;
        overflow: hidden;
    }

    .polaroid-link.polaroid-1 { top: 0; left: 25px; }
    .polaroid-link.polaroid-2 { top: 25px; left: 45px; }
    .polaroid-link.polaroid-3 { top: 50px; left: 65px; }
}
/* ================== Footer Base ================== */
.site-footer {
    position: relative;
    padding: 3rem 1rem 1.5rem;
    color: var(--text-primary);

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: 0.5rem;

    border: none;
    overflow: visible;
    z-index: 1;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(6, 182, 212, 0.2);
}

[data-theme="cyan"] .site-footer::before {
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(6, 182, 212, 0.3);
}

[data-theme="light"] .site-footer::before {
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(155, 126, 216, 0.3);
}

[data-theme="dark"] .site-footer::before {
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(124, 95, 184, 0.3);
}

[data-theme="lightblue"] .site-footer::before {
    box-shadow: 0 4px 30px var(--glow-shadow), 0 0 20px rgba(122, 184, 232, 0.25);
}

/* ================== Logo & Tagline ================== */
.footer-logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 6.875rem; /* 110px at 16px base */
    max-width: 11.25rem; /* 180px at 16px base */
    height: auto;
}

.footer-tagline {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}


/* Footer Main Layout */
.footer-main {
    display: flex;
    justify-content: center; /* centers the whole section below the logo */
    align-items: flex-start;
    gap: 2rem; /* gap between map and info */
    flex-wrap: wrap;
}

/* Map left side */
.footer-map {
    flex: 0 0 31.25rem; /* 500px at 16px base */
    max-width: 31.25rem; /* 500px at 16px base */
    position: relative;
    min-height: 15.625rem; /* 250px at 16px base */
    width: 100%;
}

.footer-map iframe {
    width: 100%;
    height: 250px;
    border-radius: 2rem;
    display: block;
    border: none;
}

/* Info right side */
.footer-info {
    flex: 1;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start; /* keep info aligned next to map */
}


/* Info right side */
.footer-info {
    flex: 2;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Columns styling */
.footer-column {
    min-width: 150px;
    text-align: left;
}

.footer-column h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-column a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-column .social-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.2s ease;
}

.footer-column .social-link i {
    width: 18px;
    text-align: center;
    font-size: 16px;
    color: currentColor;
}

.footer-column .social-link:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* ================== Footer Bottom ================== */
.footer-bottom {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.1));
    margin-top: 2rem;
}

.made-with-love-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--color-primary) 40%, transparent),
                0 0 30px color-mix(in srgb, var(--color-primary) 20%, transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* animation: pulse-glow 3s ease-in-out infinite; - Removed */
}

.made-with-love-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.made-with-love-btn:hover::before {
    width: 300px;
    height: 300px;
}

.made-with-love-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px color-mix(in srgb, var(--color-primary) 50%, transparent),
                0 0 40px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.made-with-love-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-text {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.made-with-love-btn:hover .btn-text {
    transform: translateX(-2px);
}

.btn-heart {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    /* animation: heartbeat 1.5s ease-in-out infinite; - Removed */
    display: inline-block;
}

.made-with-love-btn:hover .btn-heart {
    /* animation: heartbeat-fast 0.8s ease-in-out infinite; - Removed */
    transform: scale(1.2);
}

.btn-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    margin-left: 0.25rem;
}

.made-with-love-btn:hover .btn-arrow {
    transform: translateX(4px);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px color-mix(in srgb, var(--color-primary) 40%, transparent),
                    0 0 30px color-mix(in srgb, var(--color-primary) 20%, transparent);
    }
    50% {
        box-shadow: 0 4px 25px color-mix(in srgb, var(--color-primary) 50%, transparent),
                    0 0 40px color-mix(in srgb, var(--color-primary) 30%, transparent);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes heartbeat-fast {
    0%, 100% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.4);
    }
}
/* ================== Responsive Footer ================== */

/* Small screens (mobile) */
@media (max-width: 767px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer-map {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .footer-map iframe {
        height: 200px;
        border-radius: 1.5rem;
    }

    .footer-info {
        flex: 1 1 100%;
        justify-content: center;
        gap: 1rem;
    }

    .footer-column {
        min-width: 120px;
        text-align: center;
    }

    .made-with-love-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .btn-heart {
        font-size: 1.1rem;
    }

    .btn-arrow {
        font-size: 1rem;
    }

    .footer-column h4 {
        font-size: 1rem;
    }

    .footer-column a,
    .footer-column .social-link {
        font-size: 0.9rem;
    }
}

/* Medium screens (tablet) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-main {
        justify-content: space-around;
        gap: 1.5rem;
    }

    .footer-map {
        flex: 0 0 21.875rem; /* 350px at 16px base */
        max-width: 21.875rem; /* 350px at 16px base */
        width: 100%;
    }

    .footer-map iframe {
        height: 220px;
    }

    .footer-info {
        flex: 1;
        gap: 1.5rem;
    }

    .footer-column h4 {
        font-size: 1.05rem;
    }
}

/* Large screens (desktop) */
@media (min-width: 1024px) {
    .footer-main {
        justify-content: center;
        gap: 2rem;
    }

    .footer-map {
        flex: 0 0 31.25rem; /* 500px at 16px base */
        max-width: 31.25rem; /* 500px at 16px base */
        width: 100%;
    }

    .footer-map iframe {
        height: 250px;
    }

    .footer-info {
        flex: 2;
        gap: 2rem;
    }

    .footer-column h4 {
        font-size: 1.1rem;
    }
}
