:root {
    --primary-color: #e0f7e9; /* Light green */
    --secondary-color: #000000; /* Black */
    --accent-color: #4caf50; /* Complementary green */
    --text-color: #333333;
    --light-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.logo-icon img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 25px;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-text span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section - Updated to Carousel */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    width: 20%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: var(--light-text);
    padding: 0 20px;
}

.carousel-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicator.active {
    background: white;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #3d8b40;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* About Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section - Fixed Text Visibility */
.services {
    background-color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Service card background images with improved visibility */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    opacity: 0.5; /* Reduced opacity for better text visibility */
    z-index: 0;
}

/* Individual service card background images */
.service-card:nth-child(1)::before {
    background-image: url(../Services/Waterproofing.png);
}

.service-card:nth-child(2)::before {
    background-image: url(../Services/Adhesives.png);
}

.service-card:nth-child(3)::before {
    background-image: url(../Services/Admixtures.png);
}

.service-card:nth-child(4)::before {
    background-image: url(../Services/Protective\ Coatings.png);
}

.service-card:nth-child(5)::before {
    background-image: url(../Services/Floor\ Coatings.png);
}

.service-card:nth-child(6)::before {
    background-image: url(../Services/Concrete\ Repair.png);
}

.service-card:nth-child(7)::before {
    background-image: url(../Services/Sealants.png);
}

.service-card:nth-child(8)::before {
    background-image: url(../Services/Grout.png);
}

.service-card:nth-child(9)::before {
    background-image: url(../Services/Membranes.png);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color); /* Changed to dark color for better visibility */
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); /* Added text shadow for contrast */
}

.service-card p {
    position: relative;
    z-index: 1;
    color: var(--text-color); /* Changed to dark color for better visibility */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); /* Added text shadow for contrast */
    font-weight: 500; /* Slightly bolder text */
}

/* Partners Section */
.partners {
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-logo {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    transition: filter 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Clients Section */
.clients {
    background-color: #f5f5f5;
    padding: 60px 0;
    overflow: hidden;
}

.clients-container {
    position: relative;
    padding: 20px 0;
}

.clients-title {
    text-align: center;
    margin-bottom: 40px;
}

.clients-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}

.clients-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.clients-scroll-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-track {
    display: flex;
    animation: scroll-left 30s linear infinite;
    width: max-content;
}

.client-logo {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.client-logo:hover {
    transform: translateY(-5px);
}

.client-logo img {
    max-width: 100%;
    max-height: 90px;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Updated Clients Section for Mobile */
@media (max-width: 768px) {
    .clients-track {
        animation: scroll-left-mobile 20s linear infinite;
    }
    
    .client-logo {
        height: 100px;
        padding: 15px;
        margin: 0 10px;
        width: 140px; /* Fixed width for consistent spacing */
        flex-shrink: 0; /* Prevent shrinking */
    }
    
    .client-logo img {
        max-height: 60px;
        max-width: 100%;
    }
    
    @keyframes scroll-left-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}

/* Additional fix for very small screens */
@media (max-width: 480px) {
    .clients-track {
        animation: scroll-left-mobile 15s linear infinite;
    }
    
    .client-logo {
        height: 90px;
        padding: 12px;
        margin: 0 8px;
        width: 120px;
    }
    
    .client-logo img {
        max-height: 50px;
    }
}

/* Projects Section - Fixed for Mobile */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;   
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    /* transform: translateY(100%);  */
    transition: transform 0.3s;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

/* Fix for mobile project cards */
@media (max-width: 768px) {
    .project-info {
        transform: translateY(0);
        position: relative;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 15px;
    }
    
    .project-card img {
        height: 200px;
    }
    
    /* Remove hover effects on mobile */
    .project-card:hover img {
        transform: none;
    }
    
    .project-card:hover .project-info {
        transform: none;
    }
}

/* Additional fix for very small screens */
@media (max-width: 480px) {
    .project-info {
        padding: 12px;
    }
    
    .project-info h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .project-info p {
        font-size: 13px;
    }
}

/* Project Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.modal-description {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.7;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.detail-value {
    color: var(--text-color);
}

/* Improve modal scrolling on mobile */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        padding: 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Prevent body scroll when modal is open on iOS */
    body.modal-open {
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 180px;
    }
}

/* Contact Section - Fixed for Mobile */
.contact {
    background-color: var(--primary-color);
}

.contact-container {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-item div {
    flex: 1;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.contact-item p {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    
}

/* Social Links - Changed to Green */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--accent-color); /* Green color */
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .carousel-content h1 {
        font-size: 36px;
    }
    
    .carousel-content p {
        font-size: 18px;
    }
    
    .project-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 60vh;
    }
    
    .carousel-content h1 {
        font-size: 28px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .client-logo {
        height: 120px;
        padding: 20px;
        margin: 0 15px;
    }
    
    .client-logo img {
        max-height: 70px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 30px auto;
    }
    
    .modal-title {
        font-size: 26px;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Mobile-specific fixes */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card img {
        height: 200px;
    }
    
    .project-info {
        padding: 15px;
    }
    
    .project-info h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .project-info p {
        font-size: 14px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-item i {
        margin-bottom: 10px;
    }
    
    .contact-item p {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
    }
    
    .carousel-content h1 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .client-logo {
        height: 100px;
        padding: 15px;
        margin: 0 10px;
    }
    
    .client-logo img {
        max-height: 60px;
    }
    
    .logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-icon {
        margin-bottom: 5px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    /* Extra small screen fixes */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-card img {
        height: 180px;
    }
    
    .project-info {
        padding: 12px;
    }
    
    .project-info h3 {
        font-size: 16px;
    }
    
    .project-info p {
        font-size: 13px;
    }
    
    .contact-item p {
        font-size: 13px;
    }
    
    .contact-form {
        padding: 20px;
    }
}