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

html{
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff; 
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
}

/* --- Hero Section Styles --- */
.hero {
    position: relative;
    height: 88vh;
    width: 100%;
    background-image: url('../assets/Hero_bg.png');
    background-size: cover;
    background-position: center;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    overflow: hidden; /* ensures the inner border stays contained */
}

/* === Inner White Line (Inset Border Effect) === */
.hero::before {
    content: "";
    position: absolute;
    top: 35px;
    left: 35px;
    right: 35px;
    bottom: 0; /* Let it touch the white below */
    border:5px solid rgba(255, 255, 255, 0.95); /* thicker, cleaner */
    border-bottom: none; /* remove bottom border so it visually merges with white */
    border-radius: 34px 34px 0 0; /* only top corners rounded */
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* --- Hero Content --- */
.hero-content {
    position: relative;
    z-index: 2; /* ensures content sits above the border */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.hero-content h1 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 4rem;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 500;
    color: #e5e7eb;
    max-width: 500px;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 25px;
}

/* --- Buttons --- */
.btn {
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #ffffff;
    color: #111827;
}

.btn-primary:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Responsive Adjustments for Mobile --- */
@media (max-width: 768px) {
    .hero {
        height: 75vh;
        border-radius: 0;
        border: none;
    }

    .hero::before {
        border-radius: 0;
        top: 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}


/* --- Scrolling Line Below Hero --- */
.scroll-line {
    background-color: #071b2e; /* that dark navy color under the hero */
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 300;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 0.75rem 0;
    position: relative;
    margin-top: 5px;
}

.scroll-content {
    display: inline-block;
    padding-left: 100%; /* start off screen to the right */
    animation: scroll-text 30s linear infinite;
}

/* Keyframes for smooth infinite leftward scroll */
@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* --- About Section Styles (V2 - Updated based on feedback) --- */
.about-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

/* Updated container to be wider */
.container {
    max-width: 95vw; /* CHANGED: Wider container as requested */
    margin: 0 auto;
    padding: 0 1.5rem; 
}

.about-main-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Give slightly more space to the image */
    gap: 3.5rem; /* Increased gap slightly for the wider layout */
    align-items: start; /* CHANGED: Aligns items to the top for perfect alignment */
    margin-bottom: 5rem;
}

.section-heading {
    font-family: 'Space Mono', monospace;
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text h2.section-heading {
    font-size: 2rem;
    letter-spacing: -1px;
}

.about-text p {
    color: #7f858d;
    line-height: 1.4; /* Slightly more line spacing */
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about-image img {
    width:95%;
    max-height: 50vh;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-about {
    background-color: #374151;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px; /* Added explicit border-radius */
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-about:hover {
    background-color: #1f2937;
}

/* --- Mission Card Styles (V2) --- */
.mission-card {
    display: flex;
    align-items: center; /* Vertically centers text with the image */
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9fafb; /* A very light gray from the image */
    border-radius: 16px;
    /* border: 2px solid black; */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden; /* CRITICAL: This clips the image corners correctly */
}

.mission-image {
    flex-shrink: 0;
}

.mission-image img {
    width: 160px; /* Slightly larger image */
    height: 100%; /* Makes image fill the card height */
    object-fit: cover; /* Ensures image is not distorted */
    display: block; /* Removes tiny space below the image */
    /* CHANGED: Applies border-radius to top-left, top-right, bottom-right, bottom-left */
    border-radius: 16px 0 0 16px; 
}

.mission-text {
    /* CHANGED: Padding is now on the text, not the card */
    padding: 1.5rem 2rem; 
}

.mission-text h3.section-heading {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mission-text p {
    color: #4b5563;
    line-height: 1.6;
}


/* --- Responsive Adjustments for Tablet & Mobile --- */
@media (max-width: 992px) {
    .about-main-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1; 
    }

    .about-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100vw; /* Allow full width on mobile */
    }
    
    .about-section {
        padding: 4rem 0;
    }

    .about-text h2.section-heading {
        font-size: 2rem;
    }

    .mission-card {
        flex-direction: column;
        text-align: center;
    }

    .mission-image img {
        width: 100%; /* Image takes full width of the card */
        height: 150px; /* Give it a fixed height */
        /* Update border-radius for stacked layout */
        border-radius: 16px 16px 0 0; 
    }
    
    .mission-text {
        padding: 1.5rem;
    }
}

/* --- What Sets Us Apart Section --- */
.apart-section {
    padding: 0rem 0rem 5rem 0rem;
    background-color: #ffffff;
}

.apart-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start; /* Vertically aligns the text block with the image */
}

.apart-image img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    border-radius: 16px; /* Matching border-radius from other elements */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Specific heading styling for this section */
.apart-text h2.section-heading {
    font-size: 2rem;
    letter-spacing: -1px; /* As requested */
    margin-bottom: 1.5rem;
}

.apart-text p {
    color: #4b5563;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 1.1rem;
}

/* Button specific to this section */
.btn-touch {
    background-color: #475569; /* Steel blue color from the image */
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
    font-weight: 500;
}

.btn-touch:hover {
    background-color: #334155; /* Darker slate on hover */
}


/* --- Responsive Adjustments for Tablet & Mobile --- */
@media (max-width: 992px) {
    .apart-content {
        grid-template-columns: 1fr; /* Stack into a single column */
        gap: 2.5rem;
    }

    .apart-text {
        text-align: center; /* Center the text when stacked */
    }
}


/* ====================================================== */
/* START: Expertise Section Styles (V2 - CORRECTED)     */
/* ====================================================== */
.expertise-section {
    padding: 6rem 0;
    background-color: #ffffff;
    overflow-x: hidden; 
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: start; 
}

/* --- Left Side: Text Content --- */
.expertise-text h2.section-heading {
    font-size: 2rem;
    letter-spacing: -1px;
}

.expertise-text p {
    color: #6b717c;
    line-height: 1.4;
    font-size: 1.1rem;
    font-weight: 400;

    /* max-width: 450px; */
}

/* --- Right Side: Animated Slider --- */
.expertise-slider {
    overflow: hidden; /* Creates the "window" for the animation */
}

.slider-track {
    display: flex;
    gap: 1.5rem; /* Space between cards */
    animation: slide-expertise 25s linear infinite;
}

/* Keyframes for the infinite horizontal slide */
@keyframes slide-expertise {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Moves track left by the width of the first 4 cards + gaps */
        /* Width is 300px + 1.5rem (24px) = 324px per card */
        transform: translateX(calc(-300px * 4 - 1.5rem * 4));
    }
}

/* --- Individual Card Styling (CORRECTED LOGIC) --- */

/* The card is now just a structural container, with no visible style */
.expertise-card {
    flex-shrink: 0; /* Prevents flexbox from squishing the cards */
    width: 250px; /* Adjusted width for a better vertical look */
    /* REMOVED background, border, shadow, and overflow from here */
}

/* The IMAGE now gets the shadow and border-radius */
.expertise-card img {
    width: 100%;
    min-height: 325px;
    height: auto; /* REMOVED fixed height to allow vertical aspect ratio */
    object-fit: cover; 
    display: block;
    border-radius: 16px; /* Rounded corners on the image itself */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Floating shadow effect */
    margin-bottom: 1.5rem; /* Creates space between image and text below */
}

/* The TEXT container is styled simply */
.card-text {
    padding: 0 0.5rem; /* Add slight horizontal padding */
}

.card-text h3 {
    font-size: 1.35rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.card-text p {
    font-size: 0.9rem;
    color: #6d7074;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
}

/* --- Responsive Adjustments for Tablet & Mobile --- */
@media (max-width: 992px) {
    .expertise-content {
        grid-template-columns: 1fr; /* Stack into a single column */
        gap: 3rem;
    }

    .expertise-text {
        text-align: center;
    }

    .expertise-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .expertise-slider {
        overflow: visible;
    }

    .slider-track {
        animation: none; /* Turn off the animation */
        flex-direction: column; /* Stack the cards vertically */
        transform: none !important;
        width: 100%;
        gap: 2.5rem; /* Increased gap for vertical stacking */
    }

    .expertise-card {
        width: 100%;
        max-width: 400px; /* Set a max-width for readability */
        margin: 0 auto; /* Center the cards */
        text-align: center; /* Center the text inside the card */
    }
}

/* ====================================================== */
/* START: Why Horizon Flights Section Styles              */
/* ====================================================== */
.why-us-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr; 
    gap: 4rem; /* A slightly larger gap suits this layout */
    align-items: start;
}

/* --- Left Side: Intro Text --- */
.why-us-intro h2.section-heading {
    font-size: 2rem;
    letter-spacing: -1px;
    margin-bottom: 0.8rem; /* Space between heading and paragraph */
}

.why-us-intro p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #6b7280; 
    line-height: 1.4;
}

/* --- Right Side: List of Points --- */
.why-us-points {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Vertical space between each point */
}

.point-item h3 {
    font-size: 1.4rem;
    /* letter-spacing: -1px; */
    font-weight: 400; /* Bolder, but not overly so */
    color: #1f2937;
    /* margin-bottom: 0.5rem; */
    font-family: 'Poppins', sans-serif; /* Explicitly use Poppins */
}

.point-item p{
    /* font-size: 0.9rem; */
    font-weight: 400;
    color: #6b7280; /* A standard, professional light gray */
    line-height: 1.4;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .why-us-content {
        grid-template-columns: 1fr; /* Stack into a single column */
        gap: 3rem;
    }

    .why-us-intro {
        text-align: center; /* Center the intro text on smaller screens */
    }
}

/* ====================================================== */
/* START: Get in Touch Section Styles (DEFINITIVE FIX)    */
/* ====================================================== */
.contact-section {
    padding: 3rem 0;
    background-color: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* --- Left Side: Intro --- */
.contact-text h2.section-heading {
    font-size: 2rem;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1.2rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.6;
}

.contact-form-wrapper {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    height: 65vh;
    max-height: 450px;
    max-width: 580px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 25px;
}

/* --- THE CRITICAL FIX IS HERE --- */
.contact-form {
    height: 100%;
    display: flex; /* ADDED: Makes the form a flex container */
    flex-direction: column; /* ADDED: Stacks its children vertically */
}

.form-scroll-container {
    padding: 1.75rem;
    padding-right: 1.25rem;
    overflow-y: auto; 
    flex-grow: 1;
}


/* --- Custom Scrollbar Styling --- */
.form-scroll-container::-webkit-scrollbar { width: 8px; }
.form-scroll-container::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.form-scroll-container::-webkit-scrollbar-thumb { background-color: #475569; border-radius: 10px; border: 2px solid #f1f5f9; }

/* --- Form Heading Style --- */
.form-scroll-container h3 {
    font-family: 'Space Mono', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

/* --- Form Elements --- */
.form-intro { font-size: 0.95rem; color: #4b5563; line-height: 1.5; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; color: #1f2937; margin-bottom: 0.25rem; font-size: 1rem; }
.form-group > span { display: block; font-size: 0.85rem; color: #6b7280; margin-bottom: 0.5rem; }

input[type="text"], input[type="email"], textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem;
    font-family: 'Poppins', sans-serif; transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]::placeholder, input[type="email"]::placeholder, textarea::placeholder { color: #9ca3af; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
textarea { resize: vertical; min-height: 80px; }

/* --- Custom Radio Buttons --- */
.radio-group { margin-top: 0.75rem; }
.radio-option { display: flex; align-items: center; margin-bottom: 0.75rem; }
.radio-option input[type="radio"] { display: none; }
.radio-option label { font-weight: 400; font-size: 1rem; color: #374151; margin: 0 0 0 0.75rem; cursor: pointer; }
.radio-option label::before { content: ''; display: inline-block; width: 20px; height: 20px; border: 2px solid #9ca3af; border-radius: 50%; margin-right: 0.75rem; vertical-align: middle; transition: all 0.2s; }
.radio-option input[type="radio"]:checked + label::before { border-color: #2563eb; background-color: #ffffff; box-shadow: 0 0 0 4px #ffffff inset, 0 0 0 10px #2563eb inset; }

/* --- Custom File Upload --- */
input[type="file"] { display: none; }
.file-upload-label { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; border: 2px dashed #d1d5db; border-radius: 8px; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; text-align: center; }
.file-upload-label:hover { border-color: #9ca3af; background-color: #f9fafb; }
.file-upload-label svg { color: #6b7280; margin-bottom: 0.5rem; }
.file-upload-label span { font-size: 1rem; color: #4b5563; font-weight: 500; }

/* --- Submit Button --- */
.btn-submit {
    display: block; width: 100%; background-color: #2563eb; color: #ffffff;
    font-size: 1rem; font-weight: 500; padding: 14px; border: none;
    cursor: pointer; transition: background-color 0.2s;
    border-radius: 8px;
    margin-top: 1rem;
}
.btn-submit:hover { background-color: #1d4ed8; }

/* --- Thank You Message --- */
.thank-you-message { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; height: 100%; }
.hidden { display: none !important; }
.thank-you-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background-color: #eff6ff; margin-bottom: 1.5rem; }
.thank-you-message h3 { font-family: 'Space Mono', monospace; font-size: 1.75rem; color: #1f2937; margin-bottom: 1rem; line-height: 1.3; }
.thank-you-message p { font-size: 1rem; color: #4b5563; line-height: 1.5; max-width: 400px; margin-bottom: 2rem; }
.thank-you-tagline { font-size: 0.9rem; color: #6b7280; }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .contact-content { grid-template-columns: 1fr; gap: 3rem; }
    .contact-text { text-align: center; }
    .contact-text p { margin: 0 auto; }
    .contact-form-wrapper { height: auto; max-height: none; margin-left: auto; margin-right: auto; }
    .form-scroll-container { overflow-y: visible; padding-right: 1.75rem; }
}

/* --- NEW: Validation and File Upload Styles --- */
.form-group .error-message {
    color: #ef4444; /* Red for errors */
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.25em; /* Prevents layout shift when message appears */
}

input.input-error,
textarea.input-error {
    border-color: #ef4444 !important; /* Force red border on error */
}

input.input-error:focus,
textarea.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-top: 0.75rem;
    background-color: #f9fafb;
}

#file-name {
    font-size: 0.9rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-file-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 0 0 1rem;
}
.remove-file-btn:hover {
    color: #1f2937;
}

/* ====================================================== */
/* START: Location Section Styles                         */
/* ====================================================== */
.location-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.location-content {
    display: grid;
    /* Ratio as requested: 1fr left, 1.1fr right */
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start; /* Vertically aligns the content blocks */
}

/* --- Left Side: Text Info --- */
.location-text {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Space between "Contact Info" and "Our Location" */
}

.info-block h3.section-heading {
    font-size: 1.5rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.info-block p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 400;
}

/* --- Right Side: Map --- */
.location-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 16px; /* Matching border-radius from other elements */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .location-content {
        grid-template-columns: 1fr; /* Stack into a single column */
        gap: 3rem;
    }

    .location-text {
        text-align: center; /* Center the text when stacked */
        gap: 2.5rem;
    }

    .location-map {
        /* Puts the map below the text on smaller screens */
        order: 2;
    }
}

/* ====================================================== */
/* START: Footer Section Styles                         */
/* ====================================================== */
.site-footer {
    background-color: #071b2e; /* The dark navy blue from your design */
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 10vh; /* Ensures a minimum height without being too rigid */
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    text-decoration: none;
    color: #9ca3af; /* Light gray for links */
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-socials a {
    display: inline-flex; /* Ensures proper alignment of SVGs */
    align-items: center;
    justify-content: center;
}

.footer-socials svg {
    height: 24px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-socials a:hover svg {
    transform: scale(1.1);
    opacity: 0.9;
}


/* --- Responsive Adjustments for Footer --- */
@media (max-width: 992px) {
    .footer-content, .footer-left {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}