:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #3a86ff;
    --accent-glow: rgba(58, 134, 255, 0.3);
    --bg-dark: #000000;
    --bg-light: #ffffff;
    --text-dark: #000000;
    --text-light: #ffffff;
    --text-muted: #d0d0d0;
    /* Brighter for better visibility on black */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --container-max: 1400px;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --section-padding: 180px 0;
    --section-padding-small: 100px 0;
    --hero-padding: 220px 0 120px;
    --card-radius: 40px;
}

a {
    text-decoration: none !important;
}

/* Fallback visible states for animations */
.fade-up {
    opacity: 1;
}

.reveal-text {
    display: inline-block;
    overflow: hidden;
}

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

.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #020202;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.grid-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 90px 90px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.mouse-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s;
    mix-blend-mode: screen;
    z-index: -1;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1;
    /* Pushed behind hero text to prevent overlap */
    pointer-events: none;
    /* Disable interference with links */
    will-change: transform;
}

.badge-icon {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.badge-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge-1 {
    top: 22%;
    left: 2%;
}

.badge-2 {
    top: 45%;
    right: 2%;
}

.badge-3 {
    bottom: 15%;
    left: auto;
    right: 20%;
}

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

html,
body {
    overflow-x: hidden;
    scroll-behavior: initial;
    /* Lenis handles this */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: default;
    overflow-x: hidden;
    width: 100%;
    /* Prevents word-overflow from breaking layout */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img, 
video, 
canvas, 
svg {
    max-width: 100%;
    height: auto;
}

/* Standard Layout Components */
.section-std {
    padding: var(--section-padding);
    position: relative;
    width: 100%;
}

.section-std-small {
    padding: var(--section-padding-small);
    position: relative;
}

.hero-std {
    padding: var(--hero-padding);
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.full-viewport {
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    /* Sets the font color for the SVG */
}

.logo-svg {
    height: 52px;
    width: auto;
    max-width: 220px;
    transition: var(--transition);
    display: block;
    /* Ensure maximum visibility and white color */
    filter: brightness(0) invert(1);
}

.logo-wrapper:hover .logo-svg {
    opacity: 0.85;
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .logo-svg {
        height: 40px;
        max-width: 160px;
    }
}

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

@media (min-width: 1025px) {
    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
}

.mobile-only {
    display: none !important;
}

.nav-links .btn {
    margin-left: 0;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link.active {
    color: var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    position: absolute;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-5px);
}
.menu-toggle span:nth-child(2) {
    transform: translateY(5px);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    transform: translateY(0) rotate(-45deg);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
        z-index: 9900;
        opacity: 0;
        pointer-events: none;
        display: flex !important;
    }

    .nav-links.nav-active {
        transform: translateY(0%) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .nav-link {
        font-size: 1.8rem;
    }
    
    .nav-links .btn {
        margin-left: 0;
        margin-top: 20px;
        padding: 15px 40px;
        font-size: 1.1rem;
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-only {
        display: inline-block !important;
    }
    
    body.nav-open {
        overflow: hidden !important;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--text-light);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
}

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

.btn-extra-large {
    padding: 24px 50px;
    font-size: 1.4rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

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

.mesh-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, #1a1a1a 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, #0a0a0a 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #111 0%, #000 100%);
    opacity: 0.6;
}

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

.hero-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 5.5rem;
    margin-bottom: 30px;
}

.hero-title .accent {
    background: linear-gradient(135deg, #fff 0%, #3a86ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Marquee Section */
.trust-marquee {
    padding: 100px 0;
    background: #000;
}

.marquee-container {
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

/* Gradient Mask for Edges */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-anim 40s linear infinite;
}

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

    100% {
        transform: translateX(-50%);
    }
}

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

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

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
    cursor: default;
}

.company-name {
    font-family: var(--font-body);
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.marquee-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.marquee-item:hover .company-name {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Marquee Navigation */
.marquee-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.marquee-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.marquee-btn:hover {
    background: white;
    color: black;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.marquee-btn svg {
    width: 24px;
    height: 24px;
}

/* Services */
.services {
    padding: var(--section-padding);
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    /* Lighter for visibility */
    border: 1px solid var(--glass-border);
    padding: 0;
    border-radius: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.service-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 40px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.service-card-content h3 {
    color: #ffffff !important;
    /* Forces maximum visibility */
    font-weight: 700;
}

.service-card-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    /* Premium contrast */
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.center {
    text-align: center;
}

.center-text {
    text-align: center;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ffffff !important;
    /* Force visibility */
    position: relative;
    z-index: 2;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
}

.center .section-desc,
.center-text.section-desc {
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    color: var(--accent);
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.service-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

.service-list {
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

.service-list li {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 14px;
    position: relative;
    padding-left: 25px;
    opacity: 1;
    /* Maximum visibility */
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Work / Showcase */
.work {
    padding: 100px 0;
}

.work-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.work-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* 3D glass lighting edge */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease, border-color 0.6s ease;
}

.work-item:hover {
    transform: translateY(-12px) scale(1.01);
    border-top-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(58, 134, 255, 0.15);
}

.work-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.work-item:hover .work-img-wrapper img {
    transform: scale(1.08);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease;
    opacity: 0.4;
}

.work-item:hover .work-overlay {
    opacity: 0.8;
}

.work-info {
    padding: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.work-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(58, 134, 255, 0.1);
    border: 1px solid rgba(58, 134, 255, 0.2);
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.70rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.work-name {
    font-size: 2.3rem;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -1px;
}

.work-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    margin-top: 25px;
}

.stat {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat span {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Testimonials */
.testimonials {
    padding: 150px 0;
    overflow: hidden;
    position: relative;
}

.testimonial-marquee {
    margin-top: 80px;
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee-anim 60s linear infinite;
}

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

.testimonial-card {
    padding: 60px;
    border-radius: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    width: 500px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 40px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--accent-glow);
}

.author-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* CTA */
.final-cta {
    padding: 200px 0;
    position: relative;
}

.cta-title {
    font-size: 6rem;
    margin-bottom: 30px;
}

.cta-desc {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* Footer */
.footer {
    padding: 100px 0 50px;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer social icons */
.social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    color: #ffffff;
}

.social-links a:hover {
    background: var(--text-light);
    color: var(--text-dark);
    transform: translateY(-5px);
    border-color: var(--text-light);
}

.social-links svg {
    transition: none;
}

/* Contact Page Styles */
.contact-hero {
    padding: 160px 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 40px;
    backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.form-group select option {
    background-color: #0c0c0c;
    color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.contact-info-panel h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 40px;
}

.info-item h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
}

.info-item p,
.info-item a {
    font-size: 1.4rem;
    color: var(--text-light);
}

.map-container {
    margin-top: 50px;
    width: 100%;
    height: 300px;
    border-radius: 30px;
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background-image: radial-gradient(circle at 50% 50%, rgba(58, 134, 255, 0.1) 0%, transparent 80%);
}

/* Get Quote Section */
/* Get Quote / Contact Hub - Final Conversion Point */
.get-quote-section {
    padding: 180px 0;
    position: relative;
}

.contact-hub-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.contact-hub-info .section-label {
    margin-bottom: 20px;
}

.contact-hub-info .section-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
}

.contact-hub-info .section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 500px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.method-details span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.method-details a {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.method-details a:hover {
    color: var(--accent);
}

.contact-hub-form-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 40px;
    backdrop-filter: blur(30px);
}

.premium-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.premium-form .form-group {
    margin-bottom: 25px;
}

.premium-form label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.premium-form input,
.premium-form select {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.premium-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 25px center;
    background-size: 16px;
}

.premium-form select option {
    background-color: #0c0c0c;
    color: white;
}

.premium-form input:focus,
.premium-form select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 1024px) {
    .contact-hub-wrapper {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .contact-hub-info .section-title {
        font-size: 3rem;
    }
}

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

    .contact-hub-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 900px) {
    .quote-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    /* Testimonials Mobile Sizing */
    .testimonial-card {
        width: 350px;
        padding: 40px;
    }

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

    /* Contact Hub Optimization */
    .contact-hub-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        margin-top: 50px;
    }

    .contact-direct-info {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .info-item h4 {
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .info-item p,
    .info-item a {
        font-size: 1.5rem;
        color: var(--text-light);
        text-decoration: none;
        transition: var(--transition);
    }

    .info-item a:hover {
        color: var(--accent);
    }

    /* Animations */
    .reveal-text {
        display: inline-block;
        overflow: hidden;
        vertical-align: bottom;
        /* Removed translateY(100%) fallback */
    }

    .fade-up {
        opacity: 1;
        /* Changed from 0 to 1 for resilience */
        transform: translateY(0);
    }

    /* Responsive */
}
@media (min-width: 769px) {
    body, html {
        cursor: none !important;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .cta-title {
        font-size: 4rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .floating-badge {
        display: none;
        /* Remove overlaps completely on mobile/tablet */
    }

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

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

    .footer-top {
        flex-direction: column;
        gap: 50px;
    }

    .cta-title {
        font-size: 3rem;
    }
}

/* Animations - Splitting Text & Cursor */
.split-word {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
    white-space: pre;
}

.split-word.accent {
    background: linear-gradient(135deg, #fff 0%, #3a86ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10005;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(58, 134, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10004;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.1s;
}

.custom-cursor.active {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    mix-blend-mode: difference;
}

.custom-cursor-follower.active {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 255, 255, 0.2);
}

/* About Hero Section */
.about-hero {
    padding: 15rem 0 8rem 0;
    position: relative;
    overflow: hidden;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.about-hero-img-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
}

.about-glow {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-hero-img-wrapper {
        height: 400px;
    }
}

/* Philosophy & Stats Section (About Page) */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-box:hover {
    transform: translateY(-8px);
    border-color: rgba(58, 134, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(58, 134, 255, 0.1);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box .counter {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #7a7a7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-box .stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Interactive Values Grid (About Section) */
.interactive-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.i-value-card {
    position: relative;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    cursor: pointer;
}

.i-value-card:hover {
    transform: translateY(-10px);
    border-color: rgba(58, 134, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(58, 134, 255, 0.15);
}

.i-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.i-value-card:hover .i-icon {
    transform: scale(1.15) rotate(8deg);
}

.i-value-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.i-value-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.i-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.i-value-card:hover .i-glow {
    transform: scale(1.8);
}

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

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

/* ============================================
   COMPREHENSIVE RESPONSIVE RULES
   ============================================ */

/* --- Tablet: 1024px --- */
@media (max-width: 1024px) {

    /* Typography scale-down */
    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .cta-title {
        font-size: 4rem;
    }

    /* Sections padding */
    :root {
        --section-padding: 120px 0;
        --section-padding-small: 70px 0;
        --hero-padding: 160px 0 100px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-hub-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-hub-info .section-title {
        font-size: 3rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* Footer */
    .footer-top {
        flex-wrap: wrap;
        gap: 48px;
    }

    .footer-brand {
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
        width: 100%;
    }
}

/* --- Mobile: 768px --- */
@media (max-width: 768px) {

    /* Typography */
    .hero-title {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .cta-title {
        font-size: 2.4rem;
    }

    .contact-info-panel h2 {
        font-size: 2.4rem;
    }

    /* Spacing */
    :root {
        --section-padding: 80px 0;
        --section-padding-small: 50px 0;
        --hero-padding: 130px 0 80px;
    }

    /* Hero buttons stack on very small screens */
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Hide decorative badges */
    .floating-badge {
        display: none;
    }

    /* Grids → single column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-info {
        padding: 24px;
    }
    
    .flagship-container .work-info {
        padding: 30px 20px;
        margin-top: -20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .quote-form-grid {
        grid-template-columns: 1fr;
    }

    .premium-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hub-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Contact form container */
    .contact-form-container {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .contact-hub-form-container {
        padding: 30px 20px;
        border-radius: 24px;
    }

    /* Section labels */
    .section-label {
        font-size: 0.7rem;
    }

    /* Marquee fade edges smaller */
    .marquee-container::before,
    .marquee-container::after {
        width: 80px;
    }

    /* Testimonial cards */
    .testimonial-card {
        width: 280px;
        max-width: calc(100vw - 40px);
        padding: 30px;
    }

    .testimonial-text {
        font-size: 1.05rem;
    }

    /* CTA section */
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 340px;
        text-align: center;
    }

    /* Hero content full width */
    .hero-content {
        max-width: 100%;
    }

    /* Process / About steps */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Service card inner layout */
    .service-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    /* Advanced Layout Mobile Overrides */
    .about-hero {
        padding: 9rem 0 4rem 0;
    }
    .about-hero-content h1 {
        font-size: 3rem;
    }
    .about-hero-img-wrapper {
        height: 350px !important;
    }
    .about-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stat-box .counter {
        font-size: 3.5rem;
    }
    .stat-box {
        padding: 30px 20px;
    }
    .philosophy-grid {
        gap: 40px;
    }
    .work-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Small Mobile: 480px --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 1.9rem;
    }

    .about-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .about-hero {
        padding: 7rem 0 3rem 0;
    }
    
    .stat-box .counter {
        font-size: 2.8rem;
    }
    
    .about-hero-img-wrapper {
        height: 250px !important;
    }

    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2.1rem;
    }

    .stat-number {
        font-size: 3.2rem;
    }

    .logo-svg {
        height: 34px;
        max-width: 140px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .btn-extra-large {
        padding: 16px 32px;
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .testimonial-card {
        width: 260px;
        max-width: calc(100vw - 32px);
        padding: 24px;
    }
}

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

.success-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-modal {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.success-modal-overlay.active .success-modal {
    transform: translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(58, 134, 255, 0.1);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
}

.success-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.success-modal p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-modal .btn {
    width: 100%;
}