/* ============================================================
   PORTFOLIO STYLES
   ============================================================
   Fonts loaded in index.html via Google Fonts.
   CSS variables defined in :root — tweak colours here.
   ============================================================ */

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

:root {
  --bg:        #0a0a0f;
  --bg2:       #0f0f16;
  --bg3:       #13131c;
  --surface:   #16161f;
  --border:    #1e1e2e;
  --border2:   #2a2a3d;

  /* ── Accent colours — change these to retheme the site ── */
  --blue:      #4f8ef7;
  --blue-dim:  #1a2540;
  --blue-glow: rgba(79, 142, 247, 0.12);
  --green:     #3dffa0;
  --gold:      #f5c842;

  --text:      #e8eaf2;
  --muted:     #5a5f7a;
  --muted2:    #8890aa;

  --mono:  'IBM Plex Mono', monospace;
  --block: 'Bebas Neue', sans-serif;
  --sans:  'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* scanline texture */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px
  );
}

/* grid overlay */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(79,142,247,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5vw; height: 64px;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--block); font-size: 1.5rem;
  letter-spacing: 0.08em; color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--blue); }

.nav-center { display: flex; gap: 0.25rem; list-style: none; }
.nav-center a {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  text-decoration: none; letter-spacing: 0.1em;
  padding: 0.4rem 0.9rem; border-radius: 4px;
  transition: all 0.2s; text-transform: uppercase;
}
.nav-center a:hover { color: var(--blue); background: var(--blue-glow); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-status {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--green); letter-spacing: 0.1em;
}
.nav-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.nav-hire {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #000; background: var(--blue);
  text-decoration: none; padding: 0.5rem 1.2rem;
  border-radius: 3px; transition: all 0.2s;
}
.nav-hire:hover { background: #6ba3f9; transform: translateY(-1px); }

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 8vw 5rem;
  max-width: 1300px; margin: 0 auto;
}

.hero-prompt {
  font-family: var(--mono); font-size: 0.9rem;
  color: var(--muted); letter-spacing: 0.08em; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards;
}
.hero-prompt .green { color: var(--green); }

.hero-name {
  font-family: var(--block);
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.88; letter-spacing: 0.04em; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.6s ease 0.25s forwards;
}
.hero-name .line-blue { color: var(--blue); }

.hero-tagline {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  color: var(--muted2); margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 0.6s ease 0.4s forwards;
}
.hero-tagline .sep { color: var(--border2); }
.hero-tagline .highlight { color: var(--blue); }

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.6s ease 0.55s forwards;
}

