/********** Variables & Critical Fixes **********/
:root {
    --primary: #84bd00;
    --secondary: #44693d;
    --dark: #2d2a26;
    --light: #f2f5f7;
    --white: #ffffff;
    --accent: #0067b9;
}

/* FIX: Passive Event Violations at the CSS level */
* {
    touch-action: manipulation;
    box-sizing: border-box;
}
.owl-carousel, .project-carousel, .testimonial-carousel, .media-grid {
    touch-action: pan-y; /* Allows vertical scroll without waiting for JS */
}

/* CRITICAL PERFORMANCE & PASSIVE FIXES */
* { touch-action: manipulation; }
.owl-carousel, .media-grid, .project-carousel, .product-card { touch-action: pan-y; }

/* Video Aspect Ratio Fix */
.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-overlay { z-index: 2; position: relative; background: rgba(0,0,0,0.35); }

/* Layout Improvements */
.circ { width: 100px; height: 100px; object-fit: contain; border-radius: 50%;border: 1px solid var(--primary);}
.badge-custom { background-color: var(--accent); border-radius: 15px; padding: 2rem; color: white; }
.no-icon li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }


/********** Global Styles **********/
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
}

h2 { text-transform: uppercase; }

a {
    color: var(--primary);
    font-weight: bold;
    transition: 0.3s;
}

a:hover { color: var(--primary);}

.mini-caps {
    text-transform: uppercase;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/********** Navigation **********/
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-logo img {
    height: 6rem;
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
}
.nav-links a:hover { color: var(--primary);}

/* Hamburger UI */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}
#nav-toggle{visibility: hidden;}
/********** HERO Section **********/
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--dark);
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4); /* Darkens video for readability */
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay h1 {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Responsive font size */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/********** Component Styles **********/
.product-card {
    border: none;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-card:hover { transform: translateY(-5px); }

.product-card img {
    width: 100%;
    margin-bottom: 1.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.media-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
}

/* Badge & Icon Layouts */
.badge {
    background-color: var(--accent) !important;
    padding: 1.5rem;
    border-radius: 10px;
}

.bigF { font-size: 4rem; line-height: 1; margin-bottom: 0.5rem; }

/*Buttons*/
.btn{background-color:var(--primary);color: var(--light);border: none;}
.btn:hover{background-color: var(--accent);}
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

footer{background-color: var(--dark);color: var(--light);}

/********** Responsive Mobile Overrides **********/
@media (max-width:600px) {.nav-logo img{max-height: 2rem;}}

@media (max-width: 992px) {
    .nav-hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        background: var(--light);
        flex-direction: column;
        padding: 0;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    #nav-toggle:checked ~ .nav-links {
        height: auto;
        padding: 2rem 0;
    }

    /* Hamburger Animation */
    #nav-toggle:checked + .nav-hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    #nav-toggle:checked + .nav-hamburger span:nth-child(2) { opacity: 0; }
    #nav-toggle:checked + .nav-hamburger span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
}

/*Modal*/
#galleryModal .modal-body {
    text-align: center;
}

#galleryModalCaption {
    margin-top: 1rem;
    font-weight: 500;
}

#galleryModal .modal-dialog {
    max-width: 700px;
}

#galleryModalImg {
    max-height: 70vh;
    object-fit: contain;
}

