/* ============================================================
   ecmx digital — High-Tech Redesign
   ============================================================ */

:root {
    --bg: #030308;
    --bg2: #0a0a14;
    --text: #f0f0ff;
    --muted: #6b7280;
    --accent: #818cf8;
    --accent2: #a78bfa;
    --glow: rgba(129, 140, 248, 0.55);
    --glow-soft: rgba(129, 140, 248, 0.12);
    --glass: rgba(255, 255, 255, 0.025);
    --glass-b: rgba(255, 255, 255, 0.07);
    --font: 'Outfit', system-ui, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ===== CANVAS ===== */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===== MOUSE GLOW ===== */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
    transition: transform 0.05s linear;
}

/* ===== CUSTOM CURSOR ===== */
#cursor-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(129, 140, 248, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

#cursor-outer.expand {
    width: 60px;
    height: 60px;
    background: rgba(129, 140, 248, 0.08);
    border-color: var(--accent);
}

#cursor-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    box-shadow: 0 0 10px var(--glow);
    transition: opacity 0.2s;
}

#cursor-inner.hide {
    opacity: 0;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(120deg, #fff 10%, var(--accent) 60%, var(--accent2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== TAG ===== */
.tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--glow-soft);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

/* ===== GLITCH TEXT ===== */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0);
}

.glitch::before {
    color: #a78bfa;
    animation: glitch-1 4s infinite steps(1);
    left: 2px;
}

.glitch::after {
    color: #38bdf8;
    animation: glitch-2 4s infinite steps(1);
    left: -2px;
}

@keyframes glitch-1 {

    0%,
    90%,
    100% {
        clip-path: inset(100% 0 0 0);
        opacity: 0;
    }

    91% {
        clip-path: inset(20% 0 70% 0);
        opacity: 0.8;
    }

    93% {
        clip-path: inset(60% 0 30% 0);
        opacity: 0.8;
    }

    95% {
        clip-path: inset(0% 0 80% 0);
        opacity: 0.8;
    }
}

@keyframes glitch-2 {

    0%,
    88%,
    100% {
        clip-path: inset(100% 0 0 0);
        opacity: 0;
    }

    89% {
        clip-path: inset(40% 0 50% 0);
        opacity: 0.8;
    }

    91% {
        clip-path: inset(10% 0 85% 0);
        opacity: 0.8;
    }

    93% {
        clip-path: inset(70% 0 20% 0);
        opacity: 0.8;
    }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 100;
    transition: all 0.5s var(--ease);
}

header.scrolled {
    background: rgba(3, 3, 8, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-b);
    padding: 0.8rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.4));
    transition: filter 0.35s var(--ease), transform 0.35s var(--ease);
    cursor: none;
}

.logo img:hover {
    filter: drop-shadow(0 0 18px rgba(129, 140, 248, 0.9)) drop-shadow(0 0 40px rgba(167, 139, 250, 0.55)) brightness(1.15);
    transform: scale(1.06);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
    color: var(--text);
    text-shadow: 0 0 20px var(--glow);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-sm {
    display: inline-block;
    padding: 1rem 2.4rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s var(--ease);
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    transform: translateX(120%) skewX(-15deg);
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 0 50px var(--glow);
    background: #a5b4fc;
}

.btn-secondary {
    border: 1.5px solid rgba(129, 140, 248, 0.5);
    color: var(--accent);
    margin-left: 1.2rem;
}

.btn-secondary:hover {
    background: rgba(129, 140, 248, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.2);
}

.btn-sm {
    padding: 0.65rem 1.4rem;
    background: var(--glass);
    border: 1px solid var(--glass-b);
    color: var(--text);
    font-size: 0.75rem;
}

.btn-sm:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ===== SECTIONS — BASE ===== */
section {
    position: relative;
    z-index: 2;
}

/* ===== SECTION HEADER (centered) ===== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 0;
}

/* ===== HERO ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

/* Radial glow behind hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(129, 140, 248, 0);
    }
}

.hero-title {
    font-size: clamp(2rem, 6.5vw, 4.5rem);
    line-height: 1.0;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 1;
    /* Always visible — typewriter handles entrance */
    min-height: 2.1em;
    /* Prevents layout jump while text types */
}

/* Typed cursor */
.typed-cursor {
    display: inline-block;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 20px var(--glow), 0 0 40px var(--glow);
    margin-left: 2px;
    vertical-align: baseline;
    transition: opacity 0.1s;
}

