@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400&display=swap');

/* CSS Custom Properties - Design System */
:root {
    /* Font Scale - Progressive sizing system */
    --font-scale-xs: 0.8rem;
    --font-scale-sm: 0.85rem;
    --font-scale-base: 1rem;
    --font-scale-md: 1.1rem;
    --font-scale-lg: 1.2rem;
    --font-scale-xl: 1.3rem;
    
    /* Responsive font scaling with clamp() */
    --font-intro-desktop: clamp(3rem, 7vw, 5rem);
    --font-intro-mobile: clamp(2rem, 8vw, 4rem);
    --font-intro-short: clamp(1.8rem, 5vw, 2.5rem);
    
    --font-heading-desktop: clamp(2.5rem, 5vw, 3.5rem);
    --font-heading-mobile: clamp(1.5rem, 6vw, 3rem);
    --font-heading-short: clamp(1.5rem, 3.5vw, 2rem);
    
    --font-body-desktop: clamp(1.2rem, 3vw, 1.8rem);
    --font-body-mobile: clamp(1.1rem, 4vw, 1rem);
    --font-body-short: clamp(0.9rem, 2vw, 1.1rem);
    
    /* Spacing scale */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 15px;
    --space-lg: 20px;
    --space-xl: 30px;
    --space-2xl: 40px;
    --space-3xl: 60px;
    
    /* Logo and component sizes */
    --logo-size-desktop: 90px;
    --logo-size-tablet: 75px;
    --logo-size-mobile: 60px;
    
    --calendar-height-desktop: 63px;
    --calendar-height-tablet: 54px;
    --calendar-height-mobile: 45px;
    
    /* Carousel heights */
    --carousel-height-desktop: 400px;
    --carousel-height-tablet: 360px;
    --carousel-height-mobile: 320px;
    
    --card-height-desktop: 380px;
    --card-height-tablet: 340px;
    --card-height-mobile: 300px;
}

/* Responsive custom property updates */
@media (max-width: 768px) {
    :root {
        --logo-size-desktop: var(--logo-size-tablet);
        --calendar-height-desktop: var(--calendar-height-tablet);
        --carousel-height-desktop: var(--carousel-height-tablet);
        --card-height-desktop: var(--card-height-tablet);
    }
}

@media (max-width: 480px) {
    :root {
        --logo-size-desktop: var(--logo-size-mobile);
        --calendar-height-desktop: var(--calendar-height-mobile);
        --carousel-height-desktop: var(--carousel-height-mobile);
        --card-height-desktop: var(--card-height-mobile);
        
        --font-intro-desktop: var(--font-intro-mobile);
        --font-heading-desktop: var(--font-heading-mobile);
        --font-body-desktop: var(--font-body-mobile);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Shared Utility Classes */
.responsive-logo {
    width: var(--logo-size-desktop);
    height: var(--logo-size-desktop);
    object-fit: contain;
    border-radius: 8px;
    border: none;
}

.responsive-font-small {
    font-size: var(--font-scale-sm);
    line-height: 1.4;
}

.responsive-font-base {
    font-size: var(--font-scale-base);
    line-height: 1.5;
}

.responsive-font-large {
    font-size: var(--font-scale-lg);
}

.carousel-item-responsive {
    min-height: var(--carousel-height-desktop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-sm);
}

.content-card-responsive {
    min-height: var(--card-height-desktop);
    display: flex;
    flex-direction: column;
}

.calendar-day-responsive {
    min-height: var(--calendar-height-desktop);
    height: var(--calendar-height-desktop);
}

.spacing-sm { margin: var(--space-sm); }
.spacing-md { margin: var(--space-md); }
.spacing-lg { margin: var(--space-lg); }
.spacing-xl { margin: var(--space-xl); }

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    color: white;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
}

/* Unified tag system - now positioned at bottom of cards using flexbox */
.location-tag,
.group-type-tag,
.school-type-tag {
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: auto; /* Push to bottom of flex container */
    align-self: center; /* Center horizontally */
}

/* Group type tag styling */
.group-type-tag {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(147, 51, 234, 0.9));
}

