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

:root {
  --bg-primary:   #060612;
  --bg-surface:   #0c0c20;
  --bg-card:      #10102a;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --purple:       #7c3aed;
  --blue:         #2563eb;
  --cyan:         #06b6d4;
  --green:        #10b981;
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;
  --radius:    16px;
  --radius-sm:  8px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================================
   UTILITIES
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(6, 6, 18, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
  padding: 13px 0;
}

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

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: #a78bfa; }

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff !important;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 15%, rgba(37,  99, 235, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 65% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 45%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* floating orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: var(--purple); top: -100px; left: -120px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: var(--blue);   top: 60%;   right: -80px;  animation-delay: -3s; }
.orb-3 { width: 250px; height: 250px; background: var(--cyan);   bottom: 0;  left: 40%;     animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0)   scale(1); }
  50%       { transform: translateY(-30px) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 130px 0 90px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 36px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #a78bfa;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.28);
}

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 5px;
  display: block;
}

/* =============================================
   SECTION COMMONS
   ============================================= */
section { padding: 100px 0; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 56px;
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 18px;
  font-size: 0.97rem;
}

.about-quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}

.about-quote-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(124,58,237,0.2);
  font-family: Georgia, serif;
}

.quote-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.quote {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, var(--purple), var(--blue)) 1;
  padding-left: 18px;
  margin-bottom: 24px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.quote-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.quote-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =============================================
   FOCUS AREAS
   ============================================= */
.focus-section { background: var(--bg-surface); }

.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.focus-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.focus-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.focus-card:hover::after { opacity: 1; }

.focus-card.personal::after {
  background: linear-gradient(135deg, rgba(6,182,212,0.05), transparent 60%);
}

.focus-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.focus-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.focus-icon.work     { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.22); }
.focus-icon.personal { background: rgba(6,182,212,0.15);  border: 1px solid rgba(6,182,212,0.22); }

.focus-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.focus-badge.work     { background: rgba(124,58,237,0.15); color: #c4b5fd; }
.focus-badge.personal { background: rgba(6,182,212,0.15);  color: #67e8f9; }

.focus-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.focus-card p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  font-size: 0.93rem;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* =============================================
   EXPERIENCE / TIMELINE
   ============================================= */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--purple), var(--blue) 60%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 18px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}

.timeline-dot.current {
  animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }
  50%       { box-shadow: 0 0 0 7px rgba(124,58,237,0.35), 0 0 18px rgba(124,58,237,0.25); }
}

.timeline-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color 0.2s;
}
.timeline-group:hover { border-color: var(--border-hover); }

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 4px;
}

.timeline-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  height: fit-content;
  flex-shrink: 0;
}

.timeline-bullets {
  list-style: none;
  margin-top: 14px;
  padding: 0;
}

.timeline-bullets li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
  margin-bottom: 5px;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  top: 1px;
}

/* =============================================
   SKILLS
   ============================================= */
.skills-section { background: var(--bg-surface); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.skill-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.skill-card-icon { font-size: 1.75rem; margin-bottom: 14px; }

.skill-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-tag {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.skill-tag.highlight {
  background: rgba(124,58,237,0.14);
  border-color: rgba(124,58,237,0.28);
  color: #c4b5fd;
}

/* =============================================
   PUBLICATIONS
   ============================================= */
.pubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.pub-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

.pub-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pub-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
}

.pub-isbn {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  margin-bottom: 16px;
}

.pub-publisher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  width: fit-content;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid  { grid-template-columns: 1fr; gap: 36px; }
  .focus-grid  { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero-stats { gap: 24px; }
  .pubs-grid { grid-template-columns: 1fr; }
  .timeline-header { flex-direction: column; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
