/* ===== CSS Variables & Root ===== */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent-cyan: #00d4ff;
    --accent-pink: #f093fb;
    --accent-purple: #a855f7;
    --accent-orange: #ff6b6b;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 35, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-primary: rgba(102, 126, 234, 0.5);
    --glow-purple: rgba(168, 85, 247, 0.5);
    --glow-cyan: rgba(0, 212, 255, 0.5);
    --glow-pink: rgba(240, 147, 251, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
}

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

button {
    cursor: none;
    font-family: inherit;
}

/* ===== Custom Cursor ===== */
.cursor {
    --cursor-x: 0px;
    --cursor-y: 0px;
    --cursor-scale: 1;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%) scale(var(--cursor-scale));
    will-change: transform;
}

.cursor-follower {
    --cursor-x: 0px;
    --cursor-y: 0px;
    --cursor-scale: 1;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.15s ease;
    opacity: 0.5;
    transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%) scale(var(--cursor-scale));
    will-change: transform;
}

/* ===== Background Animation ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    --parallax-y: 0px;
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
    top: 50%;
    right: -15%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    bottom: -10%;
    left: 30%;
    animation-delay: -10s;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    top: 30%;
    left: 50%;
    animation-delay: -15s;
}

.orb-5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--secondary), var(--accent-cyan));
    bottom: 20%;
    right: 20%;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translate3d(0, var(--parallax-y), 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate3d(50px, calc(-50px + var(--parallax-y)), 0) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate3d(-30px, calc(30px + var(--parallax-y)), 0) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translate3d(-50px, calc(-20px + var(--parallax-y)), 0) rotate(270deg) scale(1.05);
    }
}

/* ===== Light Flash Effects ===== */
.light-flash {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: flash 8s infinite;
}

.flash-1 {
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8), transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.flash-2 {
    background: radial-gradient(circle, rgba(240, 147, 251, 0.8), transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 2.5s;
}

.flash-3 {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.8), transparent 70%);
    bottom: 20%;
    left: 40%;
    animation-delay: 5s;
}

@keyframes flash {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 0.8;
        transform: scale(2);
    }

    10% {
        opacity: 0;
        transform: scale(1);
    }
}

