/* =========================================
   ASTI STUDIO - Main Stylesheet
   ========================================= */

/* --- CSS Custom Properties --- */
:root {
    /* Brand Colors from Logo */
    --purple: #8B3FA0;
    --purple-light: #A855C7;
    --purple-dark: #6B2D80;
    --yellow: #F5B731;
    --yellow-light: #FFD060;
    --yellow-dark: #D49A20;
    --teal: #1BA8BD;
    --teal-light: #2CC5DC;
    --teal-dark: #148A9C;
    --orange: #E8532E;
    --orange-light: #FF6B45;
    --orange-dark: #C44020;

    /* Neutrals */
    --black: #0A0A0F;
    --dark: #111118;
    --dark-2: #1A1A24;
    --dark-3: #242430;
    --gray: #4A4A5A;
    --gray-light: #8888A0;
    --gray-lighter: #B0B0C0;
    --white: #F5F5FA;
    --white-pure: #FFFFFF;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--purple), var(--yellow), var(--teal), var(--orange));
    --gradient-purple-teal: linear-gradient(135deg, var(--purple), var(--teal));
    --gradient-yellow-orange: linear-gradient(135deg, var(--yellow), var(--orange));
    --gradient-glow: radial-gradient(circle, rgba(139,63,160,0.15), transparent 70%);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Sizes */
    --container: 1400px;
    --nav-height: 80px;
    --section-padding: clamp(80px, 12vh, 160px);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Z-index layers */
    --z-cursor: 9999;
    --z-preloader: 9998;
    --z-mobile-menu: 9990;
    --z-nav: 9980;
    --z-lightbox: 9970;
    --z-whatsapp: 9960;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: initial; /* Lenis handles this */
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

button {
    border: none;
    background: none;
    color: inherit;
    font-family: inherit;
    cursor: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: var(--font-body);
    cursor: none;
}

::selection {
    background: var(--purple);
    color: var(--white-pure);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

/* --- Typography --- */
.text-gradient {
    background: var(--gradient-brand);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

.text-stroke {
    -webkit-text-stroke: 2px var(--white);
    -webkit-text-fill-color: transparent;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Section Headers --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.2rem;
    height: 2px;
    background: var(--teal);
}

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

.section-title span {
    display: block;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--gray-light);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-cursor);
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--white-pure);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s;
}

body.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background: var(--teal);
}

body.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--teal);
}

body.cursor-text .cursor-ring {
    width: 80px;
    height: 80px;
    border-color: var(--yellow);
}

/* =========================================
   PRELOADER
   ========================================= */
.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.preloader-logo {
    margin-bottom: 2rem;
}

.preloader-shapes {
    width: 200px;
    height: auto;
}

.preloader-shapes .shape {
    opacity: 0;
    animation: shapeIn 0.6s var(--ease-out-expo) forwards;
}

.preloader-shapes .shape-triangle { animation-delay: 0.1s; }
.preloader-shapes .shape-s { animation-delay: 0.2s; }
.preloader-shapes .shape-cross { animation-delay: 0.3s; }
.preloader-shapes .shape-bar { animation-delay: 0.4s; }

@keyframes shapeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.5em;
    color: var(--gray-light);
    margin-top: 0.5rem;
}

.preloader-progress {
    width: 200px;
    height: 2px;
    background: var(--dark-3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-brand);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.3s var(--ease-out-quart);
    animation: gradientShift 2s linear infinite;
}

.preloader-counter {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 1rem;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: var(--z-nav);
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 144px;
    width: auto;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--gray-lighter);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--white-pure);
}

.nav-link:hover::after {
    width: 100%;
}

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

.lang-switch {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--dark-3);
    transition: border-color 0.3s, background 0.3s;
}

.lang-switch:hover {
    border-color: var(--gray);
    background: var(--dark-2);
}

.lang-current {
    color: var(--white-pure);
}

.lang-divider {
    color: var(--gray);
    margin: 0 0.15rem;
}

.lang-alt {
    color: var(--gray);
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    background: var(--gradient-brand);
    background-size: 200% 200%;
    color: var(--white-pure);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
    animation: gradientShift 6s ease-in-out infinite;
}

.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(139, 63, 160, 0.4);
}

/* Burger Menu */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

.nav-burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   MOBILE MENU
   ========================================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-mobile-menu);
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.active {
    pointer-events: all;
    visibility: visible;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(30px);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.mobile-menu.active .mobile-menu-bg {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), color 0.3s;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

.mobile-link:hover {
    color: var(--teal);
}

.mobile-menu-footer {
    position: absolute;
    bottom: 3rem;
}

.mobile-socials {
    display: flex;
    gap: 2rem;
}

.mobile-socials .social-link {
    font-size: 0.9rem;
    color: var(--gray-light);
    transition: color 0.3s;
}

.mobile-socials .social-link:hover {
    color: var(--white);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--nav-height) + 2rem) 0 2rem;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, var(--black) 80%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 clamp(20px, 4vw, 60px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-light);
    border: 1px solid var(--dark-3);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.03);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #f5f5fa;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    text-shadow: 0 0 14px rgba(27, 168, 189, 0.85), 0 0 28px rgba(27, 168, 189, 0.55);
    animation: heroDescGlow 6s ease-in-out infinite;
}