/* Smooth filter transitions for glitch-flash */
.typed-line-1,
.typed-line-2 {
    transition: filter 0.1s;
    display: inline-block;
}

.typed-line-2 {
    margin-top: 0.05em;
}

.hero-sub {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 3.5rem;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 5rem;
}

.scroll-indicator span {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Hero badge */
.hero-badge {
    position: absolute;
    right: 6vw;
    bottom: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-badge svg {
    position: absolute;
}

.badge-center {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--glow));
}

/* ===== ABOUT ===== */
.about-section {
    padding: 10rem 0;
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--muted);
    max-width: 760px;
    line-height: 1.7;
    margin-bottom: 5rem;
}

/* Stats */
.stats-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-num {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-plus {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--accent);
    vertical-align: super;
    line-height: 0;
    -webkit-text-fill-color: var(--accent);
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: flex;
    align-items: flex-start;
    gap: 0.1em;
    line-height: 1;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--glass-b);
}

/* ===== SERVICES ===== */
.services-section {
    padding: 10rem 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card:hover {
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(129, 140, 248, 0.08);
}

/* Hover glow overlay */
.card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 16px;
    z-index: 0;
    transition: background 0.1s;
}

/* Top accent line */
.card-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.5s var(--ease);
}

.service-card:hover .card-line {
    width: 80%;
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    margin: 0 auto 2rem;
    background: var(--glow-soft);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.3));
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.service-card p {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: 8rem 0 12rem;
    text-align: center;
}

.contact-box {
    position: relative;
    background: var(--glass);
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: 24px;
    padding: 5rem 4rem;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(129, 140, 248, 0.06);
}

/* Animated dot-grid inside contact box */
.contact-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(129, 140, 248, 0.12) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
    pointer-events: none;
}

.contact-box>* {
    position: relative;
    z-index: 1;
}

.contact-box h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.contact-box p {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    margin-top: 3rem;
    text-align: left;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

.form-group+.form-group:not(.form-row .form-group) {
    margin-bottom: 1.2rem;
}

.contact-form>.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    width: 100%;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    resize: none;
    cursor: text;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(129, 140, 248, 0.04);
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.1), inset 0 0 10px rgba(129, 140, 248, 0.03);
}

.btn-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.1rem 2rem;
    border: none;
    font-family: var(--font);
    cursor: none;
    margin-top: 0.5rem;
    border-radius: 10px;
}

.btn-form svg {
    width: 18px;
    height: 18px;
}

/* ===== FOOTER ===== */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-b);
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer p {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   IMPRESSIVE ANIMATIONS
   ============================================================ */

/* ----- 1. AURORA SWEEP — slow color wash across the page ----- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(129, 140, 248, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 30%, rgba(167, 139, 250, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 90%, rgba(56, 189, 248, 0.04) 0%, transparent 60%);
    animation: aurora-drift 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    33% {
        transform: translate(3%, -4%) scale(1.05);
        opacity: 1;
    }

    66% {
        transform: translate(-4%, 3%) scale(0.97);
        opacity: 0.7;
    }

    100% {
        transform: translate(2%, 5%) scale(1.03);
        opacity: 1;
    }
}

/* ----- 2. HERO TITLE — entrance animation ----- */
.hero-title {
    animation: title-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

@keyframes title-in {
    from {
        opacity: 0;
        transform: translateY(60px) skewY(3deg);
        filter: blur(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
        filter: blur(0);
    }
}

/* ----- 3. HERO SUB — slide + fade with blur ----- */
.hero-sub {
    animation: sub-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.6s;
}

@keyframes sub-in {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ----- 4. HERO BUTTONS — pop in ----- */
.hero-btns {
    animation: btns-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.9s;
}

@keyframes btns-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----- 5. HERO TAG — slide from left ----- */
.hero-tag {
    animation: tag-in 0.8s var(--ease) both;
    animation-delay: 0.15s;
}

@keyframes tag-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ----- 6. NEON BORDER PULSE on .contact-box ----- */
.contact-box {
    animation: neon-pulse 4s ease-in-out infinite;
}

@keyframes neon-pulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(129, 140, 248, 0.06), 0 0 0px rgba(129, 140, 248, 0);
        border-color: rgba(129, 140, 248, 0.25);
    }

    50% {
        box-shadow: 0 0 80px rgba(129, 140, 248, 0.18), 0 0 160px rgba(129, 140, 248, 0.06);
        border-color: rgba(129, 140, 248, 0.6);
    }
}

/* ----- 7. BEAM SCAN LINE across contact box ----- */
.contact-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.06), transparent);
    transform: skewX(-20deg);
    animation: beam-scan 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes beam-scan {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 170%;
        opacity: 0;
    }
}

