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

:root {
    --nav-h: 64px;
    --max-w: 1100px;
    --r-sm: 8px;
    --r-md: 14px;
    --ease: 0.3s cubic-bezier(0.4,0,0.2,1);

    --bg:        #0f172a;
    --bg-alt:    #0c1424;
    --card:      #1e293b;
    --card-hov:  #243044;
    --text:      #f1f5f9;
    --muted:     #94a3b8;
    --faint:     #475569;
    --accent:    #3b82f6;
    --acc-rgb:   59,130,246;
    --acc-hov:   #2563eb;
    --purple:    #8b5cf6;
    --pur-rgb:   139,92,246;
    --green:     #10b981;
    --border:    rgba(255,255,255,0.07);
    --shadow:    0 4px 24px rgba(0,0,0,0.45);
    --glow:      0 0 40px rgba(59,130,246,0.12);
}

[data-theme="light"] {
    --bg:       #f8fafc;
    --bg-alt:   #f1f5f9;
    --card:     #ffffff;
    --card-hov: #f8fafc;
    --text:     #0f172a;
    --muted:    #475569;
    --faint:    #94a3b8;
    --accent:   #2563eb;
    --acc-rgb:  37,99,235;
    --acc-hov:  #1d4ed8;
    --purple:   #7c3aed;
    --pur-rgb:  124,58,237;
    --green:    #059669;
    --border:   rgba(0,0,0,0.08);
    --shadow:   0 4px 24px rgba(0,0,0,0.08);
    --glow:     0 0 40px rgba(37,99,235,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--ease), color var(--ease);
}

/* ============================================================
   UTILITIES
============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(var(--acc-rgb),.1);
    border: 1px solid rgba(var(--acc-rgb),.2);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.75rem,4vw,2.4rem);
    font-weight: 700;
    line-height: 1.2;
}

.section-sub { color: var(--muted); margin-top: 0.6rem; font-size: 1rem; }

.tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    background: rgba(var(--acc-rgb),.1);
    color: var(--accent);
    border: 1px solid rgba(var(--acc-rgb),.2);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: height var(--ease), background var(--ease), box-shadow var(--ease);
}

.navbar.shrunk { height: 52px; }
.navbar.shrunk .nav-avatar-wrap { width: 28px; height: 28px; }
.navbar.shrunk .nav-link { padding: 0.3rem 0.6rem; font-size: 0.84rem; }
.navbar.shrunk .nav-logo { font-size: 0.86rem; }

.navbar.scrolled {
    background: rgba(15,23,42,.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248,250,252,.9);
}

.nav-container {
    max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
    height: 100%; display: flex; align-items: center; gap: 1.5rem;
}

.nav-logo {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none; font-weight: 600; font-size: 0.92rem;
    color: var(--text); flex-shrink: 0;
}

.nav-avatar-wrap {
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--accent);
    background: rgba(var(--acc-rgb),.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
}

.nav-avatar {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 0.3s;
}

.nav-avatar.loaded { opacity: 1; }

.nav-avatar-fallback {
    font-size: 0.65rem; font-weight: 700; color: var(--accent);
    pointer-events: none; user-select: none;
}

.nav-links { display: flex; list-style: none; gap: 0.15rem; margin-left: auto; }

.nav-link {
    display: block; padding: 0.4rem 0.7rem;
    text-decoration: none; color: var(--muted);
    font-size: 0.88rem; font-weight: 500;
    border-radius: var(--r-sm);
    transition: color var(--ease), background var(--ease);
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: rgba(var(--acc-rgb),.08);
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.75rem; }

.theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); background: transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--muted); transition: all var(--ease);
}

.theme-toggle:hover { color: var(--text); border-color: var(--accent); background: rgba(var(--acc-rgb),.08); }
.theme-toggle svg { width: 15px; height: 15px; }

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun  { display: none; }

[data-theme="dark"] .icon-sun,
[data-theme="light"] .icon-moon { display: block; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    width: 36px; height: 36px; border: 1px solid var(--border);
    border-radius: var(--r-sm); background: transparent;
    cursor: pointer; padding: 9px; justify-content: center;
}

.hamburger span {
    display: block; height: 2px; background: var(--muted);
    border-radius: 2px; transition: all var(--ease);
}

.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); }

.mobile-menu {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem; gap: 0.2rem;
    backdrop-filter: blur(16px);
}

.mobile-menu.open { display: flex; }

.mobile-link {
    display: block; padding: 0.7rem 1rem;
    text-decoration: none; color: var(--muted);
    font-size: 0.95rem; font-weight: 500;
    border-radius: var(--r-sm); transition: all var(--ease);
}

.mobile-link:hover { color: var(--text); background: rgba(var(--acc-rgb),.08); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--r-sm); font-size: 0.88rem; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none;
    transition: all var(--ease); white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--acc-hov); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--acc-rgb),.35); }

.btn-secondary { background: rgba(var(--pur-rgb),.12); color: var(--purple); border: 1px solid rgba(var(--pur-rgb),.25); }
.btn-secondary:hover { background: rgba(var(--pur-rgb),.22); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   HERO
============================================================ */
.hero {
    min-height: 100vh; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: var(--nav-h);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* ============================================================
   TECH TICKER
============================================================ */
.ticker-section {
    position: relative;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    overflow: hidden;
}

/* fade edges */
.ticker-fade-l,
.ticker-fade-r {
    position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.ticker-fade-l { left: 0;  background: linear-gradient(to right, var(--bg-alt), transparent); }
.ticker-fade-r { right: 0; background: linear-gradient(to left,  var(--bg-alt), transparent); }

.ticker-wrap { overflow: hidden; }

.ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: ticker-scroll 60s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tick-item {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 2rem;
}

.tick-item img {
    width: 40px; height: 40px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--ease), transform var(--ease);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

.tick-item img:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* AWS line-wordmark SVG is monochrome — make it visible on both themes */
[data-theme="dark"]  .tick-item img[alt="AWS"] { filter: invert(1) brightness(1.2); }
[data-theme="light"] .tick-item img[alt="AWS"] { filter: brightness(0); }

.blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.14;
    animation: blob-float 9s ease-in-out infinite;
}

[data-theme="light"] .blob { opacity: 0.08; }

.blob-1 { width: 550px; height: 550px; background: radial-gradient(#3b82f6,#1d4ed8); top: -120px; left: -120px; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(#8b5cf6,#5b21b6); top: 160px; right: -80px; animation-delay: -3s; }
.blob-3 { width: 320px; height: 320px; background: radial-gradient(#10b981,#047857); bottom: 40px; left: 32%; animation-delay: -6s; }

@keyframes blob-float {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(18px,-28px) scale(1.04); }
    66%      { transform: translate(-18px,18px) scale(0.96); }
}

.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,.25) 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,.25) 0%, transparent 100%);
}

