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

:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --accent: #06b6d4;
  --accent2: #8b5cf6;
  --bg: #ffffff;
  --bg-alt: #f8faff;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(79,70,229,0.08);
  --shadow-md: 0 8px 40px rgba(79,70,229,0.14);
  --shadow-lg: 0 20px 60px rgba(79,70,229,0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-h: 72px;
}

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

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

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 99px; }

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

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; gap: 2rem;
}

.nav-logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-links {
  display: flex; list-style: none; gap: 0.25rem; margin-left: auto;
}
.nav-links a {
  padding: 6px 14px; border-radius: 99px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition);
}
.nav-links a:hover { color: var(--primary); background: rgba(79,70,229,0.06); }

.btn-nav {
  padding: 8px 20px; border-radius: 99px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: white; font-size: 0.875rem; font-weight: 600;
  transition: all var(--transition); flex-shrink: 0;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.35); }

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

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
  background: linear-gradient(135deg, #111827 0%, var(--primary) 60%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero-title-wrap {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-family: 'Fira Code', monospace;
  color: var(--text-muted); margin-bottom: 24px; min-height: 1.8em;
}
.cursor { animation: blink 1s step-end infinite; color: var(--primary); }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-summary {
  font-size: 1.0625rem; color: var(--text-muted); max-width: 540px;
  line-height: 1.75; margin-bottom: 36px;
}
.hero-summary strong { color: var(--text); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.btn-primary {
  padding: 12px 28px; border-radius: 99px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: white; font-weight: 600; font-size: 0.9375rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(79,70,229,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,70,229,0.4); }

.btn-outline {
  padding: 12px 28px; border-radius: 99px;
  border: 2px solid var(--border); color: var(--text);
  font-weight: 600; font-size: 0.9375rem; transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,0.04); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  padding: 4px 14px; border-radius: 99px;
  background: rgba(79,70,229,0.07); color: var(--primary);
  font-size: 0.8125rem; font-weight: 600; border: 1px solid rgba(79,70,229,0.15);
}

/* ===== HERO GRAPHIC ===== */
.hero-graphic {
  position: relative; width: 340px; height: 340px;
  margin: 0 auto;
}

.orbit-ring {
  position: absolute; border-radius: 50%; border: 1.5px dashed;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.ring-1 { width: 140px; height: 140px; border-color: rgba(79,70,229,0.25); animation: spin 12s linear infinite; }
.ring-2 { width: 220px; height: 220px; border-color: rgba(139,92,246,0.2); animation: spin 18s linear infinite reverse; }
.ring-3 { width: 310px; height: 310px; border-color: rgba(6,182,212,0.15); animation: spin 24s linear infinite; }

@keyframes spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

.orbit-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(79,70,229,0.3), 0 0 80px rgba(79,70,229,0.1);
  color: white;
}
.orbit-center span { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.orbit-center small { font-size: 0.7rem; font-weight: 600; opacity: 0.85; }

.orbit-dot {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  background: white; border: 2px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--primary);
}
.d1 { top: 50%; left: 0; transform: translate(-50%,-50%); animation: float 4s ease-in-out infinite; }
.d2 { top: 0; left: 50%; transform: translate(-50%,-50%); animation: float 4s ease-in-out infinite 1s; }
.d3 { top: 50%; right: 0; transform: translate(50%,-50%); animation: float 4s ease-in-out infinite 2s; }
.d4 { bottom: 0; left: 50%; transform: translate(-50%,50%); animation: float 4s ease-in-out infinite 3s; }

@keyframes float { 0%,100% { transform: translate(var(--tx,0),var(--ty,0)); } 50% { transform: translate(var(--tx,0),calc(var(--ty,0) - 8px)); } }
.d1 { --tx: -50%; --ty: -50%; }
.d2 { --tx: -50%; --ty: -50%; }
.d3 { --tx: 50%; --ty: -50%; }
.d4 { --tx: -50%; --ty: 50%; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 48px; position: relative; display: inline-block;
}
.section-title::after {
  content: ''; display: block; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 10px; width: 50%;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.0625rem; line-height: 1.8; }
.about-text p:last-of-type { margin-bottom: 32px; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px;
}
.stat {
  background: var(--bg-alt); border-radius: var(--radius-sm);
  padding: 20px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 1.875rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }

.about-links h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); margin-bottom: 10px;
  font-size: 0.875rem; color: var(--text-muted); font-weight: 500;
  transition: all var(--transition);
}
.contact-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary); }
.contact-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,0.04); transform: translateX(4px); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 99px; opacity: 0.25;
}

.timeline-item { position: relative; margin-bottom: 40px; }

.timeline-marker {
  position: absolute; left: -27px; top: 20px;
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--primary);
}
.timeline-marker.entrepreneurial {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-card {
  background: white; border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all var(--transition);
}
.timeline-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: rgba(79,70,229,0.2); }

.highlight-card { border-color: rgba(79,70,229,0.2); background: linear-gradient(135deg, #fafbff, #f5f3ff); }

.timeline-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.timeline-header h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }

.company {
  display: inline-block; color: var(--primary); font-weight: 600;
  font-size: 0.875rem; margin-bottom: 2px;
}
.company:hover { text-decoration: underline; }

.location { display: block; color: var(--text-light); font-size: 0.8125rem; }

.date-badge {
  padding: 4px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 600;
  background: rgba(79,70,229,0.08); color: var(--primary); white-space: nowrap;
  flex-shrink: 0;
}

.timeline-list { list-style: none; margin-bottom: 16px; }
.timeline-list li {
  padding: 4px 0 4px 20px; position: relative;
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6;
}
.timeline-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--primary); font-weight: 600; font-size: 0.8rem;
  top: 5px;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tags span {
  padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600;
  background: rgba(79,70,229,0.07); color: var(--primary);
  border: 1px solid rgba(79,70,229,0.12);
}

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

