:root {
    --primary-neon: #667eea;
    --accent-purple: #764ba2;
    --dark-bg: #0f172e;
    --card-bg: #1a1f3a;
    --text-color: #cbd5e1;
    
    --font-orbitron: 'Horizon', sans-serif;
    --font-oswald: 'Oswald', sans-serif;
    --font-roboto: 'Oswald', sans-serif;
    --font-cursive: 'krinkes decor', cursive;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Reduced height from 100vh to fit laptop screens better without massive scroll */
    min-height: 85vh; 
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 50px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, var(--dark-bg) 95%);
    z-index: 1;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35; /* Slightly darker for better text contrast */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1400px;
    gap: 40px; /* Reduced gap */
}

.hero-text {
    flex: 1;
    text-align: left;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hero-logo-container {
    flex: 0.8; /* Reduced flex grow */
    display: flex;
    justify-content: center;
    animation: zoomIn 1s ease-out;
}

.hero-logo {
    max-width: 320px; /* Reduced from 400px */
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

.squadron-subtitle {
    font-family: var(--font-orbitron);
    color: var(--primary-neon);
    letter-spacing: 2px;
    font-size: 1.1rem; /* Slightly reduced */
    margin-bottom: 0.5rem;
    display: block;
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.squadron-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem; /* Reduced further from 4rem */
    line-height: 1;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.squadron-lore {
    font-family: var(--font-oswald);
    line-height: 1.5;
    font-size: 0.95rem; /* Reduced from 1rem */
    color: #cbd5e1;
    max-width: 500px; /* Reduced width to take less space */
    border-left: 3px solid var(--primary-neon);
    padding-left: 15px;
}

/* Media Section */
.media-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.media-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-item:hover img {
    transform: scale(1.1);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 46, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-neon);
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-icon {
    font-size: 2rem;
    color: var(--primary-neon);
}

.section-title {
    font-family: var(--font-orbitron);
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
      text-shadow: 0 0 20px rgba(96,165,250,0.3);
    }
    50% {
      text-shadow: 0 0 40px rgba(96,165,250,0.6);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }
    
    .squadron-lore {
        margin: 0 auto;
        border-left: none;
        border-top: 3px solid var(--primary-neon);
        padding-top: 20px;
        padding-left: 0;
    }
    
    .squadron-title {
        font-size: 4rem;
    }
}

/* --- Navigation Buttons & Feature Actions (Restored from v2) --- */

/* Feature "Volver" Button */
.feature-action {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    color: #fff !important;
    text-decoration: none;
    font-family: var(--font-orbitron);
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--accent-purple) 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white !important;
}

/* Squadron Navigation Buttons */
.squad-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    color: white !important;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.squad-nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Specific Positions */
.prev-btn {
    left: 20px;
    align-items: flex-start;
}

.next-btn {
    right: 20px;
    align-items: flex-end;
}

/* Mobile: Move to bottom */
@media (max-width: 900px) {
    .squad-nav-btn {
        top: auto;
        bottom: 20px;
        transform: none;
    }
    .squad-nav-btn:hover {
        transform: scale(1.1);
    }
}

.nav-label {
    font-family: var(--font-orbitron, sans-serif);
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.prev-btn .nav-label {
    margin-right: 0;
    margin-left: 5px;
    text-align: left;
}
.next-btn .nav-label {
    margin-left: 0;
    margin-right: 5px;
    text-align: right;
}

.squad-nav-btn:hover .nav-label {
    opacity: 1;
    color: var(--primary-neon, #667eea);
}

.nav-icon {
    font-size: 1.5rem;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.squad-nav-btn:hover .nav-icon {
    background: rgba(0,0,0,0.7);
    border-color: var(--primary-neon, #667eea);
    color: var(--primary-neon, #667eea);
}

/* Hide labels on small mobile */
@media (max-width: 600px) {
    .nav-label {
        display: none;
    }
}