.hero-container {
    max-width: var(--max-w); margin: 0 auto; padding: 0.5rem 1.5rem 3rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    min-height: calc(100vh - var(--nav-h));
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 500; color: var(--green);
    background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2);
    padding: 0.28rem 0.85rem; border-radius: 100px; margin-bottom: 1.2rem;
}

.badge-dot {
    width: 7px; height: 7px; background: var(--green); border-radius: 50%;
    animation: dot-ping 2.2s ease-in-out infinite;
}

@keyframes dot-ping {
    0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
    50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.hero-greeting { font-size: 1.05rem; color: var(--muted); margin-bottom: 0.2rem; }

.hero-name {
    font-size: clamp(2.4rem,5.5vw,3.8rem);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -0.02em; margin-bottom: 0.7rem;
}

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

.hero-title {
    font-size: clamp(0.95rem,2vw,1.2rem); font-weight: 500; color: var(--muted);
    font-family: 'JetBrains Mono', monospace; margin-bottom: 1.1rem;
}

.hero-desc { color: var(--muted); font-size: 0.97rem; max-width: 460px; margin-bottom: 1.85rem; line-height: 1.75; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.25rem; }

.hero-stats { display: flex; align-items: center; gap: 1.4rem; }

.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.stat-div { width: 1px; height: 38px; background: var(--border); }

/* Profile image */
.hero-image { display: flex; justify-content: center; align-items: center; position: relative; }

.profile-frame { position: relative; width: 290px; height: 290px; flex-shrink: 0; }

.profile-ring-outer {
    position: absolute; inset: -14px; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--purple), var(--green), var(--accent));
    animation: spin 7s linear infinite; opacity: 0.55;
}

.profile-ring-inner {
    position: absolute; inset: -8px; border-radius: 50%; background: var(--bg);
    transition: background var(--ease);
}

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

.profile-photo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border-radius: 50%; object-fit: cover; z-index: 2;
    opacity: 0; transition: opacity 0.4s ease;
}

