:root {
    --primary: #FFD700; /* Vibrant Yellow */
    --primary-dark: #ccac00;
    --secondary: #1A1A1A; /* Deep Black */
    --light: #FFFFFF;
    --text: #333333;
    --gray: #f4f4f4;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header & Nav */
header {
    background: var(--secondary);
    color: var(--light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
    margin-left: 2px;
}

.nav-links {
    display: none; /* Mobile first */
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--secondary);
    padding: 6rem 5%;
    z-index: 999;
    align-items: center;
    gap: 2rem;
}

.nav-links.active li a {
    font-size: 1.5rem;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light);
    transition: var(--transition);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--secondary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 4px;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 5000;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

/* Sections */
section {
    scroll-margin-top: 80px; /* Adjust based on header height */
}

/* Hero Section */
.hero {
    height: 95vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-align: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Gallery Overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay span {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 4000; /* Higher than header and modals */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 3px solid var(--primary);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox .prev, .lightbox .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: var(--primary);
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border: none;
    background: transparent;
    user-select: none;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

.lightbox .prev:hover, .lightbox .next:hover {
    color: var(--light);
}

/* Modals for Compliance */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--light);
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-top: 5px solid var(--primary);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary);
}

.modal-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: var(--secondary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 5000;
    transition: var(--transition);
}

.whatsapp-widget:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--secondary);
    color: var(--primary);
}

/* Footer Compliance */
footer small {
    display: block;
    margin-top: 1rem;
    opacity: 0.7;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background-color: var(--light);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* Services */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--gray);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
    background: var(--light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card .icon-fa {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    background: var(--primary);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.service-card:hover .icon-fa {
    background: var(--secondary);
    color: var(--primary);
}


.service-card h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Features Section */
.features-flex {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.features-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 3px solid transparent;
}

.features-image img:hover {
    box-shadow: 0 0 25px var(--primary);
    border-color: var(--primary);
    transform: scale(1.02);
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.features-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.features-list i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.features-list strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary);
}

.features-list p {
    font-size: 0.95rem;
    color: var(--text);
}

@media (min-width: 768px) {
    .features-flex {
        flex-direction: row;
    }
    
    .features-image, .features-content {
        flex: 1;
    }
}

/* About Section */
.about {
    background-image: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('images/project3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light);
    padding: 6rem 0;
}

.about-flex {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
}

.stat .label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form button {
    border: none;
}

.contact-info .info-item {
    margin-bottom: 1.5rem;
}

.contact-info strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.2rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--light);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 700;
}

.developer-credit {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.developer-credit a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.developer-credit a:hover {
    text-decoration: underline;
}

/* Animations Fallback */
.fade-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Only hide if JS is working */
body.js-enabled .fade-up {
    opacity: 0;
    transform: translateY(30px);
}

body.js-enabled .fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Media Queries */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        list-style: none;
        gap: 2rem;
    }

    .nav-links a {
        color: var(--light);
        text-decoration: none;
        font-weight: 700;
        transition: var(--transition);
        position: relative;
        padding: 0.5rem 0;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary);
        transition: var(--transition);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }

    .nav-links a.active {
        color: var(--primary);
    }

    .mobile-menu-toggle {
        display: none;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 2fr 1fr;
    }

    .about-flex {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
