/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafafa;
  color: #1a1a2e;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ===== PARTICLE CANVAS ===== */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: #6366f1; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #6366f1;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: #6366f1; }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #1a1a2e; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}
.hero-content { max-width: 750px; }
.hero-greeting {
  font-size: 1.1rem;
  color: #6366f1;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.typing-wrapper {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2.5rem;
  min-height: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}
#typing-text { border-right: 2px solid #6366f1; padding-right: 4px; }
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}
.btn {
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}
.btn-outline {
  background: transparent;
  color: #1a1a2e;
  border: 2px solid #e0e0e0;
}
.btn-outline:hover {
  border-color: #6366f1;
  color: #6366f1;
  transform: translateY(-2px);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards, bounce 2s ease 2s infinite;
}
.scroll-indicator svg { width: 30px; height: 30px; stroke: #aaa; }

/* ===== SECTIONS ===== */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #6366f1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}
.section-line {
  width: 50px; height: 3px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  margin-top: 1rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #eee;
  transition: all 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: #6366f1;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.25rem;
}

/* ===== EXPERIENCE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: linear-gradient(180deg, #6366f1, #a78bfa, #e0e0e0);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #6366f1;
  z-index: 2;
  transition: all 0.3s;
}
.timeline-item:hover::before {
  background: #6366f1;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.timeline-company {
  font-size: 1.3rem;
  font-weight: 700;
}
.timeline-role {
  color: #6366f1;
  font-weight: 500;
  font-size: 0.95rem;
}
.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #999;
  background: #f5f5f5;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.timeline-points { margin-top: 1rem; }
.timeline-points li {
  list-style: none;
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.7rem;
  color: #555;
  font-size: 0.95rem;
}
.timeline-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: bold;
}
.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tech-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: #f0f0ff;
  color: #6366f1;
  border-radius: 6px;
  font-weight: 500;
}

/* ===== PROJECTS ===== */
.project-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid #eee;
  transition: all 0.4s ease;
  margin-bottom: 2rem;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  border-color: #6366f1;
}
.project-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-card .subtitle {
  color: #6366f1;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.project-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.skill-category {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #eee;
  transition: all 0.4s ease;
}
.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.06);
  border-color: #6366f1;
}
.skill-category-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.skill-category h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  background: #f5f5f5;
  border-radius: 8px;
  color: #555;
  transition: all 0.3s;
  cursor: default;
}
.skill-tag:hover {
  background: #6366f1;
  color: #fff;
  transform: scale(1.05);
}

/* ===== AWARDS ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.award-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid #eee;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.4s ease;
}
.award-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: #6366f1;
}
.award-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.award-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.award-card p {
  font-size: 0.85rem;
  color: #888;
}

/* ===== EDUCATION ===== */
.edu-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: all 0.4s ease;
}
.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.06);
  border-color: #6366f1;
}
.edu-info h3 { font-size: 1.3rem; font-weight: 700; }
.edu-info .degree { color: #6366f1; font-weight: 500; margin: 0.3rem 0; }
.edu-info .coursework { color: #888; font-size: 0.9rem; margin-top: 0.5rem; }
.edu-meta { text-align: right; }
.edu-meta .year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #999;
}
.edu-meta .gpa {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CONTACT ===== */
.contact-section {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
}
.contact-section .section-title { color: #fff; }
.contact-section .section-label { color: #a78bfa; }
.contact-intro {
  color: #aaa;
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2.5rem;
}
.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
}
.contact-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  color: #fff;
  transform: translateY(-2px);
}
.contact-link svg { width: 20px; height: 20px; }

/* ===== FOOTER ===== */
footer {
  background: #15152a;
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: rgba(250,250,250,0.98); flex-direction: column; padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid #eee; }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .edu-card { flex-direction: column; text-align: center; }
  .edu-meta { text-align: center; }
  .timeline-header { flex-direction: column; }
}
