:root {
    /* Color Palette */
    --bg-dark: #0f1112;
    --bg-smokey: #15181a;
    --bg-smokey-light: #1c2023;
    --accent-green: #7aba41;
    /* The vibrant green from the graphics */
    --accent-green-glow: rgba(122, 186, 65, 0.4);
    --text-main: #f0f4f8;
    --text-muted: #8c97a1;
    --glass-bg: rgba(15, 17, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    image-rendering: high-quality;
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-header.scrolled {
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    position: relative;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    position: absolute;
    right: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    color: var(--text-main);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--accent-green);
    transform: scale(1.2);
}

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

.nav-links>a:not(.maps-link) {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links>a:not(.maps-link)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background-color: var(--accent-green);
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

.nav-links>a:not(.maps-link):hover {
    color: var(--accent-green);
}

.nav-links>a:not(.maps-link):hover::after {
    width: 100%;
    box-shadow: 0 0 10px var(--accent-green-glow);
}

/* Google Maps Button */
.maps-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: rgba(122, 186, 65, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 30px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.maps-link:hover {
    background: var(--accent-green);
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--accent-green-glow);
    transform: translateY(-2px);
}

/* Parallax Settings */
.parallax-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: inset(0);
    /* Fixes some scrolling artifacts */
}

.parallax-bg {
    position: fixed;
    /* Using fixed for true deep parallax */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    image-rendering: high-quality;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 17, 18, 0.3) 0%,
            rgba(15, 17, 18, 0.6) 60%,
            rgba(15, 17, 18, 0.9) 100%);
    /* Smokey fade to dark */
}

#hero {
    align-items: flex-start;
    padding-top: 28vh;
    /* Positions the logo in the top 1/3 */
}

#hero-bg {
    background-image: url('naples_landscape.png');
}

#gallery-bg {
    background-image: url('naples_landscape_sunset.png');
    /* Use a different overlay for gallery to break it up */
    z-index: -2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-logo {
    max-width: 1066px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.9));
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    margin: 15px auto 0;
    position: relative;
    opacity: 0.8;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 2px;
    animation: scroll 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
    box-shadow: 0 0 10px var(--accent-green-glow);
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
}

/* Content Sections */
.content-section {
    padding: 120px 20px;
    background: var(--bg-smokey);
    position: relative;
    z-index: 20;
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.8);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #7aba41 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    letter-spacing: 1px;
}

.text-light {
    background: linear-gradient(135deg, #ffffff 0%, #a0aab2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-smokey-light);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(122, 186, 65, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: rgba(122, 186, 65, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    color: var(--accent-green);
    background: rgba(122, 186, 65, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-shadow: 0 0 25px rgba(122, 186, 65, 0.1);
}

.service-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Gallery Section */
.gallery {
    /* Using parallax fixed BG from earlier */
    padding: 120px 20px;
    background: transparent;
}

.overlay-content {
    background: rgba(15, 17, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 17, 18, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Contact */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--bg-smokey-light);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(122, 186, 65, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.contact-form textarea {
    height: 160px;
    resize: vertical;
}

.contact-submit {
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--accent-green) 0%, #5d9132 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1rem;
    box-shadow: 0 10px 20px rgba(122, 186, 65, 0.3);
}

.contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(122, 186, 65, 0.5);
}

/* Footer & Brands */
.trusted-footer {
    background: #0a0b0c;
    padding: 4rem 20px 2rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.brands-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brands-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.brands-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* gradient masks for smooth fade on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brands-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: scroll-brands 30s linear infinite;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.4s ease, text-shadow 0.4s ease;
    cursor: pointer;
    text-decoration: none;
}

.brand-text:hover {
    color: var(--accent-green);
    text-shadow: 0 0 15px var(--accent-green-glow);
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 2.5rem));
    }
}

.footer-bottom {
    font-size: 0.9rem;
}

/* Reviews Ticker */
.reviews-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-reviews 30s linear infinite;
    padding: 0 1rem;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-reviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

.review-card {
    background: var(--bg-smokey-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    width: 320px;
    flex-shrink: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(122, 186, 65, 0.1);
    border-color: rgba(122, 186, 65, 0.3);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.1rem;
}

.reviewer-name {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
}

.review-stars {
    color: #fbbc05;
    letter-spacing: 1px;
    font-size: 1.4rem;
    margin-bottom: 12px;
    margin-top: 4px;
}

.review-text {
    color: #d1d5da;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #8c97a1;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Form Popup */
.form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 17, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.form-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: var(--bg-smokey-light);
    border: 1px solid var(--accent-green);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(122, 186, 65, 0.2);
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-popup.show .popup-content {
    transform: translateY(0) scale(1);
}

.popup-content svg {
    margin-bottom: 1.5rem;
}

.popup-content p {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* Responsive */
/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Above nav drawer */
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        justify-content: space-between;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(21, 24, 26, 0.98);
        backdrop-filter: blur(15px);
        padding-top: 100px;
        transition: right 0.4s ease;
        z-index: 1000;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links.active {
        right: 0;
    }
    
    .social-links {
        position: static;
        margin: 1rem auto 0;
        justify-content: center;
    }
    
    /* Toggle Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Section adjustments */
    .content-section {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding-top: 15vh;
    }
    
    .hero-logo {
        max-width: 90%;
    }
    
    .overlay-content {
        padding: 2rem;
    }

    .review-card {
        width: 280px;
        padding: 20px;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    #main-header {
        padding: 15px 0;
    }

    nav {
        padding: 0 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-overlay {
        opacity: 1;
        padding: 1.5rem;
    }

    .gallery-overlay span {
        transform: translateY(0);
        font-size: 1.1rem;
    }

    .brands-track {
        gap: 2.5rem;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .scroll-indicator {
        bottom: 20px;
        transform: translateX(-50%) scale(0.8);
        transform-origin: bottom center;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
        padding: 15px;
        margin-bottom: 1.5rem;
    }

    .nav-links > a {
        padding: 10px 0;
        width: 100%;
        display: block;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 17, 18, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(122, 186, 65, 0.2);
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--accent-green);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
    user-select: none;
}

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

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 25px;
    border-radius: 30px;
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    z-index: 10002;
    backdrop-filter: blur(5px);
    margin-top: 0;
}

@media (max-width: 1000px) {
    .lightbox-prev { left: 5px; font-size: 2.5rem; }
    .lightbox-next { right: 5px; font-size: 2.5rem; }
    .lightbox-close { top: 15px; right: 20px; font-size: 2.5rem; }
    #lightbox-img { max-height: 70vh; }
    .lightbox-caption { font-size: 1rem; }
}