/* ══════════════════════════════════════════════════════════════
   Neo-Minimal Dark — Oğulcan Sivri Portfolio 2026
   ══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ───────────────────────────────────────── */
:root {
    --red:           #ff2040;
    --red-dim:       rgba(255, 32, 64, 0.12);
    --red-glow:      rgba(255, 32, 64, 0.28);
    --red-border:    rgba(255, 32, 64, 0.3);

    --bg:            #06060a;
    --bg-surface:    rgba(255, 255, 255, 0.035);
    --bg-hover:      rgba(255, 255, 255, 0.06);

    --border:        rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);

    --text:          #f0f0f5;
    --text-muted:    rgba(240, 240, 245, 0.55);
    --text-dim:      rgba(240, 240, 245, 0.3);

    --font-display:  'Space Grotesk', system-ui, sans-serif;
    --font-body:     'Inter', system-ui, sans-serif;
    --font-mono:     'Fira Code', monospace;

    --radius:        14px;
    --radius-sm:     8px;
    --radius-full:   999px;

    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --fast:          0.15s;
    --normal:        0.25s;
    --slow:          0.45s;

    --navbar-h:      64px;
    --max-w:         1160px;
    --pad:           40px;
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    -webkit-tap-highlight-color: transparent;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

::-webkit-scrollbar {
    display: none; /* Hide scrollbar completely */
}

/* ─── BACKGROUND ORBS ────────────────────────────────────── */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: orbFloat 14s var(--ease) infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,32,64,.35) 0%, transparent 65%);
    top: -250px; left: -150px;
    animation-delay: 0s;
}
.orb-2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(90,20,220,.2) 0%, transparent 65%);
    bottom: -200px; right: -150px;
    animation-delay: -5s;
}
.orb-3 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(255,32,64,.15) 0%, transparent 65%);
    top: 55%; left: 55%;
    animation-delay: -9s;
}

@keyframes orbFloat {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    33%      { transform: translate3d(20px,-40px,0) scale(1.06); }
    66%      { transform: translate3d(-15px,25px,0) scale(0.94); }
}

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--navbar-h);
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6,6,10,.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: background var(--normal) var(--ease);
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.5px;
    user-select: none;
    text-decoration: none;
}

.nav-brand span { color: var(--red); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--fast) var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--red);
    background: transparent;
    text-shadow: 0 0 12px rgba(255, 32, 64, 0.4);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 32, 64, 0.8);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    transition: all var(--fast) var(--ease);
    letter-spacing: .5px;
}

.lang-btn.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 10px var(--red-glow);
}

.lang-btn:hover:not(.active) {
    color: var(--text);
    background: var(--bg-hover);
}

/* ─── APP CONTAINER & PAGE SWITCHING ──────────────────────── */
.app-container {
    position: relative;
    z-index: 10;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.app-page {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--normal) var(--ease), transform var(--normal) var(--ease);
}

.app-page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ─── STANDARDIZED FULL-SCREEN PAGE HERO ─────────────────── */
.page-hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--navbar-h) + 20px);
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 60px;
    box-sizing: border-box;
}

.page-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text);
    margin-bottom: 14px;
}

.hero-title .name-accent {
    color: var(--red);
}

.hero-icon-box {
    display: none; /* Hidden universally based on user preference */
}

.hero-svg-icon {
    width: 110px;
    height: 110px;
    color: var(--red);
    opacity: 0.85;
    filter: drop-shadow(0 0 25px rgba(255, 32, 64, 0.3));
}

.page-content {
    padding-bottom: 60px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--red);
    letter-spacing: 2.5px;
    font-weight: 700;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.hero-tag::before {
    display: none; /* Removed the line to keep it clean and centered */
}

h1.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.5vw, 5.8rem);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 0.95;
    color: var(--text);
    margin-bottom: 20px;
}

