:root {
    --primary: #2e7d32;
    /* Richer green for light mode */
    --primary-dark: #1b5e20;
    --accent: #f57c00;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s 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;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.top-bar {
    background-color: var(--text-main);
    color: var(--white);
    font-size: 0.75rem;
    padding: 8px 0;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.indicators-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.indicator-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.indicator-item span {
    color: var(--primary);
    margin-left: 5px;
}

/* Mobile Marquee Effect */
@media (max-width: 768px) {
    .indicators-container {
        justify-content: flex-start;
        display: inline-flex;
        animation: marquee 20s linear infinite;
        padding-left: 100%;
        gap: 60px;
    }

    @keyframes marquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-100%);
        }
    }
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.bolt {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    /* Cinematic filter */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    /* Darker overlay for video contrast */
}

.hero-content {
    position: relative;
    max-width: 800px;
    color: var(--white);
    /* Ensure text is white on dark overlay */
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--white);
}

.highlight {
    background: linear-gradient(to right, var(--primary), #8bc34a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    background: var(--bg-surface);
    color: var(--text-main);
    /* Fix: Text was white on white background */
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-surface);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Prices */
.price-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 30px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Prices Controls */
.price-controls {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    padding: 6px 16px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Prices */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.price-category {
    background-color: var(--bg-surface);
    border-radius: 15px;
    overflow: hidden;
    height: fit-content;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.price-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.category-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.price-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.material-name {
    font-weight: 500;
}

.material-price {
    font-weight: 700;
    color: var(--primary);
}

/* Calculator Section */
.calculator-section {
    background-color: var(--bg-main);
}

.calculator-wrapper {
    background-color: var(--bg-surface);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}

.calc-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group select,
.input-group input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-main);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.input-group select:focus,
.input-group input:focus {
    border-color: var(--primary);
}

.calc-table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.calc-table-container th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calc-table-container td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.calc-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
}

.calc-actions {
    display: flex;
    justify-content: flex-end;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.remove-item:hover {
    transform: scale(1.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-surface);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-main);
    color: var(--text-main);
}

.w-full {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .calc-inputs {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--bg-surface);
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-items {
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
}

.contact-item h4 {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    background-color: #1E293B;
    /* New slate dark blue */
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.developer-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.developer-credit span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.developer-credit span a {
    color: var(--white);
    text-decoration: none;
    text-transform: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.developer-credit img {
    height: 45px;
    /* Bigger logo */
    width: auto;
    filter: none;
    /* No filters to avoid invisibility */
    opacity: 1;
    transition: var(--transition);
}

.developer-credit a:hover img {
    transform: scale(1.1);
}

.social-links {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
}

.social-links a:hover {
    color: var(--white);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    nav {
        gap: 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.nav-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100px;
        /* Adjusted for top-bar height */
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        padding: 40px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        animation: slideDown 0.3s ease-out;
        z-index: 999;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    .nav-cta {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        /* Stronger shadow for contrast */
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        padding: 0 10px;
        color: var(--white) !important;
        /* Force white text */
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    .hero-features {
        gap: 10px;
    }

    .feature-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        /* Ensure it overrides global display:none */
        background-color: var(--primary);
        /* Vibrant green background */
        padding: 10px;
        border-radius: 8px;
        border: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        background-color: var(--white);
        /* White bars on green background */
        width: 25px;
        height: 3px;
        /* Slightly thicker */
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-calc-link {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.nav-calc-link i {
    margin-right: 5px;
}

.section-header h2 i {
    margin-right: 15px;
    color: var(--primary);
}

/* Global Toggle (Hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.mobile-menu-toggle span.active:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle span.active:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle span.active:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Floating WhatsApp */
.whatsapp-float-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
    align-items: flex-end;
}

.whatsapp-float-container.active .whatsapp-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.whatsapp-contact-link {
    background-color: var(--white);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.whatsapp-contact-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateX(-5px);
}

.whatsapp-contact-link i {
    color: #25d366;
    font-size: 1.2rem;
}

.whatsapp-contact-link:hover i {
    color: var(--white);
}

@keyframes pulse-whatsapp {
    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);
    }
}

.whatsapp-float-container:not(.active) .whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

@media (max-width: 768px) {
    .whatsapp-float-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}