/* Global Design System */
:root {
    --primary: #064e3b;
    --primary-light: #065f46;
    --secondary: #eab308;
    --secondary-light: #facc15;
    --lush-green: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    --glass: rgba(255, 255, 255, 0.8);
    --ios-spring: cubic-bezier(0.4, 0, 0.2, 1);
    --ios-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* iOS Spring & Bounce Animations */
.ios-spring {
    transition: all 0.5s var(--ios-spring);
}

.ios-bounce {
    transition: all 0.6s var(--ios-bounce);
}

.bg-lush-green {
    background: var(--lush-green);
}

.elegant-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-elegant {
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Elegancy Hover Effects */
.hover-premium {
    transition: all 0.3s var(--ios-bounce);
}

.hover-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
}

/* 1-Second Icon Animation Pulse */
@keyframes icon-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.animate-icon-pulse {
    animation: icon-pulse 1s var(--ios-bounce) infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.hero-overlay {
    /* Radial gradient centered on the text area to ensure readability while letting image background show at edges */
    background: radial-gradient(circle at 30% 50%, rgba(6, 78, 59, 0.8) 0%, rgba(6, 78, 59, 0.4) 70%, rgba(6, 78, 59, 0.2) 100%);
}

@media (max-width: 768px) {
    .hero-overlay {
        /* On mobile, lighter overlay to maximize visibility of background image */
        background: radial-gradient(circle at 50% 50%, rgba(6, 78, 59, 0.6) 0%, rgba(6, 78, 59, 0.3) 70%, rgba(6, 78, 59, 0.1) 100%);
    }
}

/* Glassmorphism */
.glass-nav {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Mobile Focus Utilities */
@media (max-width: 768px) {
    .mobile-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}

@keyframes plane-diagonal {
    0% {
        transform: translate(-10vw, 10vh) rotate(-45deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translate(110vw, -110vh) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes plane-horizontal {
    0% {
        transform: translate(110vw, 20vh) rotate(-180deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translate(-20vw, 15vh) rotate(-180deg);
        opacity: 0;
    }
}

@keyframes plane-vertical {
    0% {
        transform: translate(20vw, 110vh) rotate(-60deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translate(80vw, -20vh) rotate(-60deg);
        opacity: 0;
    }
}

.animate-plane-diagonal {
    animation: plane-diagonal 8s linear infinite;
}

.animate-plane-horizontal {
    animation: plane-horizontal 10s linear infinite;
}

.animate-plane-vertical {
    animation: plane-vertical 6s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 30s linear infinite;
}

/* Hero Slider Styles */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}



/* Panning Animation */
@keyframes pan-right {
    0% {
        transform: scale(1.1) translateX(-5%);
    }

    100% {
        transform: scale(1.1) translateX(5%);
    }
}

.animate-pan {
    animation: pan-right 32s linear infinite alternate;
    will-change: transform;
    object-position: center;
}

@media (max-width: 768px) {
    .animate-pan {
        /* On mobile, minimal animation to keep image fully visible */
        animation: pan-right-mobile 20s linear infinite alternate;
        object-position: center;
    }
}

@keyframes pan-right-mobile {
    0% {
        transform: scale(1) translateX(-1%);
    }

    100% {
        transform: scale(1) translateX(1%);
    }
}

.animate-pan.paused {
    animation-play-state: paused;
}

/* Image Optimization for Mobile-First */
.hero-slide img {
    content-visibility: auto;
}

@media (max-width: 480px) {
    .hero-slide img {
        /* Lower quality hint for smaller screens to reduce data usage */
        image-rendering: auto;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero-slide img {
        /* Standard rendering for tablets */
        image-rendering: high-quality;
    }
}

@media (min-width: 769px) {
    .hero-slide img {
        /* High quality for desktop */
        image-rendering: high-quality;
    }
}

/* Premium Alert Bar */
.premium-alert-bar {
    background: linear-gradient(90deg, #facc15 0%, #eab308 50%, #facc15 100%);
    background-size: 200% auto;
    animation: shine 5s linear infinite;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    padding-left: 0; /* Changed logic to support seamless loop if content is duplicated */
}

.animate-marquee:hover {
    animation-play-state: paused;
}