h1.hero-name .name-accent {
    color: var(--red);
    display: block;
    text-shadow: 0 0 60px rgba(255,32,64,.4);
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.6rem, 1.1vw, 0.78rem);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(240, 240, 245, 0.85); /* Lighten text for better contrast */
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 38px;
    min-height: 56px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── BUTTONS (One UI 8 Aesthetic) ────────────────────────── */

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    /* Soft, vibrant solid color typical of One UI */
    background: var(--red);
    
    color: #fff;
    
    /* Clean borderless look */
    border: none;

    padding: 16px 36px;
    border-radius: 99px; /* Pill shape (Squircle-like) */
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    min-width: 190px;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;

    /* Very smooth and soft transition */
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);

    /* Wide, diffused, soft shadow for elevation */
    box-shadow: 0 12px 32px rgba(255, 32, 64, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    /* Slightly lighter/more vibrant on hover */
    background: #ff3350; 
    box-shadow: 0 16px 40px rgba(255, 32, 64, 0.45);
}

.btn-primary:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 4px 16px rgba(255, 32, 64, 0.25);
    background: #e61a35;
}

/* One UI 8 Frosted Glass / Soft Secondary Button */
.btn-outline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    /* Very clean frosted glass (Acrylic) look */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);

    padding: 15px 35px;
    border-radius: 99px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;

    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);

    /* Very subtle shadow for separation */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline:active {
    transform: translateY(1px) scale(0.97);
    background: rgba(255, 255, 255, 0.08);
}

/* ─── HERO AVATAR ─────────────────────────────────────────── */
.hero-avatar {
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,32,64,.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    filter: blur(30px);
    pointer-events: none;
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%,100% { opacity: .7; transform: translate3d(-50%,-50%,0) scale(1); }
    50%      { opacity: 1;  transform: translate3d(-50%,-50%,0) scale(1.1); }
}

.avatar-frame {
    position: relative;
    width: 185px;
    height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 0 1px var(--red-border), 0 20px 60px rgba(0,0,0,.6);
    transition: transform var(--normal) var(--ease), box-shadow var(--normal) var(--ease);
}

.avatar-frame:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 1px var(--red), 0 0 40px rgba(255,32,64,.3), 0 20px 60px rgba(0,0,0,.7);
}

.avatar-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 10%;
    filter: brightness(.5) contrast(1.35) saturate(.75);
    display: block;
    transition: filter var(--slow) var(--ease);
}

.avatar-frame:hover .avatar-img {
    filter: brightness(.65) contrast(1.2) saturate(.9);
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,32,64,.15) 0%, transparent 50%),
        linear-gradient(to bottom, transparent 50%, rgba(6,6,10,.6) 100%);
    pointer-events: none;
}

/* ─── SCROLL HINT ─────────────────────────────────────────── */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    opacity: .4;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, var(--text-dim));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%,100% { opacity: .3; transform: scaleY(.8); }
    50%      { opacity: 1;  transform: scaleY(1); }
}

/* ─── SECTIONS ────────────────────────────────────────────── */
.section {
    padding: 110px 0;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--red);
    letter-spacing: 2.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--red);
    opacity: .5;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 48px;
    line-height: 1.05;
}

.setup-category-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    margin-top: 56px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.setup-category-title:first-of-type {
    margin-top: 0;
}

.setup-grid {
    margin-bottom: 32px;
}

/* ─── ABOUT CARD ──────────────────────────────────────────── */
.about-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.1), 
        0 12px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color var(--normal) var(--ease);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
}

.about-card:hover {
    border-color: var(--border-strong);
}

.about-card p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-card p:last-of-type { margin-bottom: 0; }

.about-card em {
    color: var(--red);
    font-style: normal;
    font-weight: 600;
}

/* About toggle */
.about-toggle-btn {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    margin: 0 auto 20px auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    width: fit-content;
    min-width: 170px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.about-toggle-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(255, 32, 64, 0.12);
    transform: translateY(-2px) scale(1.02);
    box-shadow: inset 0 1px 1px rgba(255, 32, 64, 0.3), 0 6px 20px rgba(255, 32, 64, 0.25);
}

