@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ===== LIGHT CREAM THEME ===== */
  --bg-primary: #f5f0ea;
  --bg-secondary: #ede7df;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8f5;
  --bg-dark: #1a1a2e;
  --bg-dark-card: #232340;
  --text-primary: #1a1a2e;
  --text-secondary: #555566;
  --text-muted: #888899;
  --text-on-dark: #f0f0f5;
  --accent: #e85d26;
  --accent-light: #ff7a45;
  --accent-hover: #d14e1a;
  --accent-glow: rgba(232, 93, 38, 0.1);
  --accent-blue: #3b82f6;
  --border: rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.08);
  --gradient-accent: linear-gradient(135deg, #e85d26, #ff7a45);
  --gradient-hero: linear-gradient(160deg, #f5f0ea 0%, #ede7df 50%, #f5f0ea 100%);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px rgba(232, 93, 38, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; line-height: 1.2; }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(245, 240, 234, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { padding: 10px 0; background: rgba(245, 240, 234, 0.95); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.4rem;
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); -webkit-text-fill-color: unset; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 24px; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
  background: var(--text-primary); color: #fff; border: 2px solid var(--text-primary);
  cursor: pointer; transition: var(--transition);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,26,46,0.2);
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--bg-primary);
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/hero-bg.png') center/cover no-repeat;
  opacity: 0.04; mix-blend-mode: multiply;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent); opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero .container { position: relative; z-index: 2; display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--accent-glow); border: 1px solid rgba(232,93,38,0.2);
  font-size: 0.8rem; color: var(--accent); font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.hero-title .gold {
  background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-secondary);
  font-weight: 400; margin-bottom: 28px; max-width: 540px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
  background: var(--text-primary); color: #fff; border: none; cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26,26,46,0.2);
  color: #fff;
  background: var(--accent);
}
.btn-outline {
  padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  background: transparent; color: var(--text-primary); border: 2px solid rgba(0,0,0,0.15);
  cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.hero-image { flex-shrink: 0; position: relative; }
.hero-avatar {
  width: 280px; height: 280px; border-radius: 50%;
  border: 4px solid rgba(232,93,38,0.2);
  object-fit: cover; position: relative; z-index: 2;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.hero-image::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent);
  animation: spin 8s linear infinite; opacity: 0.25;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-stats {
  display: flex; gap: 40px; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat-item h3 {
  font-size: 1.8rem; font-weight: 800;
  background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item p { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }
.section-desc { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.highlight-card {
  padding: 20px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.highlight-card:hover { border-color: rgba(232,93,38,0.2); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.highlight-card .icon { font-size: 1.5rem; margin-bottom: 8px; }
.highlight-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.highlight-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== EXPERIENCE ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--border));
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(232,93,38,0.3);
}
.timeline-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.timeline-card:hover { border-color: rgba(232,93,38,0.15); transform: translateX(6px); box-shadow: var(--shadow-hover); }
.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.15rem; font-weight: 700; }
.timeline-header .role { color: var(--accent); font-size: 0.9rem; font-weight: 500; }
.timeline-date {
  font-size: 0.8rem; color: var(--text-muted);
  padding: 4px 12px; border-radius: 100px; background: rgba(0,0,0,0.04);
  white-space: nowrap;
}
.timeline-card ul { list-style: none; margin-top: 12px; }
.timeline-card li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.timeline-card li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* ===== SKILLS ===== */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.skill-category {
  padding: 32px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.skill-category:hover { border-color: rgba(232,93,38,0.15); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.skill-category h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.skill-category h3 .icon { font-size: 1.3rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 6px 14px; border-radius: 100px;
  background: rgba(232,93,38,0.06); border: 1px solid rgba(232,93,38,0.12);
  font-size: 0.8rem; color: var(--accent); font-weight: 500;
  transition: var(--transition);
}
.skill-tag:hover { background: rgba(232,93,38,0.12); transform: scale(1.05); }

/* ===== CERTIFICATIONS ===== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cert-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.cert-card:hover { border-color: rgba(232,93,38,0.2); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cert-icon { font-size: 2rem; flex-shrink: 0; }
.cert-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.cert-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== EDUCATION ===== */
.edu-card {
  padding: 40px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  max-width: 700px; margin: 0 auto; text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.edu-card:hover { border-color: rgba(232,93,38,0.2); box-shadow: var(--shadow-hover); }
.edu-card .icon { font-size: 3rem; margin-bottom: 16px; }
.edu-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.edu-card .school { color: var(--accent); font-size: 1rem; margin-bottom: 4px; }
.edu-card .date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }
.edu-card .gpa {
  display: inline-block; padding: 6px 18px; border-radius: 100px;
  background: var(--accent-glow); border: 1px solid rgba(232,93,38,0.2);
  color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 16px;
}
.edu-card .thesis { font-size: 0.88rem; color: var(--text-secondary); font-style: italic; }

/* ===== PUBLICATIONS ===== */
.pub-list { max-width: 800px; margin: 0 auto; }
.pub-item {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 16px; transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.pub-item:hover { border-color: rgba(232,93,38,0.15); box-shadow: var(--shadow-hover); }
.pub-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.pub-item p { font-size: 0.85rem; color: var(--text-muted); }
.pub-badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  margin-bottom: 8px;
}
.pub-badge.publication { background: rgba(59,130,246,0.08); color: var(--accent-blue); }
.pub-badge.research { background: rgba(232,93,38,0.08); color: var(--accent); }

/* ===== CONTACT ===== */
.contact-section {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.contact-section .section-label { color: var(--accent-light); }
.contact-section .section-title { color: var(--text-on-dark); }
.contact-section .section-desc { color: rgba(240,240,245,0.65); }
.contact-content { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-links { display: flex; justify-content: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.contact-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  background: var(--bg-dark-card); border: 1px solid var(--border-dark);
  color: var(--text-on-dark); font-weight: 500; font-size: 0.9rem;
  transition: var(--transition);
}
.contact-link:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: var(--text-on-dark);
}
.contact-link .icon { font-size: 1.2rem; }

/* ===== FOOTER ===== */
footer {
  padding: 32px 0; text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
  background: var(--bg-primary);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero .container { flex-direction: column-reverse; text-align: center; gap: 32px; }
  .hero-subtitle { margin: 0 auto 28px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-avatar { width: 200px; height: 200px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(245,240,234,0.98); padding: 24px;
    border-bottom: 1px solid var(--border); gap: 16px;
  }
}
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .hero-title { font-size: 2rem; }
  .section { padding: 60px 0; }
  .timeline { padding-left: 28px; }
  .skills-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
}
