:root {
            --primary: #000000;
            --accent: #c5a059; 
            --accent-dark: #a68545;
            --white: #ffffff;
            --light: #f4f7f6;
            --text: #2d2d2d;
            --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        }

        /* --- BASE STYLES --- */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; overflow-x: hidden; padding-top: 80px; }
        h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }
        ul { list-style: none; }
        a { text-decoration: none; color: inherit; }

        /* --- SOLID PROFESSIONAL HEADER --- */
        header {
            position: fixed; top: 0; width: 100%; z-index: 1000;
            padding: 12px 8%; display: flex; justify-content: space-between; align-items: center;
            background: var(--white);
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
        }
        .logo img { height: 50px; }
        
        .nav-links { display: flex; gap: 35px; }
        .nav-links a { 
            font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
            color: var(--primary); transition: var(--transition);
        }
        .nav-links a:hover { color: var(--accent); }

        .menu-btn { display: none; color: var(--primary); font-size: 1.5rem; cursor: pointer; }

        /* --- REDUCED HERO SECTION --- */
        .hero {
            height: 70vh; /* Reduced from 100vh */
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), 
                        url('../img/0009.jpeg');
            background-size: cover; background-position: center;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            color: white; text-align: center; padding: 0 5%;
        }
        .hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 20px; line-height: 1.1; }
        .hero-btns { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
        
        .btn {
            padding: 15px 30px; font-weight: 700; text-transform: uppercase; 
            letter-spacing: 1px; border: none; cursor: pointer; transition: var(--transition);
            font-size: 0.75rem;
        }
        .btn-primary { background: var(--accent); color: white; }
        .btn-primary:hover { background: var(--accent-dark); transform: translateY(-3px); }
        .btn-outline { background: transparent; color: white; border: 2px solid white; }
        .btn-outline:hover { background: white; color: var(--primary); }

        /* --- ABOUT SECTION --- */
        .about { padding: 80px 10%; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
        .about-text h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary); }
        .about-text p { font-size: 1rem; color: #555; margin-bottom: 20px; }
        .about-img img { width: 100%; border-radius: 4px; box-shadow: 15px 15px 0px 0px var(--accent); }

        /* --- SERVICES CARDS --- */
        .services { padding: 80px 10%; background: var(--light); text-align: center; }
        .section-title { margin-bottom: 50px; font-size: 2.2rem; position: relative; padding-bottom: 15px; }
        .section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background: var(--accent); }
        
        .service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
        .s-card { background: white; padding: 40px 25px; transition: var(--transition); border-bottom: 3px solid transparent; }
        .s-card:hover { transform: translateY(-8px); border-bottom-color: var(--accent); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
        .s-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }

        /* --- RECENT WORKS (4-GRID DESKTOP / 2-GRID MOBILE) --- */
        .works { padding: 80px 8%; }
        .work-grid { 
            display: grid; 
            grid-template-columns: repeat(4, 1fr); 
            gap: 20px; 
        }
        .work-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.08); transition: var(--transition); }
        .work-card:hover { transform: translateY(-8px); }
        .work-img { height: 200px; overflow: hidden; }
        .work-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
        .work-info { padding: 18px; }
        .work-info span { color: var(--accent); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; }
        .work-info h3 { margin: 8px 0; font-size: 1.1rem; }
        .work-info p { font-size: 0.8rem; color: #777; }

/* --- ACCREDITATION UI ENHANCEMENTS --- */
.accreditation {
    padding: 80px 10%;
    background: var(--white);
    text-align: center;
}

.acc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.acc-card {
    padding: 40px 20px;
    border: 1px solid #eee;
    background: var(--light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.acc-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.grade-badge {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 3px solid var(--accent);
}

.acc-card h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--primary);
}

.acc-card p {
    font-size: 0.8rem;
    color: #777;
}

/* Optional: Adding a watermark effect */
.acc-card::after {
    content: 'CIDB';
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    z-index: 0;
}

        /* --- MOBILE SIDEBAR --- */
        .sidebar {
            position: fixed; top: 0; right: -100%; width: 280px; height: 100%;
            background: var(--primary); z-index: 2000; display: flex; flex-direction: column;
            padding: 80px 40px; transition: 0.4s;
        }
        .sidebar.active { right: 0; }
        .sidebar a { color: white; font-size: 1.5rem; margin: 15px 0; }
        .close-menu { position: absolute; top: 25px; right: 25px; color: white; font-size: 2rem; cursor: pointer; }

        /* --- FOOTER --- */
        footer { background: var(--primary); color: white; padding: 60px 10% 20px; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
        .footer-logo img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 15px; }

        /* --- RESPONSIVE BREAKPOINTS --- */
        @media (max-width: 1200px) {
            .work-grid { grid-template-columns: repeat(2, 1fr); } /* 2x2 Grid */
        }

        @media (max-width: 900px) {
            .about { grid-template-columns: 1fr; text-align: center; }
            .about-img { order: -1; }
            .nav-links { display: none; }
            .menu-btn { display: block; }
            section { padding: 60px 8%; }
        }

        @media (max-width: 480px) {
            .hero h1 { font-size: 1.8rem; }
            .work-grid { grid-template-columns: 1fr; } /* 1 per row for small phones */
        }
        .site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 70px 20px 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Adjusts from 1 to 4 columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.brand-name {
    font-size: 1.6rem;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.tagline {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.6;
    max-width: 250px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    font-weight: 600;
}

/* Quick Links List Styling */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px; /* Subtle movement on hover */
}

.footer-column address {
    font-style: normal;
    color: #aaa;
    line-height: 1.8;
}

.footer-column address a {
    color: #aaa;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 18px;
}

.social-links a {
    color: #fff;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: #007bff; /* Or your brand's primary color */
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2a2a2a;
    margin-top: 60px;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #555;
}/* Boxed Back to Top - Right Side */
.back-to-top-box {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Positioned to the right */
    background-color: #ffcc00; /* High visibility construction yellow */
    color: #1a1a1a;
    width: 55px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px; /* Boxy aesthetic */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.back-to-top-box i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.top-text {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: 'Arial Black', sans-serif; /* Thick font for visibility */
}

/* Hover State */
.back-to-top-box:hover {
    background-color: #ffffff;
    color: #000;
    transform: translateY(-8px); /* Moves up more on hover */
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.4);
}

/* Footer Font & Spacing Adjustments */
.site-footer {
    background-color: #111;
    color: #eee;
    padding: 80px 10% 40px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 0.8fr;
    gap: 50px;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.construction-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact Icon Colors */
.contact-details i {
    color: #ffcc00;
    margin-right: 10px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .back-to-top-box {
        right: 15px;
        bottom: 15px;
    }
}/* --- PROJECTS PAGE SPECIFICS --- */
.project-sub-hero {
    height: 50vh; /* Shorter than home hero */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('../img/0009.jpeg');
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Ensure the grid matches your desired desktop look */
.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .work-grid { grid-template-columns: 1fr; }
    .project-sub-hero { height: 40vh; }
}
/* --- CONTACT PAGE STYLES --- */
.contact-hero {
    height: 40vh;
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-container {
    padding: 80px 8%;
    background: var(--light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
}

/* Form Styling */
.contact-form-box form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.input-group {
    display: flex;
    gap: 20px;
}

.contact-form-box input, 
.contact-form-box textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.contact-form-box input:focus, 
.contact-form-box textarea:focus {
    border-color: var(--accent);
}

/* Map Styling */
.contact-map-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    flex-grow: 1;
    min-height: 350px;
    border: 1px solid #eee;
}

.direct-contact {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.direct-contact i {
    color: var(--accent);
    margin-right: 8px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .input-group {
        flex-direction: column;
    }
}
/* --- ABOUT PAGE SPECIFICS --- */
.about-sub-hero {
    height: 45vh;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6)), 
                url('../img/0009.jpeg');
    background-position: center;
    background-size: cover;
}

.about-detail {
    padding: 100px 10%;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.sub-title {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.about-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin: 15px 0 25px;
}

.about-visual img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(20%);
}

/* Why Choose Us Grid */
.why-choose-us {
    padding: 100px 10%;
    background: var(--light);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 50px 30px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Mobile Breakpoints */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .about-content h2 { font-size: 2rem; }
}
/* --- SERVICES PAGE SPECIFICS --- */
.services-sub-hero {
    height: 45vh;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6)), 
                url('../img/0009.jpeg');
}

