/* ===== FONTS ===== */
@font-face {
  font-family: "JetBrains Sans";
  src: url("fonts/JetBrainsSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #08080f;
  --bg-card: #0f0f1a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-muted: #6b7280;
  --accent: #818cf8;
  --font-sans: "JetBrains Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 8, 15, 0.8);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--text);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(129, 140, 248, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.hero-role {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.separator {
  opacity: 0.4;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #9aa3fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.3);
}

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

/* ===== SECTION BASE ===== */
.section {
  padding: 120px 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: -1px;
  margin-top: 12px;
}

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

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-bio p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.about-edu-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.edu-item {
  padding: 20px 20px 20px 24px;
  border-left: 2px solid var(--border);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.edu-item:hover {
  border-left-color: var(--accent);
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
}

.edu-degree {
  font-size: 16px;
  color: var(--text);
  margin-top: 6px;
}

.edu-school {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== SECTION ALT ===== */
.section--alt {
  background: var(--bg-card);
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.skill-group-title {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-name {
  font-family: var(--font-mono), monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.project-arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lang-java   { background: #b07219; }
.lang-js     { background: #f1e05a; }
.lang-python { background: #3572a5; }

/* ===== FEATURED PROJECT CARD ===== */
.project-card--featured {
  border-color: rgba(129, 140, 248, 0.25);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.04) 0%, transparent 60%);
  cursor: default;
}

.project-card--featured:hover {
  border-color: var(--accent);
}

.project-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  color: #4ade80;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: livepulse 2s ease-in-out infinite;
}

@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.project-link {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.project-link--primary {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.35);
  color: var(--accent);
}

.project-link--primary:hover {
  background: rgba(129, 140, 248, 0.18);
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.2);
}

/* ===== CONTACT ===== */
.contact-content {
  max-width: 520px;
}

.contact-text {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 20px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer-text {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 16px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .section {
    padding: 80px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
