/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg-primary:    #0c0e13;
  --bg-secondary:  #111318;
  --bg-card:       #161920;
  --bg-card-hover: #1c202a;
  --border:        #1e2230;
  --border-glow:   rgba(0, 210, 220, 0.22);
  --text-primary:  #eaedf5;
  --text-muted:    #636880;
  --text-dim:      #363a4d;
  --accent:        #00cdd8;
  --accent-dim:    rgba(0, 205, 216, 0.1);
  --accent-glow:   0 0 24px rgba(0, 205, 216, 0.3);
  --purple:        #9d7cf4;
  --purple-dim:    rgba(157, 124, 244, 0.1);
  --green:         #2dd4a0;
  --green-dim:     rgba(45, 212, 160, 0.1);
  --yellow:        #f5b731;
  --yellow-dim:    rgba(245, 183, 49, 0.1);
  --syn-keyword:   #9d7cf4;
  --syn-type:      #00cdd8;
  --syn-string:    #2dd4a0;
  --syn-comment:   #3d4460;
  --syn-number:    #f5b731;
  --syn-punct:     #636880;
  --font-display:  'Outfit', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --radius:        8px;
  --radius-lg:     12px;
  --nav-h:         64px;
  --transition:    0.18s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-body); font-size: 15px; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ============================================
   UTILITIES
   ============================================ */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 28px; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-muted); background: var(--bg-card); letter-spacing: 0.04em; }
.tag.a { border-color: rgba(0,205,216,0.28); color: var(--accent); background: var(--accent-dim); }
.tag.p { border-color: rgba(157,124,244,0.28); color: var(--purple); background: var(--purple-dim); }
.tag.g { border-color: rgba(45,212,160,0.28); color: var(--green); background: var(--green-dim); }
.tag.y { border-color: rgba(245,183,49,0.28); color: var(--yellow); background: var(--yellow-dim); }

section { padding: 96px 0; }
.section-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); max-width: 48px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.02em; }
.section-desc { color: var(--text-muted); max-width: 520px; margin-bottom: 52px; font-size: 0.94rem; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; padding: 11px 22px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: all var(--transition); letter-spacing: -0.01em; }
.btn-primary { background: var(--accent); color: #060809; }
.btn-primary:hover { background: #1de8f0; box-shadow: var(--accent-glow); }
.btn-ghost { border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   NAV
   ============================================ */
#nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000; transition: background var(--transition), border-bottom var(--transition); }
#nav.scrolled { background: rgba(12,14,19,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1.5px; background: var(--accent); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-muted); border-radius: 99px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(12,14,19,0.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 16px 28px 24px; z-index: 999; flex-direction: column; gap: 2px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); padding: 13px 0; border-bottom: 1px solid var(--border); transition: color var(--transition); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

/* ============================================
   HERO
   ============================================ */
#hero { min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--border) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 100%); opacity: 0.5; }
#hero::after { content: ''; position: absolute; top: 10%; right: 5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,205,216,0.055) 0%, transparent 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 26px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--bg-card); }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }
.hero-name { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 6px; }
.hero-name .accent-name { color: var(--accent); }
.hero-tagline { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 24px; }
.hero-tagline .sep { color: var(--border); margin: 0 8px; }
.hero-bio { font-size: 0.97rem; color: var(--text-muted); max-width: 420px; margin-bottom: 36px; line-height: 1.85; }
.hero-bio strong { color: var(--text-primary); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* C code panel */
.code-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
.code-panel-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--border); }
.cp-dot { width: 10px; height: 10px; border-radius: 50%; }
.cp-dot.r { background: #ff5f57; } .cp-dot.y { background: #febc2e; } .cp-dot.g { background: #28c840; }
.cp-filename { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); margin-left: 8px; letter-spacing: 0.04em; }
.code-body { padding: 20px 20px 20px 0; font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.75; overflow-x: auto; }
.code-line { display: flex; }
.code-line:hover { background: rgba(255,255,255,0.02); }
.ln { width: 42px; text-align: right; padding-right: 16px; color: var(--text-dim); font-size: 0.68rem; user-select: none; flex-shrink: 0; }
.lc { flex: 1; padding-right: 20px; white-space: pre; }
.kw { color: var(--syn-keyword); font-weight: 500; }
.ty { color: var(--syn-type); }
.st { color: var(--syn-string); }
.cm { color: var(--syn-comment); font-style: italic; }
.nm { color: var(--syn-number); }
.pu { color: var(--syn-punct); }
.fn { color: #7eb8f7; }
.tx { color: var(--text-primary); }
.cursor::after { content: '|'; color: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.1em; animation: floatY 2.8s ease-in-out infinite; }
.scroll-hint .arr { width: 1px; height: 28px; background: linear-gradient(to bottom, var(--text-dim), transparent); }
@keyframes floatY { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }

/* ============================================
   ABOUT
   ============================================ */
#about { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.85; }
.about-text p strong { color: var(--text-primary); font-weight: 600; }
.about-stats { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.about-stats .stat-card { flex: 1; min-width: 100px; }
.stat-card { padding: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 3px; }
.stat-label { font-size: 0.73rem; color: var(--text-muted); }

.terminal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--border); }
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.r { background: #ff5f57; } .t-dot.yl { background: #febc2e; } .t-dot.g { background: #28c840; }
.terminal-title { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); margin-left: auto; }
.terminal-body { padding: 18px 20px; font-family: var(--font-mono); font-size: 0.77rem; line-height: 1.9; }
.t-line { display: flex; gap: 8px; }
.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text-primary); }
.t-out { color: var(--text-muted); padding-left: 14px; }
.t-cmt { color: var(--text-dim); }