.services-detailed {
    padding: 100px 10%;
    background: var(--white);
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.detailed-s-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.s-icon-box {
    background: var(--light);
    color: var(--accent);
    min-width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 4px;
    transition: var(--transition);
}

.detailed-s-card:hover .s-icon-box {
    background: var(--accent);
    color: white;
}

.s-text-box h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Workflow Section */
.workflow {
    padding: 100px 10%;
    background: var(--primary);
    color: white;
    text-align: center;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    position: relative;
    padding: 20px;
}

.step-num {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(197, 160, 89, 0.2); /* Faded Accent color */
    margin-bottom: -25px;
    font-family: 'Inter', sans-serif;
}

.step h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.step p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive Mobile */
@media (max-width: 850px) {
    .services-container { grid-template-columns: 1fr; gap: 40px; }
}
/* --- CTA SECTION STYLES --- */
.services-cta {
    padding: 100px 10%;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), 
                url('../img/0009.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    text-align: center;
    color: var(--white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin: 20px 0;
    color: var(--white);
}

.cta-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

/* Hover effect for service cards icon box */
.detailed-s-card:hover .s-icon-box {
    background: var(--accent);
    color: var(--white);
    transform: rotateY(360deg);
}

/* Specific button adjustment for CTA */
.services-cta .btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

@media (max-width: 768px) {
    .cta-content h2 { font-size: 2.2rem; }
    .services-cta { padding: 80px 5%; }
}
/* Mobile Styles */
@media (max-width: 768px) {
    .about {
        display: flex;
        flex-direction: column; /* Stacks image and text vertically */
    }

    .about-text {
        text-align: left;       /* Aligns the headlines and paragraphs */
        padding: 20px;          /* Adds a bit of breathing room from the edge */
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Forces the button to the left */
    }

    .about-text h2, 
    .about-text p {
        margin-left: 0;
        margin-right: 0;
        width: 100%;            /* Ensures text uses full width */
    }

    .btn-primary {
        align-self: flex-start; /* Specifically ensures button doesn't stretch or center */
    }
}
/* Reduce spacing between Recent Works and Accreditation */
.works {
    padding-bottom: 20px !important; /* Reduces space at the bottom of Works */
    margin-bottom: 0 !important;
}

.accreditation {
    padding-top: 20px !important;    /* Reduces space at the top of Accreditation */
    margin-top: 0 !important;
}

.works .work-grid {
    margin-bottom: 0 !important;    /* Ensures the grid doesn't push the next section away */
}

/* Optional: Adjust the CIDB title if it feels too high after the shift */
.acc-header {
    margin-top: 0 !important;
}
/* --- 1. GLOBAL MOBILE ALIGNMENT & SPACING --- */
@media (max-width: 768px) {
    /* Align About section text and button to the left */
    .about {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
    }

    .about-text {
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Forces button to left */
    }

    .about-text h2, 
    .about-text p {
        margin-left: 0;
        text-align: left;
        width: 100%;
    }

    .about-text .btn {
        align-self: flex-start; /* Prevents button from stretching */
        margin-left: 0;
    }

    /* --- 2. REDUCE VERTICAL GAPS BETWEEN SECTIONS --- */
    
    /* Gap between Services and Works */
    .services {
        padding-bottom: 30px !important;
    }

    /* Gap between Works and Accreditation */
    .works {
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }

    .accreditation {
        padding-top: 20px !important;
        margin-top: 0 !important;
    }

    /* Remove excess margins on titles to pull content up */
    .section-title {
        margin-bottom: 20px !important;
    }

    .acc-header p {
        margin-bottom: 20px !important;
        margin-top: -10px !important; /* Pulls the subtitle closer to "CIDB Accredited" */
    }

    /* Adjust the Services "See More" button area */
    .services div[style*="margin-top: 50px"] {
        margin-top: 20px !important;
    }
}

/* --- 3. GENERAL CLEANUP (Desktop & Mobile) --- */
section {
    padding: 60px 10%; /* Standardizes section padding */
}