/* ===== Particles ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
    will-change: transform, opacity;
}

.mouse-light-trail {
    --trail-x: 0px;
    --trail-y: 0px;
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.45), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate3d(var(--trail-x), var(--trail-y), 0) translate(-50%, -50%) scale(0.8);
    will-change: transform, opacity;
}

.mouse-light-trail.active {
    animation: light-trail-fade 0.85s ease forwards;
}

@keyframes light-trail-fade {
    0% {
        opacity: 0.9;
        transform: translate3d(var(--trail-x, 0), var(--trail-y, 0), 0) translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--trail-x, 0), var(--trail-y, 0), 0) translate(-50%, -50%) scale(2.5);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo .dot {
    color: var(--primary);
    font-size: 2.5rem;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        text-shadow: 0 0 20px var(--glow-primary);
    }

    50% {
        text-shadow: 0 0 40px var(--glow-primary), 0 0 60px var(--glow-primary);
    }
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-pink));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.cta-btn {
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--glow-primary);
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink), var(--accent-cyan), var(--primary));
    background-size: 300% 300%;
    border-radius: 50px;
    z-index: -1;
    animation: gradient-rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn:hover .btn-glow {
    opacity: 1;
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: badge-glow 3s infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* 3D Tube Glassmorphic Text Effect */
.hero-title .title-line {
    display: block;
    animation: slide-up 0.8s ease forwards;
    opacity: 0;
    transform: translateY(50px);
    position: relative;

    /* 3D Tube Effect - Glossy rounded tube look */
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(220, 220, 240, 0.9) 25%,
            rgba(180, 180, 210, 0.85) 50%,
            rgba(140, 140, 180, 0.9) 75%,
            rgba(200, 200, 220, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Glossy highlight and depth */
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 3px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(102, 126, 234, 0.15);

    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rainbow 3D Tube Text - "Digital Dreams" */
.hero-title .title-line.gradient-text,
.gradient-text {
    position: relative;
    display: block;

    /* Animation for slide-up effect - separate from infinite animations */
    animation: slide-up 0.8s ease forwards, rainbow-flow 3s linear infinite, text-wiggle 2.5s ease-in-out infinite;
    animation-delay: 0.2s, 0s, 0.8s;

    /* Vibrant Rainbow Gradient - Like the reference tube design */
    background: linear-gradient(90deg,
            #ff4757 0%,
            #ff7f50 12%,
            #ffd93d 24%,
            #2ed573 36%,
            #1e90ff 48%,
            #5352ed 60%,
            #a55eea 72%,
            #ff6b81 84%,
            #ff4757 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Strong 3D Glossy Tube Effect with colored shadows */
    filter:
        drop-shadow(0 2px 3px rgba(255, 71, 87, 0.5)) drop-shadow(0 4px 6px rgba(255, 215, 61, 0.4)) drop-shadow(0 6px 10px rgba(30, 144, 255, 0.4)) drop-shadow(0 8px 15px rgba(165, 94, 234, 0.3));

    /* No text-shadow for clean gradient */
    text-shadow: none;

    /* Smooth transform origin for wiggle */
    transform-origin: center center;
}

/* Glossy highlight overlay for tube effect */
.hero-title .title-line.gradient-text::before,
.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.15) 30%,
            transparent 50%,
            rgba(0, 0, 0, 0.05) 75%,
            rgba(0, 0, 0, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Hide the ::before ghost text overlay when JS has split text into wiggle-char spans.
   The ::before uses content:attr(data-text) which creates a duplicate transparent
   text layer in Chrome/Edge that makes the gradient invisible. */
.gradient-text:has(.wiggle-char)::before,
.gradient-text.wiggle-active::before {
    display: none !important;
}

/* Wiggle Animation for Digital Dreams */
@keyframes text-wiggle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) skewX(0deg);
    }

    10% {
        transform: translateY(-2px) rotate(-0.5deg) skewX(-0.5deg);
    }

    20% {
        transform: translateY(1px) rotate(0.5deg) skewX(0.5deg);
    }

    30% {
        transform: translateY(-1px) rotate(-0.3deg) skewX(-0.3deg);
    }

    40% {
        transform: translateY(2px) rotate(0.4deg) skewX(0.4deg);
    }

    50% {
        transform: translateY(-2px) rotate(-0.5deg) skewX(-0.5deg);
    }

    60% {
        transform: translateY(1px) rotate(0.3deg) skewX(0.3deg);
    }

    70% {
        transform: translateY(-1px) rotate(-0.4deg) skewX(-0.4deg);
    }

    80% {
        transform: translateY(2px) rotate(0.5deg) skewX(0.5deg);
    }

    90% {
        transform: translateY(-1px) rotate(-0.3deg) skewX(-0.3deg);
    }
}

