/* --- 1. GLOBAL SETUP (HTML & BODY) --- */
html {
    scroll-behavior: smooth;
    cursor: auto;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100vh;
    background-color: black;
    /* Base color */
    cursor: auto;
}

/* Ensure only interactive items show the 'hand' pointer */
a,
button,
.btn-primary,
.bid-item {
    cursor: pointer;
}

/* Ensure form inputs show the text cursor */
input,
textarea {
    cursor: text;
}

/* --- 2. NAVIGATION --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 50px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

/* --- 3. GLOBAL SECTION & COMPONENT STYLES --- */
section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    scroll-snap-align: start;
    overflow: hidden;
}

#services .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 1. ELIMINATE BLACK BARS: Forces image to fill the width and height */
    object-fit: cover;

    /* 2. ZOOM CONTROL: 
       Adjust '1.0' to your liking. 
       - Use 1.0 for standard fit. 
       - Use 0.9 to "zoom out" slightly (note: might show black edges).
       - Use 1.1 to "zoom in" slightly. */
    transform: scale(1.0);

    /* 3. ALIGNMENT: Ensures the left side of the image is visible */
    object-position: left center;

    z-index: -2;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Above media, below text */
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    color: white;
}

/* --- 4. ABOUT US SPECIFIC STYLES --- */
#about {
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 50px;
    padding-top: 120px;
}

#about .video-tint {
    background-color: rgba(0, 0, 0, 0.2);
}

#about .about-sub-box {
    background-color: rgba(60, 60, 60, 0.7);
    color: #ffffff;
    width: 85%;
    max-width: 850px;
    padding: 30px;
    border-radius: 4px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#about .red-bar {
    width: 80px;
    height: 6px;
    background-color: #f44336;
    margin: 15px 0 25px 0;
}

#services {
    background: #ffffff;
    background-image: url('images/building18.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Optional: gives a parallax effect */
    overflow: hidden;
    display: flex;
    /* Added display flex to use flex-direction */
    flex-direction: column;
    /* ... keep your existing properties ... */
    view-timeline-name: --services-scroll;
    view-timeline-axis: block;
}


#services .section-title {
    font-size: 3.5rem;
    color: #ffffff;
    /* margin-bottom: 40px; */
    /* Space between title and cards */
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    align-self: flex-start;
    margin-top: 30px;
    /* Removes browser margins */
    padding-left: 30px;
    /* Removes any padding */

}

.split-services-container {
    display: flex;
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    gap: 0;
    /* The line acts as the gap */
    /* Animation Properties */
    animation: slideInFromLeft linear both;
    animation-timeline: --services-scroll;
    animation-range: entry 10% contain 40%;

    /* Glassmorphism Styles */
    background: rgba(255, 255, 255, 0.247);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.068);

}

.service-half {
    flex: 1;
    padding: 1% 3%;
    display: flex;
    flex-direction: column;
    justify-content: left;

}

.left-half {
    text-align: left;
    margin: 0;
    /* align-items: flex-end; */
}

.right-half {
    text-align: left;
    align-items: flex-start;
    margin: 0;
}

/* THE FADING LINE */
.vertical-divider {
    width: 1px;
    /* Gradient: transparent at top, black in middle, transparent at bottom */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 20%,
            rgba(0, 0, 0, 0.2) 80%,
            rgba(0, 0, 0, 0) 100%);
    height: auto;
    align-self: stretch;
}

.service-category {
    color: #f44336;
    /* Your red accent */
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.5rem;
    margin-bottom: 1%;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5)
}

/* Targets h2 tags inside .service-half */
.service-half h2 {
    color: #ffffff;
    margin: 0;
}

/* Targets p tags inside .service-half */
.service-half p {
    color: #ffffff;
    margin: 1px;
    padding-left: 3%;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.bid-item h4 {
    color: black;
    margin-bottom: 0.8%;
}

.service-list {
    list-style: none;
    /* margin-top: 20px; */
}



@media (max-width: 768px) {
    .split-services-container {
        flex-direction: column;
    }

    .vertical-divider {
        width: 80%;
        height: 10px;
        margin: 20px auto;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent);
    }

    .left-half,
    .right-half {
        text-align: left;
        align-items: left;
        padding: 20px 20px;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#faq {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Fixed height prevents image stretching */
    display: flex;
    align-items: top;
    justify-content: center;
    overflow: hidden;
    font-size: larger;

    /* Background Image with Dark Overlay for contrast */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('images/building-mesh.jpg');

    /* This forces the image to fit the screen width/height without distortion */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Ensures the background stays put during the card animation */
    background-attachment: fixed;
}

/* Container needs to be a flexbox to separate sidebar and display */
.faq-container {
    display: flex;
    width: 100%;
    max-width: 95%;
    align-items: center;
    gap: 80px;
    z-index: 2;

}

/* Sidebar Styling */
.faq-sidebar {
    flex: 0 0 30%;
    font-size: medium;
}

.faq-sidebar h2 {
    color: #ffffff !important;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.faq-link {
    list-style: none;
    padding: 15px 0;
    cursor: pointer;
    color: #cccccc;
    /* Light grey for unselected */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.faq-link.active {
    color: #ffffff;
    font-weight: bold;
    border-bottom: 1px solid #f44336;
    /* Red accent */
}

/* Display Area & Card */
.faq-display {
    flex: 1;
    perspective: 1000px;
    /* Preps for the slide animation */
}

.faq-card {
    background: #ffffffd3;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    min-height: 330px;
    width: 75%;
    transition: transform 0.5s ease;
    font-size: larger;
}

/* Updated Button Position */
.faq-contact-btn {
    position: absolute;
    bottom: 40px;
    /* Distance from bottom */
    right: 220px;
    /* Distance from right */
    padding: 12px 25px;
    background-color: #f44336;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 10;
}

#contact {
    min-height: 100vh;
    /* padding: 50px 0; */
    background-color: #f8f6ff;
    /* Soft lilac background from image */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Background Image with Dark Overlay for contrast */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('images/building_contact_us.webp');
    /* This forces the image to fit the screen width/height without distortion */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Ensures the background stays put during the card animation */
    background-attachment: fixed;
}

.contact-container {
    width: 92%;
    /* max-width: 1200px; */
    display: flex;
    gap: 8%;
    align-items: flex-start;
}

/* LEFT SIDE */
.contact-info {
    flex: 1;
}

/* .contact-info .sub-title {
            color: white;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 0.9rem;
        } */

.contact-info h1 {
    font-size: 3rem;
    margin: 2% 0;
    color: white;
}

.contact-info p {
    color: white;
    /* margin-bottom: 40px; */
    /* line-height: 1.6; */
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 5%;
    /* margin-bottom: 30px; */
}

/* .info-icon {
            background: #3f21a1;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        } */

.info-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

/* RIGHT SIDE: THE PURPLE FORM */
.contact-form-card {
    flex: 1;
    background: #ffd69f;
    background-color: solid;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(63, 33, 161, 0.2);
    position: relative;
    align-self: center;
    margin-right: 10%;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-card input,
.contact-form-card textarea {
    padding: 15px;
    border-radius: 5px;
    border: none;
    background: #ffffff;
    font-family: inherit;
}

.contact-form-card button {
    background: #ff9a9a;
    /* Salmon color from button */
    color: #3f21a1;
    border: none;
    padding: 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form-card button:hover {
    background: #ff8585;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 50px;
    }
}