.profile-photo.loaded { opacity: 1; }

.profile-placeholder {
    position: absolute; inset: 0; z-index: 1; border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--acc-rgb),.18), rgba(var(--pur-rgb),.18));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; font-weight: 700; color: var(--accent);
    font-family: 'JetBrains Mono', monospace; letter-spacing: -0.05em;
}

.float-badge {
    position: absolute; display: flex; align-items: center; gap: 0.4rem;
    background: var(--card); border: 1px solid var(--border);
    padding: 0.45rem 0.85rem; border-radius: 100px;
    font-size: 0.78rem; font-weight: 600; color: var(--text);
    white-space: nowrap; box-shadow: var(--shadow);
}

.float-badge i { font-size: 1.1rem; }

.badge-top { top: 8%; right: -18px; animation: fl 3.2s ease-in-out infinite; }
.badge-bot { bottom: 12%; left: -22px; animation: fl 3.2s ease-in-out infinite; animation-delay: -1.6s; }

@keyframes fl { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scroll-hint {
    position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
    text-decoration: none; opacity: 0.4; transition: opacity var(--ease);
    animation: sh-bounce 2.4s ease-in-out infinite;
}

.scroll-hint:hover { opacity: 0.8; }

.scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid var(--muted); border-radius: 11px;
    display: flex; justify-content: center; padding-top: 5px;
}

.scroll-wheel {
    width: 3px; height: 7px;
    background: var(--muted); border-radius: 2px;
    animation: sw 2s ease-in-out infinite;
}

@keyframes sw { 0% { opacity:1; transform:translateY(0); } 100% { opacity:0; transform:translateY(10px); } }
@keyframes sh-bounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(5px); } }

/* ---- Hero floating tech nodes ---- */
.hero-nodes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hnode {
    position: absolute; width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    opacity: 0.22; backdrop-filter: blur(4px);
}

[data-theme="light"] .hnode { opacity: 0.16; background: #fff; }

.hnode i { font-size: 1.45rem; }
.hn-txt { font-size: 0.6rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }

.hn1 { top: 10%; left:  3%; animation: hn-float 7.5s ease-in-out infinite; }
.hn2 { top: 28%; left: 10%; animation: hn-float 9s   ease-in-out infinite; animation-delay: -2.5s; }
.hn3 { top: 62%; left:  4%; animation: hn-float 6.8s ease-in-out infinite; animation-delay: -4s; }
.hn4 { top: 80%; left: 20%; animation: hn-float 8.2s ease-in-out infinite; animation-delay: -1.2s; }
.hn5 { top:  8%; right: 4%; animation: hn-float 7s   ease-in-out infinite; animation-delay: -3s; }
.hn6 { top: 42%; right: 6%; animation: hn-float 8.8s ease-in-out infinite; animation-delay: -5s; }
.hn7 { top: 68%; right:10%; animation: hn-float 7.3s ease-in-out infinite; animation-delay: -2s; }
.hn8 { top: 85%; right: 4%; animation: hn-float 6.5s ease-in-out infinite; animation-delay: -4.5s; }

@keyframes hn-float {
    0%,100% { transform: translateY(0) rotate(0deg); }
    40%      { transform: translateY(-14px) rotate(4deg); }
    70%      { transform: translateY(8px) rotate(-3deg); }
}

/* ---- Ping dots ---- */
.hero-pings { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.ping {
    position: absolute; width: 8px; height: 8px;
    border-radius: 50%; background: var(--accent);
    animation: ping-out 4s ease-out infinite;
}

.ping::after {
    content: ''; position: absolute; inset: 0;
    border-radius: 50%; background: inherit;
    animation: ping-ring 4s ease-out infinite;
}

.ping1 { top: 22%; left: 18%;  animation-delay: 0s;   background: var(--accent); }
.ping2 { top: 70%; left: 72%;  animation-delay: -1.3s; background: var(--purple); }
.ping3 { top: 40%; left: 85%;  animation-delay: -2.6s; background: var(--green); }
.ping4 { top: 85%; left: 38%;  animation-delay: -0.8s; background: var(--accent); }

@keyframes ping-out {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1); }
}

@keyframes ping-ring {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0;   transform: scale(5); }
}

