*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e17;
  --bg2: #0f1521;
  --bg3: #141c2e;
  --border: #1e2d45;
  --accent: #00d4ff;
  --accent2: #0099cc;
  --text: #e2e8f0;
  --text-muted: #7a8fa6;
  --green: #00e676;
  --yellow: #ffd740;
  --red: #ff5252;
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}
.nav-logo {
  font-family: var(--mono); font-size: 1.25rem; font-weight: 700;
  color: var(--text); letter-spacing: 0.05em;
}
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.5rem; border-radius: 6px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-primary {
  background: var(--accent); color: #0a0e17;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(0,212,255,0.08); transform: translateY(-1px); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* ── SECTIONS ── */
section { padding: 7rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem;
}
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 2.5rem; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,212,255,0.06) 0%, transparent 70%),
    var(--bg);
}
#hero .section-inner,
.hero-content + .hero-visual {
  display: contents;
}
#hero > .hero-content,
#hero > .hero-visual {
  /* handled below */
}
#hero {
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 2rem 4rem;
  width: 100%;
  box-sizing: border-box;
}
/* override the section rule */
#hero { padding: 6rem 2rem 4rem; max-width: none; }

.hero-content { max-width: 560px; }
.hero-tag {
  font-family: var(--mono); font-size: 0.8rem; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-tag::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800;
  line-height: 1.05; margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 420px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* TERMINAL */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.terminal {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; width: 100%; max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.08);
}
.terminal-bar {
  background: var(--bg2); padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }
.terminal-title {
  margin-left: auto; margin-right: auto;
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted);
}
.terminal-body {
  padding: 1.5rem; font-family: var(--mono); font-size: 0.8rem;
  line-height: 1.8; white-space: pre; overflow-x: auto;
  color: var(--text);
}
.t-comment { color: #546e7a; }
.t-kw { color: #80cbc4; }
.t-str { color: #c3e88d; }
.t-fn { color: #82aaff; }
.t-num { color: #f78c6c; }

/* ── ABOUT ── */
#about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.about-highlights { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.highlight {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.25rem; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px;
}
.hl-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.highlight strong { display: block; margin-bottom: 0.2rem; }
.highlight div { font-size: 0.875rem; color: var(--text-muted); }
.highlight strong { color: var(--text); font-size: 0.95rem; }

.about-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
}
.card-item {
  display: flex; justify-content: space-between;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.card-item:last-of-type { border-bottom: none; }
.card-label { color: var(--text-muted); }

/* ── SKILLS ── */
#skills { background: var(--bg); }
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.skill-group {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
  transition: border-color 0.2s;
}
.skill-group:hover { border-color: rgba(0,212,255,0.3); }
.skill-group h3 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tags span {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 0.78rem; font-family: var(--mono);
  padding: 0.3rem 0.7rem; border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.skill-tags span:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROJECTS ── */
#projects { background: var(--bg2); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.project-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.project-card.featured {
  grid-column: span 2;
  border-color: rgba(0,212,255,0.2);
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(0,212,255,0.04) 100%);
}
.project-meta {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem;
}
.project-tag {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.06em;
}
.project-status {
  font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem;
  border-radius: 20px; letter-spacing: 0.05em; text-transform: uppercase;
}
.project-status.live { background: rgba(0,230,118,0.15); color: var(--green); }
.project-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.project-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.project-stats {
  display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.project-stats span {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
  background: rgba(0,212,255,0.08); padding: 0.25rem 0.6rem; border-radius: 4px;
}
.project-links { display: flex; gap: 0.75rem; }

/* ── CONTACT ── */
#contact { background: var(--bg); }
.contact-sub { color: var(--text-muted); font-size: 1rem; margin-top: -1.5rem; margin-bottom: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  text-decoration: none; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-item:hover { border-color: var(--accent); transform: translateX(4px); }
.ci-icon {
  width: 40px; height: 40px; background: rgba(0,212,255,0.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 0.85rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 0.2rem; }
.contact-item div { font-size: 0.85rem; color: var(--text-muted); }
.contact-item strong { font-size: 0.95rem; }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: 0.9rem;
  padding: 0.75rem 1rem; border-radius: 8px;
  outline: none; transition: border-color 0.2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form textarea { resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--green); min-height: 1.2em; }

/* ── TIMELINE ── */
#experience { background: var(--bg2); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 2rem; padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tl-item:last-child { border-bottom: none; }
.tl-left {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 0.2rem; align-items: flex-start;
}
.tl-date {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-muted); line-height: 1.5;
}
.tl-badge {
  font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: 20px; letter-spacing: 0.06em; text-transform: uppercase;
}
.tl-badge.remote { background: rgba(0,212,255,0.12); color: var(--accent); }
.tl-badge.bank { background: rgba(255,215,64,0.12); color: var(--yellow); }
.tl-body { padding-top: 0; }
.tl-company {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem;
}
.tl-body h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.tl-body ul {
  list-style: none; display: flex; flex-direction: column; gap: 0.4rem;
  margin-bottom: 1rem;
}
.tl-body ul li {
  font-size: 0.875rem; color: var(--text-muted); padding-left: 1rem;
  position: relative; line-height: 1.6;
}
.tl-body ul li::before {
  content: '›'; position: absolute; left: 0; color: var(--accent);
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tl-tags span {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.72rem; font-family: var(--mono);
  padding: 0.2rem 0.6rem; border-radius: 4px;
}

/* ── ARCHITECTURES ── */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.arch-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.arch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.arch-num {
  font-family: var(--mono); font-size: 3.5rem; font-weight: 800;
  color: rgba(0,212,255,0.07); position: absolute; top: 1rem; right: 1.25rem;
  line-height: 1; pointer-events: none;
}
.arch-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.arch-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.arch-card > p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; }
.arch-details { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.arch-detail-item {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.8rem; padding: 0.35rem 0;
  border-bottom: 1px solid rgba(30,45,69,0.6);
}
.arch-detail-label { color: var(--text-muted); font-family: var(--mono); font-size: 0.7rem; }
.arch-detail-item span:last-child { color: var(--text); text-align: right; }
.arch-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.arch-tags span {
  background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.15);
  color: var(--accent); font-size: 0.7rem; font-family: var(--mono);
  padding: 0.2rem 0.55rem; border-radius: 4px;
}

@media (max-width: 960px) {
  .arch-grid { grid-template-columns: 1fr; }
}

/* ── INTEGRATIONS ── */
#integrations { background: var(--bg); }
.section-sub { color: var(--text-muted); font-size: 0.95rem; margin-top: -1.5rem; margin-bottom: 2.5rem; max-width: 680px; line-height: 1.7; }

.integ-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.integ-category {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.75rem;
  transition: border-color 0.2s;
}
.integ-category:hover { border-color: rgba(0,212,255,0.2); }
.integ-cat-title {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.25rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.integ-list { display: flex; flex-direction: column; gap: 0.85rem; }
.integ-item { display: flex; flex-direction: column; gap: 0.15rem; }
.integ-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.integ-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

.integ-more {
  margin-top: 1.5rem; padding: 1rem 1.5rem;
  background: var(--bg2); border: 1px dashed var(--border);
  border-radius: 8px; font-size: 0.8rem; color: var(--text-muted);
  font-family: var(--mono); text-align: center;
}

@media (max-width: 960px) {
  .integ-grid { grid-template-columns: 1fr; }
}

/* ── EDUCATION ── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.edu-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.75rem;
  transition: border-color 0.2s;
}
.edu-card:hover { border-color: rgba(0,212,255,0.3); }
.edu-year {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
  margin-bottom: 0.6rem;
}
.edu-degree { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.edu-school { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.edu-level {
  display: inline-block; font-size: 0.7rem; font-family: var(--mono);
  background: rgba(0,212,255,0.08); color: var(--accent);
  padding: 0.2rem 0.6rem; border-radius: 4px;
}

@media (max-width: 960px) {
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .tl-left { flex-direction: row; align-items: center; }
  .edu-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
footer {
  text-align: center; padding: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted);
  background: var(--bg2);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 2rem 4rem;
  }
  .hero-content { max-width: none; }
  .hero-tag { justify-content: center; }
  .hero-sub { max-width: none; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  h1 { font-size: 2.5rem; }
}