/* School type tag styling */
.school-type-tag {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
}

.nav-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Made border more visible */
    border-radius: 20px;
    padding: 25px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.nav-btn {
    padding: 15px 25px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn:hover {
    color: white;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.4);
}

.nav-btn.active {
    color: #38bdf8;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

/* Reflect aria-pressed state as active */
.nav-btn[aria-pressed="true"] {
    color: #38bdf8;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

/* Distinct style for Motion toggle so it doesn't look like other nav buttons */
#motion-toggle {
    min-width: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    transform: none;
    box-shadow: none;
    margin-left: 8px;
}

#motion-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}

#motion-toggle[aria-pressed="true"] {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: none;
}

/* Simple Hamburger Menu */
.hamburger {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: 0.3s;
    display: block;
    border-radius: 1px;
}

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

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

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

.site-footer {
    position: fixed;
    bottom: 8px;
    right: 12px;
    z-index: 2001;
}

.footer-credit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    pointer-events: auto;
}

.credit-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.sections-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 500;
    pointer-events: none;
}

.scroll-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start */
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* non-active sections don’t capture input */
    padding: 100px 10px 40px 10px; /* Reduced top padding from 120px to 100px */
    z-index: 510;
    /* Don't use isolation: isolate - this blocks backdrop-filter on children */
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

.scroll-section.active {
    opacity: 1;
    pointer-events: auto; /* active section is interactable */
    z-index: 520; /* ensure entering section is on top for visible fade-in */
}

/* Cross-fade/zoom transitions when motion is ON */
body.motion-on .scroll-section.entering {
    z-index: 521 !important; /* above leaving */
    animation: sectionFadeIn 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    transition: none !important; /* override base transition */
}

/* Ensure entering animation takes precedence over active state */
body.motion-on .scroll-section.active.entering {
    animation: sectionFadeIn 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

body.motion-on .scroll-section.leaving {
    z-index: 520 !important;
    pointer-events: none !important;
    animation: sectionFadeOut 400ms cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    transition: none !important; /* override base transition */
}

@keyframes sectionFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes sectionFadeOut {
    from { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
    to { 
        opacity: 0; 
        transform: translateY(-30px) scale(0.95); 
    }
}

/* Disable section fades when motion is off */
body.motion-off .scroll-section {
    transition: none !important;
}

.intro-content {
    text-align: center;
    max-width: 1600px;
    width: 100%;
    z-index: 100;
}

.intro-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--font-intro-desktop);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xl);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 70px; /* Increased from 40px to 70px */
}

.intro-content p {
    font-size: var(--font-body-desktop);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

#events-content, #groups-content, #schools-content, #companies-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Events section specific styling - push calendar towards bottom */
#events-content {
    display: flex;
    flex-direction: column;
    min-height: 70vh; /* Take up most of the viewport height */
}

#events-content .calendar-wrapper {
    margin-top: auto; /* Push calendar to bottom */
    margin-bottom: 20px; /* Some space from bottom edge */
}

.scroll-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--font-heading-desktop);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-sm); /* Reduced from 25px to 10px */
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin-top: 50px;
}

.scroll-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    border-radius: 2px;
}

/* Events Calendar */
.calendar-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 65vh;
    padding-right: 10px;
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

.calendar-wrapper.popup-open {
    opacity: 0;
    pointer-events: none;
}

.month-calendar {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.calendar-month-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #38bdf8;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 8px;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 10px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    position: relative;
    min-height: 63px; /* Reduced from 70px (10% reduction) */
    height: 63px;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.has-events {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    cursor: pointer;
}

.calendar-day.has-events:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: scale(1.02);
}

.day-number {
    font-weight: 600;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
    width: 100%;
}

.event-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    pointer-events: none;
    margin: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Event Popup */
