/* ============================================
   IAsmart.tech v2 — Dark Glassmorphism
   Futuristic AI Agency
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #08080c;
    --bg-card: rgba(255,255,255,0.04);
    --bg-glass: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
    --border-h: rgba(255,255,255,0.15);
    --text: #f0f0f5;
    --text-dim: rgba(255,255,255,0.5);
    --text-dimmer: rgba(255,255,255,0.3);
    --accent: #8b5cf6;
    --accent-2: #6366f1;
    --accent-glow: rgba(139,92,246,0.4);
    --accent-soft: rgba(139,92,246,0.1);
    --gradient: linear-gradient(135deg, #8b5cf6, #6366f1, #a78bfa);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --font: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cabinet Grotesk', 'Satoshi', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font) !important;
    background: var(--bg) !important;
    background-color: #08080c !important;
    color: var(--text) !important;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* --- Ambient Background --- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.ambient__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}
.ambient__orb--1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    top: -15%; left: -10%;
    animation: drift1 20s ease-in-out infinite;
}
.ambient__orb--2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #4338ca 0%, transparent 70%);
    top: 40%; right: -15%;
    animation: drift2 25s ease-in-out infinite;
}
.ambient__orb--3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    bottom: -10%; left: 30%;
    animation: drift3 22s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 60px) scale(1.1); }
    66% { transform: translate(-40px, 30px) scale(0.95); }
}
@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -40px) scale(1.05); }
    66% { transform: translate(40px, -20px) scale(0.9); }
}
@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -50px) scale(1.1); }
}

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.5s var(--ease);
}
.nav--scrolled {
    padding: 0.75rem 0;
    background: rgba(8,8,12,0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}
.nav__logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem !important;
    border-radius: 100px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text) !important;
    font-size: 0.85rem !important;
    transition: all 0.3s var(--ease) !important;
}
.nav__cta:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav__burger span {
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.nav__burger.active span:first-child { transform: rotate(45deg) translate(2.3px, 2.3px); }
.nav__burger.active span:last-child { transform: rotate(-45deg) translate(2.3px, -2.3px); }

/* Mobile menu */
.mob-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(8,8,12,0.95);
    backdrop-filter: blur(30px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}
.mob-menu.active { display: flex; opacity: 1; pointer-events: all; }
.mob-menu__link {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
}
.mob-menu.active .mob-menu__link { opacity: 1; transform: translateY(0); }
.mob-menu.active .mob-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mob-menu.active .mob-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mob-menu.active .mob-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mob-menu.active .mob-menu__link:nth-child(4) { transition-delay: 0.25s; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--spring);
    white-space: nowrap;
    position: relative;
}
.btn--glow {
    background: var(--gradient);
    color: white;
    box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.3);
}
.btn--glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4);
}
.btn--glass {
    background: var(--bg-glass);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.btn--glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-h);
    transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* --- Hero --- */
.hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    z-index: 2;
}
.hero__container {
    max-width: 800px;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--accent-soft);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
}
.hero__badge-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero__title-grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__sub {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero grid visual */
.hero__grid {
    position: relative;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}
.hero__grid-card {
    width: 340px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    animation: cardFloat 8s ease-in-out infinite;
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(0.5deg); }
}
.hero__grid-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 0.75rem;
}
.hero__grid-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-h);
}
.hero__grid-dots span:first-child { background: #ff5f57; }
.hero__grid-dots span:nth-child(2) { background: #febc2e; }
.hero__grid-dots span:last-child { background: #28c840; }
.hero__grid-bar {
    height: 6px;
    width: 50%;
    background: var(--gradient);
    border-radius: 3px;
    margin-bottom: 0.75rem;
}
.hero__grid-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0.75rem;
}
.hero__grid-lines div {
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}
.hero__grid-lines .short { width: 60%; }
.hero__grid-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 0.75rem;
}
.hero__grid-blocks div {
    height: 44px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.hero__grid-blocks .accent {
    background: var(--accent-soft);
    border-color: rgba(139,92,246,0.2);
}
.hero__grid-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: rgba(8,8,12,0.7);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.hero__grid-float svg { color: var(--accent); }
.hero__grid-float--1 {
    top: 10%;
    right: -20%;
    animation: floatTag 6s ease-in-out infinite;
}
.hero__grid-float--2 {
    bottom: 15%;
    left: -18%;
    animation: floatTag 6s ease-in-out infinite 2s;
}
@keyframes floatTag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.hero__scroll-track {
    width: 1px;
    height: 48px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}
.hero__scroll-thumb {
    width: 100%;
    height: 40%;
    background: var(--accent);
    position: absolute;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0% { top: -40%; }
    100% { top: 140%; }
}

/* --- Section common --- */
.label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.stag { margin-bottom: 3.5rem; }

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.glass-card:hover {
    border-color: rgba(139,92,246,0.3);
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(139,92,246,0.08), 0 16px 40px rgba(0,0,0,0.3);
}
.glass-card:hover::before { opacity: 1; }
.glass-card__icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 14px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139,92,246,0.15);
}
.glass-card h3 {
    position: relative;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.glass-card p {
    position: relative;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.glass-card ul {
    position: relative;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.glass-card ul li {
    font-size: 0.9rem;
    color: var(--text-dim);
    padding-left: 1.25rem;
    position: relative;
}
.glass-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

/* --- Services --- */
.services {
    padding: 7rem 0;
}
.services__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* --- Process --- */
.process {
    padding: 7rem 0;
}
.process__track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.process__line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), var(--border) 50%, transparent);
}
.process__step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
}
.process__num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    z-index: 1;
    transition: all 0.4s var(--ease);
}
.process__step:hover .process__num {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.process__info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.process__info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Work --- */
.work {
    padding: 7rem 0;
}
.work__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}
.work__card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.5s var(--ease);
    cursor: pointer;
}
.work__card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.work__card--wide {
    grid-row: span 2;
}
.work__card-visual {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.work__card--wide .work__card-visual {
    height: 100%;
    min-height: 300px;
}
.work__card-info {
    padding: 1.5rem;
}
.work__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(139,92,246,0.15);
}
.work__card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.work__card-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Mockups */
.work__mockup {
    width: 75%;
    max-width: 260px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    overflow: hidden;
}
.work__mockup-bar {
    display: flex;
    gap: 5px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.work__mockup-bar span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.work__mockup-body {
    display: flex;
    padding: 8px;
    gap: 6px;
    min-height: 120px;
}
.work__mockup-side {
    width: 40px;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
}
.work__mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.work__mockup-line {
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.work__mockup-line.short { width: 60%; }
.work__mockup-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: auto;
}
.work__mockup-row div {
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.work__mockup--phone {
    width: 120px;
    border-radius: 1.25rem;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.work__mockup-notch {
    width: 40%;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.work__mockup-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.work__mockup--chat {
    width: 180px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.work__mockup-bubble {
    height: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
}
.work__mockup-bubble.left { width: 65%; align-self: flex-start; }
.work__mockup-bubble.right { width: 50%; align-self: flex-end; background: rgba(139,92,246,0.2); }
.work__mockup-bubble.small { width: 40%; height: 16px; }
.work__mockup-typing {
    display: flex;
    gap: 4px;
    align-self: flex-start;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
}
.work__mockup-typing span {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing 1.4s infinite;
}
.work__mockup-typing span:nth-child(2) { animation-delay: 0.2s; }
.work__mockup-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* --- Stats --- */
.stats {
    padding: 5rem 0;
}
.stats__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
}
.stats__item { text-align: center; }
.stats__val {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stats__lbl {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}
.stats__sep {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* --- Testimonial --- */
.testi {
    padding: 7rem 0;
}
.testi__card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
}
.testi__quote {
    color: var(--accent);
    opacity: 0.3;
    margin: 0 auto 1.5rem;
}
.testi__card blockquote {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin-bottom: 2rem;
}
.testi__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.testi__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid rgba(139,92,246,0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.testi__author strong {
    display: block;
    font-size: 0.9rem;
}
.testi__author span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* --- Contact --- */
.contact {
    padding: 7rem 0;
}
.contact__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
}
.contact__sub {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}
.contact__perks {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.contact__perk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.contact__perk svg { color: var(--accent); flex-shrink: 0; }

/* Form */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}
.field input,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    outline: none;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
    background: rgba(255,255,255,0.05);
}
.field textarea {
    resize: vertical;
    min-height: 100px;
}
.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-dimmer);
}

/* --- Footer --- */
.footer {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
}
.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer__brand p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}
.footer__cols {
    display: flex;
    gap: 4rem;
}
.footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer__col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.footer__col a {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.3s;
}
.footer__col a:hover { color: var(--accent); }
.footer__bot {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dimmer);
}

/* --- Reveal --- */
[data-r] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-r].vis {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__row { grid-template-columns: 1fr; }
    .work__grid { grid-template-columns: 1fr; }
    .work__card--wide { grid-row: span 1; }
    .contact__wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__grid-float--1 { right: 0; }
    .hero__grid-float--2 { left: 0; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .stats__row {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    .stats__sep { width: 48px; height: 1px; }
    .footer__top { flex-direction: column; gap: 2rem; }
    .contact__wrap { padding: 2rem; }
    .glass-card { padding: 2rem; }
    .hero__grid { display: none; }
}

@media (max-width: 480px) {
    .hero__btns { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}

/* --- Project screenshots --- */
.work__card-visual--img {
    position: relative;
    overflow: hidden;
}
.work__card-visual--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease);
}
.work__card:hover .work__card-visual--img img {
    transform: scale(1.04);
}

/* --- Chatbot Widget --- */
.chatbot-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4);
    transition: all 0.4s var(--spring);
    animation: botPulse 3s ease-in-out infinite;
}
.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 0 50px var(--accent-glow), 0 12px 32px rgba(0,0,0,0.5);
}
.chatbot-toggle svg { color: white; transition: transform 0.3s var(--ease); }
.chatbot-toggle.active svg { transform: rotate(45deg); }

