/* ═══════════════════════════════════════
   Global Reset & Variables
═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:          #060812;
  --bg2:         #0d1120;
  --surface:     rgba(255,255,255,0.045);
  --surface-b:   rgba(255,255,255,0.1);
  --border:      rgba(255,255,255,0.08);
  --border-h:    rgba(129,140,248,0.4);
  --accent:      #818cf8;
  --accent2:     #a78bfa;
  --accent3:     #38bdf8;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --radius:      16px;
  --radius-sm:   10px;
  --font-head:   'Syne', sans-serif;
  --font-body:   'Outfit', sans-serif;
  --transition:  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: #fff; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ═══════════════════════════════════════
   Utilities
═══════════════════════════════════════ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

.glass {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   Navigation
═══════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}
#navbar.scrolled {
  background: rgba(6,8,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 800;
  color: #fff; text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem; border-radius: 100px;
}
.nav-links .nav-cta:hover {
  background: var(--accent); color: #fff;
}

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ═══════════════════════════════════════
   Hero
═══════════════════════════════════════ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 6rem 2rem 4rem;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3; animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  bottom: -100px; right: -50px;
  animation-delay: -3s;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation-delay: -6s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-20px) scale(1.05); }
  66%       { transform: translate(-20px,15px) scale(0.95); }
}

#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 800px;
}
.hero-greeting {
  font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800; line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 20%, var(--accent) 60%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600; color: var(--text-muted); margin-bottom: 1.5rem;
  min-height: 2.2rem;
}
.cursor {
  display: inline-block; color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 8px 32px rgba(99,102,241,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99,102,241,0.5); }
.btn-ghost {
  border: 1px solid var(--border-h); color: var(--text);
  background: rgba(255,255,255,0.04);
}
.btn-ghost:hover { background: var(--surface-b); border-color: var(--accent); color: var(--accent); }

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; z-index: 1;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.1)} }

/* ═══════════════════════════════════════
   Sections Common
═══════════════════════════════════════ */
section:not(#hero) { padding: 7rem 0; }

section:nth-child(odd):not(#hero) { background: var(--bg2); }

/* ═══════════════════════════════════════
   About
═══════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
}
.about-text p {
  color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem;
}
.about-stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head); font-size: 2.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-unit { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-item p { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.3rem; }

.avatar-wrapper {
  position: relative; width: 300px; height: 300px;
  display: flex; align-items: center; justify-content: center;
}

.avatar-placeholder {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: var(--radius);
  background: linear-gradient(135deg, #0d1120, #1a1f35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.avatar-placeholder img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.avatar-placeholder svg { width: 60%; height: 60%; opacity: 0.9; }
.avatar-badge {
  position: absolute; bottom: -12px; right: -12px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════
   Skills
═══════════════════════════════════════ */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem;
}
.skill-card {
  padding: 2rem; transition: var(--transition);
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-h);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 20px 60px rgba(99,102,241,0.15);
}
.skill-icon { font-size: 2rem; margin-bottom: 1rem; }
.skill-card h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 1rem; color: #fff;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tags span {
  font-size: 0.8rem; padding: 0.3rem 0.75rem;
  background: rgba(129,140,248,0.12); border: 1px solid rgba(129,140,248,0.25);
  border-radius: 100px; color: var(--accent);
  transition: 0.3s;
}
.skill-card:hover .skill-tags span {
  background: rgba(129,140,248,0.2); border-color: var(--accent);
}

/* ═══════════════════════════════════════
   Experience / Timeline
═══════════════════════════════════════ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px;
  bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative; margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute; left: -2rem; top: 1.5rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(129,140,248,0.2);
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 6px rgba(129,140,248,0.2), 0 0 20px var(--accent);
}

.timeline-card {
  padding: 1.8rem 2rem; transition: var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-h);
  transform: translateX(4px);
  box-shadow: 0 8px 40px rgba(99,102,241,0.1);
}

.timeline-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.timeline-header h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: #fff;
}
.company { color: var(--accent); font-size: 0.9rem; margin-top: 0.2rem; }

.timeline-date {
  font-size: 0.8rem; color: var(--text-dim);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 0.25rem 0.75rem; border-radius: 100px; white-space: nowrap;
}

.timeline-desc {
  list-style: none; display: flex; flex-direction: column; gap: 0.6rem;
}
.timeline-desc li {
  color: var(--text-muted); font-size: 0.95rem;
  padding-left: 1.2rem; position: relative;
}
.timeline-desc li::before {
  content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 0.8rem;
}

/* ═══════════════════════════════════════
   Education
═══════════════════════════════════════ */
.edu-grid { display: grid; gap: 1.5rem; }
.edu-card {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.8rem 2rem; transition: var(--transition);
}
.edu-card:hover {
  border-color: var(--border-h); transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(99,102,241,0.12);
}
.edu-icon { font-size: 2.5rem; flex-shrink: 0; }
.edu-info h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: #fff; }
.edu-school { color: var(--accent); margin: 0.3rem 0; }
.edu-date {
  font-size: 0.8rem; color: var(--text-dim);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 0.2rem 0.7rem; border-radius: 100px; display: inline-block; margin-top: 0.3rem;
}
.edu-awards {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem;
}
.edu-awards span {
  font-size: 0.78rem; padding: 0.25rem 0.7rem;
  background: rgba(129,140,248,0.1); border: 1px solid rgba(129,140,248,0.2);
  border-radius: 100px; color: var(--accent);
}

/* ═══════════════════════════════════════
   Contact
═══════════════════════════════════════ */
#contact { text-align: center; }
.contact-desc {
  color: var(--text-muted); font-size: 1.1rem;
  max-width: 500px; margin: -1.5rem auto 2.5rem;
}
.contact-grid {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: 0 auto;
}
.contact-card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.5rem 2rem; text-decoration: none; color: var(--text);
  transition: var(--transition); min-width: 260px;
}
.contact-card:hover {
  border-color: var(--border-h); transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(99,102,241,0.15);
}
.contact-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0; color: #fff;
}
.contact-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-value { font-weight: 600; color: #fff; margin-top: 0.2rem; }

/* ═══════════════════════════════════════
   Footer
═══════════════════════════════════════ */
footer {
  text-align: center; padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   Responsive
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: flex; justify-content: center; order: -1; }
  .avatar-wrapper { width: 220px; height: 220px; }
  .avatar-placeholder { width: 100%; height: 100%; }

  .timeline { padding-left: 1.5rem; }
  .timeline-dot { left: -1.5rem; width: 12px; height: 12px; }

  .timeline-header { flex-direction: column; }

  .contact-grid { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 380px; }
}
