html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    /* Premium Light Theme Colors */
    --bg-primary: #fcfcfd;
    --bg-secondary: #f4f5f8;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    
    /* Accents - Elegant Gold/Peach & Purple Gradients */
    --accent-1: #f43f5e; /* Rose */
    --accent-2: #8b5cf6; /* Purple */
    --accent-3: #fbbf24; /* Amber */
    
    --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    
    /* Setup */
    --font-main: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Premium Overlays */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 10000;
    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");
}

.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-1 {
    width: 50vw;
    height: 50vw;
    background: rgba(244, 63, 94, 0.15); /* Rose */
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 60vw;
    height: 60vw;
    background: rgba(139, 92, 246, 0.15); /* Purple */
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 40vw;
    height: 40vw;
    background: rgba(251, 191, 36, 0.15); /* Amber */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.95); }
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.pill {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

/* Glass Card Reusable */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 0);
    left: var(--mouse-x, 0);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--text-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(17, 24, 39, 0.25);
    background: #000;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: #fff;
}

.btn-telegram {
    background: #24A1DE;
    color: #fff;
    margin-top: 20px;
}

.btn-telegram:hover {
    background: #1e87bb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 161, 222, 0.3);
}

.btn-telegram svg {
    margin-right: 10px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002; /* Higher than mobile menu overlay (500) */
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 80px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Abstract Hero Visual */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    perspective: 1000px;
}

.glass-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(30px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

.mockup-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(10deg) rotateY(-5deg);
    width: 80%;
    height: 300px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* For JS parallax */
}

