/* ========================================
   USA DRONE LOS ANGELES - MAIN STYLES
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #00d4ff;
    --secondary-color: #ff6b35;
    --accent-color: #00ff88;
    --dark-bg: #0a0f1f;
    --dark-secondary: #1a1f2f;
    --dark-card: rgba(26, 31, 47, 0.8);
    --text-light: #ffffff;
    --text-gray: #b3b8c4;
    --text-dark: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --accent-color-dark: #00c77a; /* Added for active lang selector */
    
    /* Fonts */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    --card-padding: 30px;
    
    /* Borders */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 50px rgba(0, 212, 255, 0.2);
    --shadow-medium: 0 10px 20px rgba(0, 0, 0, 0.2); /* Added */
    --shadow-highlight: 0 15px 40px rgba(0, 212, 255, 0.5); /* Added */
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f2f 50%, var(--dark-bg) 100%);
    z-index: -1;
}

.bg-animation::before,
.bg-animation::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.bg-animation::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bg-animation::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

/* Typography */
body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Morphism Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 31, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(10, 15, 31, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px; /* Espacio entre los elementos */
    margin-left: auto; /* Empuja el selector a la derecha si está dentro de un flexbox */
    padding-right: 20px; /* Pequeño espacio a la derecha */
}

.lang-selector .lang-link {
    color: var(--text-light); /* O el color que desees */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.lang-selector .lang-link:hover {
    color: var(--primary-color); /* O el color de hover que desees */
}

.lang-selector .lang-link.active {
    color: var(--accent-color-dark); /* Color para el idioma activo */
    pointer-events: none; /* No permite hacer clic en el idioma ya activo */
}

.lang-selector .lang-separator {
    color: var(--text-gray);
}


.logo-container img {
    height: 45px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo-container img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* --- Hero Section Styles (Fixed) --- */
.hero.homepage-hero { /* Targeted specifically for the homepage hero */
    position: relative;
    width: 100%;
    height: 100vh; /* Or desired height */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
    text-align: center;
    color: white;
}

.hero video { /* Targets the video directly within the hero */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Background layer */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    z-index: 1; /* Above the video */
}

.hero-content {
    position: relative; /* Allows content to sit above overlay */
    z-index: 2; /* Above the overlay */
    max-width: 900px;
    padding: 20px;
    /* Removed old properties that might cause side-by-side layout */
}

/* Specific hero titles and description from HTML */
.hero-main-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Adjusted for readability */
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.hero-subtitle { /* New style for the H2 subtitle in HTML */
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem); /* Adjusted for readability */
    color: var(--text-gray);
    margin-bottom: 35px; /* Spacing for the button */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* End Hero Section Styles */


/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.content-section {
    padding: var(--section-padding);
}

.section-darkened {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.intro-section {
    padding: 80px 0;
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Grid Layouts */
.services-grid { /* Modified grid template for better responsiveness */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    padding-bottom: 40px; /* Space for collage image */
}

.courses-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card,
.course-card,
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.service-card:hover,
.course-card:hover {
    transform: translateY(-10px) rotateY(5deg);
}

/* Service Cards */
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.service-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    text-align: center;
    color: var(--text-gray);
}

/* Added styles for specific images */
.professional-collage-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.interactive-faa-img {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.interactive-faa-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-highlight);
}

.animated-drone-img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 50px auto;
}

/* Course Cards */
.course-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-duration {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.course-features {
    list-style: none;
    margin: 1rem 0;
}

.course-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-gray);
}

.course-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* FAQ Styles */
.faq-categories {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(0, 212, 255, 0.2);
}

.faq-question h4 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.faq-answer ul {
    margin-left: 1rem;
    color: var(--text-gray);
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    font-size: 3rem;
    color: var(--primary-color);
}

.testimonial-info h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.2rem;
}

.testimonial-role {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.testimonial-rating {
    color: var(--secondary-color);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-date {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo-col img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo-col p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links-col h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col ul li {
    margin-bottom: 0.5rem;
}

.footer-links-col ul li a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links-col ul li a:hover {
    color: var(--primary-color);
}

.footer-contact-col p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 10px; /* Ensures consistent spacing */
}

.footer-contact-col i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 15px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Animations */
.reveal-container {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --card-padding: 20px;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 15, 31, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition-smooth);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Removed specific hero-video-background transform, let the new hero styles handle it */
    
    .services-grid, /* Ensures consistency across grids for mobile */
    .courses-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .glass-card {
        padding: 20px;
    }
    
    /* Removed specific hero-video-background transform */
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}