/* ============================================
   SKILLS
   ============================================ */
#skills { background: var(--bg-primary); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.skill-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: border-color var(--transition), transform var(--transition); }
.skill-card:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.skill-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.skill-icon { font-size: 1.5rem; line-height: 1; }
.skill-name { font-family: var(--font-display); font-weight: 600; font-size: 0.97rem; margin-bottom: 6px; }
.skill-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ============================================
   CERTIFICATIONS
   ============================================ */
#certifications { background: var(--bg-secondary); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.cert-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; gap: 16px; align-items: flex-start; transition: border-color var(--transition), transform var(--transition); }
.cert-card:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.cert-card.in-progress { border-color: rgba(245,183,49,0.18); }
.cert-card.in-progress:hover { border-color: rgba(245,183,49,0.38); }
.cert-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.ci-azure  { background: rgba(0,120,212,0.12); }
.ci-google { background: rgba(66,133,244,0.1); }
.ci-cisco  { background: rgba(26,86,219,0.1); }
.cert-name { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; margin-bottom: 3px; line-height: 1.4; }
.cert-issuer { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); margin-bottom: 10px; }

/* ============================================
   CONTACT
   ============================================ */
#contact { background: var(--bg-primary); }
.contact-centered { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-label-pill { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.12em; padding: 5px 14px; border: 1px solid rgba(0,205,216,0.3); border-radius: 99px; background: var(--accent-dim); margin-bottom: 20px; }
.contact-heading { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.contact-subtext { font-size: 0.95rem; color: var(--text-muted); max-width: 440px; line-height: 1.75; }
.contact-divider-line { display: flex; align-items: center; margin: 20px 0 36px; }
.cdl-line { width: 52px; height: 1.5px; background: var(--border); }
.cdl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); margin: 0 5px; }

.contact-terminal { width: 100%; max-width: 580px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-align: left; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.ct-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border); }
.ct-dot { width: 10px; height: 10px; border-radius: 50%; }
.ct-dot.r { background: #ff5f57; } .ct-dot.y { background: #febc2e; } .ct-dot.g { background: #28c840; }
.ct-filename { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); margin-left: 8px; letter-spacing: 0.04em; }
.ct-body { padding: 20px 24px 24px; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; }
.ct-prompt-line { display: flex; gap: 8px; margin-bottom: 16px; }
.ct-prompt { color: var(--accent); }
.ct-cmd { color: var(--text-primary); }
.ct-rows { display: flex; flex-direction: column; margin-bottom: 20px; }
.ct-row { display: flex; align-items: center; gap: 16px; padding: 10px 12px; border-radius: var(--radius); transition: background var(--transition); text-decoration: none; color: inherit; }
.ct-row:hover { background: rgba(0,205,216,0.06); }
.ct-row-icon { width: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ct-row-icon svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct-row-label { color: var(--accent); min-width: 92px; flex-shrink: 0; }
.ct-row-value { color: var(--text-muted); transition: color var(--transition); }
.ct-row:hover .ct-row-value { color: var(--text-primary); }
.ct-echo-line { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.ct-echo-string { color: var(--accent); }

.contact-cta { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; padding: 12px 26px; border-radius: var(--radius); border: 1.5px solid var(--accent); color: var(--accent); background: transparent; cursor: pointer; transition: all var(--transition); letter-spacing: -0.01em; }
.contact-cta:hover { background: var(--accent); color: var(--bg-primary); box-shadow: var(--accent-glow); }
.contact-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================
   FOOTER
   ============================================ */
footer { padding: 28px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-copy { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); }
.footer-copy span { color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ============================================
   FADE-IN
   ============================================ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
