/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Colors - Dark Tech Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #16161f;
    --bg-card: rgba(22, 22, 31, 0.6);
    --bg-card-hover: rgba(30, 30, 42, 0.8);

    --text-primary: #e8e8ef;
    --text-secondary: #8b8b9e;
    --text-tertiary: #5a5a6e;

    --accent-start: #6366f1;
    --accent-mid: #8b5cf6;
    --accent-end: #a78bfa;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-glow-strong: rgba(99, 102, 241, 0.3);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-py: clamp(80px, 10vw, 140px);
    --container-px: clamp(20px, 4vw, 40px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

ul {
    list-style: none;
}

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

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

input,
textarea,
select {
    font-family: inherit;
}

::selection {
    background: var(--accent-start);
    color: white;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    top: -200px;
    right: -100px;
    animation: glow-drift 20s ease-in-out infinite;
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: glow-drift 25s ease-in-out infinite reverse;
}

@keyframes glow-drift {

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

    33% {
        transform: translate(30px, -20px);
    }

    66% {
        transform: translate(-20px, 30px);
    }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.4s var(--ease-out), padding 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.nav--scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.nav__logo-bracket {
    color: var(--accent-start);
    transition: color 0.3s;
}

.nav__logo:hover .nav__logo-bracket {
    color: var(--accent-end);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.nav__link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav__link--cta {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
    color: white;
    padding: 8px 20px;
}

.nav__link--cta:hover {
    background: linear-gradient(135deg, var(--accent-mid), var(--accent-end));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow-strong);
    transform: translateY(-1px);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 110;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(20px);
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-menu__link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
    transform: translateY(20px);
    opacity: 0;
}

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

.mobile-menu.active .mobile-menu__link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu__link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu__link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu__link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu__link:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu__link:hover {
    color: var(--accent-end);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
    box-shadow: 0 8px 32px var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-mid), var(--accent-end));
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: inherit;
}

.btn--primary:hover::before {
    opacity: 1;
}

.btn--primary span,
.btn--primary svg {
    position: relative;
    z-index: 1;
}

.btn--ghost {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

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

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-end);
    background: var(--accent-glow);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-header__desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: clamp(120px, 16vh, 180px);
    padding-bottom: var(--section-py);
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-end);
    background: var(--accent-glow);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.12);
    margin-bottom: 28px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero__title-gradient {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero__stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-start);
}

.hero__stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    font-weight: 500;
}

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

/* Code Window */
.hero__visual {
    position: relative;
}

.hero__code-window {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 60px var(--accent-glow);
    transition: box-shadow 0.5s;
}

.hero__code-window:hover {
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 80px var(--accent-glow-strong);
}

.code-window__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-window__dots {
    display: flex;
    gap: 7px;
}

.code-window__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-window__dot--red {
    background: #ff5f57;
}

.code-window__dot--yellow {
    background: #febc2e;
}

.code-window__dot--green {
    background: #28c840;
}

.code-window__title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.code-window__body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-window__body pre {
    white-space: pre;
}

.code--keyword {
    color: #c084fc;
}

.code--variable {
    color: #67e8f9;
}

.code--property {
    color: #a78bfa;
}

.code--string {
    color: #86efac;
}

.code--boolean {
    color: #fbbf24;
}

.code--function {
    color: #60a5fa;
}

.code--comment {
    color: var(--text-tertiary);
}

/* ============================================
   INFINITE TEXT MARQUEE
   ============================================ */
.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #08080c;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    user-select: none;
    z-index: 5;
}

.marquee__inner {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
    will-change: transform;
}

.marquee__inner span {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 3.5vw, 2.25rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-end);
    opacity: 0.18;
    white-space: nowrap;
    flex-shrink: 0;
}

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

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

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

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out), background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-start), var(--accent-mid), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s var(--ease-out), background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

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

.service-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    color: var(--accent-end);
    margin-bottom: 20px;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-card__icon {
    background: var(--accent-glow-strong);
    transform: scale(1.05);
}

