/* ============================================ */
/*              GLOBAL STYLES & SETUP           */
/* ============================================ */

/* Using a modern box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
}

/* Define brand colors and fonts for easy use */
:root {
    --primary-color: #0a2342;
    /* Deep Blue */
    --secondary-color: #d4af37;
    /* Gold */
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --headline-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: var(--headline-font);
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 0;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--white);
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================================ */
/*                 HEADER & HERO                  */
/* ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--white);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Add a dark overlay for text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.6);
    /* Dark blue overlay */
    z-index: -1;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: var(--headline-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    border: 2px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.phone-number:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main-content h2 {
    font-family: var(--body-font);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    max-width: 600px;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.trust-bar {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    opacity: 0.8;
}

.trust-bar span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* ============================================ */
/*                SHARED SECTIONS               */
/* ============================================ */
section {
    padding: 6rem 0;
}

.intro-section,
.process-section {
    background-color: var(--white);
}

.services-section,
.featured-project-section,
.testimonials-section {
    background-color: var(--light-gray);
}

/* ============================================ */
/*                INTRODUCTION                  */
/* ============================================ */
.two-column {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.intro-text {
    flex: 1;
}

/* ============================================ */
/*                  SERVICES                    */
/* ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    color: var(--white);
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(10, 35, 66, 0.9), rgba(10, 35, 66, 0));
    text-align: center;
}

.service-card-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.service-card-content h3 {
    color: var(--white);
    margin: 0;
}

/* ============================================ */
/*             FEATURED PROJECT                 */
/* ============================================ */
.project-slider-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.project-slider {
    display: flex;
    overflow: hidden;
    border-radius: 5px;
}

.slide {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide img {
    width: 100%;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.project-description {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
    margin-top: 1rem;
}

.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ============================================ */
/*                   PROCESS                    */
/* ============================================ */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    text-align: center;
}

.step {
    flex: 1;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-family: var(--headline-font);
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

/* ============================================ */
/*                TESTIMONIALS                  */
/* ============================================ */
.testimonial-slider-wrapper {
    position: relative;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-card {
    min-width: 100%;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    color: var(--white);
    display: none;
    /* Hide all by default */
}

.testimonial-card.active {
    display: block;
    /* Show active one */
}

.testimonial-bg {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.testimonial-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 66, 0.75);
    /* Dark blue overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
}

.testimonial-content .stars {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.testimonial-content h4 {
    color: var(--white);
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.prev-btn-testimonial {
    left: 1rem;
}

.next-btn-testimonial {
    right: 1rem;
}

.testimonial-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================ */
/*                 FINAL CTA                    */
/* ============================================ */
.final-cta-section {
    background: url('https://images.pexels.com/photos/276724/pexels-photo-276724.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.8);
    z-index: -1;
}

.final-cta-section h2 {
    color: var(--white);
}

.final-cta-section p {
    max-width: 600px;
    margin: 1rem auto 2rem;
    font-size: 1.1rem;
}

/* ============================================ */
/*                   FOOTER                     */
/* ============================================ */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer a {
    color: var(--white);
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 1.5rem;
    margin-left: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* ============================================ */
/*              RESPONSIVE DESIGN               */
/* ============================================ */

/* For Tablets */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        flex-direction: column;
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 4rem 0;
    }

    .top-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .trust-bar {
        gap: 1rem;
    }

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

    .intro-image {
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social {
        margin-top: 1rem;
    }
}