/* —— Design tokens —— */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #07080d;
    --bg-elevated: #0e1018;
    --bg-card: #12151f;
    --bg-card-hover: #161a26;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(34, 211, 238, 0.35);
    --text: #e8eaef;
    --text-muted: #9aa3b5;
    --accent: #22d3ee;
    --accent-dim: rgba(34, 211, 238, 0.15);
    --accent-2: #a78bfa;
    --radius: 12px;
    --radius-lg: 20px;
    --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Background */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
    pointer-events: none;
}

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

.bg-glow--1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.5) 0%, transparent 70%);
    animation: bkGlowDrift 24s ease-in-out infinite;
}

.bg-glow--2 {
    width: 380px;
    height: 380px;
    bottom: 10%;
    left: -100px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
    animation: bkGlowDrift 30s ease-in-out infinite reverse;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    z-index: 10000;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: var(--bg-deep);
    font-weight: 600;
    border-radius: 6px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-inner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

/* Progress */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 10001;
    transition: width 0.12s ease-out;
}

/* Header / Nav */
.site-header {
    position: relative;
    z-index: 100;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.875rem 0;
    background: rgba(7, 8, 13, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
    animation: bkNavIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.navbar.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

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

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
}

.nav-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.15;
}

.nav-brand__name {
    font-size: 1.05rem;
}

.nav-brand__tag {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-brand__mark {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
    animation: bkMarkPulse 4s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--text);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: var(--transition);
}

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

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

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

.container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 5rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero__status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px #34d399;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero__title {
    font-size: clamp(2.25rem, 4.5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.hero__line {
    display: block;
}

.hero__line--accent {
    background: linear-gradient(105deg, var(--accent) 0%, var(--accent-2) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bkGradientShift 12s ease infinite;
}

.hero__lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero__demo {
    margin: -0.5rem 0 1.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero__demo-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(34, 211, 238, 0.35);
    transition: color var(--transition), border-color var(--transition);
}

.hero__demo-link:hover {
    color: var(--text);
    border-color: var(--accent);
}

.hero__demo-hint {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.25rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #06b6d4);
    color: var(--bg-deep);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.35);
}

.btn--ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
    border-color: var(--border-strong);
    background: rgba(34, 211, 238, 0.06);
}

.hero__meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero__meta--stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    max-width: 22rem;
}

.hero__meta--stats .hero__stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero__facts {
    margin-top: 1.75rem;
    padding: 1.1rem 1.25rem;
    max-width: 36rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(18, 21, 31, 0.65);
}

.hero__fact-line {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.hero__fact-line + .hero__fact-line {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
}

.hero__fact-line--sub {
    font-size: 0.88rem;
}

.hero__fact-strong {
    color: var(--text);
    font-weight: 700;
}

.hero__fact-mid {
    font-weight: 400;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero__stat-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

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

.hero__visual {
    display: flex;
    justify-content: center;
}

.hero__frame {
    position: relative;
    width: min(100%, 560px);
}

.hero__frame-inner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg-card);
    aspect-ratio: 3 / 2;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    display: block;
}

.hero__card {
    position: absolute;
    bottom: -12px;
    right: -8px;
    left: auto;
    padding: 0.85rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: min(100%, 260px);
}

.hero__card-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.hero__card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* Sections */
.section {
    padding: 5.5rem 0;
    position: relative;
    z-index: 1;
}

.section--tight {
    padding: 4.5rem 0;
}

.section--alt {
    background: linear-gradient(180deg, rgba(14, 16, 24, 0.5) 0%, transparent 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-lead {
    color: var(--text-muted);
    font-size: 1rem;
}

.section-lead--skills {
    margin-top: -1.5rem;
    margin-bottom: 0;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.skills-block {
    margin-bottom: 3rem;
}

.skills-block:last-child {
    margin-bottom: 0;
}

.skills-block__title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* About */
.about__layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about__panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.about__panel p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
}

.about__panel p:last-child {
    margin-bottom: 0;
}

.about__highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__highlights li {
    padding: 1rem 1.25rem;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.about__highlights strong {
    color: var(--text);
    font-weight: 600;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
    border-color: rgba(34, 211, 238, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.skill-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    color: var(--accent);
}

.skill-card__icon svg {
    width: 100%;
    height: 100%;
}

.skill-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.skill-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-list li {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    letter-spacing: 0.02em;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.service-card {
    position: relative;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.12), transparent 55%);
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(167, 139, 250, 0.35);
    transform: translateY(-3px);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(34, 211, 238, 0.25);
    line-height: 1;
    margin-bottom: 0.75rem;
    display: block;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.service-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.project-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-3px);
}

.project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
}

.project-visual {
    min-height: 200px;
    position: relative;
    background: var(--bg-elevated);
}

.project-visual--a {
    background: linear-gradient(145deg, #0c4a6e 0%, #1e1b4b 50%, #0f172a 100%);
}

.project-visual--b {
    background: linear-gradient(145deg, #134e4a 0%, #312e81 100%);
}

.project-visual--c {
    background: linear-gradient(145deg, #4c1d95 0%, #0e7490 100%);
}

.project-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
}

.project-content {
    padding: 1.75rem;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.project-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.feature-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--accent);
}

.project-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    margin: 0;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.testimonial-card__quote {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--text);
}

.testimonial-card__quote p {
    margin: 0;
}

.testimonial-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
}

