/* ============================================================
   MATHEUS HENRY PORTFOLIO — style.css
   Paleta: Branco, Cinza, Azul, Preto | Estilo: Tech/Dev Moderno
   ============================================================ */

/* ── RESET & CUSTOM PROPERTIES ──────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --bg: #0a0b0f;
    --bg2: #10121a;
    --bg3: #161925;
    --surface: #1a1d2e;
    --border: rgba(255, 255, 255, 0.07);
    --accent: #3d8bfe;
    --accent2: #5ba3ff;
    --accent-glow: rgba(61, 139, 254, 0.25);
    --white: #f0f4ff;
    --gray: #8892a4;
    --gray2: #b2bac8;
    --dark: #060810;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --nav-h: 72px;
    --section-py: clamp(80px, 10vw, 130px);
    --container: 1140px;

    /* Transitions */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-mono);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--accent);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

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

/* ── CUSTOM CURSOR ───────────────────────────────────────────── */
.icon {
    height: 64px;
    width: 64px;
}

.cursor {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.12s var(--ease), opacity 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s;
}

@media (hover: none) {

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

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    background: var(--accent);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent2);
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 800;
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(18px);
    border-color: var(--border);
}

.nav-inner {
    max-width: var(--container);
    margin: auto;
    padding: 0 clamp(20px, 4vw, 48px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.04em;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language toggle button */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--gray2);
    padding: 6px 14px;
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    letter-spacing: 0.04em;
}

.lang-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.lang-icon {
    font-size: 14px;
    line-height: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray2);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

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

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

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

.accent {
    color: var(--accent);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--nav-h) + 60px) clamp(20px, 6vw, 80px) 80px;
    max-width: calc(var(--container) + 96px);
    margin: auto;
    position: relative;
    gap: 40px;
}

/* Subtle grid background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 40%, transparent 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero-greeting {
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -2px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-typed-wrap {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--gray2);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.typed-text {
    color: var(--accent2);
}

.typed-cursor {
    color: var(--accent);
    animation: blink 0.9s infinite;
    font-weight: 700;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-sub {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px var(--accent-glow);
}

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

.btn-ghost {
    color: var(--gray2);
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.03em;
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

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

/* Badge */
.hero-badge {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.badge-ring {
    width: clamp(140px, 18vw, 220px);
    height: clamp(140px, 18vw, 220px);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: spin-slow 18s linear infinite;
    background: conic-gradient(from 0deg, var(--accent-glow), transparent 60%);
}

.badge-ring::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(61, 139, 254, 0.2);
    border-radius: 50%;
}

.badge-code {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--accent);
    animation: spin-slow-reverse 18s linear infinite;
}

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

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator span {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.6);
        transform-origin: top;
    }
}

/* ── SHARED SECTION STYLES ───────────────────────────────────── */
.section {
    padding: var(--section-py) clamp(20px, 4vw, 48px);
}

.container {
    max-width: var(--container);
    margin: auto;
}

.section-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 56px;
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about {
    background: var(--bg2);
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.about-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.avatar-ring {
    width: 90px;
    height: 90px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg3);
    box-shadow: 0 0 24px var(--accent-glow);
}

.avatar-initials {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: calc(50% - 52px);
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid var(--surface);
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

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

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

.about-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--white);
    margin-bottom: 4px;
}

.about-role {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.about-location {
    font-size: 12px;
    color: var(--gray);
}

.about-location i {
    margin-right: 4px;
}

.about-text p {
    color: var(--gray2);
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--white);
    font-weight: 500;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    font-size: 12px;
    color: var(--accent2);
    background: rgba(61, 139, 254, 0.1);
    border: 1px solid rgba(61, 139, 254, 0.2);
    padding: 4px 12px;
    border-radius: 99px;
    letter-spacing: 0.04em;
}

/* ── GOALS ───────────────────────────────────────────────────── */
.goals {
    background: var(--bg);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.goal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.goal-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--accent-glow);
}

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

.goal-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 16px;
}

.goal-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.goal-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 20px;
}

.goal-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(61, 139, 254, 0.1);
    border: 1px solid rgba(61, 139, 254, 0.2);
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
}

/* ── EXPERIENCE ──────────────────────────────────────────────── */
.experience {
    background: var(--bg2);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-item {
    position: relative;
    margin-bottom: 52px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 10px var(--accent-glow);
}

.transition-dot {
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent);
}

