/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0e17;
  --bg-alt: #111726;
  --card: #161d2e;
  --text: #c9d3e6;
  --heading: #e8eefc;
  --muted: #7d8aa3;
  --accent: #4fd1c5;
  --accent-dim: rgba(79, 209, 197, 0.12);
  --border: #232c40;
  --radius: 12px;
  --max: 1000px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}

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

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading);
}

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

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-dim);
}

.btn-ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  color: var(--accent);
  font-family: monospace;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  color: var(--heading);
  line-height: 1.1;
}

.tagline {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.intro {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.8rem;
  color: var(--heading);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title span {
  color: var(--accent);
  font-family: monospace;
  font-size: 1.2rem;
}

.section-title.centered {
  justify-content: center;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
}

.tech-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.95rem;
}

.tech-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.skill-card h3 {
  color: var(--heading);
  margin-bottom: 0.6rem;
}

.skill-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-content h3 {
  color: var(--heading);
  font-size: 1.15rem;
}

.company {
  color: var(--accent);
  font-weight: 500;
}

.timeline-date {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.timeline-content ul {
  padding-left: 1.2rem;
}

.timeline-content li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact-inner {
  text-align: center;
  max-width: 620px;
}

.contact-text {
  margin-bottom: 2rem;
}

.contact-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .tech-list {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 4rem 0;
  }
}
