@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;600;800&family=Syncopate:wght@400;700&display=swap');

:root {
    --bg-color: #f7f7f8;
    --text-main: #111115;
    --text-muted: #666675;
    --accent: #5e35b1;
    --accent-glow: #7e57c2;
    
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor override */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas Background */
#experience-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Navigation UI */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.lang-switcher {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.1em;
}

.lang-btn {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-btn.active, .lang-btn:hover {
    opacity: 1;
}

.lang-separator {
    opacity: 0.3;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    cursor: pointer;
}

.logo .dot {
    color: var(--accent);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 40px;
}

.menu-toggle .line {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-toggle .line:last-child {
    width: 60%;
    align-self: flex-end;
}

.menu-toggle:hover .line:last-child {
    width: 100%;
}

/* Scroll Container */
.scroll-container {
    position: relative;
    z-index: 10;
}

/* Panels */
.panel {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10vh 8vw;
    position: relative;
    pointer-events: none; /* Let clicks pass through to background unless on content */
}

.content-wrapper {
    max-width: 650px;
    pointer-events: auto; /* Re-enable pointer events for content */
}

.text-center {
    margin: 0 auto;
    text-align: center;
    align-items: center;
    max-width: 1000px;
}

.right-align {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.left-align {
    align-items: flex-start;
    text-align: left;
}

.center-align {
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

/* Typography */
.display-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 8.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-title.sm {
    font-size: clamp(2rem, 5vw, 5rem);
    margin-bottom: 2rem;
}

.display-title .outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(17, 17, 21, 0.85);
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--accent-glow);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
}

/* Utility Classes */
.mb-4 { margin-bottom: 4rem; }
.mt-4 { margin-top: 4rem; }
.full-width { max-width: 100%; width: 100%; }

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid rgba(17, 17, 21, 0.2);
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--text-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-color);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-glow {
    display: inline-block;
    padding: 1.4rem 3.5rem;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), #3949ab);
    box-shadow: 0 10px 30px rgba(94, 53, 177, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glow:hover {
    box-shadow: 0 15px 40px rgba(126, 87, 194, 0.3);
    transform: translateY(-3px);
}

/* Glass Panel Element */
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(17, 17, 21, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 6rem 4rem;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(17, 17, 21, 0.1);
    padding-top: 2rem;
}

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

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: difference;
}

/* Testimonials Constellation */
.constellation-panel {
    background: transparent;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    padding: 8vh 5vw;
}

.constellation-header {
    margin-bottom: 1.5rem;
    z-index: 10;
    text-align: center;
}

.constellation-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 3.2rem) !important;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.constellation-stage {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.constellation-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.constell-line {
    fill: none;
    stroke: rgba(94, 53, 177, 0.12);
    stroke-width: 1.5;
    transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.constell-line.active {
    stroke: var(--accent);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 5px rgba(94,53,177,0.4));
}

/* Testimonial Nodes */
.constell-node {
    position: absolute;
    width: 260px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(94, 53, 177, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    z-index: 10;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.constell-node:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(94, 53, 177, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

/* Floating Animations */
@keyframes floatNodeY1 {
    0% { transform: translateY(0); }
    100% { transform: translateY(12px); }
}
@keyframes floatNodeY2 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

.constell-node.n1 { left: 4%; top: 8%; animation: floatNodeY1 6s ease-in-out infinite alternate; }
.constell-node.n2 { right: 4%; top: 12%; animation: floatNodeY2 7s ease-in-out infinite alternate; }
.constell-node.n3 { left: 6%; bottom: 8%; animation: floatNodeY2 5s ease-in-out infinite alternate; }
.constell-node.n4 { right: 6%; bottom: 6%; animation: floatNodeY1 6.5s ease-in-out infinite alternate; }

.node-stars {
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

.node-quote {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 300;
}

.node-client {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
}

.node-company {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Mobile test carousel */
.mobile-carousel-container {
    width: 100%;
    padding: 0 1rem;
    margin: 2rem 0;
    display: none;
    flex-direction: column;
    align-items: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(94, 53, 177, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.carousel-dots {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(17, 17, 21, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
    .mobile-carousel-container {
        display: flex;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: #fff;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
    margin-bottom: 1rem;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollWheel 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    opacity: 0.6;
}

/* Footer elements */
.site-footer {
    margin-top: 10rem;
    border-top: 1px solid rgba(17,17,21,0.1);
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-nav { padding: 1.5rem 2rem; }
    .nav-controls { gap: 1.5rem; }
    
    .panel { 
        padding: 12vh 6vw; 
        align-items: center !important;
        text-align: center !important;
    }
    
    .content-wrapper { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .right-align, .left-align {
        margin-left: 0;
    }

    .display-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .section-title { font-size: clamp(2.2rem, 8vw, 3rem); }
    
    .description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    .btn-primary, .btn-glow {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }

    .case-card { width: 85vw; min-width: unset; height: 50vh; }
    .glass-panel { padding: 3rem 2rem; }
    .footer-links { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
}
