/* ========================================
   Global Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Aviation Color Palette - Welcoming Blues with Warm Accents */
    --sky-blue: #0077BE;
    --deep-blue: #003D5C;
    --light-blue: #E6F2F8;
    --accent-orange: #FF6B35;
    --warm-gray: #5C6672;
    --light-gray: #F5F7FA;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max: 1200px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in form inputs */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent image dragging */
img, video {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 61, 92, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.nav-brand a:hover .logo {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--sky-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 2.5%;
    left: 2.5%;
    width: 95%;
    height: 95%;
    object-fit: cover;
    filter: blur(8px);
    z-index: 0;
    opacity: 0.7;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0 300 Q 300 200 600 300 T 1200 300" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/><path d="M0 350 Q 300 250 600 350 T 1200 350" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 61, 92, 0.5) 0%, rgba(0, 61, 92, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 300;
    opacity: 0.95;
}

.hero-credit {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 500;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    background: #ff7d4f;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--deep-blue);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: var(--light-blue);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 119, 190, 0.2);
    border-color: var(--sky-blue);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card h3 {
    color: var(--deep-blue);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Location & Contact Info Section
   ======================================== */
.location-info {
    padding: var(--section-padding);
    background: var(--light-blue);
}

.location-content {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.location-card-horizontal {
    background: var(--white);
    padding: 40px 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    width: 100%;
    transition: all 0.3s ease;
    border: 2px solid var(--sky-blue);
    box-shadow: 0 5px 20px rgba(0, 119, 190, 0.15);
}

.location-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 119, 190, 0.25);
}

.location-icon {
    font-size: 64px;
    flex-shrink: 0;
}

.location-text {
    flex-grow: 1;
}

.location-text h3 {
    color: var(--deep-blue);
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 600;
}

.location-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 8px 0;
    font-size: 16px;
}

.location-details {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 15px;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.services-intro {
    text-align: center;
    color: var(--text-light);
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
    position: relative;
}

/* Service Card - Default (Collapsed) State */
.service-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    border: 2px solid var(--sky-blue);
    border-radius: 15px;
    padding: 25px 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 119, 190, 0.2);
    border-color: var(--accent-orange);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--deep-blue);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.click-hint {
    color: var(--accent-orange);
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    margin-top: auto;
}

/* Service Requirements - Hidden by Default */
.service-requirements {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    text-align: left;
    width: 100%;
    margin-top: 0;
}

.service-requirements p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--deep-blue);
}

.service-requirements strong {
    color: var(--accent-orange);
    font-weight: 600;
    display: inline-block;
    min-width: 130px;
}

/* Service Card - Expanded State */
.service-card.expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1001;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 40px;
    margin: 0 !important;
    transition: none !important;
}

.service-card.expanded .service-icon {
    font-size: 64px;
}

.service-card.expanded h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.service-card.expanded .service-description {
    font-size: 16px;
    margin-bottom: 25px;
}

.service-card.expanded .service-requirements {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--light-blue);
}

.service-card.expanded .click-hint {
    margin-top: 25px;
    font-size: 14px;
}

/* Overlay for Expanded Card */
.service-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.service-overlay.active {
    display: block;
}

/* ========================================
   Fleet Section
   ======================================== */
.fleet {
    padding: var(--section-padding);
    background: var(--white);
}

.fleet-intro {
    text-align: center;
    color: var(--text-light);
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 18px;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
    perspective: 1000px;
}

/* Flip Card Container */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 450px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    top: 0;
    left: 0;
}

/* Front of Card - Image */
.flip-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aircraft-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 61, 92, 0.95));
    color: var(--white);
    padding: 40px 20px 20px;
}

.aircraft-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.aircraft-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* Back of Card - Details */
.flip-card-back {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--sky-blue) 100%);
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.flip-card-back h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

.aircraft-details {
    text-align: left;
    width: 100%;
}

.aircraft-details p {
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.6;
}

.aircraft-details strong {
    color: var(--accent-orange);
    font-weight: 600;
}

.aircraft-description {
    margin-top: 20px !important;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-style: italic;
    opacity: 0.95;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    padding: var(--section-padding);
    background: var(--white);
}

.gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 40px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--sky-blue) 100%);
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '© ZSX Aviation';
    position: absolute;
    bottom: 60px;
    right: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    pointer-events: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 20px 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    z-index: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 5px;
    color: var(--deep-blue);
}

.slider-btn:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-blue);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--accent-orange);
    transform: scale(1.2);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

.contact-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--deep-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.1);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--sky-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--deep-blue);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .nav-brand .logo {
        height: 40px;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .slider-container {
        height: 350px;
    }

    .slider-btn {
        padding: 10px 15px;
        font-size: 18px;
    }

    .location-card-horizontal {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .location-icon {
        font-size: 48px;
    }

    .flip-card {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .service-card.expanded {
        width: 95%;
        padding: 30px 20px;
    }

    .service-requirements strong {
        min-width: 110px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nav-brand .logo {
        height: 35px;
    }

    .nav-links {
        gap: 10px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 24px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .slider-container {
        height: 250px;
    }
}