.event-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.event-popup {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.popup-header h4 {
    color: #38bdf8;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.popup-content {
    padding: 0 25px 25px 25px;
    overflow: visible;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.popup-organizer {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 15px;
}

.popup-datetime {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.popup-datetime span,
.popup-location {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    margin-bottom: 10px;
}

.popup-description {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.popup-link {
    display: inline-block;
    background: transparent;
    border: 2px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

.popup-link:hover {
    color: white;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

/* Day Events Popup Styles */
.day-events-popup {
    max-width: 600px;
    width: 90%;
    overflow: hidden;
}

.day-events-carousel {
    min-height: 300px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: visible;
    height: 100%;
    position: relative;
}

.day-event-card {
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.day-event-card h5 {
    color: #38bdf8;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.carousel-navigation.single-item {
    display: none;
}

/* Position arrows outside the popup */
.event-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.event-popup-overlay .carousel-nav {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    margin-top: -25px; /* Half of height to center vertically */
    z-index: 10001;
}

.event-popup-overlay .carousel-nav.prev {
    left: calc(50% - 300px - 30px); /* 300px = half popup width, 30px = spacing */
}

.event-popup-overlay .carousel-nav.next {
    right: calc(50% - 300px - 30px); /* 300px = half popup width, 30px = spacing */
}

.event-popup-overlay .carousel-nav:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.4);
    border-color: rgba(56, 189, 248, 0.6);
}

.carousel-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-indicator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
}

/* Custom scrollbar for calendar wrapper */
.calendar-wrapper::-webkit-scrollbar {
    width: 8px;
}

.calendar-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.calendar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.6);
    border-radius: 4px;
}

.calendar-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.8);
}

/* Mobile Responsive for Calendar */
@media (max-width: 768px) {
    .calendar-wrapper {
        max-height: 60vh; /* Reduced from 60vh to prevent scrolling */
    }
    
    .month-calendar {
        padding: 10px;
    }
    
    .calendar-month-header {
        font-size: 1.2rem;
    }
    
    .calendar-day {
        min-height: 54px; /* Reduced from 60px (10% reduction) */
        height: 54px;
        padding: 3px;
    }
    
    .day-number {
        font-size: 1.35rem;
    }
    
    .event-popup {
        max-width: 95%;
        width: 95%;
        max-height: 85vh;
        margin: 10px;
    }
    
    .popup-content {
        padding: 0 20px 20px 20px;
    }
    
    .popup-header h4 {
        font-size: 1.2rem;
    }
    
    /* Mobile navigation positioning - adjust for smaller popup */
    .event-popup-overlay .carousel-nav.prev {
        left: calc(50% - 45% - 20px); /* 45% = half of 90% popup width */
    }
    
    .event-popup-overlay .carousel-nav.next {
        right: calc(50% - 45% - 20px); /* 45% = half of 90% popup width */
    }
    
    .event-popup-overlay .carousel-nav {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 600px) {
    .scroll-section h2 {
        margin-top: 55px;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-content {
        display: none;
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 280px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 25px;
        flex-direction: column !important;
        gap: 12px;
        z-index: 2000;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    }
    
    .nav-content.open {
        display: flex;
    }
    
    .nav-btn {
        width: 100% !important;
        padding: 15px !important;
        margin: 0 !important;
        min-width: auto !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 12px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 16px !important;
        text-align: center !important;
        display: block !important;
        box-sizing: border-box !important;
        backdrop-filter: blur(10px);
    }
    
    .nav-btn:hover {
        background: rgba(56, 189, 248, 0.2) !important;
        border-color: rgba(56, 189, 248, 0.3) !important;
        color: white !important;
        transform: none !important;
        box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2) !important;
    }
    
    .nav-btn[aria-pressed="true"] {
        background: rgba(56, 189, 248, 0.2) !important;
        border-color: rgba(56, 189, 248, 0.4) !important;
        color: #38bdf8 !important;
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.3) !important;
    }
    
    #motion-toggle {
        width: 100% !important;
        height: auto !important;
        padding: 15px !important;
        border-radius: 12px !important;
        margin: 0 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }
}

