/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-dark: #08080d;
  --accent: #4f8cff;
  --accent-glow: rgba(79, 140, 255, 0.15);
  --text: #e8e8ed;
  --text-muted: #8a8a9a;
  --border: rgba(255,255,255,0.06);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #7aadff; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0; transition: all .3s;
}
.nav.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  letter-spacing: -1px;
}
.nav-links {
  list-style: none; display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.btn-nav {
  background: var(--accent) !important; color: #fff !important;
  padding: 8px 20px; border-radius: 8px;
}
.btn-nav:hover { background: #3a7aee !important; }
.btn-nav.active::after { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: .3s;
}

/* Language Switcher */
.lang-switcher {
  display: flex; gap: 4px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 8px; padding: 3px;
}
.lang-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.75rem; font-weight: 600; padding: 5px 10px;
  border-radius: 6px; cursor: pointer; transition: all .2s;
  font-family: 'Inter', sans-serif; letter-spacing: 0.5px;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--accent); color: #fff;
}

/* === Hero === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse at 20% 50%, var(--accent-glow) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(120,80,255,0.08) 0%, transparent 50%),
              var(--bg);
}
.hero-content { max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-tag {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted); max-width: 600px;
  line-height: 1.8; margin-bottom: 48px;
}
.hero-quote {
  font-size: 1.05rem; color: var(--accent); font-style: italic;
  max-width: 560px; line-height: 1.7; margin-bottom: 20px;
  opacity: 0.85;
}
.highlight { color: var(--accent); font-weight: 600; }

/* Hero Grid with Photo */
.hero-grid {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  margin-bottom: 24px;
}
.hero-text { flex: 1; }
.hero-photo-wrap { flex-shrink: 0; }
.hero-photo {
  width: 280px; height: 280px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(79,140,255,0.3);
  box-shadow: 0 0 40px rgba(79,140,255,0.15), 0 0 80px rgba(79,140,255,0.05);
  animation: photoFloat 6s ease-in-out infinite;
}
@keyframes photoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* === Hero Stats === */
.hero-stats {
  display: flex; gap: 48px; margin-bottom: 48px;
  padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-num {
  display: block; font-size: 2rem; font-weight: 700; color: var(--text);
  font-family: 'Playfair Display', serif;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* === Buttons === */
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; transition: all .25s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3a7aee; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,140,255,0.25); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-download { font-size: 0.9rem; padding: 12px 24px; }

/* === Sections === */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-dark); }
.section-accent {
  background: linear-gradient(135deg, #0f1628 0%, #0a0a0f 100%);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; margin-bottom: 56px; letter-spacing: -1px;
  position: relative;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--accent); margin-top: 16px; border-radius: 2px;
}