/* Extra paragraphs collapse */
.about-extra { display: none; }
.about-extra.open { display: block; animation: fadeUp .35s var(--ease); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* About nav buttons */
.about-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.about-nav-btn {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all var(--fast) var(--ease);
}

.about-nav-btn:hover {
    color: var(--red);
    border-color: var(--red-border);
    background: var(--red-dim);
}

/* ─── CARDS GRID ──────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cards-grid.single {
    grid-template-columns: minmax(0, 560px);
}

/* ─── CARD ────────────────────────────────────────────────── */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: transform var(--normal) var(--ease),
                background var(--normal) var(--ease),
                border-color var(--normal) var(--ease),
                box-shadow var(--normal) var(--ease);
}

.card:hover {
    background: var(--bg-hover);
    border-color: var(--red-border);
    transform: translateY(-5px);
    box-shadow:
        0 20px 50px rgba(0,0,0,.5),
        0 0 0 1px var(--red-border),
        0 0 30px rgba(255,32,64,.07);
}

.card-featured {
    border-color: var(--border-strong);
}

.card-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid rgba(255,32,64,.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    width: fit-content;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.card-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--red);
    margin-bottom: 14px;
    display: block;
    font-weight: 500;
    opacity: .85;
}

.card-body {
    -webkit-tap-highlight-color: transparent;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 18px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    letter-spacing: .3px;
    transition: all var(--fast) var(--ease);
}

.tag:hover {
    color: var(--red);
    border-color: var(--red-border);
    background: var(--red-dim);
}

/* Card link button */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    transition: all var(--normal) var(--ease);
    margin-top: 18px;
    padding: 9px 18px;
    border: 1px solid var(--red-border);
    border-radius: var(--radius-sm);
    align-self: flex-start;
    background: var(--red-dim);
}

.card-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 0 20px var(--red-glow);
    transform: translateY(-1px);
}

/* ─── CONTACT SECTION ─────────────────────────────────────── */
.contact-section {
    text-align: left;
}

.contact-group-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    text-decoration: none;
    transition: all var(--normal) var(--ease);
}

.contact-card:hover {
    background: var(--bg-hover);
    border-color: var(--red-border);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(255,32,64,0.1);
}

.contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--red-dim);
    border: 1px solid var(--red-border);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
}

.contact-card-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-card-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2px;
}

/* Social Cards Grid */
.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--normal) var(--ease);
}

.social-card svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.social-card:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,32,64,.4);
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 30px var(--pad);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: .8px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

/* ─── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    :root { --pad: 28px; }

    .cards-grid { grid-template-columns: repeat(2, 1fr); }

    .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .hero-left {
        align-items: center;
    }

    .hero-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-icon-box {
        display: none;
    }

    .hero-tag {
        justify-content: center;
    }
    .hero-tag::before { display: none; }

    .about-nav { justify-content: center; }

    .cards-grid.single {
        grid-template-columns: minmax(0, 100%);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --pad: 16px;
        --navbar-h: 56px;
    }

    .navbar { padding: 0 var(--pad); height: var(--navbar-h); }

    .nav-contact span { display: none; }
    .nav-contact { padding: 8px 12px; }
    .nav-brand { font-size: 1rem; }

    .hero-inner { gap: 32px; padding: 36px 0 24px; }

    h1.hero-name {
        font-size: clamp(2.6rem, 10vw, 3.8rem);
        letter-spacing: -1.5px;
    }

    .avatar-frame { width: 155px; height: 210px; }
    .avatar-glow  { width: 160px; height: 160px; }

    .section { padding: 80px 0; }

    .cards-grid { grid-template-columns: 1fr; gap: 14px; }

    .about-card { padding: 26px 20px; }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        letter-spacing: -1px;
    }

    .social-row { gap: 10px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1.hero-name {
        font-size: clamp(2rem, 12vw, 3rem);
        letter-spacing: -1px;
    }

    .hero-cta { flex-direction: column; }

    .btn-primary,
    .btn-outline { text-align: center; justify-content: center; }

    .avatar-frame { width: 128px; height: 172px; }

    .about-nav { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════════════════
   FLOATING BOTTOM NAV (Universal)
   ══════════════════════════════════════════════════════════ */