@media (max-width: 480px) {
    .scroll-section h2 {
        font-size: var(--font-heading-mobile);
    }

    .intro-content h1 {
        font-size: var(--font-intro-mobile);
    }

    .intro-content p {
        font-size: var(--font-body-mobile);
    }

    .calendar-wrapper {
        max-height: 60vh; /* Further reduced for mobile to prevent scrolling */
    }

    .calendar-day {
        min-height: 45px; /* Reduced from 50px (10% reduction) */
        padding: 2px; /* Reduced padding too */
    }
    
    .day-number {
        font-size: 1.2rem;
    }
    
    .event-dot {
        width: 10px;
        height: 10px;
    }
    
    .calendar-day-name {
        font-size: 0.8rem;
        padding: 8px 2px;
    }
    
    /* Small mobile - position arrows close to popup edges */
    .event-popup-overlay .carousel-nav.prev {
        left: calc(50% - 45% - 15px); /* 45% = half of 90% popup width */
    }
    
    .event-popup-overlay .carousel-nav.next {
        right: calc(50% - 45% - 15px); /* 45% = half of 90% popup width */
    }
    
    .event-popup-overlay .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Enhanced mobile popup */
    .event-popup {
        max-width: 98%;
        width: 98%;
        max-height: 90vh;
        margin: 5px;
    }
    
    .popup-content {
        padding: 0 15px 15px 15px;
        max-height: none;
    }
    
    .event-popup-overlay {
        padding: 10px;
    }
    
    /* Navigation and layout rules from second 480px block */
    .nav-btn {
        padding: 10px 15px;
        font-size: 11px;
        min-width: 80px;
    }
    
    .scroll-section {
        padding: 10px;
    }
    
    .carousel-container {
        min-height: 300px;
        gap: 15px;
        margin: 0;
        padding: 5px;
    }
    
    /* Hide carousel navigation on mobile - use swipe instead */
    .carousel-nav {
        display: none !important;
    }
    
    /* Make horizontal carousel take full width for better swipe area */
    .horizontal-carousel {
        min-height: 300px;
        touch-action: pan-x; /* Enable horizontal touch scrolling */
        overflow-x: auto; /* Allow horizontal scrolling as fallback */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}

/* Horizontal Carousel */
.carousel-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    position: relative;
    min-height: 480px;
    padding: 15px 0;
    z-index: 200;
}

/* Base carousel navigation styles */
.carousel-nav {
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Main page carousel navigation */
.carousel-container .carousel-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 210;
}

.carousel-container .carousel-nav:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

/* Event popup carousel navigation */
.event-popup-overlay .carousel-nav {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    margin-top: -25px; /* Half of height to center vertically */
    z-index: 10001;
}

.horizontal-carousel {
    flex: 1;
    min-height: 400px; /* Reduced to match tighter carousel sizing */
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    border-radius: 20px;
    /* Apply backdrop-filter here so it covers the entire carousel viewport */
    backdrop-filter: blur(5px);
}

.carousel-track {
    display: flex;
    min-height: 400px; /* Reduced from 450px to tighten around content */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* Don't use isolation: isolate - this blocks backdrop-filter on children */
    /* Don't use will-change: transform - this creates stacking context that blocks backdrop-filter */
    /* backdrop-filter moved to .horizontal-carousel so it covers entire viewport */
}

.carousel-item {
    min-width: 25%; /* Default: 4 items per page (Events, Schools) */
    min-height: 400px; /* Reduced from 450px to match track */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px; /* Only left/right padding, no top/bottom */
    opacity: 1;
    overflow: visible;
    position: relative;
    z-index: 150;
}