@keyframes heroDescGlow {
    0%   { text-shadow: 0 0 14px rgba(139, 63, 160, 0.85), 0 0 28px rgba(139, 63, 160, 0.55); }
    25%  { text-shadow: 0 0 14px rgba(245, 183, 49, 0.85), 0 0 28px rgba(245, 183, 49, 0.55); }
    50%  { text-shadow: 0 0 14px rgba(27, 168, 189, 0.85), 0 0 28px rgba(27, 168, 189, 0.55); }
    75%  { text-shadow: 0 0 14px rgba(232, 83, 46, 0.85), 0 0 28px rgba(232, 83, 46, 0.55); }
    100% { text-shadow: 0 0 14px rgba(139, 63, 160, 0.85), 0 0 28px rgba(139, 63, 160, 0.55); }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--teal);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--dark-3);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gray), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-purple {
    width: 400px;
    height: 400px;
    background: rgba(139, 63, 160, 0.15);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-yellow {
    width: 300px;
    height: 300px;
    background: rgba(245, 183, 49, 0.1);
    top: 60%;
    right: -5%;
    animation-delay: -5s;
}

.orb-teal {
    width: 350px;
    height: 350px;
    background: rgba(27, 168, 189, 0.1);
    bottom: -10%;
    left: 30%;
    animation-delay: -10s;
}

.orb-orange {
    width: 250px;
    height: 250px;
    background: rgba(232, 83, 46, 0.08);
    top: 20%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--white-pure);
    color: var(--black);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--dark-3);
    color: var(--white);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--gray);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: inherit;
    align-items: center;
    justify-content: center;
}

.btn.loading .btn-loading {
    display: flex;
}

.btn.loading > span,
.btn.loading > .btn-arrow {
    opacity: 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   SHOWREEL
   ========================================= */
.showreel {
    padding: var(--section-padding) 0;
    padding-top: 0;
}

.showreel-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--dark-3);
}

.showreel-video {
    position: relative;
    width: 100%;
    height: 100%;
}

.showreel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showreel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--white-pure);
    transition: transform 0.4s var(--ease-out-expo);
}

.showreel-play svg {
    width: 80px;
    height: 80px;
    transition: transform 0.4s var(--ease-out-expo);
}

.showreel-play:hover svg {
    transform: scale(1.15);
}

.showreel-play span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-section {
    padding: 2rem 0;
    border-top: 1px solid var(--dark-3);
    border-bottom: 1px solid var(--dark-3);
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    animation: marqueeScroll 30s linear infinite;
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 1.5vw, 1.25rem);
    font-weight: 700;
    color: var(--dark-3);
    letter-spacing: 0.05em;
}

.marquee-track.clients-track {
    animation-duration: 5s;
}

.marquee[data-direction="reverse"] .marquee-track {
    animation-direction: reverse;
}

.marquee-dot {
    font-size: 0.5em;
    color: var(--teal);
}

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

.clients-section {
    padding: var(--section-padding) 0 2rem;
}

.clients-label {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.clients-track {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--gray);
}

.client-name {
    transition: color 0.3s;
}

.client-name:hover {
    color: var(--white);
}

.client-logo {
    height: clamp(1.95rem, 3.9vw, 3.15rem);
    width: auto;
    max-width: clamp(7.8rem, 13.65vw, 13.65rem);
    object-fit: contain;
    vertical-align: middle;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.75;
    transition: opacity 0.3s, filter 0.3s;
}

@media (max-width: 768px) {
    .client-logo {
        height: 2rem;
        max-width: 6rem;
    }
}

.client-logo:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* =========================================
   SERVICES
   ========================================= */
.services {
    padding: var(--section-padding) 0;
}

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

.service-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--dark);
    border: 1px solid var(--dark-3);
    transition: transform 0.5s var(--ease-out-expo), border-color 0.3s, box-shadow 0.5s;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gray);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.service-card[data-color="purple"]:hover { border-color: rgba(139, 63, 160, 0.3); }
.service-card[data-color="yellow"]:hover { border-color: rgba(245, 183, 49, 0.3); }
.service-card[data-color="teal"]:hover { border-color: rgba(27, 168, 189, 0.3); }
.service-card[data-color="orange"]:hover { border-color: rgba(232, 83, 46, 0.3); }

.service-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--gray-light);
    transition: color 0.3s;
}

.service-card[data-color="purple"]:hover .service-icon { color: var(--purple); }
.service-card[data-color="yellow"]:hover .service-icon { color: var(--yellow); }
.service-card[data-color="teal"]:hover .service-icon { color: var(--teal); }
.service-card[data-color="orange"]:hover .service-icon { color: var(--orange); }

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-tags span {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    color: var(--gray-lighter);
}