/* Hide top navbar everywhere */
.navbar { display: none !important; }

/* Extra bottom space so footer isn't hidden behind nav */
main         { padding-bottom: 100px; }
.site-footer { padding-bottom: 100px; }

/* ── Floating Lang Pill (top-center, static on scroll) ── */
.mobile-lang {
    display: flex;
    align-items: center;
    gap: 2px;
    position: absolute; /* Changed to absolute so it scrolls away */
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    background: rgba(10, 10, 16, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.mobile-lang-div {
    color: var(--text-dim);
    font-size: 0.6rem;
    padding: 0 1px;
}

/* ── Floating Bottom Nav ─────────────────────────────── */
.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;

    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;

    background: rgba(10, 10, 16, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow:
        0 8px 40px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.04),
        inset 0 1px 0 rgba(255,255,255,0.06);

    /* Auto-width based on content */
    width: auto;
    max-width: calc(100vw - 32px);
}

/* Each nav item — modern expanding pill */
.bnav-item {
    touch-action: manipulation;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-decoration: none;
    color: var(--text-dim);
    padding: 10px;
    border-radius: 99px;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    flex-shrink: 0;
}

.bnav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), color 0.3s ease;
}

.bnav-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
}

/* Hover */
.bnav-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Active state - Soft pill background with text expansion */
.bnav-item.active {
    color: var(--red);
    background: rgba(255, 32, 64, 0.12);
    padding: 10px 18px;
    gap: 6px;
}

.bnav-item.active .bnav-label {
    opacity: 1;
    max-width: 85px; /* Sufficient width to reveal text smoothly */
}

/* ── Center / Home Button (Icon) ───────────────────────── */
.bnav-home {
    padding: 6px 14px;
}
/* ─── TIMELINE COMPONENT ─────────────────────────────────── */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 2vh 0 10vh;
}

.track {
    position: absolute;
    left: 19px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-strong);
}

.track-fill {
    position: absolute;
    left: 19px;
    top: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--red-glow), var(--red));
    height: 0%;
    transition: height 0.1s linear;
    box-shadow: 0 0 8px var(--red-glow);
}

.entry {
    position: relative;
    padding-left: 64px;
    padding-bottom: 7vh;
}
.entry:last-child { padding-bottom: 0; }

.entry .date,
.entry .tag,
.entry .card {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.entry .date { transition-delay: 0s; }
.entry .tag { transition-delay: 0.08s; }
.entry .card { transition-delay: 0.16s; }

.entry.lit .date,
.entry.lit .tag,
.entry.lit .card {
    opacity: 1;
    transform: translateY(0);
}

.node {
    position: absolute;
    left: 10px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border-strong);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 2;
}
.entry.lit .node {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 12px var(--red-glow);
}
.node::after {
    content:'';
    position: absolute;
    inset: 5px;
    border-radius: 2px;
    background: var(--bg);
}

.timeline .date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
    transition: color 0.4s ease;
}
.entry.lit .date { color: var(--red); }

.timeline .tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    padding: 2px 7px;
    margin-bottom: 10px;
}

.timeline .card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    text-align: left;
}

.timeline .card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-family: var(--font-display);
}
.timeline .card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--red);
    margin-left: 6px;
    vertical-align: -2px;
    animation: blink 1s step-end infinite;
}

@media (max-width: 480px) {
    .entry { padding-left: 52px; }
    .node { left: 6px; }
    .track, .track-fill { left: 15px; }
}
