html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0f1110;
    --text-color: #f0f4f0;
    --accent-green: #597a52; /* Olive-ish green from logo */
    --accent-glow: #8bc34a; /* Brighter green for glows */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
}

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

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

/* Custom Cursor Glow */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s;
}

/* Subtle Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.04;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(15, 17, 16, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.logo-container .logo {
    height: 50px;
    border-radius: 8px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-glow);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), #385031);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(89, 122, 82, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
    background: linear-gradient(135deg, #6c8c62, var(--accent-green));
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    height: 200vh;
    position: relative;
    z-index: 1;
}

.hero-sticky-container {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 10;
    padding-top: 80px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.2s;
}

.hero-title .highlight {
    background: linear-gradient(to right, var(--accent-glow), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #a0aab0;
    max-width: 500px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.4s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.6s;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: var(--accent-green);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.glow-orb.secondary {
    top: 60%;
    left: -10%;
    background: var(--accent-glow);
    width: 300px;
    height: 300px;
    opacity: 0.2;
    animation: float 12s infinite ease-in-out reverse;
}

/* Services */
.services {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
    background: var(--bg-color);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.8);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
}

.services-grid.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 30px;
}

.service-card.wide {
    grid-column: span 2;
}

.service-card.tall {
    grid-row: span 2;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(139, 195, 74, 0.06), transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 195, 74, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-glow);
}

.card-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent-glow);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #a0aab0;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #0a0b0a;
    padding: 60px 5% 20px;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    min-width: 250px;
}

.footer-col.brand-col {
    flex: 0 1 auto;
    max-width: 450px;
    margin-right: auto;
}

.footer-col.contact-col, .footer-col.social-col {
    flex: 0 1 auto;
}

.footer-logo {
    height: 60px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-glow);
}

.footer-col.brand-col p {
    margin-top: 15px;
    color: #a0aab0;
}

.contact-list {
    list-style: none;
    margin-top: 15px;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
}

.contact-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-list a:hover {
    color: var(--accent-glow);
}

.contact-list .icon {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-color);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.social-icon:hover {
    background: var(--accent-green);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* New Header Text Logo */
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Large Hero Logo */
.hero-logo-large {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    z-index: 5;
    animation: float 8s infinite ease-in-out;
    filter: drop-shadow(0 0 30px rgba(139, 195, 74, 0.2));
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 68%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 68%);
}

/* References Section */
.references {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
    background: var(--bg-color);
}

.reference-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: var(--accent-glow);
}

.references-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Before/After Slider */
.comparison-slider, .comparison-column {
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.img-before-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Changed by JS */
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid white;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 5;
    cursor: ew-resize;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%; /* Changed by JS */
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    pointer-events: none;
    z-index: 4;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Carousel */
.carousel-column {
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: #0a0b0a;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.3s;
}

.carousel-btn:hover {
    background: var(--accent-green);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Responsive */
@media (max-width: 900px) {
    /* Hero Mobile Adjustments */
    .hero { height: 200vh; }
    .hero-sticky-container {
        height: 100vh;
        position: sticky;
        top: 0;
        flex-direction: column;
        justify-content: center;
        padding-top: 80px;
        padding-bottom: 20px;
    }
    .hero-visual {
        position: relative;
        opacity: 1;
        width: 100%;
        max-width: 250px;
        height: 250px;
        order: -1;
        margin-bottom: 10px;
        right: 0;
    }
    .hero-logo-large {
        max-width: 100%;
        max-height: 100%;
    }
    .hero-content {
        text-align: center;
        width: 100%;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 20px; }
    .hero-buttons { 
        flex-direction: column; 
        align-items: center;
        gap: 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 11, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 100;
    }
    
    nav.mobile-active {
        right: 0;
    }
    
    nav a {
        font-size: 1.5rem;
    }
    
    .services-grid.bento { grid-template-columns: repeat(2, 1fr); }
    .references-showcase { grid-template-columns: 1fr; }
    .slider-container, .carousel-container { height: 350px; }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-col.brand-col {
        margin-right: 0;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .services-grid.bento { grid-template-columns: 1fr; }
    .service-card.wide { grid-column: span 1; }
    .service-card.tall { grid-row: span 1; }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 195, 74, 0.2);
    border-top: 3px solid var(--accent-glow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(139, 195, 74, 0.5);
}

.loader-content p {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
