/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FFD700; /* Construction Yellow */
    --dark: #1a1a1a;
    --grey: #555;
    --light: #f8f9fa;
    --white: #ffffff;
    --accent: #2c3e50; /* A strong slate blue for trust */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { line-height: 1.6; color: var(--dark); background-color: var(--white); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utility Classes */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 30px; background: var(--primary); color: var(--dark); font-weight: 700; border-radius: 4px; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s; }
.btn:hover { background: #e5c100; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* Section Titles */
.section-title { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--dark); font-weight: 700; }
.section-title span { color: var(--primary); }
.section-title p { color: var(--grey); font-size: 1.1rem; }

/* Header */
header { background: var(--dark); color: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo> a> img{ max-width: 100%;
    display: block;
    filter: invert(1);
    width: 4rem;
}
.logo> a { display: flex;
    align-items: center;
    gap: 0.5rem; 
}
.logo h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links li a { font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links li a:after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary); transition: 0.3s; }
.nav-links li a:hover:after { width: 100%; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero { height: 85vh; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); transition: background-image 1s ease-in-out; }
.hero::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)); }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 20px; animation: fadeInUp 1s ease; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; font-weight: 800; }
.hero-content p { font-size: 1.3rem; margin-bottom: 30px; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Stats Bar */
.stats-section { background: var(--primary); color: var(--dark); padding: 40px 0; margin-top: -50px; position: relative; z-index: 10; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 90%; margin-left: auto; margin-right: auto; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.stat-item h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 5px; }
.stat-item p { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }

/* Cards & Grids */
.services-grid, .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 40px 30px; text-align: center; border: 1px solid #eee; transition: 0.3s; border-radius: 8px; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: var(--primary); }
.service-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* Process Section */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; position: relative; }
.process-card { text-align: center; padding: 20px; position: relative; }
.process-number { width: 50px; height: 50px; background: var(--dark); color: var(--primary); border-radius: 50%; font-size: 1.5rem; font-weight: bold; line-height: 50px; margin: 0 auto 20px; position: relative; z-index: 2; }
.process-card h3 { margin-bottom: 10px; font-weight: 700; }
.process-card p { font-size: 0.9rem; color: var(--grey); }

/* Why Choose/Trust Section */
.trust-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 50px; }
.trust-image { flex: 1; min-width: 300px; }
.trust-image img { border-radius: 8px; box-shadow: 20px 20px 0px var(--primary); }
.trust-content { flex: 1; min-width: 300px; }
.trust-item { display: flex; gap: 20px; margin-bottom: 30px; }
.trust-icon { font-size: 1.5rem; color: var(--primary); background: var(--dark); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 5px; flex-shrink: 0; }

/* Testimonials */
.testimonial-card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; border-bottom: 4px solid var(--primary); }
.client-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 3px solid var(--primary); background: #eee; }
.stars { color: #f39c12; margin-bottom: 15px; }
.quote { font-style: italic; color: #555; margin-bottom: 20px; display: block; }
.client-name { font-weight: 700; color: var(--dark); }
.client-loc { font-size: 0.85rem; color: #777; }

/* Footer */
footer { background: var(--dark); color: #aaa; padding: 60px 0 20px; font-size: 0.9rem; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-widget h3 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-widget ul li { margin-bottom: 12px; }
.footer-widget ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom{text-align: center;}

/* Mobile */
@media(max-width: 960px) {
    .nav-links { display: none; flex-direction: column; background: var(--dark); position: absolute; top: 60px; left: 0; width: 100%; padding: 20px; text-align: center;}
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
}
@media(max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .trust-wrapper { flex-direction: column; }
    .stats-section { width: 100%; margin-top: 0; border-radius: 0; }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Shared CSS from previous response (Modal, Toast) keep same */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); overflow: auto; }
.modal-content { background-color: #fff; margin: 10% auto; padding: 30px; border: 1px solid #888; min-width: 60%; max-width: 500px; position: relative; border-radius: 8px; animation: slideDown 0.4s; }
.close { position: absolute; right: 20px; top: 15px; font-size: 28px; font-weight: bold; cursor: pointer; color: #aaa; }
.close:hover { color: #000; }
@keyframes slideDown { from {top: -50px; opacity: 0;} to {top: 10%; opacity: 1;} }
#toast { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 4px; padding: 16px; position: fixed; z-index: 3000; left: 50%; bottom: 30px; transform: translateX(-50%); }
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }


/* About Preview */
.about-preview { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text ul { margin-top: 20px; }
.about-text li { margin-bottom: 10px; font-weight: 600; }

/* Projects */
.project-card { background: var(--white); border: 1px solid #eee; overflow: hidden; }
.project-info { padding: 20px; }
.project-info h3 { margin-bottom: 10px; }
.project-badge { background: var(--dark); color: var(--white); padding: 4px 10px; font-size: 0.8rem; border-radius: 3px; }

/* Contact Form */
.contact-wrapper { display: flex; gap: 50px; }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 25px; align-items: center; }
.contact-icon { width: 50px; height: 50px; background: var(--primary); color: var(--dark); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2rem; }
form input, form textarea, form select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
form textarea { height: 120px; resize: vertical; }

/* Toast */
#toast { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 4px; padding: 16px; position: fixed; z-index: 3000; left: 50%; bottom: 30px; transform: translateX(-50%); }
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* --- Portfolio Slider CSS --- */
.portfolio-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.portfolio-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none; /* Firefox */
}

.portfolio-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.portfolio-item {
    flex: 0 0 350px; /* Width of each slide */
    height: 250px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Text Overlay on Image */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 20px;
    opacity: 1; /* Always visible for better UX, or change to 0 for hover only */
    transition: 0.3s;
}

.portfolio-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: var(--primary); /* Uses your yellow color */
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* Mobile Adjustments */
@media(max-width: 768px) {
    .portfolio-item {
        flex: 0 0 280px; /* Smaller cards on mobile */
        height: 200px;
    }
    .prev-btn, .next-btn {
        display: none; /* Hide buttons on mobile, swipe is better */
    }
}