:root {
    --bg: #07070d;
    --bg-elevated: #0e1018;
    --surface: #141824;
    --surface-2: #1a1f2e;
    --text: #f4f5f7;
    --muted: #8b90a0;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #61dafb;
    --accent-2: #8b7cff;
    --accent-3: #3ee0b0;
    --gradient: linear-gradient(135deg, #61dafb 0%, #8b7cff 55%, #3ee0b0 100%);
    --font: "Outfit", system-ui, sans-serif;
    --display: "Syne", "Outfit", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --radius: 24px;
    --nav-h: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    overflow-x: hidden;
}

body.has-cursor {
    cursor: none;
}

::selection {
    background: rgba(97, 218, 251, 0.28);
    color: #fff;
}

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

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--accent);
    color: #071018;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
}

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.small-container {
    max-width: 640px;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.eyebrow.center {
    text-align: center;
}

.section-title {
    font-family: var(--display);
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-title.left {
    text-align: left;
    margin-bottom: 1.4rem;
}

.section-lead {
    text-align: center;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 2.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient);
    color: #071018;
    box-shadow: 0 10px 30px rgba(97, 218, 251, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(139, 124, 255, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(97, 218, 251, 0.45);
}

.full-width {
    width: 100%;
}

.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--gradient);
    z-index: 1200;
    transform-origin: left;
}

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

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: drift 18s ease-in-out infinite;
}

.orb-a {
    width: 420px;
    height: 420px;
    background: #61dafb;
    top: -120px;
    right: 8%;
}

.orb-b {
    width: 360px;
    height: 360px;
    background: #8b7cff;
    bottom: 10%;
    left: -80px;
    animation-delay: -6s;
}

.orb-c {
    width: 280px;
    height: 280px;
    background: #3ee0b0;
    top: 48%;
    right: -60px;
    animation-delay: -11s;
    opacity: 0.22;
}

.grid-overlay {
    position: absolute;
    inset: 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 at center, black 20%, transparent 75%);
}

.noise {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
}

.navbar {
    background: rgba(7, 7, 13, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3000;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    background: rgba(7, 7, 13, 0.86);
    border-bottom-color: var(--line);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--nav-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
}

.logo-mark {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: #071018;
    background: var(--gradient);
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
}

.logo-name {
    font-family: var(--display);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.35rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(97, 218, 251, 0.35);
    background: rgba(20, 24, 36, 0.92);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 3011;
    margin-left: auto;
    flex-shrink: 0;
    color: white;
    font-size: 1.05rem;
    appearance: none;
    -webkit-appearance: none;
}

@media (min-width: 981px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle.open i::before {
    content: "\f00d";
}

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 1.25rem) 0 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    background: rgba(97, 218, 251, 0.08);
    color: var(--accent);
    border: 1px solid rgba(97, 218, 251, 0.22);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-3);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(62, 224, 176, 0.7);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(62, 224, 176, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(62, 224, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 224, 176, 0); }
}

.hero-kicker {
    font-family: var(--mono);
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.hero-text h1 {
    font-family: var(--display);
    font-size: clamp(2.2rem, 4.5vw, 3.55rem);
    line-height: 1.08;
    margin-bottom: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-lead {
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
    max-width: 34rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 2rem;
}

.hero-stats strong {
    display: block;
    font-family: var(--display);
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.82rem;
}

.portrait-stage {
    position: relative;
    width: min(100%, 420px);
    height: 440px;
    margin: 0 auto;
}

.orbit-ring {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px dashed rgba(97, 218, 251, 0.22);
    animation: spin 28s linear infinite;
}

.ring-two {
    inset: 52px;
    border-style: solid;
    border-color: rgba(139, 124, 255, 0.16);
    animation-duration: 40s;
    animation-direction: reverse;
}

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

.orbit-icons {
    position: absolute;
    inset: 18px;
    animation: spin 22s linear infinite;
}

.orbit-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px;
    border-radius: 14px;
    background: rgba(14, 16, 24, 0.88);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transform: rotate(calc(var(--i) * 90deg)) translate(190px) rotate(calc(var(--i) * -90deg));
}

.orbit-chip i {
    font-size: 1.05rem;
}

.chip-rn { color: #61dafb; }
.chip-ts { color: #7db7ff; }
.chip-fb { color: #ffa000; }

.developer-photo-wrapper {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--gradient);
    padding: 4px;
    box-shadow: 0 30px 70px rgba(97, 218, 251, 0.18);
    animation: float 5.5s ease-in-out infinite;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    border: 6px solid var(--bg);
    background: var(--surface);
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 14px)); }
}

