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

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-orange: #f59e0b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(6, 182, 212, 0.15);
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
  --gradient-main: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
}

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

html { scroll-behavior: smooth; }

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

/* Animated Background */
.bg-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { to { background-position: 60px 60px; } }

.bg-orb {
  position: fixed; border-radius: 50%; filter: blur(100px);
  opacity: 0.15; z-index: 0; animation: orbFloat 15s ease-in-out infinite;
}
.bg-orb-1 { width: 500px; height: 500px; background: var(--accent-cyan); top: -10%; left: -10%; }
.bg-orb-2 { width: 400px; height: 400px; background: var(--accent-purple); bottom: -10%; right: -10%; animation-delay: -7s; }
.bg-orb-3 { width: 300px; height: 300px; background: var(--accent-blue); top: 50%; left: 50%; animation-delay: -3s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Navigation */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px;
  text-transform: uppercase; transition: color 0.3s ease;
  position: relative;
}
.nav-links a:hover { color: var(--accent-cyan); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent-cyan);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Hero Section */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center;
  padding: 6rem 2rem 4rem;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
}
.hero-text h1 {
  font-size: 3.5rem; font-weight: 900; line-height: 1.1;
  margin-bottom: 0.5rem; letter-spacing: -1px;
}
.hero-text .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-text .tagline {
  font-size: 1.25rem; color: var(--accent-cyan);
  font-weight: 600; margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}
.hero-text .bio {
  color: var(--text-secondary); font-size: 0.95rem;
  line-height: 1.8; margin-bottom: 2rem; max-width: 540px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gradient-main); color: #fff;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(6, 182, 212, 0.5); }
.btn-outline {
  background: transparent; color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}
.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

/* Profile Image */
.hero-image { display: flex; justify-content: center; align-items: center; }
.profile-frame {
  position: relative; width: 320px; height: 320px;
}
.profile-frame::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--gradient-main);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.profile-frame::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: var(--bg-primary);
}
.profile-frame img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--bg-primary);
}

/* Contact Bar */
.contact-bar {
  display: flex; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-secondary); font-size: 0.85rem;
}
.contact-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan); flex-shrink: 0;
}

/* Section Styles */
.section {
  position: relative; z-index: 1;
  padding: 5rem 2rem;
}
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-title .icon { color: var(--accent-cyan); }
.section-subtitle {
  color: var(--text-muted); font-size: 0.9rem;
  margin-bottom: 3rem; padding-left: 2.25rem;
}
.section-divider {
  width: 60px; height: 3px; border-radius: 2px;
  background: var(--gradient-main); margin-bottom: 3rem;
}

/* Experience Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}
.timeline-item {
  position: relative; margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.timeline-item:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--glow-cyan);
  transform: translateX(5px);
}
.timeline-item::before {
  content: ''; position: absolute; left: -2.55rem; top: 1.8rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-cyan);
}
.timeline-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.timeline-role {
  font-size: 1.15rem; font-weight: 700; color: var(--text-primary);
}
.timeline-date {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1);
  padding: 0.25rem 0.75rem; border-radius: 20px;
  white-space: nowrap;
}
.timeline-company {
  font-size: 0.9rem; color: var(--accent-blue);
  font-weight: 500; margin-bottom: 0.75rem;
}
.timeline-details { list-style: none; }
.timeline-details li {
  color: var(--text-secondary); font-size: 0.85rem;
  padding: 0.3rem 0; padding-left: 1.25rem;
  position: relative; line-height: 1.6;
}
.timeline-details li::before {
  content: '▹'; position: absolute; left: 0;
  color: var(--accent-cyan); font-weight: bold;
}

/* Skills Section */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px; padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.skill-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}
.skill-card-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.skill-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.skill-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.skill-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.skill-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.skill-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.skill-icon.orange { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.skill-card-title { font-weight: 700; font-size: 0.95rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  font-size: 0.75rem; padding: 0.3rem 0.7rem;
  border-radius: 6px; background: rgba(6, 182, 212, 0.08);
  color: var(--text-secondary); border: 1px solid rgba(6, 182, 212, 0.1);
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s ease;
}
.skill-tag:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
}

/* Education & Certs */
.edu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px; padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.edu-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
}
.edu-degree {
  font-weight: 700; font-size: 1rem;
  margin-bottom: 0.3rem; color: var(--text-primary);
}
.edu-school {
  color: var(--accent-blue); font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.edu-year {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted); font-size: 0.8rem;
}

/* Certifications */
.cert-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cert-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px; padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.cert-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(5px);
}
.cert-badge {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-purple); font-size: 1.1rem; flex-shrink: 0;
}
.cert-name { font-weight: 600; font-size: 0.9rem; }
.cert-id { font-size: 0.75rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

/* Publications */
.pub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px; padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.pub-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-main);
}
.pub-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
}
.pub-venue {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--accent-emerald);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.pub-title { font-weight: 600; font-size: 0.9rem; line-height: 1.5; }

/* Projects */
.project-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px; padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}
.project-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}
.project-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--accent-orange);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}
.project-name {
  font-weight: 700; font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.project-desc {
  color: var(--text-secondary); font-size: 0.85rem;
  line-height: 1.6;
}

/* Stats Bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-bottom: 4rem;
}
.stat-card {
  text-align: center; padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
}
.stat-number {
  font-size: 2.5rem; font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  color: var(--text-muted); font-size: 0.8rem;
  margin-top: 0.5rem; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 500;
}

/* Footer */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
}
footer p { color: var(--text-muted); font-size: 0.85rem; }
footer .gradient-text { font-weight: 700; }

/* Scroll Animations */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Hamburger Menu */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span {
  width: 25px; height: 2px; background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text .bio { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .contact-bar { justify-content: center; }
  .profile-frame { width: 240px; height: 240px; margin: 0 auto; }
  .hero-image { order: -1; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0;
    width: 100%; background: rgba(10, 14, 26, 0.95);
    padding: 1.5rem 2rem; gap: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
}
@media (max-width: 600px) {
  .hero-text h1 { font-size: 2rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .skills-grid, .edu-grid, .pub-grid, .project-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 3rem 1.25rem; }
}