@keyframes rainbow-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes gradient-shift {

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

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--glow-primary);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.secondary-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number::after {
    content: '+';
    -webkit-text-fill-color: var(--accent-pink);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.hero-visual {
    flex: 1;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hero 3D Scene ===== */
.hero-3d-scene {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating Cube */
.cube-container {
    width: 180px;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-float 6s ease-in-out infinite;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotate 20s linear infinite;
}

.cube-face {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 30px rgba(102, 126, 234, 0.2),
        inset 0 0 30px rgba(102, 126, 234, 0.1);
}

.cube-face.front {
    transform: rotateY(0deg) translateZ(90px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(90px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(90px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(90px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(90px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(90px);
}

@keyframes cube-rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes cube-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Orbiting Rings */
.orbit-ring {
    position: absolute;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: orbit-spin linear infinite;
}

.ring-1 {
    width: 280px;
    height: 280px;
    animation-duration: 8s;
    transform: rotateX(70deg) rotateZ(0deg);
}

.ring-2 {
    width: 350px;
    height: 350px;
    animation-duration: 12s;
    animation-direction: reverse;
    transform: rotateX(60deg) rotateZ(45deg);
    border-color: rgba(240, 147, 251, 0.3);
}

.ring-3 {
    width: 420px;
    height: 420px;
    animation-duration: 16s;
    transform: rotateX(50deg) rotateZ(-30deg);
    border-color: rgba(0, 212, 255, 0.3);
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    border-radius: 50%;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
}

.ring-2 .orbit-dot {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    box-shadow: 0 0 20px var(--accent-pink), 0 0 40px var(--accent-pink);
}

.ring-3 .orbit-dot {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
    box-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-cyan);
}

@keyframes orbit-spin {
    from {
        transform: rotateX(70deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(70deg) rotateZ(360deg);
    }
}

/* Floating Tech Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: tech-float 4s ease-in-out infinite;
}

.tech-icon svg {
    width: 24px;
    height: 24px;
}

.icon-1 {
    top: 10%;
    left: 10%;
    color: var(--primary);
    animation-delay: 0s;
}

.icon-2 {
    top: 15%;
    right: 15%;
    color: var(--accent-purple);
    animation-delay: -1s;
}

.icon-3 {
    bottom: 20%;
    left: 5%;
    color: var(--accent-cyan);
    animation-delay: -2s;
}

.icon-4 {
    bottom: 15%;
    right: 10%;
    color: var(--accent-pink);
    animation-delay: -3s;
}

@keyframes tech-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Center Orb */
.center-orb {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    border-radius: 50%;
    box-shadow:
        0 0 30px var(--primary),
        0 0 60px var(--primary),
        0 0 90px rgba(102, 126, 234, 0.5);
    animation: orb-glow 2s ease-in-out infinite;
}

.orb-pulse {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: orb-pulse-anim 3s ease-out infinite;
}

.pulse-1 {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.pulse-2 {
    width: 60px;
    height: 60px;
    animation-delay: 1s;
}

.pulse-3 {
    width: 60px;
    height: 60px;
    animation-delay: 2s;
}

@keyframes orb-glow {

    0%,
    100% {
        box-shadow:
            0 0 30px var(--primary),
            0 0 60px var(--primary),
            0 0 90px rgba(102, 126, 234, 0.5);
    }

    50% {
        box-shadow:
            0 0 50px var(--primary),
            0 0 100px var(--primary),
            0 0 150px rgba(102, 126, 234, 0.5);
    }
}

@keyframes orb-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.conn-line {
    stroke: rgba(102, 126, 234, 0.2);
    stroke-width: 1;
    stroke-dasharray: 5 5;
    animation: line-dash 20s linear infinite;
}

@keyframes line-dash {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 100;
    }
}


.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-primary), transparent 70%);
    filter: blur(60px);
    animation: glow-pulse 4s infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    position: relative;
}

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

@keyframes scroll-wheel {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

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

@keyframes bounce {

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

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Marquee Section ===== */
.marquee-section {
    padding: 2rem 0;
    background: linear-gradient(90deg, var(--bg-dark), rgba(102, 126, 234, 0.1), var(--bg-dark));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    flex-shrink: 0;
    padding: 0 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

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

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

/* ===== Section Styles ===== */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

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

/* ===== Services Section ===== */
.services {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(102, 126, 234, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-icon.purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05));
    color: var(--accent-purple);
}

.service-icon.cyan {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
    color: var(--accent-cyan);
}

.service-icon.pink {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2), rgba(240, 147, 251, 0.05));
    color: var(--accent-pink);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.feature-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--glow-primary);
    filter: blur(100px);
    top: -100px;
    right: -100px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-glow.purple {
    background: var(--glow-purple);
}

.card-glow.cyan {
    background: var(--glow-cyan);
}

.card-glow.pink {
    background: var(--glow-pink);
}

.service-card:hover .card-glow {
    opacity: 0.5;
}

/* ===== Why Us Section ===== */
.why-us {
    background: linear-gradient(180deg, transparent, rgba(102, 126, 234, 0.05), transparent);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-left .section-badge {
    margin-bottom: 1rem;
}

.why-us-left .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.why-us-left .section-subtitle {
    text-align: left;
    margin: 0 0 2rem 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.feature-icon.purple {
    background: linear-gradient(135deg, var(--accent-purple), var(--secondary));
}

.feature-icon.cyan {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.why-us-right {
    position: relative;
    height: 500px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float-card 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.float-card .card-icon {
    font-size: 1.5rem;
}

.float-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 25%;
    right: 5%;
    animation-delay: -1.5s;
}

.card-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: -3s;
}

.card-4 {
    bottom: 10%;
    right: 15%;
    animation-delay: -4.5s;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.blob-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.5;
    animation: blob-morph 10s ease-in-out infinite;
}

@keyframes blob-morph {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(180deg);
    }
}

/* ===== Portfolio Section ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
}

.portfolio-item.large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

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

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gradient-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.gradient-3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.gradient-4 {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.gradient-5 {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.project-icon {
    font-size: 4rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
}

.overlay-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


/* ===== Process Section ===== */
.process {
    background: linear-gradient(180deg, transparent, rgba(102, 126, 234, 0.05), transparent);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent-pink));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align content to the start */
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(102, 126, 234, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-content {
    width: 45%;
    /* Restrict width to avoid overlap */
    flex: none;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin: 0;
    /* Remove overlapping margins */
    transition: all 0.3s ease;
    z-index: 2;
    /* Ensure above lines/numbers if minor overlap */
}

.step-content:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-icon {
    width: 60px;
    height: 60px;
    /* Glassmorphic translucent effect */
    background: rgba(102, 126, 234, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step-icon:hover {
    background: rgba(102, 126, 234, 0.4);
    transform: translateX(-50%) scale(1.1);
}

/* ===== Testimonials Section ===== */
.testimonials {
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    position: relative;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--primary);
}

.quote-icon {
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 2rem;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* ===== CTA Section ===== */
.cta-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 4rem;
}

.cta-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 32px;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.cta-orb.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -150px;
    left: -150px;
    animation: float 15s infinite ease-in-out;
}

.cta-orb.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-pink);
    bottom: -125px;
    right: -125px;
    animation: float 12s infinite ease-in-out reverse;
}

.cta-orb.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow-pulse 5s infinite;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 1;
}

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

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

.contact-info .section-badge {
    margin-bottom: 1rem;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-info .section-subtitle {
    text-align: left;
    margin: 0 0 2rem 0;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(102, 126, 234, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.method-icon.purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05));
    color: var(--accent-purple);
}

.method-icon.cyan {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
    color: var(--accent-cyan);
}

.method-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.method-content a,
.method-content span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.method-content a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow-primary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667eea' 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 1rem center;
    background-size: 1rem;
}

.form-group select option {
    background: var(--bg-dark);
    color: white;
}

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

.input-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 30px var(--glow-primary);
}

.form-group input:focus~.input-glow,
.form-group select:focus~.input-glow,
.form-group textarea:focus~.input-glow {
    opacity: 0.3;
}

.primary-btn.full-width {
    width: 100%;
    justify-content: center;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

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

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* ===== Responsive Design ===== */

/* ===== Tablet (≤1024px) ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 7rem 2rem 3rem;
        gap: 2rem;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 380px;
        width: 100%;
        max-width: 500px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .why-us-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-us-right {
        display: none;
    }

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

    .portfolio-item.large {
        grid-column: span 1;
        aspect-ratio: 1;
    }

    .process-step {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }

    .step-content {
        width: 80%;
        margin: 0 auto;
        text-align: center;
    }

    .timeline-line,
    .step-number,
    .step-icon {
        display: none;
    }

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

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

    .section-container {
        padding: 4rem 1.5rem;
    }
}

/* ===== Mobile Nav Panel ===== */
.nav-mobile-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    gap: 0;
}

.nav-mobile-panel.open {
    transform: translateY(0);
}

.nav-mobile-panel .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
}