/* ----- 8. CARD SHIMMER on hover ----- */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: skewX(-15deg);
    transition: none;
    pointer-events: none;
}

.service-card:hover::after {
    animation: shimmer-sweep 0.7s ease forwards;
}

@keyframes shimmer-sweep {
    from {
        left: -100%;
    }

    to {
        left: 160%;
    }
}

/* ----- 9. FLOATING ORB — decorative circles in hero ----- */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 10vw;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.07) 0%, transparent 70%);
    animation: orb-float 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ----- 10. LOGO HOVER glow pulse ----- */
.logo img {
    animation: logo-glow 5s ease-in-out infinite;
}

@keyframes logo-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 22px rgba(129, 140, 248, 0.7));
    }
}

/* ----- 11. TAG ENTRANCE (sections) ----- */
.tag {
    animation: tag-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ----- 12. STAGGERED REVEAL DELAYS ----- */
.reveal:nth-child(1) {
    transition-delay: 0s;
}

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* Services grid items stagger */
.services-grid .service-card:nth-child(1) {
    transition-delay: 0s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.15s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* ----- 13. STAT NUMBER — scale bounce on reveal ----- */
.stats-row.active .stat-num {
    animation: stat-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.stats-row.active .stat-item:nth-child(1) .stat-num {
    animation-delay: 0s;
}

.stats-row.active .stat-item:nth-child(3) .stat-num {
    animation-delay: 0.15s;
}

.stats-row.active .stat-item:nth-child(5) .stat-num {
    animation-delay: 0.3s;
}

@keyframes stat-bounce {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ----- 14. BUTTON PRIMARY — ripple glow on hover ----- */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0);
    animation: none;
}

.btn-primary:hover {
    animation: btn-pulse 1.2s ease-in-out infinite;
}

@keyframes btn-pulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(129, 140, 248, 0.35);
    }

    50% {
        box-shadow: 0 0 60px rgba(129, 140, 248, 0.75), 0 0 100px rgba(129, 140, 248, 0.25);
    }
}

/* ----- 15. HEADER nav links — underline grow on hover ----- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}

.nav-link:hover::after {
    width: 100%;
}

/* ----- 16. SCROLL INDICATOR — letter bounce ----- */
.scroll-indicator span {
    animation: letter-fade 3s ease-in-out infinite;
}

@keyframes letter-fade {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.9;
    }
}

/* ----- 17. SERVICE ICON — spin on hover ----- */
.service-card:hover .service-icon {
    animation: icon-spin-glow 0.6s var(--ease) forwards;
}

@keyframes icon-spin-glow {
    0% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.3));
    }

    50% {
        transform: rotate(12deg) scale(1.15);
        filter: drop-shadow(0 0 20px rgba(129, 140, 248, 0.8));
    }

    100% {
        transform: rotate(0deg) scale(1.05);
        filter: drop-shadow(0 0 14px rgba(129, 140, 248, 0.5));
    }
}

/* ----- 18. GRID LINES background for sections ----- */
.services-section::before,
.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(129, 140, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
    pointer-events: none;
}

/* ----- 19. GLITCH TEXT intensify on actual hover ----- */
.hero-title:hover .glitch::before {
    animation-duration: 0.4s !important;
    animation-timing-function: steps(1) !important;
}

.hero-title:hover .glitch::after {
    animation-duration: 0.5s !important;
    animation-timing-function: steps(1) !important;
}

/* ----- 20. DOT PULSE (hero tag) — color shift ----- */
.dot {
    animation: pulse-dot 2s infinite, dot-color 6s ease-in-out infinite;
}

@keyframes dot-color {

    0%,
    100% {
        background: var(--accent);
    }

    50% {
        background: var(--accent2);
    }
}

/* ===== BACK TO TOP ===== */
#btn-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 50%;
    color: var(--accent);
    cursor: none;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#btn-top svg {
    width: 18px;
    height: 18px;
}

#btn-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#btn-top:hover {
    background: rgba(129, 140, 248, 0.15);
    box-shadow: 0 0 24px rgba(129, 140, 248, 0.35);
    border-color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 5.5rem);
    }

    .hero-badge {
        display: none;
    }

    .stats-row {
        gap: 2.5rem;
    }

    .stat-divider {
        display: none;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-box {
        padding: 3.5rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}