/* Base Styles and Resets */
:root {
    --primary-color: #222222;
    /* Dark charcoal */
    --secondary-color: #4a4a4a;
    /* Concrete grey */
    --accent-color: #ff8c00;
    /* Construction orange */
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --text-color: #333333;
    --transition: all 0.3s ease;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--accent-color);
    margin: 0 auto;
}

.underline-left {
    height: 4px;
    width: 60px;
    background: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: transform 0.4s ease, padding 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 8px 0;
    background-color: rgba(34, 34, 34, 0.98);
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.3s ease;
    /* Invert colors and rotate hue to turn white background dark while keeping orange and making grey text white */
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
    /* Make the now-black background transparent to blend perfectly with the dark header */
    mix-blend-mode: screen;
}

.navbar.scrolled .logo-img {
    height: 65px;
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px;
    }
    .navbar.scrolled .logo-img {
        height: 45px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-cta {
    background-color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--white) !important;
}

.nav-cta:hover {
    background-color: #e67e00;
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1001;
    padding: 60px 20px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links a {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    /* High quality construction/renovation image */
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    margin-top: 0;
    /* To account for fixed nav overlapping, but we want full screen image, so content will be centered */
}

/* Overlay handled in HTML but styled here? No, let's just make sure background handles it. 
   Actually, better to use a linear gradient on the background image directly for better CSS control 
   if we were using just color, but for image we need an overlay div. 
*/

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    max-width: 600px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General Section Styles */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-grey);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 0; /* Remove padding to let image be flush at top */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    overflow: hidden; /* Round the image corners */
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0;
}

.service-card-content {
    padding: 25px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Our Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.work-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 300px;
    border-radius: 4px;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.work-item:hover .overlay {
    opacity: 1;
}

.work-item .overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    animation: zoomIn 0.3s;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
}

.about-list i {
    color: var(--accent-color);
    margin-right: 15px;
}

.about-image img {
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent-color);
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 140, 0, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p,
.info-item a {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 3px solid var(--accent-color);
}

/* Watermark & WhatsApp */
.watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    color: var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 900;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.watermark.visible {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

.whatsapp-float.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .h1 {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        left: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}