.nav-mobile-panel .nav-link:last-child {
    border-bottom: none;
}

.nav-mobile-panel .nav-link.active,
.nav-mobile-panel .nav-link:hover {
    color: var(--primary);
}

.nav-mobile-cta {
    margin-top: 1.5rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    text-align: center;
}

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

    /* --- Cursor --- */
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    /* --- Navbar --- */
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo .dot {
        font-size: 2rem;
    }

    /* Show mobile nav panel */
    .nav-mobile-panel {
        display: flex;
    }

    /* Hamburger → X animation */
    .mobile-menu.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

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

    /* --- Hero --- */
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 6rem 1.25rem 2rem;
        gap: 1.5rem;
        min-height: auto;
    }

    .hero-content {
        order: 1;
        max-width: 100%;
    }

    .hero-visual {
        order: 2;
        height: 300px;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Scale down the 3D scene so it fits */
    .hero-3d-scene {
        transform: scale(0.7);
        transform-origin: center center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }

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

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

    .stat-divider {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    /* --- Marquee --- */
    .marquee-content span {
        font-size: 1rem;
        padding: 0 1.25rem;
    }

    /* --- Section common --- */
    .section-container {
        padding: 3.5rem 1.25rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .service-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 1.25rem;
    }

    /* --- Why Us --- */
    .why-us-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .why-us-left .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .why-us-right {
        display: none;
    }

    .feature-item {
        padding: 1.25rem;
        gap: 1rem;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    /* --- Portfolio --- */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-item {
        border-radius: 16px;
    }

    .portfolio-item.large {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

    .portfolio-item {
        aspect-ratio: 4/3;
    }

    /* Always show overlay on mobile (no hover) */
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.3) 55%, transparent 100%);
    }

    .overlay-content {
        transform: translateY(0);
    }

    .overlay-content h3 {
        font-size: 1.1rem;
    }

    .overlay-content p {
        display: none;
    }

    .project-icon {
        font-size: 2.5rem;
    }

    /* --- Process --- */
    .process-timeline {
        max-width: 100%;
    }

    .process-step {
        flex-direction: column !important;
        align-items: flex-start;
        margin-bottom: 1.25rem;
        padding: 0;
    }

    .step-content {
        width: 100%;
        padding: 1.5rem;
        margin: 0;
        text-align: left;
        border-radius: 16px;
    }

    .step-content h3 {
        font-size: 1.2rem;
    }

    .timeline-line,
    .step-number,
    .step-icon {
        display: none;
    }

    /* --- Testimonials --- */
    .testimonials-slider {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    /* Hide non-active testimonial cards */
    .testimonial-card {
        display: none;
        opacity: 1;
        transform: scale(1);
        max-width: 100%;
        padding: 1.75rem 1.5rem;
    }

    .testimonial-card.active {
        display: block;
    }

    .testimonial-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .testimonial-dots {
        margin-top: 1.5rem;
    }

    /* --- CTA Section --- */
    .cta-section {
        padding: 3rem 1.25rem;
    }

    .cta-content {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .cta-content h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .primary-btn.large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* --- Contact --- */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .contact-form-wrapper {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }

    .contact-method {
        gap: 0.75rem;
    }

    .method-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    /* --- Footer --- */
    .footer {
        padding: 3rem 1.25rem 1.5rem;
    }

    .footer-main {
        gap: 2rem;
        margin-bottom: 2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    .footer-legal {
        gap: 1.25rem;
    }

    /* --- Preloader --- */
    #preloader spline-viewer {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .loader-text {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        bottom: 12%;
    }
}

/* ===== Small Mobile (≤480px) ===== */
@media (max-width: 480px) {

    /* --- Hero --- */
    .hero {
        padding: 5.5rem 1rem 2rem;
        gap: 1rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }

    .hero-visual {
        height: 260px;
    }

    .hero-3d-scene {
        transform: scale(0.6);
    }

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

    .hero-stats {
        gap: 0.75rem;
    }

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

    .stat-divider {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* --- Nav --- */
    .nav-container {
        padding: 0 1rem;
    }

    /* --- Sections --- */
    .section-container {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: clamp(1.4rem, 7vw, 1.75rem);
    }

    /* --- Service Cards --- */
    .service-card {
        padding: 1.5rem 1.25rem;
    }

    /* --- Footer --- */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* --- Modal --- */
    .liquid-glass-modal {
        width: 95%;
        border-radius: 20px;
    }

    .modal-content {
        padding: 1.75rem 1.25rem;
    }

    .modal-header h3 {
        font-size: 1.4rem;
    }

    .card-value {
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 1rem;
    }
}

/* ===== Animation Classes ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: animate-in 0.8s ease forwards;
}

.animate-in:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-in:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-in:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-in:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-in:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes animate-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Liquid Glass Modal ===== */
.liquid-modal-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.liquid-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Spline 3D Background for Modal */
.modal-spline-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.modal-spline-bg spline-viewer {
    width: 100%;
    height: 100%;
}

/* Watermark mask for modal Spline */
.spline-watermark-mask {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 60px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.8));
    z-index: 5;
    pointer-events: none;
}

.liquid-glass-modal {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(102, 126, 234, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.liquid-modal-overlay.active .liquid-glass-modal {
    transform: scale(1) translateY(0);
}

/* Rainbow Reflection - Apple Liquid Glass Style */
.rainbow-reflection {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 0, 128, 0.15) 0%,
            rgba(255, 128, 0, 0.1) 15%,
            rgba(255, 255, 0, 0.1) 30%,
            rgba(0, 255, 128, 0.1) 45%,
            rgba(0, 128, 255, 0.15) 60%,
            rgba(128, 0, 255, 0.15) 75%,
            rgba(255, 0, 128, 0.1) 90%,
            rgba(255, 128, 0, 0.15) 100%);
    background-size: 400% 400%;
    animation: rainbow-shift 8s ease infinite;
    pointer-events: none;
}

@keyframes rainbow-shift {

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

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }
}

