/* HERO SECTION */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 0 2rem;
    background: 
        linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center / cover;
    background-attachment: fixed;
    color: var(--white);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero-content {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    transform: translateZ(50px);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transform: translateZ(30px);
}

.hero-content .cta-button {
    transform: translateZ(70px);
}


/* ABOUT PREVIEW SECTION */
.about-preview-section {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-preview-text {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: -1rem auto 2.5rem;
    max-width: 800px;
}


/* WHY CHOOSE US SECTION */
.featured-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--dark-blue-shade);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* SERVICES SECTION */
.services-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--dark-blue-shade);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 4px solid transparent; 
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border-bottom-color: var(--orange);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}


/* FEATURED PROJECT SECTION */
.featured-project-section {
    padding: 5rem 2rem;
}

.project-content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 3rem;
}

.project-image-container {
    flex: 1;
}

.project-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px -15px var(--black);
}

.project-text-container {
    flex: 1;
}

.project-text-container p {
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.7;
}

/* TESTIMONIAL SECTION */
.testimonial-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* PARTNERS SECTION */
.partners-section {
    padding: 5rem 0;
}

/* === UPDATED: Keyframes value corrected for margin === */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1250px); } /* 5 logos * (170px width + 80px margin) */
}

.logos-carousel {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.logos-carousel::before,
.logos-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.logos-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--navy-blue) 0%, transparent 100%);
}

.logos-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--navy-blue) 0%, transparent 100%);
}

/* === UPDATED: Width now calculated based on fixed logo size + margin === */
.logos-slide {
    display: flex;
    width: calc(250px * 10); /* (170px width + 80px margin) * 10 logos */
    animation: scroll 20s linear infinite;
}

/* === UPDATED: Using margin for spacing, not padding === */
.logos-slide img {
    height: 60px;
    width: 170px;
    margin: 0 40px; /* Use margin for space between items */
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.3s ease;
}

.logos-slide:hover {
    animation-play-state: paused;
}

.logos-slide img:hover {
    filter: grayscale(0%) brightness(1);
}


/* CTA BANNER SECTION */
.cta-banner-section {
    padding: 4rem 2rem;
    text-align: center;
}

/* RESPONSIVE STYLES FOR HOME PAGE */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    
    .project-content-wrapper {
        flex-direction: column;
    }
    
    .logos-carousel::before,
    .logos-carousel::after {
        width: 50px;
    }
}