.content-card {
    background: rgba(255, 255, 255, 0.08);
    /* backdrop-filter moved to .carousel-track level where it works */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 100;
    display: flex;
    flex-direction: column;
    min-height: 380px; /* Ensure consistent minimum height */
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.content-card:hover::before {
    opacity: 1;
}

/* Company card specific hover effect */
.company-card.content-card:hover {
    transform: none;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Group card specific hover effect */  
.group-card.content-card:hover {
    transform: none;
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* Card Link Styles */
.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.location-tag.headquarters {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
}

.location-tag.office {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(37, 99, 235, 0.9));
}

.location-tag.remote-staff {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(147, 51, 234, 0.9));
}

.content-card h3 {
    color: #38bdf8;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Program name sub-header styling */
.content-card .program-name {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    margin-top: -10px; /* Reduce space from main header */
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
}

/* Special styling for Triangle Area Supper Club logo text */
.content-card h3.tasc-logo {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(0deg, #f4f4f8 0%, #d4a437 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* Special styling for Triangle Interactive Arts Collective logo text */
.content-card h3.tiac-logo {
    font-family: "Oswald", sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: white;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    display: inline;
}

.content-card p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    flex-grow: 1; /* Take up available space above the tag */
}

.content-card a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.content-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.content-card a:hover::after {
    width: 100%;
}

.content-card a:hover {
    color: #f59e0b;
}

.meta-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.meta-info span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-indicator {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Accessibility: focus styles */
:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
    border-radius: 6px;
}

.carousel-nav:focus-visible,
.nav-btn:focus-visible,
.card-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.6);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations and most transitions, but preserve essential UI transitions */
    * {
        animation: none !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable transitions on most elements except carousel navigation */
    *:not(.carousel-track) {
        transition: none !important;
    }
    
    /* Preserve carousel scrolling transition for usability */
    .carousel-track {
        transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .event-card:hover,
    .nav-btn:hover,
    .carousel-nav:hover,
    .content-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Utility: visually hidden (screen-reader only) */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* added line */
}

/* Medium screens - prevent company cards from getting squished */
@media (max-width: 1200px) and (min-width: 769px) {
    /* Companies carousel - show 4 items per page on medium screens */
    #companies-content .carousel-item {
        min-width: 25%; /* 4 items per page for medium screens */
    }
}

/* Mobile Responsive */
@media (max-width: 768px) and (min-width: 601px) {
    .scroll-section h2 {
        margin-top: 80px;
    }

    .top-nav {
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-content {
        flex-direction: row;
        padding: 15px 20px;
    }
    
    .nav-btn {
        padding: 12px 18px;
        font-size: 12px;
        min-width: 90px;
    }
    
    .scroll-section {
        padding: 30px 20px;
    }
    
    .intro-content h1 {
        margin-bottom: 20px;
    }
    
    .intro-content p {
        margin-bottom: 30px;
    }
    
    .carousel-container {
        min-height: 350px;
        gap: 20px;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
        display: none !important; /* Hide arrows on tablets - use swipe instead */
    }
    
    .content-card {
        padding: 30px 25px;
        max-width: 500px;
    }
    
    .content-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .content-card p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .meta-info {
        gap: 10px;
    }

    /* Responsive carousel items - show 2 cards per page on tablets */
    .carousel-item {
        min-width: 50%; /* 2 items per page on tablets */
    }
    
    #groups-content .carousel-item {
        min-width: 50%; /* 2 items per page for groups on tablets */
    }
    
    #companies-content .carousel-item {
        min-width: 50%; /* 2 items per page for companies on tablets */
    }
    
    /* Smaller fonts for Groups, Schools, and Companies carousel cards on tablets */
    #groups-content .content-card h3,
    #schools-content .content-card h3,
    #companies-content .content-card h3 {
        font-size: 1.2rem !important;
    }
    
    #groups-content .content-card p,
    #schools-content .content-card p,
    #companies-content .content-card p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Slightly smaller group logos on tablets */
    .group-logo {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 10px !important;
    }
    
    .group-logo img {
        width: 75px !important;
        height: 75px !important;
    }
    
    .group-logo .logo-fallback {
        font-size: 20px !important;
    }
    
    /* Reduce carousel heights by ~10% on tablets */
    .carousel-item {
        min-height: 360px !important; /* ~10% reduction from 400px */
    }
    
    .content-card {
        min-height: 340px !important; /* ~10% reduction from 380px */
    }
}

