/* SQUADRON AIRCRAFT V7 - INTERACTIVE HANGAR */
:root {
    --v7-bg: #0b0e14;
    --v7-panel: rgba(20, 24, 30, 0.95);
    --v7-accent: #3498db; /* Default Blue */
    --v7-accent-glow: rgba(52, 152, 219, 0.4);
    --v7-text: #e0e6ed;
    --v7-muted: #94a3b8;
    --v7-border: #2d3748;
}

.aircraft-section-v7 {
    padding: 4rem 0; /* Reduced padding from 6rem */
    overflow: hidden;
    position: relative;
    background: var(--dark-bg);
}

.aircraft-container-v7 {
    max-width: 1600px; /* Wider container */
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- TABS NAVIGATION --- */
.v7-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.v7-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v7-tab-btn {
    background: transparent;
    border: none;
    color: var(--v7-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    padding: 8px 25px;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.v7-tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.v7-tab-btn.active {
    background: var(--primary-neon, #667eea);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* --- MAIN STAGE --- */
.v7-stage {
    position: relative;
    height: 600px; /* Reduced from 700px */
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- SLIDES --- */
.v7-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    z-index: 1;
}

.v7-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* VISUAL (Image) */
.v7-visual {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.v7-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transition: transform 10s ease;
}

.v7-slide.active .v7-visual img {
    transform: scale(1);
    transition: transform 10s ease-out;
}

/* Overlay gradients - Modified for better image visibility */
.v7-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient confined more to the left */
    background: linear-gradient(90deg, #0f172e 0%, rgba(15, 23, 46, 0.9) 30%, rgba(15, 23, 46, 0.4) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* INFO PANEL - Compacted */
.v7-content {
    position: relative;
    z-index: 10;
    width: 40%; /* Reduced from 45% */
    max-width: 550px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.v7-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem; /* Significantly reduced from 3.5rem to fix "huge" look */
    line-height: 1;
    color: #fff;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-30px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.v7-title span {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 5px;
    font-weight: 300;
    letter-spacing: 4px;
}

.v7-desc {
    font-family: 'Roboto', sans-serif;
    color: #cbd5e1;
    font-size: 0.95rem; /* Slightly reduced */
    line-height: 1.5;
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary-neon);
    padding-left: 1rem;
    opacity: 0;
    max-width: 90%;
    /* Background removed as requested */
    padding-top: 5px;
    padding-bottom: 5px;
}

/* ANIMATED STATS */
.v7-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 420px;
}

.v7-stat-item {
    opacity: 0;
    transform: translateY(10px);
}

.v7-stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
    display: block;
    letter-spacing: 1px;
}

.v7-stat-bar-bg {
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.v7-stat-bar-fill {
    height: 100%;
    background: var(--primary-neon);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 8px var(--primary-neon);
}

.v7-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem; /* Reduced from 1.25rem */
    color: #fff;
    display: block;
}

/* --- ANIMATION CLASSES (Handled by JS) --- */
.top-layer .v7-title { animation: slideRight 0.8s 0.3s forwards; }
.top-layer .v7-desc { animation: fadeIn 0.8s 0.5s forwards; }
.top-layer .v7-stat-item:nth-child(1) { animation: fadeUp 0.6s 0.6s forwards; }
.top-layer .v7-stat-item:nth-child(2) { animation: fadeUp 0.6s 0.7s forwards; }
.top-layer .v7-stat-item:nth-child(3) { animation: fadeUp 0.6s 0.8s forwards; }
.top-layer .v7-stat-item:nth-child(4) { animation: fadeUp 0.6s 0.9s forwards; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* RESPONSIVE */

/* Laptop / Desktop (1440px max) */
@media (max-width: 1440px) {
    .v7-stage { height: 500px; }
    .v7-content { width: 45%; padding: 2.5rem; }
    .v7-title { font-size: 3rem; margin-bottom: 1rem; }
    .v7-desc { font-size: 0.95rem; margin-bottom: 2rem; }
}

/* Medium Laptop / Tablet Landscape (1200px max) */
@media (max-width: 1200px) {
    .v7-stage { height: 450px; }
    .v7-content { width: 50%; padding: 2rem; }
    .v7-visual::after {
        background: linear-gradient(90deg, #0f172e 0%, rgba(15, 23, 46, 0.95) 45%, transparent 100%);
    }
}

/* Tablet Portrait / Mobile (1366px and below - Laptops favor stacked view) */
@media (max-width: 1366px) {
    .aircraft-section-v7 { padding: 3rem 0; }
    .v7-stage { height: auto; display: flex; flex-direction: column; border-radius: 12px; }
    
    .v7-visual { position: relative; height: 350px; width: 100%; order: 1; }
    .v7-visual::after { background: linear-gradient(0deg, #0f172e 0%, transparent 50%); }
    
    .v7-content { 
        width: 100%; max-width: 100%; padding: 2.5rem; 
        background: #0f172e; order: 2; 
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .v7-title { font-size: 2.5rem; transform: none; opacity: 1; }
    .v7-desc { font-size: 1rem; background: none; opacity: 1; margin-bottom: 2rem; }
    
    .v7-slide { position: relative; display: none; }
    .v7-slide.active { display: flex; flex-direction: column; opacity: 1; visibility: visible; }
    
    .v7-stats-grid { gap: 1rem; margin-top: 1rem; }
    .v7-stat-item { opacity: 1; transform: none; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .v7-tab-btn { padding: 8px 15px; font-size: 0.75rem; }
    .v7-title { font-size: 1.8rem; }
    .v7-visual { height: 220px; }
    .v7-content { padding: 1.5rem; }
}