/* ============================================================
   ABOUT
============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 0.97rem; line-height: 1.8; }
.about-text p strong { color: var(--text); font-weight: 600; }

.info-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 1.5rem;
    display: flex; flex-direction: column; gap: 1.15rem;
}

.info-row { display: flex; align-items: center; gap: 0.85rem; }

.info-icon { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

.info-label {
    display: block; font-size: 0.7rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 0.1rem;
}

.info-val { display: block; font-size: 0.88rem; color: var(--text); font-weight: 500; }
.info-link { text-decoration: none; color: var(--accent); font-size: 0.88rem; font-weight: 500; }
.info-link:hover { text-decoration: underline; }
.available { color: var(--green) !important; }

/* ============================================================
   SKILLS
============================================================ */
.skills-wrapper { display: flex; flex-direction: column; gap: 1.5rem; }

.skill-cat {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 1.5rem 1.75rem;
}

.cat-title {
    font-size: 0.95rem; font-weight: 600; color: var(--text);
    margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}

.skill-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.skill-item {
    display: flex; align-items: center; gap: 0.55rem;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 0.45rem 0.85rem;
    font-size: 0.83rem; font-weight: 500; color: var(--muted);
    transition: all var(--ease); cursor: default;
}

.skill-item:hover {
    border-color: rgba(var(--acc-rgb),.4); color: var(--text);
    transform: translateY(-2px); box-shadow: 0 4px 14px rgba(var(--acc-rgb),.12);
}

.sk-icon {
    width: 26px; height: 26px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}

.sk-icon i { font-size: 1.3rem; }

.txt-icon {
    border-radius: 5px; font-size: 0.58rem !important;
    font-weight: 800; color: #fff !important;
    font-family: 'JetBrains Mono', monospace; letter-spacing: 0;
}

/* ============================================================
   TIMELINE / EXPERIENCE
============================================================ */
.timeline { position: relative; padding-left: 2.25rem; }

.timeline::before {
    content: ''; position: absolute; left: 9px; top: 18px; bottom: 0;
    width: 1px; background: var(--border);
}

.tl-item { position: relative; margin-bottom: 2.25rem; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
    position: absolute; left: -2.25rem; top: 20px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--faint); border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--faint);
}

.tl-dot.current {
    background: var(--accent); box-shadow: 0 0 0 2px var(--accent);
    animation: dot-pulse 3s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%,100% { box-shadow: 0 0 0 2px var(--accent); }
    50%      { box-shadow: 0 0 0 6px rgba(var(--acc-rgb),.18); }
}

.tl-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 1.65rem;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.tl-card:hover { border-color: rgba(var(--acc-rgb),.3); box-shadow: var(--glow); }

.tl-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}

.job-title { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.job-co { font-size: 0.87rem; color: var(--accent); font-weight: 500; }

.job-date {
    font-size: 0.75rem; font-weight: 500; color: var(--muted);
    background: rgba(var(--acc-rgb),.06); border: 1px solid rgba(var(--acc-rgb),.18);
    padding: 0.22rem 0.7rem; border-radius: 100px;
    white-space: nowrap; font-family: 'JetBrains Mono', monospace;
}

.job-para {
    font-size: 0.9rem; color: var(--muted); line-height: 1.8;
    margin-bottom: 0.85rem;
}

.job-para:last-of-type { margin-bottom: 1.1rem; }
.job-para strong { color: var(--text); font-weight: 600; }

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

.proj-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-md); overflow: hidden;
    display: flex; flex-direction: column;
    transition: all var(--ease);
}

.proj-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--acc-rgb),.3);
    box-shadow: var(--shadow), var(--glow);
}

.proj-img {
    height: 175px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--acc-rgb),.12), rgba(var(--pur-rgb),.12));
}

.proj-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.55s ease; opacity: 0;
}

.proj-img img.loaded { opacity: 1; }
.proj-card:hover .proj-img img { transform: scale(1.06); }

.proj-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace; color: var(--accent); opacity: 0.4;
    z-index: 0;
}

.proj-img img.loaded + .proj-placeholder { display: none; }

.proj-body {
    padding: 1.4rem; flex: 1;
    display: flex; flex-direction: column; gap: 0.7rem;
}

.proj-date { font-size: 0.72rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.proj-title { font-size: 1.02rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.proj-desc { font-size: 0.855rem; color: var(--muted); line-height: 1.72; flex: 1; }

.proj-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.8rem; font-weight: 600; color: var(--accent);
    text-decoration: none; margin-top: 0.2rem; transition: gap var(--ease);
}

.proj-link:hover { gap: 0.65rem; }

/* ============================================================
   EDUCATION
============================================================ */
.edu-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.65rem; }