/* Between 600px and 480px - specific padding for mid-range mobile */
@media (max-width: 600px) and (min-width: 481px) {
    .scroll-section {
        padding-top: 15px;
    }
    
    .carousel-container {
        min-height: 320px;
        gap: 15px;
        margin: 0;
        padding: 5px;
    }
    
    /* Hide carousel navigation on mid-range mobile - use swipe instead */
    .carousel-nav {
        display: none !important;
    }
    
    .content-card {
        max-width: none !important; /* Remove max-width constraint */
        width: calc(100% - 20px) !important; /* Full width minus padding */
    }

    /* Carousel items should show 1 card per page for mid-range mobile */
    .carousel-item {
        min-width: 100% !important; /* 1 item per page for mid-range mobile */
    }
    
    #groups-content .carousel-item {
        min-width: 100% !important;
    }
    
    #schools-content .carousel-item {
        min-width: 100% !important;
    }
    
    #companies-content .carousel-item {
        min-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        padding: 10px 15px;
        font-size: 11px;
        min-width: 80px;
    }
    
    .scroll-section {
        padding: 10px;
    }
    
    .carousel-container {
        min-height: 300px;
        gap: 15px;
        margin: 0;
        padding: 5px;
    }
    
    /* Hide carousel navigation on mobile - use swipe instead */
    .carousel-nav {
        display: none !important;
    }
    
    /* Make horizontal carousel take full width for better swipe area */
    .horizontal-carousel {
        min-height: 300px;
        touch-action: pan-x; /* Enable horizontal touch scrolling */
        overflow-x: auto; /* Allow horizontal scrolling as fallback */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .content-card {
        padding: 25px 20px;
        max-width: none !important; /* Remove max-width constraint on mobile */
        width: calc(100% - 20px) !important; /* Full width minus padding */
    }
    
    .meta-info {
        flex-direction: column;
        gap: 8px;
    }

    /* Responsive carousel items - show 1 card per page on mobile phones */
    .carousel-item {
        min-width: 100% !important; /* 1 item per page on mobile */
    }
    
    #groups-content .carousel-item {
        min-width: 100% !important; /* 1 item per page for groups on mobile */
    }
    
    #schools-content .carousel-item {
        min-width: 100% !important; /* 1 item per page for schools on mobile */
    }
    
    #companies-content .carousel-item {
        min-width: 100% !important; /* 1 item per page for companies on mobile */
    }
    
    /* Smaller group logos on mobile to save vertical space */
    .group-logo {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 5px !important;
    }
    
    .group-logo img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .group-logo .logo-fallback {
        font-size: 18px !important;
    }
    
    /* Smaller fonts for Groups, Schools, and Companies carousel cards */
    #groups-content .content-card h3,
    #schools-content .content-card h3,
    #companies-content .content-card h3 {
        font-size: 1.1rem !important;
    }
    
    #groups-content .content-card p,
    #schools-content .content-card p,
    #companies-content .content-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    #groups-content .content-card .program-name,
    #schools-content .content-card .program-name,
    #companies-content .content-card .program-name {
        font-size: 0.8rem !important;
    }
    
    /* Reduce carousel heights by ~10% on mobile */
    .carousel-item {
        min-height: 320px !important; /* Further reduced for mobile */
    }
    
    .content-card {
        min-height: 300px !important; /* Further reduced for mobile */
    }
    
    /* Smaller group logos on mobile to save vertical space */
    .group-logo {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 5px !important;
    }
    
    .group-logo img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .group-logo .logo-fallback {
        font-size: 18px !important;
    }
    
    /* Smaller fonts for Groups, Schools, and Companies carousel cards */
    #groups-content .content-card h3,
    #schools-content .content-card h3,
    #companies-content .content-card h3 {
        font-size: 1.1rem !important;
    }
    
    #groups-content .content-card p,
    #schools-content .content-card p,
    #companies-content .content-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    #groups-content .content-card .program-name,
    #schools-content .content-card .program-name,
    #companies-content .content-card .program-name {
        font-size: 0.8rem !important;
    }
    
    /* Reduce carousel heights by ~10% on mobile */
    .carousel-item {
        min-height: 320px !important; /* Further reduced for mobile */
    }
    
    .content-card {
        min-height: 300px !important; /* Further reduced for mobile */
    }
}