@keyframes botPulse {
    0%, 100% { box-shadow: 0 0 30px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4); }
    50% { box-shadow: 0 0 50px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4); }
}

.chatbot-window {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    z-index: 199;
    width: 380px;
    max-height: 520px;
    background: rgba(14,14,20,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s var(--spring);
}
.chatbot-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.chatbot-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.chatbot-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
}
.chatbot-header__info strong {
    display: block;
    font-size: 0.9rem;
}
.chatbot-header__info span {
    font-size: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}
.chatbot-header__info span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
}
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 340px;
}
.chatbot-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: msgIn 0.3s var(--ease);
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatbot-msg--bot {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chatbot-msg--user {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chatbot-msg--typing {
    display: flex;
    gap: 4px;
    padding: 0.85rem 1.25rem;
}
.chatbot-msg--typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing 1.4s infinite;
}
.chatbot-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}
.chatbot-input input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}
.chatbot-input input:focus { border-color: var(--accent); }
.chatbot-input input::placeholder { color: var(--text-dimmer); }
.chatbot-input button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s var(--spring);
}
.chatbot-input button:hover { transform: scale(1.08); }

@media (max-width: 480px) {
    .chatbot-window {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        bottom: 5.5rem;
        max-height: 70vh;
    }
    .chatbot-toggle {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
    }
}

/* --- Neural Net Canvas --- */
#neuralNet {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient);
    z-index: 201;
    transition: none;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- Glitch on counters --- */
.stats__val.glitching {
    animation: glitchText 0.15s steps(2) 3;
}
@keyframes glitchText {
    0%   { text-shadow: 2px 0 #ff0040, -2px 0 #0ff; }
    25%  { text-shadow: -2px 0 #ff0040, 2px 0 #0ff; }
    50%  { text-shadow: 1px 1px #ff0040, -1px -1px #0ff; }
    75%  { text-shadow: -1px -1px #ff0040, 1px 1px #0ff; }
    100% { text-shadow: none; }
}

/* --- 3D Tilt glow overlay --- */
.glass-card,
.work__card {
    transform-style: preserve-3d;
}
.glass-card .tilt-glow,
.work__card .tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}
.glass-card:hover .tilt-glow,
.work__card:hover .tilt-glow {
    opacity: 1;
}

/* ============================================
   Robot Reveal — Scroll-driven section
   ============================================ */

.robo {
    position: relative;
    z-index: 2;
    height: 400vh;
}

.robo__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.robo__scene {
    position: relative;
    width: 300px;
    height: 400px;
    will-change: transform;
    transition: transform 0.08s linear;
}

.robo__layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
    transition: opacity 0.12s linear;
}

.robo__layer svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Robot float animation on shell layer */
.robo__layer--shell svg {
    animation: roboFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(139,92,246,0.25)) drop-shadow(0 0 6px rgba(99,102,241,0.15));
}

@keyframes roboFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40%       { transform: translateY(-10px) rotate(0.3deg); }
    70%       { transform: translateY(-6px) rotate(-0.2deg); }
}

/* Circuits layer glow */
.robo__layer--circuits svg {
    filter: drop-shadow(0 0 12px rgba(6,182,212,0.3)) drop-shadow(0 0 5px rgba(139,92,246,0.2));
}

/* Heart layer */
.robo__layer--heart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.robo__heart-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    /* Shift heart to chest center area */
    transform: translateY(28px);
}

.robo__heart-svg {
    width: 72px;
    height: 66px;
    position: relative;
    z-index: 2;
    animation: heartbeat 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(236,72,153,0.7)) drop-shadow(0 0 30px rgba(139,92,246,0.4));
}

/* Double-beat heartbeat — quick-quick-pause rhythm */
@keyframes heartbeat {
    0%   { transform: scale(1); }
    8%   { transform: scale(1.18); }
    16%  { transform: scale(1.02); }
    24%  { transform: scale(1.16); }
    36%  { transform: scale(1); }
    100% { transform: scale(1); }
}

.robo__heart-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236,72,153,0.35) 0%, rgba(139,92,246,0.18) 45%, transparent 70%);
    animation: heartGlowPulse 1.6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes heartGlowPulse {
    0%, 100% { transform: scale(1);   opacity: 0.7; }
    8%        { transform: scale(1.3); opacity: 1; }
    24%       { transform: scale(1.25); opacity: 0.95; }
    36%       { transform: scale(1);   opacity: 0.7; }
}

/* Phase label */
.robo__label {
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: 10;
    white-space: nowrap;
}

/* Slogan */
.robo__slogan {
    position: absolute;
    text-align: center;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    padding: 0 2rem;
    max-width: 680px;
}

.robo__slogan-line1 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.robo__slogan-line2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.robo__slogan-sign {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .robo { height: 350vh; }
    .robo__scene {
        width: 210px;
        height: 280px;
    }
    .robo__heart-wrap {
        width: 90px;
        height: 90px;
        transform: translateY(20px);
    }
    .robo__heart-svg {
        width: 54px;
        height: 50px;
    }
    .robo__heart-glow { inset: -20px; }
}