.code-card,
.status-card {
    position: absolute;
    background: rgba(14, 16, 24, 0.78);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.code-card {
    left: -28px;
    bottom: 42px;
    border-radius: 16px;
    padding: 0.85rem 1rem 0.7rem;
    animation: float-card 6s ease-in-out infinite;
}

.code-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 0.55rem;
}

.code-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
}

.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-card pre {
    font-family: var(--mono);
    font-size: 0.68rem;
    line-height: 1.55;
    color: #c9d1d9;
}

.code-card .kw { color: #c084fc; }
.code-card .tag { color: #61dafb; }
.code-card .str { color: #3ee0b0; }

.status-card {
    right: -6px;
    top: 58px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    animation: float-card 5s ease-in-out infinite reverse;
}

.status-card i {
    color: #61dafb;
    font-size: 1.3rem;
}

.status-card strong {
    display: block;
    font-size: 0.88rem;
}

.status-card span {
    color: var(--muted);
    font-size: 0.75rem;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.marquee {
    position: relative;
    z-index: 1;
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    padding: 1rem 0;
    animation: marquee 38s linear infinite;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.marquee-track span::before {
    content: "◆";
    margin-right: 2.5rem;
    color: var(--accent);
    font-size: 0.55rem;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.about,
.skills,
.projects,
.contact,
.footer {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.about-copy p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-points {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.about-points li {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-points li:hover {
    transform: translateY(-4px);
    border-color: rgba(97, 218, 251, 0.28);
}

.about-points i {
    color: var(--accent);
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.about-points h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.about-points p {
    color: var(--muted);
    font-size: 0.9rem;
}

.skills {
    background: radial-gradient(ellipse at top, rgba(97, 218, 251, 0.06), transparent 55%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.skill-card {
    background: var(--surface);
    padding: 1.6rem 1.35rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(97, 218, 251, 0.28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.skill-card.featured {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    background:
        linear-gradient(180deg, rgba(97, 218, 251, 0.08), transparent 50%),
        var(--surface);
}

.skill-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-2);
    margin-bottom: 1.1rem;
    font-size: 1.15rem;
}

.skill-icon.rn {
    color: #61dafb;
    background: rgba(97, 218, 251, 0.1);
}

.skill-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
}

.skill-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin-top: 1.1rem;
}

.skill-pills li {
    font-size: 0.75rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(97, 218, 251, 0.08);
    color: var(--accent);
    border: 1px solid rgba(97, 218, 251, 0.16);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font);
    transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: white;
    color: var(--bg);
    border-color: white;
}

.apps-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-card {
    display: flex;
    background: var(--surface);
    border-radius: 28px;
    padding: 2rem;
    align-items: center;
    gap: 2.5rem;
    border: 1px solid var(--line);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.app-card:nth-child(even) {
    flex-direction: row-reverse;
}

.app-card:hover {
    transform: translateY(-6px);
    border-color: rgba(97, 218, 251, 0.22);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

.app-card.hide {
    display: none;
}

.app-mockup-wrapper {
    flex-shrink: 0;
    perspective: 900px;
}

.smartphone-frame {
    width: 210px;
    height: 430px;
    border: 3px solid #2a2e3a;
    border-radius: 36px;
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow:
        0 0 0 1px #111,
        0 22px 50px rgba(0, 0, 0, 0.45),
        inset 0 0 0 2px #111;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.45s ease;
}

.app-card:nth-child(even) .smartphone-frame {
    transform: rotateY(8deg) rotateX(4deg);
}

.app-card:hover .smartphone-frame {
    transform: rotateY(0) rotateX(0) translateY(-6px);
}

.island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 20px;
    background: #000;
    border-radius: 20px;
    z-index: 2;
}

.home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 4px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    z-index: 2;
}

.screen-shot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex-grow: 1;
}

.app-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.app-info h3 {
    font-family: var(--display);
    font-size: 1.7rem;
    margin: 0.45rem 0 0.9rem;
    letter-spacing: -0.03em;
}

.app-info p {
    color: var(--muted);
    margin-bottom: 1.3rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--muted);
    border: 1px solid var(--line);
}

.app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.store-btn {
    background: #000;
    color: white;
    text-decoration: none;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #334155;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.store-btn.play {
    background: #f3f4f6;
    color: #111;
    border-color: #f3f4f6;
}

.contact {
    background: radial-gradient(ellipse at bottom, rgba(139, 124, 255, 0.08), transparent 55%);
}

.contact-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.styled-form {
    background: var(--surface);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    position: relative;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg);
    border: 1px solid #2a3144;
    border-radius: 12px;
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(97, 218, 251, 0.15);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.form-status {
    min-height: 1.4rem;
    margin-top: 0.9rem;
    text-align: center;
    color: var(--accent-3);
    font-size: 0.9rem;
}

.footer {
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer .container {
    padding-block: 2rem;
}

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

.social-icons {
    display: flex;
    gap: 0.6rem;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--muted);
    font-size: 1.1rem;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

html.full-shot .hero {
    min-height: auto;
}

html.full-shot .reveal {
    opacity: 1;
    transform: none;
    animation: none;
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: rise 0.8s ease forwards;
    animation-play-state: paused;
}

.reveal.in-view {
    animation-play-state: running;
}

.hero-text .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero-text .reveal:nth-child(2) { animation-delay: 0.12s; }
.hero-text .reveal:nth-child(3) { animation-delay: 0.2s; }
.hero-text .reveal:nth-child(4) { animation-delay: 0.28s; }
.hero-text .reveal:nth-child(5) { animation-delay: 0.36s; }
.hero-text .reveal:nth-child(6) { animation-delay: 0.44s; }

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    body.has-cursor .cursor,
    body.has-cursor .cursor-dot {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 2000;
        transform: translate(-50%, -50%);
    }

    body.has-cursor .cursor {
        width: 36px;
        height: 36px;
        border: 1px solid rgba(97, 218, 251, 0.55);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }

    body.has-cursor .cursor.hovering {
        width: 56px;
        height: 56px;
        background: rgba(97, 218, 251, 0.08);
    }

    body.has-cursor .cursor-dot {
        width: 6px;
        height: 6px;
        background: var(--accent);
    }
}

@media (max-height: 820px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-h) + 1.5rem);
        padding-bottom: 2rem;
    }

    .portrait-stage {
        height: 380px;
        transform: scale(0.92);
        transform-origin: center;
    }
}

@media (max-width: 980px) {
    .hero-container,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .skill-card.featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .portrait-stage {
        height: 340px;
        margin-bottom: 0.25rem;
    }

    .logo-name {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(7, 7, 13, 0.96);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.2rem;
        z-index: 3005;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: calc(var(--nav-h) + 1rem);
    }

    .hero-container {
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-kicker {
        white-space: normal;
        padding-inline: 0.75rem;
    }

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

    .hero-stats {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .hero-text h1 {
        font-size: 2.35rem;
    }

    .app-card,
    .app-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
        padding: 1.4rem;
    }

    .smartphone-frame,
    .app-card:nth-child(even) .smartphone-frame {
        transform: none;
        width: 190px;
        height: 390px;
    }

    .tech-tags,
    .app-links {
        justify-content: center;
    }

    .section-title.left {
        text-align: center;
    }

    .code-card {
        display: none;
    }

    .status-card {
        right: 0;
        top: 24px;
    }

    .orbit-chip {
        width: 38px;
        height: 38px;
        margin: -19px;
        transform: rotate(calc(var(--i) * 90deg)) translate(124px) rotate(calc(var(--i) * -90deg));
    }

    .developer-photo-wrapper {
        width: 240px;
        height: 240px;
    }

    .logo-name {
        display: none;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card.featured {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