/* === 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.05rem; }
.about-languages h3 { font-size: 1.1rem; margin-bottom: 24px; color: var(--text); }
.lang-item { margin-bottom: 18px; }
.lang-name { font-size: 0.9rem; font-weight: 500; display: block; margin-bottom: 6px; }
.lang-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.lang-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), #7a6fff);
  border-radius: 3px; transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0%;
}
.lang-level { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; display: block; }

/* === Global Footprint === */
.footprint-sub { color: var(--text-muted); font-size: 1.05rem; margin-top: -40px; margin-bottom: 40px; }
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.map-region {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.map-region h3 { font-size: 1rem; margin-bottom: 16px; }
.map-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.map-tag {
  padding: 6px 14px; border-radius: 8px; font-size: 0.85rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: var(--text-muted); transition: all .2s;
}
.map-tag.active {
  background: var(--accent-glow); border-color: rgba(79,140,255,0.25);
  color: var(--text);
}
.map-tag small {
  font-size: 0.7rem; opacity: 0.6; margin-left: 4px;
}

/* === Timeline === */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-marker {
  position: absolute; left: -40px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color .3s, box-shadow .3s;
}
.timeline-content:hover { border-color: rgba(79,140,255,0.2); box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.timeline-header h3 { font-size: 1.25rem; font-weight: 600; }
.timeline-company { color: var(--accent); font-size: 0.9rem; margin-top: 4px; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; padding-top: 4px; }
.timeline-role { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 16px; }
.timeline-list { list-style: none; }
.timeline-list li {
  position: relative; padding-left: 20px; margin-bottom: 10px;
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.7;
}
.timeline-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.timeline-list li strong { color: var(--text); font-weight: 600; }

/* === Education === */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.edu-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.edu-card:hover { transform: translateY(-4px); border-color: rgba(79,140,255,0.2); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.edu-icon { font-size: 2rem; margin-bottom: 16px; }
.edu-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.edu-school { color: var(--accent); font-size: 0.9rem; margin-bottom: 4px; }
.edu-detail { color: var(--text-muted); font-size: 0.85rem; }
.edu-year { color: var(--text-muted); font-size: 0.8rem; margin-top: 12px; }
.edu-gpa {
  display: inline-block; margin-top: 12px; padding: 4px 12px;
  background: var(--accent-glow); border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
}

/* === Skills === */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.skill-category {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color .3s;
}
.skill-category:hover { border-color: rgba(79,140,255,0.15); }
.skill-category h3 { font-size: 1.05rem; margin-bottom: 20px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem;
  background: rgba(79,140,255,0.08); border: 1px solid rgba(79,140,255,0.15);
  color: var(--text); transition: all .2s;
}
.tag:hover { background: rgba(79,140,255,0.15); border-color: var(--accent); }

/* === Certifications === */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 28px; text-align: center;
  transition: transform .3s, border-color .3s;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(79,140,255,0.2); }
.cert-icon { font-size: 1.8rem; margin-bottom: 12px; }
.cert-card h4 { font-size: 0.95rem; margin-bottom: 8px; line-height: 1.4; }
.cert-card p { font-size: 0.8rem; color: var(--text-muted); }
.cert-link { display: block; color: var(--text); }
.cert-link:hover { color: var(--text); }
.cert-verify {
  display: inline-block; margin-top: 12px; font-size: 0.75rem;
  color: var(--accent); font-weight: 500; opacity: 0;
  transition: opacity .3s;
}
.cert-link:hover .cert-verify { opacity: 1; }

/* === Leadership === */
.leadership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lead-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 28px;
  transition: border-color .3s;
}
.lead-card:hover { border-color: rgba(79,140,255,0.2); }
.lead-card h4 { font-size: 1rem; margin-bottom: 10px; color: var(--accent); }
.lead-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* === What I'm Looking For === */
.looking-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.looking-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color .3s;
}
.looking-card:hover { border-color: rgba(79,140,255,0.2); }
.looking-icon { font-size: 1.6rem; margin-bottom: 12px; }
.looking-card h4 { font-size: 1.05rem; margin-bottom: 10px; color: var(--accent); }
.looking-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* === Contact (enhanced) === */
.contact-section { text-align: center; }
.contact-badge {
  display: inline-block; padding: 6px 20px; border-radius: 20px;
  background: rgba(79,140,255,0.1); border: 1px solid rgba(79,140,255,0.25);
  color: var(--accent); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.5px;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,140,255,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(79,140,255,0); }
}
.contact-title { display: inline-block; }
.contact-title::after { margin-left: auto; margin-right: auto; }
.contact-sub {
  color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
.contact-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 28px;
  color: var(--text); transition: all .3s; min-width: 240px;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); color: var(--text); }
.contact-icon { font-size: 1.5rem; }
.contact-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-size: 0.95rem; font-weight: 500; }
.btn-download-lg {
  margin-top: 8px; padding: 16px 36px; font-size: 1rem;
}

/* === Footer === */
.footer { text-align: center; padding: 32px; color: var(--text-muted); font-size: 0.8rem; border-top: 1px solid var(--border); }

/* === Animations === */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.revealed { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { 
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: rgba(10,10,15,0.98);
    padding: 24px; gap: 16px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .lang-switcher { order: -1; }
  .hero { padding: 100px 24px 60px; }
  .hero-grid { flex-direction: column-reverse; text-align: center; gap: 32px; }
  .hero-photo { width: 200px; height: 200px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-stats .stat { min-width: 40%; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .edu-grid, .skills-grid { grid-template-columns: 1fr; }
  .looking-grid { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .timeline-header { flex-direction: column; }
  .contact-links { flex-direction: column; align-items: center; }
  .contact-card { min-width: auto; width: 100%; max-width: 340px; }
}

/* === Print Styles === */
@media print {
  *, *::before, *::after { color: #000 !important; background: #fff !important; box-shadow: none !important; border-color: #ccc !important; }
  body { font-size: 11pt; line-height: 1.5; }
  .nav, .nav-toggle, .hero-photo-wrap, .hero-actions, .btn, .contact-icon, .footer { display: none !important; }
  .hero { min-height: auto; padding: 20px 0; }
  .hero h1 { font-size: 28pt; }
  .hero-tag, .hero-sub { color: #333 !important; }
  .section { padding: 24px 0; page-break-inside: avoid; }
  .section-dark, .section-accent { background: #fff !important; }
  .container { max-width: 100%; padding: 0; }
  .timeline-content, .edu-card, .cert-card, .lead-card, .skill-category, .map-region, .contact-card {
    border: 1px solid #ddd !important; background: #fff !important; break-inside: avoid;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .lang-fill { background: #4f8cff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tag { border: 1px solid #999 !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666 !important; }
  .contact-card a[href]::after { display: none; }
}