/* Squishy Wavy Rainbow Waves */
.rainbow-wave {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: wave-morph 6s ease-in-out infinite;
}

.wave-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ff006e, #fb5607, #ffbe0b);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.wave-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #00f5d4, #00bbf9, #9b5de5);
    bottom: -40px;
    right: -40px;
    animation-delay: -2s;
}

.wave-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f15bb5, #fee440, #00f5d4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -4s;
}

@keyframes wave-morph {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        transform: translate(20px, -20px) scale(1.1) rotate(90deg);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        transform: translate(-10px, 20px) scale(0.95) rotate(180deg);
        border-radius: 50% 60% 30% 60% / 30% 40% 70% 40%;
    }

    75% {
        transform: translate(15px, 10px) scale(1.05) rotate(270deg);
        border-radius: 40% 50% 60% 50% / 60% 30% 40% 70%;
    }
}

/* Liquid Blob Decorations */
.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blob-float 10s ease-in-out infinite;
}

.blob-1 {
    width: 120px;
    height: 120px;
    background: var(--primary);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 100px;
    height: 100px;
    background: var(--accent-pink);
    bottom: 30%;
    left: 5%;
    animation-delay: -3s;
}

.blob-3 {
    width: 80px;
    height: 80px;
    background: var(--accent-cyan);
    top: 60%;
    right: 20%;
    animation-delay: -6s;
}