.service-card__title {
    font-size: 1.1875rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-card__tags li {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.service-card:hover .service-card__tags li {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
    padding: var(--section-py) 0;
    position: relative;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out), background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-start), var(--accent-mid), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.project-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s var(--ease-out), background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

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

.project-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--accent-end);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-card__title {
    font-size: 1.1875rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.project-card__desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-card__tags li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.project-card:hover .project-card__tags li {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

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

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-top: 16px;
    margin-bottom: 24px;
}

.about__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about__tech {
    margin-top: 32px;
}

.about__tech-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.about__tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.tech-pill:hover {
    border-color: var(--accent-start);
    color: var(--accent-end);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* Hero Profile Photo */
.hero__profile {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.hero__profile-name {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
    min-height: 1.4em;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.hero__profile-name.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__profile-name::after {
    content: '▌';
    display: inline-block;
    -webkit-text-fill-color: var(--accent-start);
    animation: cursor-blink 0.6s step-end infinite;
    margin-left: 1px;
    font-weight: 400;
}

.hero__profile-name.done::after {
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero__profile-img {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--accent-start);
    box-shadow:
        0 0 20px var(--accent-glow-strong),
        0 0 50px var(--accent-glow);
    transition: all 0.5s var(--ease-out);
    animation: profile-glow 4s ease-in-out infinite alternate;
}

@keyframes profile-glow {
    0% {
        box-shadow: 0 0 16px var(--accent-glow-strong), 0 0 40px var(--accent-glow);
    }

    100% {
        box-shadow: 0 0 24px var(--accent-glow-strong), 0 0 64px rgba(139, 92, 246, 0.18);
    }
}

.hero__profile-img:hover {
    transform: scale(1.06);
    border-color: var(--accent-mid);
    box-shadow:
        0 0 32px var(--accent-glow-strong),
        0 0 72px rgba(139, 92, 246, 0.25);
}

/* Terminal */
.about__terminal {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(139, 92, 246, 0.05);
}

.terminal__body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 2;
}

.terminal__line {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
}

.terminal__line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s var(--ease-out);
}

.terminal__prompt {
    color: #22c55e;
    font-weight: 500;
    user-select: none;
}

.terminal__text {
    color: var(--text-primary);
}

.terminal__output {
    padding-left: 32px;
}

.terminal__result {
    color: var(--text-secondary);
}

.terminal__result--highlight {
    color: var(--accent-end);
}

.terminal__cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-start);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ============================================
   PROCESS
   ============================================ */
.process {
    padding: var(--section-py) 0;
    position: relative;
}

.process__timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process__timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(12.5% + 12px);
    right: calc(12.5% + 12px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end), var(--accent-start));
    opacity: 0.3;
}

.process__step {
    text-align: center;
    position: relative;
}

.process__step-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-start);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid rgba(99, 102, 241, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-out);
}

.process__step:hover .process__step-number {
    border-color: var(--accent-start);
    box-shadow: 0 0 30px var(--accent-glow-strong);
    transform: scale(1.08);
}

.process__step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.process__step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-top: 16px;
    margin-bottom: 16px;
}

.contact__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}

.contact__method:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.contact__method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-end);
    flex-shrink: 0;
}

.contact__method-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact__method-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Contact Form */
.contact__form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease-out);
    outline: none;
}

.form__input::placeholder {
    color: var(--text-tertiary);
}

.form__input:focus {
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b9e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form__select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form__checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.form__checkbox-group input[type="checkbox"]:checked {
    background: var(--accent-start);
    border-color: var(--accent-start);
}

.form__checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form__checkbox-group label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer__tagline {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 8px;
    line-height: 1.5;
}

.footer__company {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 8px;
    opacity: 0.7;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--accent-end);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer__heart {
    color: #ef4444;
    animation: heartbeat 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {

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

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__visual {
        max-width: 560px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__profile-img {
        width: 140px;
        height: 140px;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .process__timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .process__timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__burger {
        display: flex;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero__stat-divider {
        display: none;
    }

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

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

    .process__timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact__form {
        padding: 24px;
    }

    .hero__stats {
        justify-content: space-between;
    }
}

/* ============================================
   PERFORMANCE: Pause animations when modal active
   ============================================ */
body.modal-active .bg-glow,
body.modal-active .bg-grid {
    display: none;
}

body.modal-active .marquee__inner {
    animation-play-state: paused;
}

body.modal-active .hero__badge-dot,
body.modal-active .hero__profile-img,
body.modal-active .footer__heart,
body.modal-active .chatbot__bubble,
body.modal-active .chatbot__typing-dot {
    animation-play-state: paused;
}

body.modal-active .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ============================================
   PROJECT PREVIEW MODAL
   ============================================ */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
    will-change: opacity, visibility;
    content-visibility: hidden;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    content-visibility: visible;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 10, 0.92);
}

.project-modal__container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s var(--ease-out);
    will-change: transform;
}

.project-modal.active .project-modal__container {
    transform: translateY(0) scale(1);
}

.project-modal__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.project-modal__views {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.project-modal__view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.project-modal__view-btn:hover {
    color: var(--text-primary);
}

.project-modal__view-btn.active {
    background: var(--bg-tertiary);
    color: var(--accent-end);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-modal__close {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.project-modal__close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.project-modal__frame-wrapper {
    flex: 1;
    background: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    padding: 24px;
}

.project-modal__phone-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 0 solid transparent;
    transition: 
        width 0.35s var(--ease-out), 
        height 0.35s var(--ease-out), 
        max-width 0.35s var(--ease-out), 
        max-height 0.35s var(--ease-out), 
        border 0.35s var(--ease-out), 
        border-radius 0.35s var(--ease-out), 
        box-shadow 0.35s var(--ease-out);
}

.project-modal__phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 12px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
}

.project-modal__phone-notch::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #0d0d0d;
    border-radius: 50%;
}

.project-modal__phone-notch::after {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 4px;
    background: #151515;
    border-radius: 2px;
}

.project-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    display: block;
    will-change: auto;
    contain: strict;
    isolation: isolate;
}

.project-modal__frame-wrapper.mobile-view {
    align-items: center;
}

.project-modal__frame-wrapper.mobile-view .project-modal__phone-container {
    width: 375px;
    height: 812px;
    max-width: 100%;
    max-height: 100%;
    border: 12px solid #1a1a1a;
    border-radius: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.project-modal__frame-wrapper.mobile-view .project-modal__phone-notch {
    opacity: 1;
}

@media (max-width: 768px) {

    .project-modal__views span,
    .project-modal__close span {
        display: none;
    }

    .project-modal__view-btn,
    .project-modal__close {
        padding: 8px;
    }
}

/* ============================================
   AI CHATBOT
   ============================================ */
.chatbot {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
}

.chatbot__bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow:
        0 4px 20px var(--accent-glow-strong),
        0 0 40px var(--accent-glow);
    transition: all 0.4s var(--ease-out);
    animation: chatbot-pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 201;
}

.chatbot__bubble:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 28px var(--accent-glow-strong),
        0 0 60px var(--accent-glow);
}

