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

:root {
  --color-bg: #0a0a0f;
  --color-surface: #12121a;
  --color-surface-2: #1a1a26;
  --color-border: #2a2a3a;
  --color-text: #e4e4ed;
  --color-text-muted: #8888a0;
  --color-accent: #6c63ff;
  --color-accent-light: #8b83ff;
  --color-accent-glow: rgba(108, 99, 255, 0.15);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- NAV ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.3s;
  letter-spacing: 0.01em;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, var(--color-accent-glow), transparent),
    radial-gradient(ellipse 80% 60% at 30% 70%, rgba(99, 102, 241, 0.06), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(139, 92, 246, 0.05), transparent);
}

.hero-content {
  position: relative;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-name {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.hero-location {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3);
}

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

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- SECTIONS ---- */

section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ---- ABOUT ---- */

.about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.about-grid.visible {
  opacity: 1;
  transform: none;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-text strong {
  color: var(--color-text);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.25rem 1.75rem;
  background: var(--color-surface-2);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

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

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease-out) 0.2s;
}

.skills-bar.visible {
  opacity: 1;
  transform: none;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: var(--color-accent-glow);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent-light);
  letter-spacing: 0.01em;
}

/* ---- TIMELINE ---- */

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.7s var(--ease-out);
}

.timeline-item.visible {
  opacity: 1;
  transform: none;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  transition: all 0.3s;
}

.timeline-item:first-child .timeline-marker {
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.5);
}

.timeline-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s var(--ease-out);
}

.timeline-content:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateX(4px);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.35rem 0 0.25rem;
}

.timeline-company {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- EDUCATION ---- */

.education {
  background: var(--color-surface);
}

.education-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out);
}

.education-card.visible {
  opacity: 1;
  transform: none;
}

.education-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-glow);
  border-radius: 16px;
  color: var(--color-accent);
}

.education-icon svg {
  width: 32px;
  height: 32px;
}

.education-details h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-degree {
  color: var(--color-accent-light);
  font-weight: 500;
  font-size: 1rem;
}

.education-degree + .education-degree {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

.education-years {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ---- CERTIFICATIONS ---- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
}

.cert-card.visible {
  opacity: 1;
  transform: none;
}

.cert-card:nth-child(2) {
  transition-delay: 0.1s;
}

.cert-card:nth-child(3) {
  transition-delay: 0.2s;
}

.cert-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.12);
}

.cert-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-glow);
  border-radius: 12px;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.cert-badge svg {
  width: 24px;
  height: 24px;
}

.cert-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cert-issuer {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin-top: 0.25rem;
}

.cert-link-text {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* ---- CONTACT ---- */

.contact {
  text-align: center;
  background: var(--color-surface);
  padding: 6rem 0;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ---- FOOTER ---- */

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

.footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease-out);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    flex-direction: row;
    justify-content: center;
  }

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

  .education-card {
    flex-direction: column;
    text-align: center;
  }

  section {
    padding: 4rem 0;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -2rem;
  }
}

@media (max-width: 480px) {
  .about-stats {
    flex-direction: column;
  }

  .hero-name {
    font-size: 2rem;
  }
}
