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

:root {
    --primary-green: #1b4332;
    --rescue-orange: #ff6b35;
    --limestone: #e2e8f0;
    --deep-cave: #0b0d17;
    --cave-gray: #1e293b;
    --tech-blue: #4cc9f0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--deep-cave);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(27, 67, 50, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Move content to top */
    padding-top: 15vh; /* Add spacing from top edge */
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(27, 67, 50, 0.2) 0%, var(--deep-cave) 70%),
                linear-gradient(to bottom, rgba(11, 13, 23, 0.8), var(--deep-cave));
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform:translate(0, 0) }
    10% { transform:translate(-5%, -10%) }
    20% { transform:translate(-15%, 5%) }
    30% { transform:translate(7%, -25%) }
    40% { transform:translate(-5%, 25%) }
    50% { transform:translate(-15%, 10%) }
    60% { transform:translate(15%, 0) }
    70% { transform:translate(0, 15%) }
    80% { transform:translate(3%, 35%) }
    90% { transform:translate(-10%, 10%) }
}

.hero-content {
    background: transparent;
    padding: 3rem;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
    position: relative; /* Ensure z-index works */
    z-index: 2; /* Bring above overly */
}

.hero-content h1 {
    font-size: 4rem;
    background: linear-gradient(45deg, var(--rescue-orange), var(--tech-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--rescue-orange);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--rescue-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Day Cards */
.schedule {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.day-card {
    background: var(--cave-gray);
    padding: 1.5rem;
    border-radius: 15px;
    border-bottom: 5px solid var(--primary-green);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.day-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--tech-blue);
    background: rgba(255, 255, 255, 0.05);
}

.day-num {
    color: var(--rescue-orange);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.day-card h3 {
    margin-bottom: 1.5rem;
}

.day-card ul {
    list-style: none;
    flex-grow: 1;
}

.day-card li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #94a3b8;
}

.day-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--tech-blue);
}

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

/* Responsive */
@media (max-width: 1200px) {
    .schedule {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .schedule {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    header { height: auto; padding: 6rem 0; }
    .container { padding: 1rem; }
}

/* Drone Vision Overlay */
/* Drone Vision Overlay */
#drone-vision-overlay {
    position: absolute; /* Changed from fixed to scoll with header */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/drone_overlay.png') no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 0; /* Behind hero content (index 1) but above background */
    opacity: 0; 
    mix-blend-mode: normal; /* Normal mode to see the image clearly */
    filter: sepia(50%) hue-rotate(-50deg) contrast(2.0) brightness(1.5); /* High observability */
    transition: opacity 3s ease-in-out; /* Slower fade */
}

/* Mission Section */
#objective {
    padding: 6rem 0 4rem; /* Increased top padding */
    scroll-margin-top: 150px; /* Offset for sticky nav + breathing room */
}

.mission-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Text | Image */
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left; /* Reset from center */
}

.mission-text h2 {
    margin-bottom: 1.5rem;
    color: var(--rescue-orange);
}

.mission-text p {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.mission-image img {
    width: 100%;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .mission-layout {
        grid-template-columns: 1fr; /* Stack on mobile */
        text-align: center;
    }
}