@keyframes chatbot-pulse {

    0%,
    100% {
        box-shadow:
            0 4px 20px var(--accent-glow-strong),
            0 0 40px var(--accent-glow);
    }

    50% {
        box-shadow:
            0 4px 24px var(--accent-glow-strong),
            0 0 56px rgba(99, 102, 241, 0.25);
    }
}

/* Nudge Tooltip */
.chatbot__nudge {
    position: absolute;
    bottom: 18px;
    right: 72px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 10px 36px 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-hover);
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: all 0.4s var(--ease-out);
    pointer-events: none;
    z-index: 202;
}

.chatbot__nudge::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-hover);
    border-top: 1px solid var(--border-hover);
}

.chatbot__nudge.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.chatbot__nudge-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.chatbot__nudge-close:hover {
    color: var(--text-primary);
}

/* Bounce animation for bubble entrance */
.chatbot__bubble.bounce {
    animation: chatbot-bounce 0.6s var(--ease-spring), chatbot-pulse 3s ease-in-out infinite;
}

@keyframes chatbot-bounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Chat Window */
.chatbot__window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 370px;
    max-height: 500px;
    background: rgba(14, 14, 20, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 16px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--accent-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s var(--ease-out);
    pointer-events: none;
}

.chatbot__window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(22, 22, 31, 0.8);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chatbot__header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot__header-avatar {
    position: relative;
    flex-shrink: 0;
}

.chatbot__header-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-start);
}

.chatbot__header-status {
    position: absolute;
    bottom: 0;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid rgba(14, 14, 20, 0.95);
}

.chatbot__header-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.chatbot__header-subtitle {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.chatbot__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: pointer;
    background: none;
    border: none;
}

.chatbot__close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Messages */
.chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    max-height: 380px;
}

.chatbot__messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot__messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot__messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.chatbot__msg {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    line-height: 1.6;
    animation: chatMsg-in 0.4s var(--ease-out) both;
}

@keyframes chatMsg-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.chatbot__msg--bot {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chatbot__msg--user {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

/* Action Buttons */
.chatbot__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    animation: chatMsg-in 0.4s var(--ease-out) 0.2s both;
}

.chatbot__action-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-end);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s var(--ease-out);
}

.chatbot__action-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateX(4px);
}

/* Typing Indicator */
.chatbot__typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    animation: chatMsg-in 0.3s var(--ease-out) both;
}

.chatbot__typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.chatbot__typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot__typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {

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

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Chat link styling */
.chatbot__msg a {
    color: var(--accent-end);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.chatbot__msg a:hover {
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .chatbot {
        bottom: 16px;
        right: 16px;
    }

    .chatbot__bubble {
        width: 52px;
        height: 52px;
    }

    .chatbot__bubble svg {
        width: 24px;
        height: 24px;
    }

    .chatbot__window {
        width: calc(100vw - 32px);
        right: -12px;
        bottom: 68px;
        max-height: 70vh;
    }

    .chatbot__messages {
        min-height: 200px;
        max-height: calc(70vh - 70px);
    }
}