/* ── TERMINAL WIDGET ─────────────────────────────────────── */
.hero-terminal {
  position: absolute; right: 8vw; top: 50%; transform: translateY(-50%);
  width: 400px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; overflow: hidden;
  font-family: var(--mono); font-size: 0.82rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.6s forwards;
}
.term-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--bg3); border-bottom: 1px solid var(--border);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.td-red    { background: #ff5f57; }
.td-yellow { background: #febc2e; }
.td-green  { background: #28c840; }
.term-title { font-size: 0.75rem; color: var(--muted); margin-left: auto; letter-spacing: 0.08em; }
.term-body  { padding: 1.25rem 1.25rem 1.5rem; line-height: 2; }

/* terminal text colours */
.t-muted  { color: var(--muted); }
.t-blue   { color: var(--blue); }
.t-green  { color: var(--green); }
.t-white  { color: var(--text); }
.t-yellow { color: #ffd97d; }
.t-gold   { color: var(--gold); }

.cursor-blink {
  display: inline-block; width: 8px; height: 14px;
  background: var(--green);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; padding: 0.85rem 1.9rem;
  border-radius: 3px; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.22s; cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: #000; font-weight: 700; }
.btn-primary:hover {
  background: transparent; color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue), 0 0 20px var(--blue-glow);
}
.btn-ghost { background: transparent; color: var(--muted2); box-shadow: inset 0 0 0 1px var(--border2); }
.btn-ghost:hover { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

/* ── SHARED SECTION STYLES ───────────────────────────────── */
.page-section { position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 7rem 6vw; }
.section-head  { margin-bottom: 4rem; }
.section-alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.s-label {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.s-label::after { content: ''; flex: 1; height: 1px; background: var(--border); max-width: 60px; }

.s-title {
  font-family: var(--block);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95; letter-spacing: 0.05em; color: var(--text);
}
.s-title em { color: var(--blue); font-style: normal; }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-layout {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 6rem; align-items: start;
}
.about-body p { font-size: 1.05rem; color: var(--muted2); line-height: 1.9; margin-bottom: 1.1rem; }
.about-body p strong { color: var(--text); font-weight: 500; }

.about-meta { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.meta-row {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.88rem; color: var(--muted2);
}
.meta-row .key { color: var(--blue); min-width: 70px; }

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.a-stat { background: var(--surface); padding: 2rem 1.5rem; transition: background 0.2s; }
.a-stat:hover { background: var(--bg3); }
.a-stat-n { font-family: var(--block); font-size: 3rem; letter-spacing: 0.04em; color: var(--blue); line-height: 1; }
.a-stat-n.gold { color: var(--gold); }
.a-stat-l { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.5rem; }

/* ── EXPERIENCE ──────────────────────────────────────────── */
.tl { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 3rem; padding: 2.5rem 0; border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-date { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; line-height: 1.6; padding-top: 0.35rem; }
.tl-title { font-family: var(--block); font-size: 1.6rem; letter-spacing: 0.04em; color: var(--text); margin-bottom: 0.2rem; }
.tl-org   { font-family: var(--mono); font-size: 0.85rem; color: var(--blue); letter-spacing: 0.08em; margin-bottom: 1rem; }
.tl-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.tl-bullets li { font-size: 1rem; color: var(--muted2); line-height: 1.7; padding-left: 1.2rem; position: relative; }
.tl-bullets li::before { content: '>'; position: absolute; left: 0; color: var(--blue); font-family: var(--mono); font-size: 0.8rem; }

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-layout {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.skill-block { background: var(--surface); padding: 2rem 1.75rem; transition: background 0.2s; }
.skill-block:hover { background: var(--bg3); }
.skill-block-label {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.skill-block-label::before { content: '//'; color: var(--muted); }
.skill-list { display: flex; flex-direction: column; gap: 0.5rem; }
.skill-item {
  font-family: var(--mono); font-size: 0.9rem; color: var(--text);
  padding: 0.4rem 0.8rem;
  background: rgba(79,142,247,0.05);
  border-left: 2px solid var(--blue-dim);
  border-radius: 0 2px 2px 0;
  transition: border-color 0.2s, color 0.2s;
}
.skill-item:hover { border-color: var(--blue); color: var(--blue); }

/* ── PROJECTS ────────────────────────────────────────────── */
.proj-section-grid { display: flex; flex-direction: column; gap: 1.5rem; }

/* featured hackathon card */
.proj-hero-card {
  background: var(--surface);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 6px; overflow: hidden;
  position: relative; transition: border-color 0.3s;
}
.proj-hero-card:hover { border-color: rgba(245,200,66,0.5); }
.proj-hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(245,200,66,0.2), transparent);
}
.phc-inner { display: grid; grid-template-columns: 1fr 1.4fr; }
.phc-left {
  padding: 3rem; border-right: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(245,200,66,0.06) 0%, transparent 70%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.phc-award { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.phc-medal {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle, rgba(245,200,66,0.18) 0%, rgba(245,200,66,0.04) 100%);
  border: 1.5px solid rgba(245,200,66,0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.phc-medal-place { font-family: var(--block); font-size: 2.2rem; color: var(--gold); line-height: 1; letter-spacing: 0.02em; }
.phc-medal-sub   { font-family: var(--mono); font-size: 0.6rem; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.75; }
.phc-award-title { font-family: var(--block); font-size: 1.2rem; letter-spacing: 0.06em; color: var(--gold); line-height: 1.2; }
.phc-award-sub   { font-family: var(--mono); font-size: 0.8rem; color: var(--muted2); margin-top: 0.35rem; line-height: 1.5; }
.phc-name { font-family: var(--block); font-size: 2.2rem; letter-spacing: 0.04em; color: var(--text); line-height: 1.05; margin-bottom: 0.5rem; }
.phc-org  { font-family: var(--mono); font-size: 0.82rem; color: var(--blue); letter-spacing: 0.06em; margin-bottom: 1.75rem; }
.phc-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.phc-right { padding: 3rem; }
.phc-how-label {
  font-family: var(--mono); font-size: 0.75rem; color: var(--blue);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.phc-how-label::before { content: '//'; color: var(--muted); }

.phc-pipeline { display: flex; flex-direction: column; }
.pipe-step {
  display: flex; gap: 1.25rem; padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.pipe-step:last-child { border-bottom: none; }
.pipe-num {
  font-family: var(--block); font-size: 1.4rem; color: var(--border2);
  letter-spacing: 0.04em; line-height: 1; flex-shrink: 0; width: 28px; padding-top: 2px;
  transition: color 0.2s;
}
.pipe-step:hover .pipe-num { color: var(--blue); }
.pipe-title { font-family: var(--mono); font-size: 0.9rem; color: var(--text); font-weight: 500; margin-bottom: 0.3rem; letter-spacing: 0.04em; }
.pipe-desc  { font-size: 0.95rem; color: var(--muted2); line-height: 1.7; }
.pipe-desc strong { color: var(--blue); font-weight: 400; }

/* regular project cards grid */
.proj-cards-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.proj-card {
  background: var(--surface); padding: 2.25rem;
  transition: background 0.25s; position: relative; overflow: hidden;
}
.proj-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.proj-card:hover { background: var(--bg3); }
.proj-card:hover::before { opacity: 1; }

.proj-card-placeholder {
  background: var(--bg2);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 3rem 2rem;
}
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.proj-num { font-family: var(--block); font-size: 2.5rem; color: var(--border2); letter-spacing: 0.05em; line-height: 1; }
.proj-links { display: flex; gap: 0.5rem; align-items: flex-start; }
.proj-name  { font-family: var(--block); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--text); margin-bottom: 0.75rem; }
.proj-desc  { font-size: 0.95rem; color: var(--muted2); line-height: 1.75; margin-bottom: 1.5rem; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* shared chips & links */
.s-chip {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted2);
  border: 1px solid var(--border2); padding: 0.3rem 0.7rem;
  border-radius: 2px; letter-spacing: 0.04em;
}
.p-link {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  text-decoration: none; border: 1px solid var(--border2);
  padding: 0.3rem 0.7rem; border-radius: 2px;
  transition: all 0.2s; letter-spacing: 0.06em;
}
.p-link:hover { border-color: var(--blue); color: var(--blue); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-left h3 { font-family: var(--block); font-size: 1.6rem; letter-spacing: 0.05em; color: var(--text); margin-bottom: 1rem; }
.contact-left p  { font-size: 1rem; color: var(--muted2); line-height: 1.85; margin-bottom: 2rem; }
.c-links { display: flex; flex-direction: column; gap: 0.75rem; }
.c-link {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: 0.9rem; color: var(--muted2);
  text-decoration: none; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; transition: all 0.2s; letter-spacing: 0.04em;
}
.c-link:hover { border-color: var(--blue); color: var(--blue); transform: translateX(4px); }
.c-link-icon {
  width: 32px; height: 32px; background: var(--blue-dim); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}

.c-form { display: flex; flex-direction: column; gap: 1rem; }
.f-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-group { display: flex; flex-direction: column; gap: 0.4rem; }
.f-group label { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.f-group input,
.f-group textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; padding: 0.85rem 1rem;
  font-family: var(--mono); font-size: 0.92rem; color: var(--text);
  outline: none; transition: border-color 0.2s; resize: none;
}
.f-group input:focus,
.f-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.f-group textarea { min-height: 120px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); padding: 2rem 6vw;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em;
}
footer .accent { color: var(--blue); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp  { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: none; } }
@keyframes pulse   { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes blink   { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-terminal { display: none; }
}
@media (max-width: 960px) {
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .nav-center { display: none; }
  .f-row { grid-template-columns: 1fr; }
  .phc-inner { grid-template-columns: 1fr; }
  .phc-left { border-right: none; border-bottom: 1px solid var(--border); }
  .proj-cards-row { grid-template-columns: 1fr; }
}
