/* Modern CSS Variables */
:root {
    --primary: #8B5CF6;
    --secondary: #EC4899;
    --accent: #06B6D4;
    --bg-dark: #0A0A0F;
    --bg-darker: #050509;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    /* Legacy variables for compatibility */
    --charcoal: #13e432;
    --royal-purple: #6B46C1;
    --terracotta: #00ff5e;
    --forest-green: #10B981;
    --warm-cream: #FEF3C7;
    --bg-dark-2: #0A0A0F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #FFFFFF;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* Modern Navigation */
nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav .text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav a {
    color: #1F2937;
    font-weight: bold;
    transition: all 0.2s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #8B5CF6;
}

/* Ensure readable navbar links even if utility classes override defaults */
nav a.text-gray-700,
nav a.text-gray-600,
nav a.text-gray-500 {
    color: #1F2937;
}

/* Hero Section - Animated Background */
.hero-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Base (desktop) image is set here for quick first paint */
    background: #000000 url('../img/Landing-Landscape.png') center top/cover no-repeat;
}

/* Layer containers for crossfades */
.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

/* Gradient/FX overlay inside hero (HTML child) remains for styling */

/* Remove legacy/duplicate hero animation rules
   (old heroSlide and timing variants replaced by platform-specific ones) */
/* CLEAN SLATE FOR HERO ANIMATION BELOW */

/* Additional animated gradient layers (kept) */
.hero-bg > div:first-child {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.6) 100%),
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: gradientShift 12s ease-in-out infinite;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% { 
        opacity: 1; 
        filter: hue-rotate(0deg);
    }
    50% { 
        opacity: 0.9; 
        filter: hue-rotate(10deg);
    }
}

/* =========================
   MOBILE/TABLET (≤768px)
   - Uses portrait images
   - Equal thirds timing over 45s total
   - Adjust DURATION via --hero-mobile-duration
   ========================= */
:root { --hero-mobile-duration: 12s; }
@media (max-width: 768px) {
    /* Base image shown when overlays are at opacity 0 */
    .hero-bg {
        background: #000000 url('../img/Landing-Portrait3.png') center 20%/cover no-repeat;
    }

    .text-xl {
        margin-top: -204px;
    }

    /* Define equal-third keyframes for mobile */
    @keyframes heroMobileBefore {
        /* Visible 33%–66% */
        0% { opacity: 0; }
        33% { opacity: 0; }
        34% { opacity: 1; }
        66% { opacity: 1; }
        67% { opacity: 0; }
        100% { opacity: 0; }
    }
    @keyframes heroMobileAfter {
        /* Visible 66%–100% */
        0% { opacity: 0; }
        66% { opacity: 0; }
        67% { opacity: 1; }
        100% { opacity: 1; }
    }

    /* Overlays (image 2 and 3) */
    .hero-bg::before {
        background-image: url('../img/Landing-Portrait2.png');
        background-position: center 20%;
        background-size: cover;
        animation: heroMobileBefore var(--hero-mobile-duration) infinite;
    }
    .hero-bg::after {
        background-image: url('../img/Landing-Portrait.png');
        background-position: center 20%;
        background-size: cover;
        animation: heroMobileAfter var(--hero-mobile-duration) infinite;
    }
}

/* =========================
   DESKTOP (≥1024px, 16:9+)
   - Uses landscape images
   - Equal thirds timing over 60s total
   - Adjust DURATION via --hero-desktop-duration
   - Adjust focal point/zoom below as needed
   ========================= */

   @media screen and (min-width: 1316px) and (max-width: 1324px)
   and (min-height: 2864px) and (max-height: 2872px) {
   /* tolerant match around 1320 x 2868 */
        .text-xl {
            margin-top: -154px;
        }

 }

:root { --hero-desktop-duration: 12s; }
@media (min-width: 1024px) and (min-aspect-ratio: 16/9) {

    .text-xl {
        margin-top: -134px;
    }

    
    /* FOCAL POINT + ZOOM (desktop)
       - background-position: center X% (increase to show more bottom)
       - background-size: N% auto (increase to zoom in) */
    .hero-bg {
        background-position: center 85%;
        background-size: 105% auto;
        background-repeat: no-repeat;
        background-color: #000000;
    }
    .hero-bg::before,
    .hero-bg::after {
        background-position: center 85%;
        background-size: 105% auto;
        background-repeat: no-repeat;
    }

    /* Define equal-third keyframes for desktop */
    @keyframes heroDesktopBefore {
        /* Visible 33%–66% */
        0% { opacity: 0; }
        33% { opacity: 0; }
        34% { opacity: 1; }
        66% { opacity: 1; }
        67% { opacity: 0; }
        100% { opacity: 0; }
    }
    @keyframes heroDesktopAfter {
        /* Visible 66%–100% */
        0% { opacity: 0; }
        66% { opacity: 0; }
        67% { opacity: 1; }
        100% { opacity: 1; }
    }

    /* Overlays (image 2 and 3) */
    .hero-bg::before {
        /* Image 2 (landscape) */
        background-image: url('../img/Land-Landscape2.png');
        animation: heroDesktopBefore var(--hero-desktop-duration) infinite !important;
    }
    .hero-bg::after {
        /* Image 3 (landscape) */
        background-image: url('../img/Land-Landscape3.png');
        animation: heroDesktopAfter var(--hero-desktop-duration) infinite !important;
        animation-delay: 0s !important;
    }
}

/* Modern Typography */
.text-gradient {
    background: linear-gradient(135deg, #502688 0%, #8F61BD 50%, #FC90AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Buttons */
.btn-primary {
    background: #000000;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #FFFFFF;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Card Styles */
.card-hover {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hover:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

/* Cultural Pattern */
.cultural-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(80, 38, 136, 0.2) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(143, 97, 189, 0.2) 0%, transparent 50%);
}

/* Float Animation */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Reveal Animation */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #000000;
    border: 2px solid #FFFFFF;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    animation: modalSlideIn 0.3s ease;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    background-color: #FFFFFF;
    color: #000000;
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-content option {
    color: #000000;
    background-color: #FFFFFF;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #FFFFFF;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #8F61BD;
}

/* Section backgrounds */
.bg-white {
    background: #000000;
}

.text-gray-600 {
    color: #CCCCCC;
}

.text-gray-700 {
    color: #DDDDDD;
}

.text-gray-900 {
    color: #FFFFFF;
}

.bg-gray-900 {
    background: #000000;
}

.bg-gray-100 {
    background: rgba(255, 255, 255, 0.05);
}

.bg-gray-50 {
    background: rgba(255, 255, 255, 0.03);
}

.bg-purple-50 {
    background: rgba(80, 38, 136, 0.1);
}

.bg-purple-100 {
    background: rgba(80, 38, 136, 0.15);
}

.bg-orange-50 {
    background: rgba(252, 144, 175, 0.1);
}

.bg-orange-100 {
    background: rgba(252, 144, 175, 0.15);
}

.bg-green-50 {
    background: rgba(237, 187, 206, 0.1);
}

.bg-green-100 {
    background: rgba(237, 187, 206, 0.15);
}

.border-gray-300 {
    border-color: rgba(255, 255, 255, 0.3);
}

.border-gray-700 {
    border-color: rgba(255, 255, 255, 0.5);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(255, 255, 255, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px rgba(255, 255, 255, 0.15);
}

.disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* Text Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}