.past-dot {
    border-color: var(--gray);
    box-shadow: none;
}

.timeline-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 28px 24px;
    transition: border-color 0.3s;
}

.timeline-body:hover {
    border-color: rgba(61, 139, 254, 0.4);
}

.transition-body {
    border-color: rgba(61, 139, 254, 0.3);
    background: rgba(61, 139, 254, 0.06);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-badge {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 500;
}

.timeline-badge.current {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.timeline-badge.transition {
    background: rgba(61, 139, 254, 0.15);
    color: var(--accent2);
    border: 1px solid rgba(61, 139, 254, 0.25);
}

.timeline-badge.past {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    border: 1px solid var(--border);
}

.timeline-period {
    font-size: 12px;
    color: var(--gray);
}

.timeline-body h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.timeline-body p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 14px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    font-size: 11px;
    color: var(--gray2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 99px;
}

/* ── SKILLS ──────────────────────────────────────────────────── */
.skills {
    background: var(--bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(61, 139, 254, 0.4);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.skill-icon {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 14px;
}

.skill-card h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.skill-card p {
    font-size: 12.5px;
    color: var(--gray);
    line-height: 1.7;
}

/* ── PROJECTS ─────────────────────────────────────────────── */
.projects {
    background: var(--bg2);
}

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
}

.projects-header .section-title {
    margin-bottom: 0;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray2);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--surface);
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
    white-space: nowrap;
    margin-bottom: 56px;
}

.github-link:hover {
    color: var(--white);
    border-color: var(--accent);
    background: rgba(61, 139, 254, 0.08);
    transform: translateY(-2px);
}

.github-link .fa-brands {
    font-size: 16px;
}

.github-link .fa-arrow-up-right-from-square {
    font-size: 11px;
    color: var(--gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 0;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 139, 254, 0.45);
    box-shadow: 0 16px 48px var(--accent-glow);
}

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

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-icon {
    font-size: 24px;
    color: var(--accent);
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--gray2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.project-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.project-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.75;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.project-tags span {
    font-size: 11px;
    color: var(--accent2);
    background: rgba(61, 139, 254, 0.1);
    border: 1px solid rgba(61, 139, 254, 0.18);
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.03em;
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact {
    background: var(--bg2);
}

.contact-sub {
    color: var(--gray2);
    font-size: 14px;
    max-width: 520px;
    margin-bottom: 48px;
    margin-top: -32px;
    line-height: 1.8;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    text-decoration: none;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.contact-card.whatsapp:hover {
    border-color: #22c55e;
}

.contact-card.email:hover {
    border-color: var(--accent);
}

.contact-card.linkedin:hover {
    border-color: #0a66c2;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.whatsapp .contact-card-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.email .contact-card-icon {
    background: rgba(61, 139, 254, 0.12);
    color: var(--accent);
}

.linkedin .contact-card-icon {
    background: rgba(10, 102, 194, 0.15);
    color: #4d9de0;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.contact-card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
}

.contact-card-value {
    font-size: 14px;
    color: var(--gray2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-arrow {
    font-size: 13px;
    color: var(--gray);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.contact-card:hover .contact-arrow {
    color: var(--white);
    transform: translate(3px, -3px);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 28px clamp(20px, 4vw, 48px);
}

.footer-inner {
    max-width: var(--container);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.footer-copy {
    font-size: 12px;
    color: var(--gray);
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        position: static;
        display: flex;
        align-items: center;
        gap: 24px;
        text-align: left;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .hero-badge {
        align-self: center;
    }
}

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

    .hamburger {
        display: flex;
    }

    /* Mobile menu open */
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        height: calc(100dvh - var(--nav-h));
        background: rgba(10, 11, 15, 0.98);
        backdrop-filter: blur(20px);
        align-items: center;
        justify-content: center;
        gap: clamp(20px, 5vh, 40px);
        padding: 24px;
        overflow: hidden;
        z-index: 799;
        animation: fadeIn 0.3s ease;
    }

    .nav-links.mobile-open a {
        font-size: clamp(17px, 5vw, 22px);
        letter-spacing: 0.04em;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 40px);
    }

    .section-title {
        margin-bottom: 36px;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-dot {
        left: -26px;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .contact-card-value {
        font-size: 12px;
    }

    .hero-name {
        letter-spacing: -1px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}