/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg: #0d0817;
  --bg-alt: #120b22;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #f1eefc;
  --text-muted: #b3a9cc;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --orange: #f97316;
  --cyan: #22d3ee;
  --gradient: linear-gradient(115deg, var(--cyan) 0%, var(--violet) 45%, var(--pink) 75%, var(--orange) 100%);
  --gradient-soft: linear-gradient(115deg, rgba(34,211,238,.18) 0%, rgba(139,92,246,.18) 45%, rgba(236,72,153,.18) 75%, rgba(249,115,22,.18) 100%);
  --radius: 18px;
  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px -20px rgba(139, 92, 246, 0.45);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2rem; }
li { margin-bottom: .5rem; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Background blobs
   ========================================================================== */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.blob-1 { width: 480px; height: 480px; background: var(--violet); top: -120px; left: -100px; }
.blob-2 { width: 520px; height: 520px; background: var(--pink); top: 30%; right: -180px; }
.blob-3 { width: 460px; height: 460px; background: var(--cyan); bottom: -160px; left: 20%; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(13, 8, 23, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s ease;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.logo .dot { color: var(--pink); }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.nav-link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { display: inline-flex; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-small { padding: 9px 20px; font-size: .85rem; }
.btn-primary {
  background: var(--gradient);
  color: #0d0817;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(236, 72, 153, 0.55); }
.btn-outline {
  background: transparent;
  border-color: var(--surface-border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--violet); background: var(--surface); transform: translateY(-2px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  z-index: 1;
}
.hero-inner { max-width: 780px; }
.eyebrow {
  font-family: var(--font-display);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 22px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-socials {
  display: flex;
  gap: 20px;
}
.hero-socials a {
  color: var(--text-muted);
  transition: color .2s ease, transform .2s ease;
}
.hero-socials a:hover { color: var(--pink); transform: translateY(-3px); }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 15%, rgba(255,255,255,0.02) 85%, transparent); }
.section-eyebrow {
  font-family: var(--font-display);
  color: var(--pink);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p { color: var(--text-muted); font-size: 1.02rem; }
.about-text strong { color: var(--text); }
.about-facts {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan); font-weight: 600; }
.fact-value { font-weight: 600; }

.about-education h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--text);
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.edu-period {
  font-size: .78rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: .03em;
}
.edu-card h4 { margin: 6px 0 4px; font-size: 1rem; }
.edu-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ==========================================================================
   Skills
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.skill-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.5); }
.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid var(--surface-border);
  color: var(--text);
}

/* ==========================================================================
   Tech stack marquee
   ========================================================================== */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
  white-space: nowrap;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.marquee-item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
  color: var(--text);
}
.marquee-item i { font-size: 1.7rem; }
.marquee-item em { font-style: normal; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ==========================================================================
   Certifications
   ========================================================================== */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.5); }
.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cert-status {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 12px;
  border-radius: 999px;
}
.cert-status.status-progress {
  background: var(--gradient-soft);
  color: var(--cyan);
  border: 1px solid var(--surface-border);
}
.cert-status.status-completed {
  background: var(--gradient);
  color: #0d0817;
}
.cert-period { color: var(--text-muted); font-size: .82rem; font-weight: 500; }
.cert-title { font-size: 1.05rem; margin-bottom: 6px; }
.cert-title a:hover { color: var(--pink); }
.cert-provider { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  padding: 2px;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}
.project-card:hover::before { opacity: 0.5; }
.project-card-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 32px;
}
.project-card.featured .project-card-inner { padding: 40px; }
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.project-badge {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--gradient);
  color: #0d0817;
  padding: 5px 12px;
  border-radius: 999px;
}
.project-period { color: var(--text-muted); font-size: .85rem; font-weight: 500; }
.project-title { font-size: 1.6rem; margin-bottom: 4px; }
.project-tagline { color: var(--cyan); font-weight: 600; margin-bottom: 16px; font-size: .98rem; }
.project-role { color: var(--text-muted); font-size: .88rem; margin-bottom: 16px; }
.project-description { color: var(--text-muted); margin-bottom: 18px; }
.project-highlights { margin-bottom: 20px; }
.project-highlights li { color: var(--text-muted); font-size: .95rem; }
.project-highlights li::marker { color: var(--pink); }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.project-tech .tag { background: rgba(255,255,255,0.04); }
.project-links { display: flex; gap: 14px; flex-wrap: wrap; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  transition: border-color .2s ease, transform .2s ease;
}
.project-link:hover { border-color: var(--pink); transform: translateY(-2px); }

.project-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius);
}

/* ==========================================================================
   Experience timeline
   ========================================================================== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--gradient);
  opacity: .5;
}
.timeline-item { position: relative; margin-bottom: 8px; }
.timeline-dot {
  position: absolute;
  left: -32px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.2);
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.timeline-period { color: var(--orange); font-weight: 600; font-size: .85rem; }
.timeline-content h3 { font-size: 1.25rem; margin: 8px 0 4px; }
.timeline-company { color: var(--cyan); font-weight: 500; margin-bottom: 16px; }
.timeline-content ul { margin: 0; }
.timeline-content li { color: var(--text-muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-section .section-subtitle { margin-left: auto; margin-right: auto; }
.contact-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease;
}
.contact-card svg { color: var(--pink); flex-shrink: 0; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--violet); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
}

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-alt);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--surface-border);
  }
  .navbar.menu-open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: calc(100% + 210px);
    left: 24px;
  }
  .section { padding: 90px 0; }
  .contact-card { width: 100%; justify-content: center; }
}
