/* =============================================
   TOKENS — change these to retheme the whole site
============================================= */
:root {
  --bg:           #0e0e11;
  --surface:      #17171c;
  --border:       #2a2a33;
  --accent:       #7b5ea7;       /* purple — change this to your vibe */
  --accent2:      #a78bfa;       /* lighter accent for text */
  --text:         #e8e8f0;
  --muted:        #888899;
  --radius:       10px;
  --max-w:        860px;
  --nav-h:        64px;
  --font-sans:    'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* =============================================
   NAV
============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(14, 14, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
}

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

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

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

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

/* =============================================
   LAYOUT WRAPPER
============================================= */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   SECTION BASE — every section uses this
============================================= */
section {
  padding: 6rem 0 4rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* Scroll reveal — JS adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   HERO SECTION
============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(123, 94, 167, 0.12), 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-photo {
    width: 150px;
    height: 150px;
  }

  .hero-cta {
    justify-content: center;
  }
}

.hero-greeting {
  font-size: 0.9rem;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-bio {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

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

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent2);
  color: #0e0e11;
  text-decoration: none;
}

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

.btn-ghost:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  text-decoration: none;
}

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

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.fact-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.fact-item:last-child {
  border-bottom: none;
}

.fact-label {
  color: var(--muted);
}

.fact-value {
  color: var(--text);
  font-weight: 500;
}

/* =============================================
   SKILLS SECTION
============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

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

.skill-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  background: rgba(123, 94, 167, 0.15);
  color: var(--accent2);
  border-radius: 4px;
  border: 1px solid rgba(123, 94, 167, 0.3);
}

/* =============================================
   PROJECTS SECTION
============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

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

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
}

.project-card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.project-links a {
  font-size: 0.85rem;
  font-weight: 500;
}

/* =============================================
   EXPERIENCE SECTION
============================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 141px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 136px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-date {
  color: var(--muted);
  font-size: 0.82rem;
  padding-top: 2px;
  padding-right: 0.25rem;
  text-align: right;
  white-space: nowrap;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.timeline-content .company {
  color: var(--accent2);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

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

/* =============================================
   CONTACT SECTION
============================================= */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 2rem;
}

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

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

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 90px 1fr;
    gap: 1.25rem;
  }

  .timeline-date {
    font-size: 0.72rem;
    white-space: normal;
  }

  .timeline-item::before {
    left: 99px;
  }

  .timeline-item::after {
    left: 94px;
  }
}