.service-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-lighter);
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--white);
}

/* =========================================
   PORTFOLIO
   ========================================= */
.portfolio {
    padding: var(--section-padding) 0;
}

.portfolio-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--dark-3);
    color: var(--gray-light);
    transition: all 0.3s var(--ease-out-expo);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--white-pure);
    color: var(--black);
    border-color: var(--white-pure);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s;
}

.portfolio-item-wide {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.portfolio-media {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.portfolio-item:hover .portfolio-media img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

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

/* Touch devices: always show play button */
@media (hover: none), (pointer: coarse) {
    .portfolio-overlay {
        opacity: 1 !important;
        background: rgba(10, 10, 15, 0.4);
    }
    .portfolio-play {
        cursor: pointer;
        touch-action: manipulation;
    }
}

.portfolio-play {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-pure);
    transition: transform 0.3s var(--ease-out-expo), background 0.3s;
}

.portfolio-play:hover {
    transform: scale(1.15);
    background: rgba(255,255,255,0.25);
}

.portfolio-play svg {
    width: 24px;
    height: 24px;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10,10,15,0.9), transparent);
}

.portfolio-category {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.portfolio-client {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-top: 0.25rem;
}

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

/* =========================================
   VIDEO LIGHTBOX
   ========================================= */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
    transition: transform 0.3s, background 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 32px;
    height: 32px;
}

.lightbox-content {
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 85vw;
        max-width: none;
        aspect-ratio: 9/16;
        max-height: 80vh;
    }
}

.lightbox-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* =========================================
   ABOUT / WORKFLOW
   ========================================= */
.about {
    padding: var(--section-padding) 0;
}

.workflow {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}

.workflow-step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--dark-3);
    background: var(--dark);
    transition: border-color 0.3s, box-shadow 0.5s;
}

.workflow-step:hover {
    border-color: var(--gray);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.step-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    background: var(--gradient-brand);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
    min-width: 80px;
    text-align: center;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.7;
}

.step-visual {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--dark-2);
}

.step-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--dark-3);
    background: var(--dark);
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-logos {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tech-item {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--dark-3);
    color: var(--gray-lighter);
    transition: all 0.3s var(--ease-out-expo);
}

.tech-item:hover {
    border-color: var(--teal);
    color: var(--white);
    background: rgba(27, 168, 189, 0.1);
}

/* =========================================
   BLOG
   ========================================= */
.blog {
    padding: var(--section-padding) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--dark);
    border: 1px solid var(--dark-3);
    transition: transform 0.5s var(--ease-out-expo), border-color 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--gray);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--dark-2);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(10px);
}

.blog-content {
    padding: 1.5rem;
}

.blog-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple-light);
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.blog-content p {
    font-size: 0.9rem;
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--teal);
    transition: color 0.3s;
}

.blog-link:hover {
    color: var(--teal-light);
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
    padding: var(--section-padding) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    font-size: 1rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-lighter);
    transition: color 0.3s;
}

a.contact-detail:hover {
    color: var(--white);
}

.contact-detail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--teal);
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--dark-3);
    color: var(--gray-light);
    transition: all 0.3s var(--ease-out-expo);
}

.social-icon:hover {
    border-color: var(--teal);
    color: var(--white);
    background: rgba(27, 168, 189, 0.1);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--dark);
    border: 1px solid var(--dark-3);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--dark-3);
    padding: 1rem 0 0.75rem;
    font-size: 0.95rem;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 0.95rem;
    color: var(--gray);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: -0.5rem;
    font-size: 0.75rem;
    color: var(--teal);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.4s var(--ease-out-expo);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line,
.form-group select:focus ~ .form-line {
    width: 100%;
}

/* Placeholder trick for label animation */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    color: var(--teal);
}

.form-status.error {
    display: block;
    color: var(--orange);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--dark-3);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--gray-light);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-3);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    font-size: 0.8rem;
    color: var(--gray);
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--white);
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-whatsapp);
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-pure);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .workflow-step {
        grid-template-columns: auto 1fr;
    }

    .step-visual {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: clamp(60px, 10vh, 100px);
    }

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

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

    .portfolio-item-wide {
        grid-column: span 1;
        aspect-ratio: 16/10;
    }

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

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

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }

    .stat-divider {
        width: 1px;
        height: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Hide custom cursor on touch */
    .cursor {
        display: none;
    }

    body {
        cursor: auto;
    }

    a, button, input, textarea, select {
        cursor: auto;
    }

    .workflow-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ANIMATION CLASSES (GSAP targets)
   ========================================= */
[data-animation] {
    opacity: 0;
}

[data-animation="fade-up"] {
    transform: translateY(40px);
}

[data-animation="fade-right"] {
    transform: translateX(-40px);
}

[data-animation="fade-left"] {
    transform: translateX(40px);
}

[data-animation="scale-up"] {
    transform: scale(0.9);
}

/* Revealed state */
[data-animation].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9997;
    opacity: 0.4;
}