.edu-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 1.65rem;
    display: flex; gap: 1.1rem; transition: all var(--ease);
}

.edu-card:hover { border-color: rgba(var(--acc-rgb),.3); transform: translateY(-2px); }

.edu-icon { font-size: 1.9rem; flex-shrink: 0; line-height: 1; }

.edu-body h3 { font-size: 0.98rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.edu-school { font-size: 0.87rem; font-weight: 500; color: var(--accent); margin-bottom: 0.15rem; }
.edu-loc { font-size: 0.78rem; color: var(--faint); margin-bottom: 0.7rem; }

.edu-meta { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.7rem; flex-wrap: wrap; }

.edu-date { font-size: 0.75rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

.edu-gpa {
    font-size: 0.77rem; font-weight: 600; color: var(--green);
    background: rgba(16,185,129,.1); padding: 0.18rem 0.55rem;
    border-radius: 100px;
}

.edu-courses { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }
.edu-courses strong { color: var(--text); }

/* ============================================================
   ACHIEVEMENTS
============================================================ */
.ach-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; }

.ach-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 1.4rem;
    display: flex; gap: 1rem; transition: all var(--ease);
}

.ach-card:hover { border-color: rgba(var(--acc-rgb),.3); transform: translateY(-2px); }

.ach-icon { font-size: 1.7rem; flex-shrink: 0; line-height: 1; }

.ach-card h3 { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.ach-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }
.ach-card p strong { color: var(--text); }

/* ============================================================
   CONTACT
============================================================ */
.contact-content {
    display: flex; flex-direction: column; align-items: center;
    gap: 1.75rem; text-align: center;
}

.contact-cta {
    display: inline-flex; align-items: center; gap: 0.65rem;
    font-size: 1.15rem; font-weight: 600; color: var(--text);
    text-decoration: none; padding: 1rem 2rem;
    border: 1px solid var(--border); border-radius: var(--r-md);
    background: var(--card); transition: all var(--ease);
}

.contact-cta:hover {
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-3px); box-shadow: var(--shadow);
}

.socials { display: flex; gap: 0.85rem; }

.social-btn {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--card);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); text-decoration: none; transition: all var(--ease);
}

.social-btn:hover {
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-3px); box-shadow: 0 8px 20px rgba(var(--acc-rgb),.2);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    background: var(--bg-alt); border-top: 1px solid var(--border);
    padding: 1.5rem; text-align: center;
    font-size: 0.83rem; color: var(--faint);
}

/* ============================================================
   ANIMATIONS
============================================================ */
.fade-in {
    opacity: 0; transform: translateY(22px);
    animation: fadeUp 0.75s ease forwards;
}

.delay-2 { animation-delay: 0.2s; }

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

/* Base: all variants share opacity + will-change */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
                transform 0.75s cubic-bezier(0.16,1,0.3,1);
    will-change: opacity, transform;
}

/* Directional variants — override initial transform only */
.reveal.from-left  { transform: translateX(-52px); }
.reveal.from-right { transform: translateX(52px); }

/* Scale-up: cards that "emerge" from slightly smaller */
.reveal.from-scale {
    transform: scale(0.93) translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.34,1.3,0.64,1);
}

/* Pop: snappy spring for small cards like achievements */
.reveal.from-pop {
    transform: scale(0.88) translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
                transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
}

/* Visible state — same for all variants */
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 860px) {
    .hero-container {
        grid-template-columns: 1fr; text-align: center;
        gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 5rem;
    }
    .hero-text { order: 2; }
    .hero-image { order: 1; }
    .hero-badge, .hero-ctas { justify-content: center; }
    .hero-desc { margin: 0 auto 1.85rem; }
    .hero-stats { justify-content: center; }
    .profile-frame { width: 220px; height: 220px; }
    .badge-top { right: 5px; }
    .badge-bot { left: 5px; }
    .about-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr; }
    .ach-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .tl-header { flex-direction: column; }
    .job-date { align-self: flex-start; }
}

@media (max-width: 600px) {
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .hero-name { font-size: 2.15rem; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .profile-frame { width: 185px; height: 185px; }
    .float-badge { display: none; }
    .skill-cat { padding: 1.2rem; }
    .contact-cta { font-size: 1rem; padding: 0.85rem 1.5rem; }
}

@media (max-width: 400px) {
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .stat-div { display: none; }
    .edu-card { flex-direction: column; }
}