/* Extra small mobile screens - consider vertical layout */
@media (max-width: 300px) {
    .carousel-container {
        flex-direction: column;
        min-height: auto;
        gap: 10px;
    }
    
    .horizontal-carousel {
        min-height: auto;
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .carousel-track {
        flex-direction: column;
        min-height: auto;
        transform: none !important; /* Disable horizontal transforms */
    }
    
    .carousel-item {
        min-width: 100%;
        min-height: auto;
        margin-bottom: 15px;
    }
    
    .content-card {
        min-height: 200px; /* Reduce card height for vertical stacking */
    }
    
    /* Hide navigation arrows on very small screens with vertical layout */
    .carousel-nav {
        display: none;
    }
    
    /* Hide indicators on vertical layout */
    .indicator {
        display: none;
    }
}

/* Company Card Styles */
.content-card.company-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 25px 15px;
    margin-bottom: 20px;
    min-height: 300px; /* Ensure minimum height for company cards */
}

.company-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Group logo styling - similar to company logo but with adjustments for groups */
.group-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: transparent; /* Transparent background to remove white border */
    border: none; /* Remove border completely */
    align-self: center;
}

.company-logo img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 8px;
}

.group-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px;
    border: none; /* Remove image border completely */
}

.logo-fallback {
    font-size: 20px;
    font-weight: bold;
    color: rgba(56, 189, 248, 0.8);
}

.group-logo .logo-fallback {
    font-size: 24px;
    font-weight: bold;
    color: rgba(168, 85, 247, 0.8); /* Purple theme for groups */
}

.content-card.company-card h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: white;
}

/* Company carousel specific styling */
#companies-content .carousel-item {
    min-width: 16.666%; /* Updated to match new 6 items per view */
    position: relative;
    min-height: 400px; /* Ensure minimum height for company items */
}

#companies-content .horizontal-carousel {
    min-height: 400px; /* Ensure carousel container has minimum height */
}

/* Groups carousel specific styling - 3 items per page for more space */
#groups-content .carousel-item {
    min-width: 33.333%;
    position: relative;
}

/* Large screen optimizations (for screens wider than 1600px) */
@media (min-width: 1600px) {
    .intro-content h1 {
        font-size: clamp(3rem, 5vw, 4.5rem); /* Further limit scaling on very large screens */
        /* Removed margin-top since section now uses flex-start */
    }
    
    .scroll-section h2 {
        font-size: clamp(2.5rem, 4vw, 3.2rem); /* Further limit scaling */
        /* Removed margin-top since section now uses flex-start */
    }
    
    .intro-content p {
        font-size: clamp(1.2rem, 2vw, 1.6rem); /* Limit paragraph scaling */
    }
    
    .scroll-section {
        padding: 120px 20px 60px 20px; /* Reduced top padding from 140px to 120px */
    }
    
    .nav-content {
        border: 1px solid rgba(255, 255, 255, 0.25); /* Even more visible border */
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); /* Stronger shadow */
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-content {
        border: 1px solid rgba(255, 255, 255, 0.3); /* More visible border on high DPI */
    }
}