.mockup-header {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.skeleton-line {
    background: rgba(0,0,0,0.05);
    height: 20px;
    border-radius: 10px;
}

.skeleton-line.full { width: 100%; }
.skeleton-line.half { width: 60%; }

.skeleton-box {
    background: rgba(0,0,0,0.03);
    flex: 1;
    border-radius: 12px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* Section Shared */
.section-padding {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.service-card {
    padding: 40px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-secondary);
}

.service-card.featured-card {
    padding: 44px;
    border-radius: 32px;
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(135deg, #FFF1F5 0%, #EEECFF 100%), 
                      linear-gradient(135deg, var(--accent-1), var(--accent-2));
    position: relative;
    box-shadow: 0 12px 45px -12px rgba(139, 92, 246, 0.18);
    transition: var(--transition);
}

.service-card.featured-card::before {
    background: radial-gradient(circle, rgba(244, 63, 94, 0.25) 0%, transparent 70%);
}

.service-card.featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card.featured-card:hover {
    transform: translateY(-8px);
    background-image: linear-gradient(135deg, #FFF4F7 0%, #F2F0FF 100%), 
                      linear-gradient(135deg, var(--accent-1), var(--accent-2));
    box-shadow: 0 24px 60px -12px rgba(139, 92, 246, 0.32);
}

.service-card.featured-card:hover::after {
    opacity: 1;
}

.service-card.featured-card .badge {
    position: absolute;
    top: 36px;
    right: 36px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.35);
}

.service-card.featured-card .service-icon {
    font-size: 3.5rem;
    margin-bottom: 28px;
}

.service-card.featured-card .service-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.service-card.featured-card .service-desc {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 450;
}

/* About */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check {
    width: 28px;
    height: 28px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.about-visual {
    position: relative;
}

.feature-showcase {
    height: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-circle {
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    position: absolute;
}

.showcase-element {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    position: absolute;
    opacity: 0.8;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating.delay {
    animation-delay: -3s;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    margin-left: 80px;
    margin-top: 80px;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* CTA Phase */
.cta-container {
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.5);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus {
    border-color: var(--text-primary);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #e9ecef; /* Slightly darker than var(--bg-secondary) #f4f5f8 which was too light */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.footer-links a, .footer-contact p {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.875rem;
}

/* Reveal Animations */
.reveal-text, .reveal-fade, .reveal-up, .reveal-scale, .reveal-left, .reveal-right {
    opacity: 0;
    will-change: transform, opacity;
}

.active.reveal-text { animation: revealText 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.active.reveal-fade { animation: revealFade 0.8s ease forwards; }
.active.reveal-up { animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform: translateY(40px); }
.active.reveal-scale { animation: revealScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform: scale(0.9); }
.active.reveal-left { animation: revealLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform: translateX(40px); }
.active.reveal-right { animation: revealRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform: translateX(-40px); }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes revealText {
    0% { opacity: 0; filter: blur(10px); transform: translateY(20px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes revealFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes revealUp {
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes revealScale {
    100% { opacity: 1; transform: scale(1); }
}

@keyframes revealLeft {
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
    100% { opacity: 1; transform: translateX(0); }
}

/* Hamburger Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Higher than overlay */
    position: relative; /* Enable z-index */
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav-links a.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; }
    .section-padding { padding: 80px 0; }
    
    .mobile-menu-btn { display: flex; }
    
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.125rem; }
    .hero { padding-top: 100px; }
    
    .mobile-link {
        transform: translateY(20px);
        opacity: 0;
        transition: var(--transition);
    }
}

.mobile-nav-links a.btn { font-size: 1.25rem; }

.mobile-menu-overlay.active .mobile-link { transform: translateY(0); opacity: 1; }
.mobile-menu-overlay.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Service Links */
a.service-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Service Inner Pages styles */
.service-page-hero {
    min-height: 60vh;
    padding-top: 160px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-content-section { padding: 80px 0; }

.service-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.service-feature {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.service-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
}

/* Portfolio Before/After */
.portfolio {
    position: relative;
    z-index: 2;
}
.portfolio-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.project-info {
    text-align: center;
    margin-bottom: 40px;
    transition: opacity 0.3s, transform 0.3s;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    user-select: none;
    color: var(--primary);
}
.carousel-nav:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.carousel-nav.prev { left: -80px; }
.carousel-nav.next { right: -80px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dots .dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 1200px) {
    .carousel-nav.prev { left: -20px; }
    .carousel-nav.next { right: -20px; }
}

.ba-container {
    border-radius: 24px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}
.ba-slider {
    position: relative;
    width: 100%;
    height: 800px;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    background: #eee;
    transition: opacity 0.5s;
}
.ba-after, .ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.ba-after img, .ba-before img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top; /* Ensure we see the top of the websites first */
}
/* For the 'Before' image to stay full-width while its container is clipped */
.ba-before {
    width: 50%;
    z-index: 2;
    border-right: 3px solid #fff;
}
.ba-before img {
    width: 100vw; /* Using vw as a reference or a large enough fixed% if container is max-width */
    max-width: 1000px; /* This must match .ba-container max-width */
}

/* Slider Handle */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.ba-handle:hover, .ba-handle:active {
    transform: translate(-50%, -50%) scale(1.1);
}
.handle-arrow {
    width: 0;
    height: 0;
    border-style: solid;
}
.handle-arrow.left {
    border-width: 6px 8px 6px 0;
    border-color: transparent #fff transparent transparent;
    margin-right: 4px;
}
.handle-arrow.right {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .ba-slider { height: 500px; }
    .ba-before img { max-width: 768px; }
}

/* Testimonials */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 60px;
    text-align: center;
}

.testimonial-content p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.4;
}

.testimonial-author strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.t-dot.active {
    background: var(--accent-2);
    transform: scale(1.5);
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    padding: 0; /* Handle padding in question/answer */
}

.faq-question {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    padding: 0 32px 32px;
    color: var(--text-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Form Status */
.form-status {
    margin-bottom: 20px;
    min-height: 0;
    transition: var(--transition);
}

.status-message {
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: revealUp 0.4s ease forwards;
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

@media (max-width: 768px) {
    .testimonial-card { padding: 40px 24px; }
    .testimonial-content p { font-size: 1.25rem; }
    .faq-question { padding: 20px 24px; }
    .faq-question h3 { font-size: 1.125rem; }
    
    /* Footer Fixes */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand, .footer-links, .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-desc {
        margin: 16px auto 0;
    }
}

/* Infinite Marquee */
.marquee-section {
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin: 40px 0;
}

.marquee-container {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
}

.marquee-item {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    opacity: 0.3;
    display: flex;
    align-items: center;
    gap: 15px;
}

.marquee-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .custom-cursor, .cursor-follower { display: none !important; }

    /* --- UNIVERSAL MOBILE FIXES (Service Pages & Grid) --- */
    /* Override huge inline paddings for all glass-cards on small screens */
    .glass-card {
        padding: 30px 20px !important;
    }
    
    /* Force proper vertical stacking for flex layouts with images (removes row-reverse stacking bugs) */
    .glass-card[style*="display: flex"] {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center; /* Center content when stacked on mobile */
    }
    
    /* Ensure flex items take full width to prevent overflow */
    .glass-card[style*="display: flex"] > div {
        min-width: 100% !important;
    }

    /* Make inline typography scale better on very small devices */
    h2[style*="font-size: 2.5rem"], 
    h2[style*="font-size: 2.8rem"], 
    h2[style*="font-size: 3rem"] {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    h3[style*="font-size: 1.3rem"] {
        font-size: 1.2rem !important;
    }
    
    /* Adjust huge inline container margins to save screen real estate */
    section.container[style*="margin-top: 80px"],
    section.container[style*="margin-bottom: 100px"] {
        margin-top: 40px !important;
        margin-bottom: 40px !important;
    }
    
    .hero-subtitle {
        margin-bottom: 20px !important;
    }
}
