:root {
  --bg: #0b0f1a;
  --bg-alt: #10162a;
  --card: #131a2e;
  --border: #232c47;
  --text: #e7ebf5;
  --text-muted: #93a0c2;
  --accent: #4fd1c5;
  --accent-2: #a78bfa;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 14px;
  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(79,209,197,0.10), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(167,139,250,0.10), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.01em; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 26, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }

.nav-link--cta {
  color: var(--bg);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-link--cta:hover { color: var(--bg); opacity: 0.85; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); display: block;
}

/* HERO */
.hero {
  padding: 100px 24px 80px;
  max-width: 780px;
}
.hero-eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-social {
  display: flex;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero-social a { border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.hero-social a:hover { color: var(--accent); border-color: var(--accent); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #06231f; }
.btn--primary:hover { opacity: 0.9; }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 8px 16px; font-size: 0.85rem; }

/* SECTIONS */
.section { padding: 70px 24px; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section-num {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.skill-card h3 {
  font-size: 0.95rem;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  font-size: 0.78rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 999px;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.project-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.project-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
}
.project-body h3 { font-size: 1.15rem; }
.project-body p { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.project-links { margin-top: 6px; }
.project-links-hint { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* TIMELINE */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -35px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79,209,197,0.15);
}
.timeline-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}
.timeline-content h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.92rem; max-width: 620px; }

/* EDUCATION */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.edu-card h3 { color: var(--accent-2); font-size: 1rem; margin-bottom: 10px; }
.edu-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.edu-card li { color: var(--text-muted); font-size: 0.9rem; }
.edu-card em { color: var(--text); font-style: normal; }

/* CONTACT */
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.contact-box p { color: var(--text-muted); font-size: 1.05rem; }

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 30px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE NAV */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(calc(-100% - 80px));
    transition: transform 0.3s ease;
  }
  .nav-links.is-open { transform: translateY(0); }
}
