@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Green & White */
    --primary: #1b4332;
    --primary-alt: #2d6a4f;
    --primary-light: #40916c;
    --accent: #95d5b2;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #081c15;
    
    /* Spacing */
    --section-padding: 160px 0;
    --container-width: 1100px;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 15px 40px rgba(0,0,0,0.06);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background: var(--bg-white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .nav-logo {
    height: 45px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

/* On transparent header, nav links might need white or primary depending on BG */
/* For now, let's keep them primary for visibility unless on dark hero */

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.nav-links li a.btn-primary {
    color: var(--text-light);
}

header.scrolled .nav-links li a {
    color: var(--text-main);
}

header.scrolled .nav-links li a.btn-primary {
    color: var(--text-light);
}

.nav-links li a:hover {
    color: var(--primary-light);
}

/* --- Sections --- */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 90px;
}

.section-title h2 {
    font-size: 38px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    color: var(--text-muted);
    font-size: 19px;
    max-width: 650px;
    margin: 0 auto;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4)), url('construction_hero_bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-text-box h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-text-box p {
    font-size: 21px;
    color: var(--text-main);
    margin-bottom: 45px;
    max-width: 650px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

.about-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    border-left: 3px solid var(--primary-light);
    padding-left: 15px;
}

.stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.stat-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- Services --- */
.services-section {
    background-color: #f9fafb;
}

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

.service-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background: var(--primary);
    color: white;
    transform: rotate(-5deg);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--primary-light);
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.service-card:hover .service-link::after {
    width: 100%;
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.project-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
}

.project-img {
    background-color: #eee;
    background-image: linear-gradient(45deg, #f1f1f1 25%, transparent 25%, transparent 75%, #f1f1f1 75%, #f1f1f1), 
                    linear-gradient(45deg, #f1f1f1 25%, transparent 25%, transparent 75%, #f1f1f1 75%, #f1f1f1);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.project-info {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.project-info p {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 14px;
}

/* --- Why Us --- */
.why-section {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 160px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-item {
    text-align: center;
    padding: 45px 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.why-icon {
    font-size: 24px;
    width: 64px;
    height: 64px;
    background: var(--bg-white);
    color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.why-item h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.why-item p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* --- Process --- */
.process-section {
    background-color: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    position: relative;
}

/* Horizontal line between steps on desktop */
@media (min-width: 992px) {
    .process-steps::after {
        content: '';
        position: absolute;
        top: 45px;
        left: 10%;
        width: 80%;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--primary-light), transparent);
        z-index: 0;
    }
}

.step {
    text-align: center;
    position: relative;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    z-index: 1;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.step-num {
    font-size: 72px;
    font-weight: 900;
    color: rgba(27, 67, 50, 0.05); /* very light version of primary */
    margin-bottom: -30px;
    position: relative;
    display: block;
    line-height: 1;
}

.step h4 {
    position: relative;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary);
}

.step p {
    color: var(--text-muted);
    font-size: 15px;
}

/* --- CTA Section --- */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 80px 60px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.2);
}

.cta-content h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
}

.btn-cta {
    background: white;
    color: var(--primary);
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
}

.btn-cta:hover {
    background: var(--bg-light);
    transform: scale(1.05);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.info-icon-box {
    width: 54px;
    height: 54px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
}

.info-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-muted);
}

.map-placeholder {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    border: 1px solid #f0f0f0;
}

.map-visual {
    width: 100%;
    height: 100%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    font-size: 14px;
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Form Styling */
.contact-form-panel {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fdfdfd;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.1);
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 18px;
    font-weight: 700;
    border-radius: 8px;
}

.btn-submit:hover {
    background: var(--primary-alt);
    box-shadow: 0 10px 20px rgba(27, 67, 50, 0.2);
}

@media (max-width: 992px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    padding: 120px 0 60px;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
}

.footer-brand p {
    margin-top: 20px;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-links h4, .footer-social h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Enhanced Animations --- */

/* Base init state — hide all revealers */
.anim-init {
    opacity: 0;
    will-change: transform, opacity;
}

/* Direction variants */
.anim-fade-up    { transform: translateY(60px); }
.anim-fade-left  { transform: translateX(-70px); }
.anim-fade-right { transform: translateX(70px); }
.anim-scale-up   { transform: scale(0.88); }
.anim-slide-right{ transform: translateX(-50px) skewX(-3deg); }

/* Active (visible) state */
.anim-active {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) skewX(0deg) !important;
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Legacy revealer fallback */
.revealer {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.revealer.active {
    opacity: 1;
    transform: translateY(0);
}

/* Active nav link */
.nav-links a.nav-active {
    color: var(--primary);
    font-weight: 700;
}

/* Service card tilt */
.service-card {
    transform-style: preserve-3d;
    will-change: transform;
}