.skill-group {
  background: white; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all var(--transition);
}
.skill-group:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(79,70,229,0.2); }

.skill-group-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(139,92,246,0.1));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.skill-group-icon svg { width: 22px; height: 22px; stroke: var(--primary); }

.skill-group h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 14px; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags span {
  padding: 4px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 500;
  background: var(--bg-alt); color: var(--text-muted);
  border: 1px solid var(--border); transition: all var(--transition);
}
.skill-tags span:hover { background: rgba(79,70,229,0.08); color: var(--primary); border-color: rgba(79,70,229,0.2); }

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

.project-card {
  background: white; border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all var(--transition); display: flex; flex-direction: column; gap: 12px;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(79,70,229,0.2); }

.project-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  display: flex; align-items: center; justify-content: center;
}
.project-icon svg { width: 24px; height: 24px; stroke: white; }

.project-card h3 { font-size: 1rem; font-weight: 700; }
.project-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span {
  padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600;
  background: rgba(6,182,212,0.08); color: #0891b2;
  border: 1px solid rgba(6,182,212,0.15);
}

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

.edu-card {
  background: white; border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; gap: 20px; align-items: flex-start;
  transition: all var(--transition);
}
.edu-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.edu-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(139,92,246,0.1));
  display: flex; align-items: center; justify-content: center;
}
.edu-icon svg { width: 24px; height: 24px; stroke: var(--primary); }

.edu-content { display: flex; flex-direction: column; gap: 4px; }
.edu-degree { font-size: 1rem; font-weight: 700; }
.edu-school { font-size: 0.875rem; color: var(--primary); font-weight: 600; }
.edu-location { font-size: 0.8125rem; color: var(--text-muted); }
.edu-year { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}

.achievement-card {
  background: white; border-radius: var(--radius); padding: 20px 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 16px;
  transition: all var(--transition);
}
.achievement-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.achievement-card.trophy { border-color: rgba(245,158,11,0.3); background: linear-gradient(135deg, #fffbeb, #fff); }
.achievement-card.trophy strong { color: #b45309; }

.achievement-icon { font-size: 1.75rem; flex-shrink: 0; }
.achievement-card div { display: flex; flex-direction: column; gap: 2px; }
.achievement-card strong { font-size: 0.875rem; font-weight: 700; }
.achievement-card span { font-size: 0.8125rem; color: var(--text-muted); }

/* ===== PUBLICATIONS ===== */
.publications-list { display: flex; flex-direction: column; gap: 16px; }

.pub-card {
  background: white; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; gap: 24px; align-items: flex-start;
  transition: all var(--transition);
}
.pub-card:hover { box-shadow: var(--shadow-md); border-color: rgba(79,70,229,0.2); }

.pub-num {
  font-size: 2rem; font-weight: 800; color: rgba(79,70,229,0.15);
  line-height: 1; flex-shrink: 0; font-family: 'Fira Code', monospace;
}
.pub-content h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; }
.pub-content p { font-size: 0.8125rem; color: var(--text-muted); }

/* ===== LANGUAGES ===== */
.lang-grid { display: flex; flex-wrap: wrap; gap: 12px; }

.lang-card {
  background: white; border-radius: var(--radius-sm); padding: 14px 20px;
  border: 1px solid var(--border); display: flex; flex-direction: column;
  gap: 6px; min-width: 120px; transition: all var(--transition);
}
.lang-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.lang-name { font-size: 0.9375rem; font-weight: 700; }

.lang-level {
  font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 99px;
  display: inline-block; width: fit-content;
}
.lang-level.native { background: rgba(16,185,129,0.1); color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.lang-level.fluent { background: rgba(79,70,229,0.08); color: var(--primary); border: 1px solid rgba(79,70,229,0.15); }
.lang-level.learning { background: rgba(245,158,11,0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.2); }

/* ===== CONTACT ===== */
.contact-section {
  background: linear-gradient(135deg, #f0f0ff 0%, #f8faff 50%, #f0f9ff 100%);
}
.contact-subtitle { color: var(--text-muted); margin-top: -32px; margin-bottom: 48px; font-size: 1.0625rem; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.contact-card {
  background: white; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; transition: all var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(79,70,229,0.2); }
.contact-card svg { width: 28px; height: 28px; color: var(--primary); stroke-width: 1.5; }
.contact-card span { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); word-break: break-all; }

/* ===== FOOTER ===== */
footer {
  background: var(--text); color: rgba(255,255,255,0.6);
  padding: 24px; text-align: center; font-size: 0.875rem;
}
footer strong { color: white; }

/* ===== ANIMATIONS ===== */
[data-aos] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; }
  .hero-graphic { order: 0; width: 260px; height: 260px; }
  .ring-3 { width: 240px; height: 240px; }
  .ring-2 { width: 170px; height: 170px; }
  .ring-1 { width: 110px; height: 110px; }
  .orbit-center { width: 72px; height: 72px; }
  .hero-summary { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: white; padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 10px 16px; border-radius: var(--radius-sm); }

  .timeline { padding-left: 24px; }
  .timeline-header { flex-direction: column; }
  .date-badge { align-self: flex-start; }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-name { font-size: 2.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
