/* --- Base Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Ensures 100vh works consistently */
}

:root {
    --color-dark-blue: #007bff; /* Primary Blue (similar to Blackboard blue) */
    --color-dark: #222; /* Dark text/background */
    --color-light-grey: #f5f5f5; /* Light grey for sections */
    --color-text-dark: #444; /* General body text color */
    --color-text-light: #fff; /* Text on dark backgrounds */
    --color-border-light: #e0e0e0; /* Light borders */
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth; /* For smooth scrolling to anchors */
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}
body.no-scroll {
    overflow: hidden; /* For mobile nav */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--color-dark-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 { font-size: 3.8em; font-weight: 900; }
h2 { font-size: 2.8em; font-weight: 700; }
h3 { font-size: 1.8em; font-weight: 700; }
p { margin-bottom: 15px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-dark-blue);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-header-cta { /* Specific for the header button */
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
    padding: 8px 18px; /* Smaller padding */
    font-size: 0.9em;
    font-weight: 500;
}

.btn-header-cta:hover {
    background-color: var(--color-text-light);
    color: var(--color-dark-blue);
    transform: translateY(-2px);
}

.btn-secondary-white { /* For blue section */
    background-color: var(--color-text-light);
    color: var(--color-dark-blue);
    border: 2px solid var(--color-text-light);
    padding: 12px 30px;
}
.btn-secondary-white:hover {
    background-color: transparent;
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-form, .btn-newsletter-submit {
    width: auto;
    font-size: 1em;
    padding: 14px 30px;
    border-radius: 3px;
}


/* --- Section General Styling --- */
.section-padding {
    padding: 100px 0; /* Generous vertical padding */
}

.section-full-height {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* For video */
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    color: var(--color-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px; /* Wider underline */
    height: 4px;
    background-color: var(--color-dark-blue);
}


/* --- Backgrounds --- */
.bg-white { background-color: #fff; }
.bg-light-dotted {
    background-color: var(--color-light-grey);
    background-image: radial-gradient(#d0d0d0 1px, transparent 1px);
    background-size: 20px 20px; /* Adjust dot size and spacing */
}
.bg-blue { background-color: var(--color-dark-blue); color: var(--color-text-light); }
.bg-light-blue { background-color: #f0f8ff; /* Very light blue, similar to gallery section */ }
.bg-white-pattern {
    background-color: #fff;
    /* You can add a subtle white pattern here if the screenshot has one */
    /* Example: background-image: url('../images/white-pattern.png'); */
}


/* --- Header --- */
.main-header {
    background-color: rgba(0, 0, 0, 0.7); /* Slightly transparent dark */
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.9); /* Less transparent on scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-header .logo a {
    font-family: 'Lato', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* If using logo image */
.main-header .logo img {
    height: 40px; /* Adjust as needed */
}


.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 35px; /* More spacing */
}

.main-nav ul li a {
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active { /* Add .active class for current page */
    color: var(--color-dark-blue);
    transform: translateY(-2px);
}

.hamburger-menu {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
}

.hamburger-menu span {
    height: 3px;
    width: 100%;
    background-color: var(--color-text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* --- Hero Section with Video Background --- */
.hero-section {
    position: relative; /* Essential for positioning video and overlay */
    background-color: #000; /* Fallback background color if video fails to load */
    overflow: hidden; /* Ensures video doesn't spill out */
    min-height: 100vh; /* Ensure it takes full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Explicitly take full viewport width */
    height: 100vh; /* Explicitly take full viewport height */
    z-index: -2; /* Below the overlay and content */
    transform: translate(-50%, -50%); /* Centers the video */
    object-fit: cover; /* Ensures video covers the area without distortion */
    /* You can apply a slight blur or grayscale here if desired: */
    /* filter: grayscale(50%) blur(2px); */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Darkened from 0.65 to 0.8 */
    z-index: -1; /* Above the video, below the content */
}

.hero-content {
    position: relative; /* Bring content above the overlay */
    z-index: 1; /* Ensure content is on top */
    max-width: 900px;
    padding: 20px;
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 300px; /* Adjust size */
    height: auto;
    margin-bottom: 20px;
}

.hero-content h1 {
    color: var(--color-text-light);
    font-size: 2.5em; /* Smaller than main headline, more of a sub-heading */
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2em;
    font-weight: 300;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 50px;
}

.scroll-down-arrow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-text-light);
    border-radius: 50%;
    margin-top: 30px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.scroll-down-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.scroll-down-arrow img {
    width: 20px;
    filter: invert(1); /* Makes arrow white */
}


/* --- Who We Are (About Us) Section --- */
.about-section .content-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 20px;
    max-width: 900px; /* Constrain text width as in screenshot */
    margin: 0 auto;
}

.drop-cap-paragraph {
    font-size: 1.1em;
    line-height: 1.9;
    color: var(--color-text-dark);
}

.drop-cap-paragraph span {
    float: left;
    font-size: 5em; /* Large drop cap */
    line-height: 0.7;
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-right: 10px;
    font-family: var(--font-heading);
}

/* --- What We Do / Testimonial Sections (Two-Column Layout) --- */
.section-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 80px; /* Generous gap between columns */
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.col-text h2.section-heading {
    text-align: left; /* Heading aligned left */
    font-size: 2.2em;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.col-text h2.section-heading::after {
    content: '';
    position: absolute;
    left: 0; /* Underline starts from left */
    bottom: 0;
    width: 60px; /* Standard underline width */
    height: 4px;
    background-color: var(--color-dark-blue);
    transform: translateX(0);
}

.col-text ul {
    list-style: none;
    margin-top: 20px;
}
.col-text ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--color-text-dark);
}
.col-text ul li .fa-solid { /* For Font Awesome check icons */
    color: var(--color-dark-blue);
    position: absolute;
    left: 0;
    top: 5px; /* Adjust vertically to align with text */
    font-size: 1.1em;
}


.feature-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Subtle shadow */
    text-align: center;
    height: auto; /* Allow height to adjust */
}

.feature-card img {
    max-width: 200px; /* Adjust logo size */
    height: auto;
    margin-bottom: 25px;
}

.feature-card h3 {
    color: var(--color-dark);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--color-text-dark);
    font-size: 1em;
    margin-bottom: 20px;
}

.read-more-link {
    font-weight: 600;
    color: var(--color-dark-blue);
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}
.read-more-link:hover {
    text-decoration: underline;
}

/* Testimonial specific styles */
.col-quote blockquote {
    font-size: 1.8em;
    line-height: 1.6;
    font-style: italic;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.col-author .author-name {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--color-dark-blue);
    margin-bottom: 5px;
}

.col-author .author-title {
    font-size: 1em;
    color: var(--color-text-dark);
}

/* --- Blue Feature Section --- */
.blue-feature-section {
    color: var(--color-text-light);
}

.blue-feature-section h2 {
    color: var(--color-text-light);
    font-size: 2.5em;
    margin-bottom: 25px;
}

.blue-feature-section p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.blue-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust columns as needed */
    gap: 40px;
    align-items: center;
}

.blue-feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.blue-text-content ul {
    list-style: none;
    margin-bottom: 30px;
}

.blue-text-content ul li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    font-size: 1em;
}
.blue-text-content ul li .fa-solid { /* For Font Awesome check icons */
    color: var(--color-text-light); /* White checkmark */
    position: absolute;
    left: 0;
    top: 5px; /* Adjust vertically */
    font-size: 1.1em;
}


/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.gallery-item:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

.gallery-item .overlay h3 {
    color: var(--color-text-light);
    margin-bottom: 10px;
    font-size: 1.6em;
}
.gallery-item .overlay p {
    font-size: 1em;
}


/* --- Benefits/Features with Images --- */
.benefit-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px; /* Spacing between items */
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item-reverse {
    flex-direction: row-reverse; /* Swap order for alternate items */
}

.benefit-text {
    flex: 1;
    text-align: left;
}

.benefit-text h3 {
    color: var(--color-dark-blue);
    font-size: 2em;
    margin-bottom: 20px;
}

.benefit-text p {
    line-height: 1.8;
}

.benefit-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-image img {
    max-width: 100%;
    height: 350px; /* Fixed height for visual consistency */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* --- Contact Form Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info on left, form on right, wider form */
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.contact-info h3 {
    color: var(--color-dark);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Font Awesome icon styling for contact info */
.contact-info p .fa-solid {
    color: var(--color-dark-blue);
    margin-right: 10px;
    width: 20px; /* Align text */
    text-align: center;
}

.main-contact-form .form-group {
    margin-bottom: 25px;
}

.main-contact-form input[type="text"],
.main-contact-form input[type="email"],
.main-contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--color-border-light);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 1em;
    color: var(--color-text-dark);
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.main-contact-form input::placeholder,
.main-contact-form textarea::placeholder {
    color: #999;
}

.main-contact-form input:focus,
.main-contact-form textarea:focus {
    border-color: var(--color-dark-blue);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.main-contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

/* For success/error messages from AJAX forms */
.message-success {
    color: #28a745; /* Green */
    margin-top: 15px;
    font-weight: 600;
}

.message-error {
    color: #dc3545; /* Red */
    margin-top: 15px;
    font-weight: 600;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-dark); /* Dark background */
    color: #aaa;
    padding: 80px 0 30px;
}

.main-footer h3 {
    color: var(--color-text-light);
    margin-bottom: 25px;
    font-size: 1.4em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    text-align: left; /* Align footer text left */
}

.footer-col p {
    font-size: 0.9em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.footer-col ul li a:hover {
    color: var(--color-dark-blue);
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a img {
    width: 28px;
    height: 28px;
    filter: brightness(0.8) invert(1); /* Invert for white, then slight dim */
    transition: filter 0.3s ease, transform 0.2s ease;
}

.social-links a img:hover {
    filter: brightness(1) invert(0); /* Bright and original color on hover (needs actual colored icons or override) */
    transform: translateY(-3px);
}

.footer-contact p .fa-solid { /* Adjust for footer icons */
    margin-right: 12px;
    color: var(--color-dark-blue);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 18px;
    border: 1px solid #444;
    background-color: #333;
    color: var(--color-text-light);
    font-size: 0.9em;
    border-radius: 3px 0 0 3px;
    outline: none;
}
.newsletter-form input[type="email"]::placeholder {
    color: #777;
}

.newsletter-form button {
    padding: 12px 25px;
    border: none;
    background-color: var(--color-dark-blue);
    color: var(--color-text-light);
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: capitalize; /* "Subscribe" not uppercase */
}

.newsletter-form button:hover {
    background-color: #0056b3;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 0.85em;
    color: #777;
}

/* --- Responsive Design (Media Queries) --- */
@media (max-width: 1024px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    .hero-content h1 { font-size: 2em; }
    .hero-description { font-size: 1.1em; }
    .main-nav ul li { margin-left: 20px; }
    .section-two-col {
        gap: 40px;
    }
    .benefit-item, .benefit-item-reverse {
        gap: 40px;
    }
    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95); /* Full overlay for nav */
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        padding: 20px 0;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease-out;
    }
    .main-nav.active {
        display: flex;
        transform: translateY(0);
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    .main-nav ul li a {
        font-size: 1.1em;
    }
    .hamburger-menu {
        display: flex; /* Show hamburger */
    }

    .hero-section {
        min-height: 70vh; /* Adjust hero height for smaller screens */
    }
    .hero-content h1 { font-size: 1.8em; }
    .hero-description { font-size: 1em; }

    .section-padding { padding: 60px 0; }
    .section-title { margin-bottom: 40px; }

    .drop-cap-paragraph span {
        font-size: 4em;
        line-height: 0.8;
    }

    .section-two-col {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 50px;
    }
    .col-text h2.section-heading {
        text-align: center;
    }
    .col-text h2.section-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .testimonial-section .col-quote blockquote {
        font-size: 1.4em;
    }

    .blue-feature-grid {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .blue-feature-item.blue-text-content {
        text-align: center;
    }
    .blue-text-content ul {
        text-align: left; /* Keep list left aligned */
        margin-left: auto;
        margin-right: auto;
        max-width: 300px; /* constrain list width */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .benefit-item, .benefit-item-reverse {
        flex-direction: column; /* Stack image and text */
        gap: 30px;
        margin-bottom: 60px;
    }
    .benefit-item-reverse .benefit-image {
        order: -1; /* Image always on top for stacked layout */
    }
    .benefit-text {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack contact info and form */
        gap: 50px;
    }
    .contact-info, .contact-form-wrapper {
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 30px;
    }
    .social-links, .newsletter-form {
        justify-content: center;
    }
    .newsletter-form input[type="email"] {
        border-radius: 3px;
        margin-bottom: 10px;
    }
    .newsletter-form button {
        border-radius: 3px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .hero-content h1 { font-size: 1.5em; }
    .hero-description { font-size: 0.9em; }
    .btn { padding: 10px 20px; font-size: 0.85em; }
    .btn-large { padding: 12px 25px; font-size: 0.9em; }

    .drop-cap-paragraph span {
        font-size: 3.5em;
    }
    .section-two-col {
        gap: 30px;
    }
    .feature-card { padding: 30px; }
    .feature-card img { max-width: 150px; }
    .testimonial-section .col-quote blockquote {
        font-size: 1.2em;
    }
    .blue-feature-section h2 {
        font-size: 2em;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .benefit-item {
        margin-bottom: 40px;
    }
    .main-contact-form input, .main-contact-form textarea {
        padding: 12px 15px;
    }
}