@keyframes blob-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(15px, -15px) scale(1.1);
    }

    66% {
        transform: translate(-10px, 10px) scale(0.9);
    }
}

/* Modal Content */
.modal-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    position: relative;
    animation: icon-bounce 2s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    border-radius: 24px;
    filter: blur(15px);
    opacity: 0.5;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-card .card-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.phone-card .card-icon {
    background: linear-gradient(135deg, #00d4ff, #00f5d4);
    color: white;
}

.card-content {
    flex: 1;
}

.card-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.card-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.contact-card:hover .card-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

/* Modal Footer */
.modal-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Squishy Open Animation */
@keyframes modal-squish-in {
    0% {
        transform: scale(0.3) rotate(-5deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }

    70% {
        transform: scale(0.95) rotate(-1deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.liquid-modal-overlay.active .liquid-glass-modal {
    animation: modal-squish-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Close Animation */
.liquid-modal-overlay.closing .liquid-glass-modal {
    animation: modal-squish-out 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes modal-squish-out {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(0.5) rotate(5deg);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .liquid-glass-modal {
        width: 95%;
        border-radius: 24px;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }


    .card-value {
        font-size: 0.95rem;
    }
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-out, transform 1s ease-out, visibility 1s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
    visibility: hidden;
}

#preloader spline-viewer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Mask the Spline watermark */
#preloader::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 60px;
    background: var(--bg-dark);
    z-index: 10;
    pointer-events: none;
}

.loader-text {
    position: absolute;
    bottom: 10%;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    animation: pulse-text 1.5s infinite;
    z-index: 2;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ===== Smooth Individual Wiggle ===== */
.wiggle-char {
    display: inline-block;
    animation: smooth-wiggle 0.6s ease-in-out infinite;
    transform-origin: center bottom;
}

/* Fix for Chrome/Edge/Safari: -webkit-background-clip: text does NOT cascade
   to child <span> elements in Chromium browsers. Each wiggle-char span needs
   its own gradient + clip so the rainbow text is visible in ALL browsers. */
.gradient-text .wiggle-char {
    background: linear-gradient(90deg,
            #ff4757 0%,
            #ff7f50 12%,
            #ffd93d 24%,
            #2ed573 36%,
            #1e90ff 48%,
            #5352ed 60%,
            #a55eea 72%,
            #ff6b81 84%,
            #ff4757 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter:
        drop-shadow(0 2px 3px rgba(255, 71, 87, 0.5)) drop-shadow(0 4px 6px rgba(255, 215, 61, 0.4)) drop-shadow(0 6px 10px rgba(30, 144, 255, 0.4)) drop-shadow(0 8px 15px rgba(165, 94, 234, 0.3));
}

/* Smooth, slower wiggle keyframes */
@keyframes smooth-wiggle {

    0%,
    100% {
        transform: rotate(-2deg) translateY(0);
    }

    25% {
        transform: rotate(1deg) translateY(-1px);
    }

    50% {
        transform: rotate(2deg) translateY(0);
    }

    75% {
        transform: rotate(-1deg) translateY(1px);
    }
}

/* ===== Adaptive Performance Layers ===== */
body.touch-device {
    cursor: auto;
}

body.touch-device a,
body.touch-device button {
    cursor: auto;
}

body.touch-device .cursor,
body.touch-device .cursor-follower {
    display: none;
}

body.compact-effects .gradient-orb {
    filter: blur(68px);
    opacity: 0.5;
}

body.compact-effects .light-flash {
    animation-duration: 10s;
    opacity: 0.7;
}

body.compact-effects .hero-glow {
    filter: blur(48px);
    opacity: 0.42;
}

body.compact-effects .cube-face,
body.compact-effects .tech-icon {
    backdrop-filter: blur(8px);
}

body.compact-effects .orbit-dot {
    box-shadow: 0 0 14px currentColor, 0 0 28px currentColor;
}

body.compact-effects .conn-line {
    opacity: 0.7;
}

body.compact-effects .wiggle-char {
    animation-duration: 0.8s;
}

body.chromium-browser .cursor {
    mix-blend-mode: normal;
    opacity: 0.95;
}

body.chromium-browser .cursor-follower {
    opacity: 0.4;
}

body.chromium-browser .gradient-orb {
    filter: blur(58px);
    opacity: 0.48;
}

body.chromium-browser .light-flash {
    opacity: 0.55;
    animation-duration: 10s;
}

body.chromium-browser .hero-glow {
    filter: blur(42px);
    opacity: 0.34;
}

body.chromium-browser .cube-face,
body.chromium-browser .tech-icon,
body.chromium-browser .navbar.scrolled,
body.chromium-browser .nav-mobile-panel,
body.chromium-browser .liquid-glass-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.chromium-browser .gradient-text .wiggle-char {
    filter: drop-shadow(0 3px 8px rgba(80, 120, 255, 0.28));
}

body.chromium-browser .rainbow-wave {
    filter: blur(26px);
    opacity: 0.42;
}

body.chromium-browser .liquid-blob {
    filter: blur(40px);
    opacity: 0.42;
}

body.chromium-browser .modal-spline-bg {
    opacity: 0.75;
}

body.reduced-motion .gradient-orb,
body.reduced-motion .light-flash,
body.reduced-motion .particle,
body.reduced-motion .cube-container,
body.reduced-motion .cube,
body.reduced-motion .orbit-ring,
body.reduced-motion .tech-icon,
body.reduced-motion .orb-core,
body.reduced-motion .orb-pulse,
body.reduced-motion .conn-line,
body.reduced-motion .hero-glow,
body.reduced-motion .badge-dot,
body.reduced-motion .logo .dot,
body.reduced-motion .wiggle-char,
body.reduced-motion .mouse-light-trail.active {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
}

body.reduced-motion .portfolio-item,
body.reduced-motion .service-card,
body.reduced-motion .process-step,
body.reduced-motion .testimonial-card,
body.reduced-motion .feature-item,
body.reduced-motion .primary-btn,
body.reduced-motion .cta-btn {
    transition-duration: 0.15s !important;
}

/* ===== Cross-Browser Animation Safety Net =====
   This ensures hero content ALWAYS becomes visible even if
   JavaScript or Spline fails to load in Chrome/Edge/Safari.
   The hero-content and hero-visual will unhide after 5.5s via CSS alone.
   ===================================================== */

/* When body does NOT have .loaded yet, use a CSS animation to eventually show content */
body:not(.loaded) .hero-content,
body:not(.loaded) .hero-visual {
    /* fallback: auto-reveal after 5.5s via CSS animation if JS body.loaded never fires */
    animation: force-reveal 0.8s ease 5.5s forwards;
}

@keyframes force-reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure spline-viewer custom element renders correctly in all browsers */
spline-viewer {
    display: block;
    width: 100%;
    height: 100%;
}
