html {
    scroll-behavior: smooth;
}
/* --- 1. Basic Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* --- 2. Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: #fff;
    width: 85%;
    margin: 0 auto;
    position: relative;
}

.logo img { height: 50px; }

.nav-links { list-style: none; display: flex; }

.nav-links li { margin-left: 60px; }

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 13px;
    transition: color 0.3s;
}

.nav-links a:hover { color: #d32f2f; }

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- 3. Slider Container --- */
.slider-container {
    width: 85%;
    height: 80vh;
    margin: 20px auto 30px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.slider { width: 100%; height: 100%; }

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

.content {
    margin-left: 8%;
    color: white;
    max-width: 600px;
}

.content h1 { font-size: 50px; line-height: 1.1; margin-bottom: 20px; }

.content p { font-size: 15px; line-height: 1.6; max-width: 480px; }

.content .line {
    width: 300px;
    height: 4px;
    background: linear-gradient(to right, red, blue);
    margin-bottom: 20px;
}

/* Slider Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.arrow:hover {
    background: #fff;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.left { left: 25px; }
.right { right: 25px; }

/* --- 4. Section Heading Style --- */

.trust-text {
    font-size: 1.7rem; 
    line-height: 1.6;  
    color: #a5a5a5;     
    text-align: center; 
    margin: 20px 0;    
}

/* Reduce font size on mobile phones */
@media (max-width: 768px) {
    .trust-text {
        font-size: 1rem; 
    }
}


.section-title {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    text-align: center;
    padding: 0 20px;
}

.section-title h2 {
    color: #1a237e;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    width: 90%;
    margin: 0 auto;
}

/* --- 5. Quality Cards Section --- */
.quality-section {
    padding: 80px 0;
    background-color: #fff;
}

.quality-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 85%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.quality-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    max-width: 250px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.arch-box {
    width: 100%;
    height: 380px;
    background-color: #f0f0f0;
    border-radius: 125px 125px 0 0;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.arch-box img {
    width: 95%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.quality-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.indicator-line {
    width: 100%;
    height: 7px;
    background-color: #1a237e;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.quality-item:hover { transform: translateY(-10px); }
.quality-item:hover .indicator-line { background-color: #d32f2f; }
.quality-item:hover .arch-box img { transform: scale(1.08); }

/* Quality Section  Container  Mobile */
@media (max-width: 768px) {
    .quality-container {
        display: flex;
        flex-direction: column; 
        align-items: center;
        gap: 30px;
    }

    .quality-item {
        width: 100%; 
        max-width: 300px; 
    }

   
    .arch-box {
        width: 220px;
        height: 200px;
        margin: 0 auto;
        overflow: hidden; 
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .arch-box img {
        width: 100%;
        height: 100%;
        object-fit: contain; 
    }
}

/* --- 6. Why Choose Us Section (Animation Area) --- */
.why-choose-section {
    padding: 80px 0; 
    text-align: center;
    background-color: #ffffff;
    overflow: hidden;
    display: block; /* අනිවාර්යයෙන්ම පේන්න */
    min-height: 400px; /* Section එක හැකිළීම වැළැක්වීමට */
}

.percent-text {
    font-size: 80px;
    font-weight: 900;
    color: #ed1c24;
    line-height: 1;
}

.split-line-container {
    display: flex;
    justify-content: center; /* මැද සිට දෙපැත්තට විහිදීමට */
    width: 100%;
    height: 12px;
    margin-top: 50px;
    background-color: #f9f9f9;
    overflow: hidden;
}

#red-line {
    width: 0;
    height: 100%;
    /* වම් පැත්තේ කොටස: රතු පාටින් පටන් ගෙන මැද දම් පාටින් ඉවර වේ */
    background: linear-gradient(to right, red, #8000ff); 
    transition: width 2s ease-in-out;
}

#blue-line {
    width: 0;
    height: 100%;
    /* දකුණු පැත්තේ කොටස: මැද දම් පාටින් පටන් ගෙන නිල් පාටින් ඉවර වේ */
    background: linear-gradient(to right, #8000ff, blue);
    transition: width 2s ease-in-out;
}

/* --- 7. Choose Grid Section (Icons) --- */
.choose-grid-section {
    padding: 40px 0 80px 0;
    background-color: #fff;
}

.grid-container {
    width: 55%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 70px;
}

.grid-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icon-box {
    min-width: 55px;
    height: 55px;
    border: 1.5px solid #1a237e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #1a237e;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grid-item:hover .icon-box {
    background-color: #1a237e;
    color: #fff;
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.text-box h3 {
    font-size: 18px;
    color: #1a237e;
    font-weight: 700;
}

.text-box p {
    font-size: 13.5px;
    color: #666;
    line-height: 1.5;
    text-align: justify;
}

/* --- 8. Service Grid (Quality and Value) --- */
.service-grid-section {
    padding: 80px 0;
    background-color: #fff;
}

.service-grid-container {
    width: 65%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.s-card {
    position: relative;
    background: #f1f1f1;
    border-radius: 30px;
    overflow: hidden;
    height: 450px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.s-img-box {
    width: 100%;
    height: 100%;
}

.s-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
    padding: 10px 15px;
    
    /* 1. මෙතනදී 'background' වලට transition එක දෙන්න */
    transition: background 0.4s ease-in-out;
}

/* 2. මුල් වර්ණයත් gradient එකක් විදිහටම ලියන්න (එකම පාට දෙපාරක්) */
.blue-bg { 
    background: linear-gradient(to right, rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.9)); 
}

/* 3. Hover එකේදී අලුත් gradient එක */
.s-card:hover .blue-bg {
    background: linear-gradient(to right, #005ffb, #f72500);
}

/* Card එකේ Hover Effect එක */
.s-card {
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.s-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* --- 9. View All Button --- */
.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    padding: 15px 45px;
    background-color: #1a237e;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid #1a237e;
    text-transform: uppercase;
}

.view-all-btn:hover {
    background-color: #ed1c24;
    border-color: #ed1c24;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.3);
}

/* --- Trust & Testimonials Styles --- */

.bg-large-text {
    font-size: 100px;
    font-weight: 900;
    color: #bbb7b7;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: -80px;
    user-select: none;
    line-height: 1;
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}


.trust-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    width: 80%;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-box {
    padding: 20px;
}

.testimonial-box p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    font-style: normal;
    margin-bottom: 20px;
}

.t-line {
    color: #ccc;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.testimonial-box h4 {
    font-size: 16px;
    color: #000;
    font-weight: 700;
}



/* --- Project Gallery Styles --- */
.gallery-section {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.gallery-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 95%;
    margin: 0 auto;
    padding-bottom: 70px;
    min-height: 550px;
}

.worker-left {
    position: absolute;
    left: 16%;
    bottom: 50px;
    z-index: 3;
    pointer-events: none;
}

.worker-right {
    position: absolute;
    right: 17%;
    bottom: 50px;
    z-index: 3;
    pointer-events: none;
}

.worker-left img, .worker-right img {
    height: 480px;
    width: auto;
}

.projects-container {
    display: flex;
    gap: 25px;
    z-index: 2;
    align-items: flex-end;
    margin-bottom: 100px;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    text-align: center;
}

.project-img-box {
    width: 250px;
    height: 250px;
    background-color: #999;
    border-radius: 20px;
    border: 5px solid #f0f0f0;
    overflow: hidden;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h4 {
    font-size: 18px;
    color: #1a237e;
    font-weight: 800;
}

.project-card:hover .project-img-box {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Button Styles */
.gallery-btn-container {
    text-align: center;
    margin-top: 20px;
}

.all-projects-btn {
    display: inline-block;
    padding: 15px 60px;
    background-color: #dcdcdc;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.all-projects-btn:hover {
    background-color: #1a237e;
    color: #fff;
}

/* --- Quote / Contact Form Section --- */
.final-quote-section {
    padding: 60px 0;
    background-color: #fff;
    width: 100%;
    display: block;
    clear: both;
}

.final-quote-container {
    width: 85%;
    margin: 0 auto;
    background: #f9f9f9;
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 50px 40px;
    gap: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

.final-quote-image {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.final-quote-image img {
    max-width: 80%;
    width: 80%;
    height: auto;
    object-fit: contain;
    margin-bottom: -30px;
    display: block;
}

.final-quote-form-box {
    flex: 1;
    padding: 35px 30px;
    width: 100%;
    max-width: 500px;
}

.final-quote-header h2 {
    color: #1a237e;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.final-quote-header p {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

.final-input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.final-input-group {
    margin-bottom: 15px;
    flex: 1;
}

.final-input-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}

.final-input-group input,
.final-input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.final-input-group input:focus,
.final-input-group textarea:focus {
    border-color: #1a237e;
}

.final-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #1a237e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
    font-size: 15px;
    font-family: inherit;
}

.final-submit-btn:hover {
    background-color: #ed1c24;
}

/* --- MAIN FOOTER STYLES --- */



.site-footer {
    background-color: #050a24;
    color: white;
    width: 100%;
}

.footer-overlay-bg {
    /* Footer background sketch image overlay */
    background-image: linear-gradient(rgba(5, 10, 36, 0), rgba(5, 10, 36, 0)), url('/images/footer-bg.png');
    background-size: 800px;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 10%; /* 10% horizontal padding, content pushed to both edges */
}

/* Full-width wrapper for footer flex layout */
.footer-full-width-wrapper {
    width: 100%;
}

.footer-main-layout {
    display: flex;
    justify-content: space-between; /* Space-between: brand left, links right */
    align-items: flex-start;
}

/* Left side: brand / logo column */
.footer-brand {
    text-align: left;
}

.footer-logo {
    width: 220px;
    margin-bottom: 20px;
}

.footer-slogan {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.footer-slogan .highlight {
    color: #e62117; /* Brand red accent color */
    font-weight: 900;
}

/* Footer navigation links */
.footer-col ul li a {
    display: inline-block;
    transition: all 0.3s ease; /* Transition speed */
    color: #ffffff; /* Default link color: white */
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #e62117; /* Hover: brand red */
    transform: translateX(8px); /* Slight right slide on hover */
}

/* Social icon hover effect */
.footer-social-icons a {
    display: inline-block;
    transition: transform 0.3s ease, background 0.3s ease;
}

.footer-social-icons a:hover {
    transform: translateY(-5px); /* Lift up on hover */
    color: #e62117;
}

/* Right side: three columns in one row */
.footer-right-group {
    display: flex;
    gap: 80px; /* Gap between footer columns */
}

.footer-col {
    text-align: left; /* Left-aligned text matching design */
    min-width: 140px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

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

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

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
}

.contact-col p {
    font-size: 14px;
    margin-bottom: 8px;
    color: #cbd5e0;
}

/* Social Icons */
.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-icons a {
    background: white;
    color: #050a24;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Copyright Bar */
.footer-copyright-bar {
    background-color: #03071a;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.designer-logo {
    color: #ed1c24;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 1100px) {
    .footer-right-group {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .footer-main-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-right-group {
        margin-top: 50px;
        flex-direction: column;
        gap: 30px;
    }
    .footer-col {
        text-align: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .footer-right-group {
        gap: 30px;
    }
}

@media (max-width: 850px) {
    .footer-main-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand {
        flex: none;
        margin-bottom: 40px;
    }
    .footer-right-group {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }
    .footer-col {
        text-align: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* --- Tablet / Medium screens (max 992px) --- */
@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
        width: 90%;
    }

    /* Show hamburger, hide nav links */
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        padding: 15px 0;
        border-top: 1px solid #eee;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .nav-links.open { display: flex; }

    .nav-links li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-links a {
        font-size: 15px;
        display: block;
        padding: 5px 10px;
    }

    .slider-container {
        width: 92%;
        height: 60vh;
        border-radius: 20px;
    }

    .content h1 { font-size: 36px; }

    .quality-container {
        width: 92%;
        gap: 20px;
    }

    .quality-item {
        min-width: 150px;
        max-width: 210px;
    }

    .arch-box { height: 280px; }

    .grid-container {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .service-grid-container {
        width: 92%;
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-container {
        width: 90%;
        grid-template-columns: 1fr;
    }

    .bg-large-text { font-size: 60px; }

    .worker-left, .worker-right { display: none; }

    .projects-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }

    .gallery-wrapper {
        min-height: auto;
        padding-bottom: 0;
    }

    .final-quote-container {
        flex-direction: column;
        padding: 30px 25px;
        width: 90%;
        border-radius: 25px;
    }

    .final-quote-image { display: none; }

    .final-quote-form-box {
        padding: 10px 0;
        max-width: 100%;
    }

    .final-input-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-main-container {
        grid-template-columns: 1fr;
        text-align: center;
        width: 90%;
    }

    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-contact-info p { justify-content: center; }
    .footer-socials { justify-content: center; }
    .footer-big-text { font-size: 28px; }
    .footer-desc { max-width: 100%; }
    .footer-bottom-image { width: 60%; opacity: 0.1; }
}

/* --- Small screens (max 768px) --- */
@media (max-width: 768px) {
    .slider-container {
        height: 55vh;
        border-radius: 15px;
    }

    .content { margin-left: 5%; }
    .content h1 { font-size: 28px; }
    .content p { font-size: 13px; }

    .quality-container { gap: 15px; }
    .quality-item { min-width: 130px; max-width: 170px; }
    .arch-box { height: 220px; border-radius: 85px 85px 0 0; }

    .section-title h2 { font-size: 24px; }

    .percent-text { font-size: 60px; }

    .service-grid-container { grid-template-columns: 1fr; }

    .s-card { height: 320px; }

    .project-img-box { width: 200px; height: 200px; }

    .footer-big-text { font-size: 24px; }

    .final-quote-header h2 { font-size: 26px; }
}

/* --- Extra small screens (max 480px) --- */
@media (max-width: 480px) {
    .navbar { width: 92%; padding: 12px 0; }

    .slider-container {
        width: 96%;
        height: 50vh;
        border-radius: 12px;
        margin: 15px auto;
    }
     }
/* =============================================
   SERVICES PAGE - INFO BOX LAYOUT
   ============================================= */

.info-services-section {
    padding: 40px 0;
    background-color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns per row */
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.info-box {
    display: flex; /* Icon and content side by side */
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    font-size: 30px;
    color: #1a237e; /* Dark navy blue */
    padding-top: 5px;
}

.info-content h3 {
    font-size: 22px;
    color: #1a237e;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.info-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    text-align: justify; /* Justified text for a clean, print-like look */
}

/* Single column stacking on mobile */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.highlight-features {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light grey background */
    text-align: center;
}

.features-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 250px;
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    background-color: #ed1c24; /* Brand red */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(237, 28, 36, 0.2);
}

.feature-item h4 {
    font-size: 16px;
    color: #0d124a;
    font-weight: 800;
    text-transform: uppercase;
}


/* Reduced container width for tighter layout */
.container-custom {
    width: 90%;
    max-width: 1000px; /* Reduced max-width from 1100-1200 to 1000px */
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px; /* Reduced row and column gap */
    margin-top: 40px;
}

/* Reduced card padding for cleaner appearance */
.card-body {
    display: flex;
    padding: 20px; /* Reduced from 25px to 20px */
    align-items: center;
    gap: 15px;
}

.card-icon {
    font-size: 40px; /* Icon size slightly scaled */
    color: #ed1c24;
    flex-shrink: 0;
}

/* =============================================
   SERVICES PAGE - PDF STYLE BOXES
   ============================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Allows rounded corners on the card header */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

/* Blue header bar at top of each service card */
.card-header {
    background-color: #1a237e; /* Dark navy blue */
    padding: 15px 20px;
}

.card-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Card body: icon + description side by side */
.card-body {
    display: flex;
    padding: 25px;
    align-items: center;
    gap: 20px;
}

/* Large icon on the left side of card body */
.card-icon {
    font-size: 45px;
    color: #ed1c24; /* Brand red */
    flex-shrink: 0;
}

.card-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Single column stacking on mobile */
@media (max-width: 850px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   SERVICES PAGE - HIGHLIGHT FEATURES (ICONS 3)
   ============================================= */

.highlight-features {
    padding: 70px 0;
    background-color: #f8f9fa; /* Very light grey background */
    margin-top: 40px;
}

.features-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.feature-icon-box {
    width: 85px;
    height: 85px;
    background-color: #ed1c24; /* Brand red */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    margin: 0 auto 20px;
    /* Drop shadow for icon depth */
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.25);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Icon lifts up on hover */
.feature-item:hover .feature-icon-box {
    transform: translateY(-10px);
    background-color: #0d124a; /* Changes to navy on hover */
}

.feature-item h4 {
    font-size: 16px;
    color: #1a237e;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

/* Stack features vertically on mobile */
@media (max-width: 768px) {
    .features-row {
        flex-direction: column;
    }
}

/* =============================================
   SERVICES PAGE - CLEAN QUOTE SECTION
   ============================================= */

.quote-section-clean {
    padding: 80px 0;
    background-color: #ffffff; /* White background */
}

.quote-wrapper-reversed {
    display: flex;
    flex-direction: row; /* Form on left, contact info on right */
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.quote-form-container-simple {
    flex: 1.5; /* Give more flex space to the form */
}

.quote-title h2 {
    font-size: 30px;
    color: #1a237e;
    font-weight: 800;
    margin-bottom: 10px;
}

.line-red {
    width: 50px;
    height: 4px;
    background-color: #ed1c24;
    margin-bottom: 30px;
}

.quote-form-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quote-form-simple input, 
.quote-form-simple select, 
.quote-form-simple textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 4px;
    outline: none;
}

.submit-btn-red {
    grid-column: span 2;
    background-color: #ed1c24;
    color: white;
    border: none;
    padding: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.submit-btn-red:hover {
    background-color: #1a237e;
}

/* Right side: contact info cards */
.quote-info-side-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
}

.side-icon-red {
    font-size: 30px;
    color: #ed1c24;
}

.side-text-dark h4 {
    color: #1a237e;
    margin-bottom: 5px;
    font-weight: 700;
}

.side-text-dark p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .quote-wrapper-reversed {
        flex-direction: column;
    }
    .quote-form-simple {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   SERVICES PAGE - MAP SECTION
   ============================================= */

.map-section {
    width: 100%;
    line-height: 0; /* Remove whitespace gap below the map */
    margin-top: 40px;
    border-top: 5px solid #ed1c24; /* Red top border accent above the map */
}

.map-container iframe {
    width: 100%;
    filter: grayscale(20%); /* Slight greyscale for visual polish */
    transition: 0.3s;
}

.map-container iframe:hover {
    filter: grayscale(0%); /* Full color restored on hover */
}


/* WHY CHOOSE US - Main Box */
.why-choose-us-box {
    background-color: #1a237e; /* Dark navy blue */
    border-radius: 20px;
    padding: 60px 40px;
    color: white;
    margin: 20px 0;
}

.why-choose-us-box h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* 2-column grid layout */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 30px;
}

.choose-card {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05); /* Subtle semi-transparent card background */
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.choose-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.icon-circle {
    background: white;
    color: #1a237e;
    min-width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.choose-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #fff;
}

.choose-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* MOBILE RESPONSIVE: stack why-choose-grid to 1 column */
@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

/* CONTACT SECTION (MAP + FORM) */
.contact-container {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: -50px; /* Overlaps slightly above the Why Choose Us section */
    position: relative;
    z-index: 10;
}

.contact-map {
    flex: 1;
    min-width: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 15px;
    border: none;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.contact-form-wrapper h2 {
    color: #1a237e;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-form-wrapper p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* Split form into two columns */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px; /* Gap between form inputs */
}

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

.full-width {
    grid-column: span 2;
}

#aboutStatusMessage {
    grid-column: span 2;
    margin-top: 10px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-family: inherit;
}

.submit-btn {
    background: #ed1c24;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #1a237e;
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .contact-container {
        flex-direction: column;
        margin-top: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
}

/* GALLERY PAGE STYLING */
.gallery-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #050a24; /* Dark navy blue matching footer */
    text-transform: uppercase;
    margin-bottom: 15px;
}

.gallery-header .underline {
    width: 80px;
    height: 4px;
    background: #ed1c24; /* Red accent underline */
    margin: 0 auto;
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 36, 0.7); /* Dark navy overlay with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 30px;
}

#backToTop {
    display: none; 
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    
    /* Core sizing properties for round button */
    width: 50px;           /* Width */
    height: 50px;          /* Height */
    border-radius: 50%;    /* Makes the button perfectly circular */
    
    border: none;
    outline: none;
    background-color: #e62117; 
    color: white;
    cursor: pointer;
    font-size: 18px;
    
    /* Center the chevron icon inside the button */
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 90px; /* Positioned above the back-to-top button */
    right: 20px;
    background-color: #25d366; /* WhatsApp brand green color */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Tooltip shown on hover */
.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    right: 125%; 
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Pulse ring animation for WhatsApp button */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =================================================================
   RESPONSIVE BREAKPOINTS — INDEX PAGE
   All breakpoints are additive (mobile-first cascade).
   Breakpoints used:
     1200px  Large tablets / small laptops
      992px  Tablets landscape  (hamburger nav activates here)
      768px  Tablets portrait
      600px  Large phones
      480px  Small phones
   ================================================================= */

/* -----------------------------------------------------------------
   1200px — Large tablets / small laptops
   ----------------------------------------------------------------- */
@media (max-width: 1200px) {

    /* Slider: slightly narrower */
    .slider-container { width: 90%; }

    /* Service cards: drop from 3 to 2 columns */
    .service-grid-container {
        width: 85%;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Why-choose grid: tighter width */
    .grid-container { width: 80%; }

    /* Quote section: wider */
    .final-quote-container { width: 90%; }
}

/* -----------------------------------------------------------------
   768px — Tablets portrait
   ----------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Navbar */
    .navbar { width: 92%; }

    /* Slider */
    .slider-container { width: 92%; height: 52vh; border-radius: 15px; }
    .content h1  { font-size: 26px; }
    .content p   { font-size: 13px; max-width: 90%; }
    .content .line { width: 200px; }

    /* Section titles */
    .section-title h2 { font-size: 22px; }

    /* Quality items — 2 per row on tablets */
    .quality-container { width: 92%; gap: 15px; }
    .quality-item { min-width: 42%; max-width: 48%; }
    .arch-box { height: 240px; border-radius: 95px 95px 0 0; }

    /* Why Choose Us counter */
    .percent-text { font-size: 60px; }

    /* Why Choose grid — single column */
    .grid-container {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Service cards — single column */
    .service-grid-container { grid-template-columns: 1fr; width: 90%; }
    .s-card { height: 300px; }

    /* Testimonials — single column */
    .testimonials-container {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Decorative background text — smaller */
    .bg-large-text { font-size: 50px; letter-spacing: 2px; }

    /* Trust section text */
    .trust-text { font-size: 1rem; }

    /* Gallery preview */
    .gallery-wrapper { min-height: auto; padding-bottom: 20px; }
    .worker-left, .worker-right { display: none; }
    .projects-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 20px;
    }
    .project-card { width: 45%; }
    .project-img-box { width: 100%; height: 160px; }

    /* Quote form */
    .final-quote-container {
        flex-direction: column;
        padding: 25px 20px;
        width: 92%;
        border-radius: 20px;
    }
    .final-quote-image   { display: none; }
    .final-quote-form-box { padding: 10px 0; max-width: 100%; }
    .final-input-row     { flex-direction: column; gap: 0; }
    .final-quote-header h2 { font-size: 24px; }
}

/* -----------------------------------------------------------------
   600px — Large phones
   ----------------------------------------------------------------- */
@media (max-width: 600px) {

    /* Slider */
    .slider-container { height: 48vh; border-radius: 12px; }
    .content { margin-left: 5%; }
    .content h1 { font-size: 20px; }
    .arrow { width: 36px; height: 36px; }
    .left  { left: 12px; }
    .right { right: 12px; }

    /* Quality — single column */
    .quality-container { flex-direction: column; align-items: center; }
    .quality-item { min-width: 80%; max-width: 90%; }
    .arch-box { height: 260px; }

    /* Section title */
    .section-title h2 { font-size: 20px; }

    /* Why Choose counter */
    .percent-text { font-size: 52px; }

    /* Projects full width */
    .project-card { width: 90%; }
    .project-img-box { height: 180px; }

    /* Trust section */
    .bg-large-text { font-size: 36px; }
}

/* -----------------------------------------------------------------
   480px — Small phones (extends the existing 480px block above)
   ----------------------------------------------------------------- */
@media (max-width: 480px) {

    /* Navbar */
    .navbar { width: 94%; padding: 10px 0; }
    .logo img { height: 40px; }

    /* Slider */
    .slider-container { width: 96%; height: 44vh; margin: 10px auto; }
    .content h1  { font-size: 17px; line-height: 1.25; }
    .content p   { font-size: 12px; }
    .content .line { width: 160px; }

    /* Section title */
    .section-title h2 { font-size: 18px; }

    /* Quality — tighter */
    .quality-item { min-width: 90%; max-width: 100%; }
    .arch-box { height: 220px; }

    /* Service cards */
    .s-card { height: 260px; border-radius: 18px; }
    .s-label { font-size: 15px; min-height: 60px; }

    /* Projects */
    .project-card { width: 100%; }
    .project-img-box { width: 100%; height: 160px; }

    /* Quote form */
    .final-quote-container { width: 96%; padding: 20px 14px; border-radius: 16px; }
    .final-quote-header h2 { font-size: 20px; }

    /* Footer */
    .footer-overlay-bg { padding: 40px 6%; }
    .footer-slogan { font-size: 20px; }
    .footer-logo   { width: 150px; }
    .footer-right-group { flex-direction: column; align-items: center; gap: 20px; }
    .footer-col { text-align: center; }
    .footer-social-icons { justify-content: center; }
    .footer-copyright-bar p { font-size: 11px; padding: 0 12px; }

    /* Back-to-top button */
    #backToTop { width: 42px; height: 42px; font-size: 16px; }

    /* WhatsApp button */
    .whatsapp-float { width: 50px; height: 50px; font-size: 28px; bottom: 80px; }

    /* Trust section */
    .bg-large-text { font-size: 28px; }
    .trust-text { font-size: 0.9rem; }
}

/* -----------------------------------------------------------------
   Global safety rules — prevent overflow on any screen
   ----------------------------------------------------------------- */
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