.testimonial-card__name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.testimonial-card__role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.platform {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}

.platform.android {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.platform.ios {
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.platform.web {
    background: rgba(251, 191, 36, 0.1);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

/* Tech */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 0.65rem;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), background var(--transition);
}

.tech-item:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background: var(--bg-card-hover);
}

.tech-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tech-item:hover .tech-name {
    color: var(--text);
}

/* Contact */
.contact-content {
    max-width: 560px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-info--single {
    max-width: 480px;
    margin: 0 auto;
    gap: 1.1rem;
}

.contact-demo {
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(18, 21, 31, 0.55);
}

.contact-demo__title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.contact-demo__text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.contact-demo__btn {
    width: 100%;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), transform var(--transition);
}

.contact-item:hover {
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateX(4px);
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-details h3 {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-link {
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-all;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    background: var(--bg-deep);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.footer__top {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer__top:hover {
    text-decoration: underline;
}

/* Reveal animations (JS adds .visible / inline styles) */
.skill-card,
.service-card,
.project-card,
.testimonial-card,
.tech-item,
.about__panel,
.about__highlights li,
.contact-demo {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__visual {
        order: -1;
    }

    .hero__frame {
        max-width: min(100%, 480px);
        margin: 0 auto;
    }

    .hero__card {
        right: 50%;
        transform: translateX(50%);
        bottom: -10px;
        left: auto;
    }

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

    .project-card--featured {
        grid-template-columns: 1fr;
    }

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

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

    .hero__meta--stats {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: 57px;
        flex-direction: column;
        padding: 1.25rem;
        gap: 0;
        background: rgba(7, 8, 13, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 6rem;
    }
}

@media (max-width: 520px) {
    .nav-brand__name {
        font-size: 0.95rem;
    }

    .nav-brand__tag {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 480px) {
    .hero__cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero__meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* —— Motion: Build Kaizen —— */
@keyframes bkFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bkFadeInRight {
    from {
        opacity: 0;
        transform: translateX(26px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

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

@keyframes bkCardGlow {
    0%,
    100% {
        box-shadow: var(--shadow);
        border-color: var(--border);
    }
    50% {
        box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.2);
        border-color: rgba(34, 211, 238, 0.25);
    }
}

@keyframes bkGlowDrift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(24px, -18px) scale(1.05);
    }
    66% {
        transform: translate(-16px, 12px) scale(0.96);
    }
}

@keyframes bkNavIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bkMarkPulse {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
    }
    50% {
        box-shadow: 0 0 22px rgba(167, 139, 250, 0.55);
    }
}

.hero__copy--animate > .hero__eyebrow {
    opacity: 0;
    animation: bkFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}

.hero__copy--animate .hero__title .hero__line {
    opacity: 0;
    animation: bkFadeUp 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__copy--animate .hero__title .hero__line:nth-child(1) {
    animation-delay: 0.88s;
}

.hero__copy--animate .hero__title .hero__line:nth-child(2) {
    animation-delay: 0.98s;
}

.hero__copy--animate .hero__title .hero__line:nth-child(3) {
    animation-delay: 1.08s;
}

.hero__copy--animate > .hero__lead {
    opacity: 0;
    animation: bkFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.16s both;
}

.hero__copy--animate > .hero__cta {
    opacity: 0;
    animation: bkFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.24s both;
}

.hero__copy--animate > .hero__demo {
    opacity: 0;
    animation: bkFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.3s both;
}

.hero__copy--animate > .hero__meta {
    opacity: 0;
    animation: bkFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.38s both;
}

.hero__copy--animate > .hero__facts {
    opacity: 0;
    animation: bkFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.46s both;
}

.hero__visual--animate {
    opacity: 0;
    animation: bkFadeInRight 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.92s both;
}

.hero__card--float {
    animation: bkCardGlow 4.5s ease-in-out 2s infinite;
}

.hero__stat-num {
    display: inline-block;
    min-width: 0.5em;
}

@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-brand__mark,
    .bg-glow--1,
    .bg-glow--2,
    .hero__line--accent,
    .hero__copy--animate > .hero__eyebrow,
    .hero__copy--animate .hero__title .hero__line,
    .hero__copy--animate > .hero__lead,
    .hero__copy--animate > .hero__cta,
    .hero__copy--animate > .hero__demo,
    .hero__copy--animate > .hero__meta,
    .hero__copy--animate > .hero__facts,
    .hero__visual--animate,
    .hero__card--float {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero__line--accent {
        background-size: auto;
    }

    .hero__copy--animate > *,
    .hero__copy--animate .hero__title .hero__line {
        opacity: 1 !important;
    }
}
