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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #fafafa;
  color: #111827;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark {
  background: #030712;
  color: #f3f4f6;
}

.page-wrap {
  flex: 1;
}

::selection {
  background: #6366f1;
  color: #fff;
}

/* ===== NEURAL NETWORK CANVAS BACKGROUND ===== */
#nnCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Content should sit above canvas */
.nav,
.hero,
.page-header,
.section,
.footer,
.wrapper {
  position: relative;
  z-index: 1;
}

/* No overlay needed — gradient provides enough readability */

/* ===== PAGE LOAD ANIMATION ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-enter {
  animation: fadeUp 0.6s ease-out both;
}

.page-enter-d1 { animation-delay: 0.1s; }
.page-enter-d2 { animation-delay: 0.2s; }
.page-enter-d3 { animation-delay: 0.3s; }
.page-enter-d4 { animation-delay: 0.4s; }
.page-enter-d5 { animation-delay: 0.5s; }

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float {
  animation: float 3s ease-in-out infinite;
}

/* ===== GLOW PULSE ===== */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(99,102,241,0.2); }
  50%      { box-shadow: 0 0 24px rgba(99,102,241,0.4); }
}
.glow-pulse {
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* ===== STAGGER REVEAL (for grids) ===== */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.scale-in {
  animation: scaleIn 0.5s ease-out both;
}

/* ===== SHIMMER LOADING / BADGE ===== */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #374151;
}

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.dark .nav {
  background: rgba(3, 7, 18, 0.85);
  border-bottom-color: #1f2937;
}
.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}
.dark .nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}
.nav-logo span {
  color: #6366f1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.dark .nav-links a {
  color: #9ca3af;
}
.nav-links a:hover,
.nav-links a.active {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}
.dark .nav-links a:hover,
.dark .nav-links a.active {
  background: rgba(99, 102, 241, 0.15);
}

/* Theme toggle */
.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  margin-left: 8px;
}
.theme-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.2rem;
}
.hamburger:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid #e5e7eb;
}
.dark .mobile-menu {
  border-top-color: #1f2937;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.dark .mobile-menu a {
  color: #9ca3af;
}
.mobile-menu a:hover {
  color: #6366f1;
}
.mobile-theme-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.dark .mobile-theme-row {
  color: #9ca3af;
}
.mobile-theme-row:hover {
  color: #6366f1;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 120px 0 48px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.page-header h1 span {
  color: #6366f1;
}
.page-header p {
  color: #6b7280;
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}
.dark .page-header p {
  color: #9ca3af;
}

.page-header .breadcrumb {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 12px;
}
.dark .page-header .breadcrumb {
  color: #6b7280;
}
.page-header .breadcrumb a {
  color: #6366f1;
  text-decoration: none;
}
.page-header .breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  margin-bottom: 20px;
}
.dark .hero-badge {
  background: rgba(99, 102, 241, 0.15);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero h1 span {
  color: #6366f1;
}
.hero .subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 8px;
}
.dark .hero .subtitle {
  color: #9ca3af;
}
.hero .subtitle .highlight {
  color: #6366f1;
  font-weight: 600;
}
.hero .typed-cursor {
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-desc {
  color: #6b7280;
  max-width: 520px;
  margin: 16px auto 32px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.dark .hero-desc {
  color: #9ca3af;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #111827;
  border: 1.5px solid #e5e7eb;
}
.dark .btn-secondary {
  color: #f3f4f6;
  border-color: #374151;
}
.btn-secondary:hover {
  border-color: #6366f1;
  color: #6366f1;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.hero-socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(99, 102, 241, 0.06);
}
.dark .hero-socials a {
  background: rgba(99, 102, 241, 0.1);
}
.hero-socials a:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-3px);
}

/* ===== SECTION ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-title span {
  color: #6366f1;
}

.section-desc {
  color: #6b7280;
  font-size: 0.95rem;
  max-width: 500px;
}
.dark .section-desc {
  color: #9ca3af;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}
.dark .card {
  background: #0f172a;
  border-color: #1e293b;
}
.card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
}

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

.skill-category {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}
.dark .skill-category {
  background: #0f172a;
  border-color: #1e293b;
}
.skill-category:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
}

.skill-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
}
.dark .skill-tag {
  background: #1e293b;
  color: #cbd5e1;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 36px;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #e5e7eb;
}
.dark .timeline::before {
  background: #1f2937;
}

/* Flash scanner on the vertical line */
.timeline::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 6px;
  height: 60px;
  border-radius: 3px;
  background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.5), transparent);
  animation: lineScan 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lineScan {
  0%   { top: 10px; opacity: 0; }
  10%  { opacity: 0.8; }
  45%  { top: calc(100% - 70px); }
  90%  { opacity: 0.8; }
  100% { top: calc(100% - 70px); opacity: 0; }
}

/* Item */
.timeline-item {
  position: relative;
  padding: 0 0 32px 0;
  margin-left: 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Dot */
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6366f1;
  border: 2.5px solid #fafafa;
  box-shadow: 0 0 0 1.5px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.dark .timeline-dot {
  border-color: #030712;
}
.timeline-item.visible .timeline-dot {
  animation: dotPop 0.4s ease-out 0.15s both;
}
@keyframes dotPop {
  0%   { transform: scale(0); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); box-shadow: 0 0 0 1.5px rgba(99, 102, 241, 0.3); }
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 3px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.timeline-item.visible .timeline-date {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.timeline-item.visible .timeline-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.timeline-company {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.dark .timeline-company {
  color: #9ca3af;
}
.timeline-item.visible .timeline-company {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.timeline-desc {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.dark .timeline-desc {
  color: #9ca3af;
}
.timeline-item.visible .timeline-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.timeline-desc ul {
  list-style: none;
  padding: 0;
  margin-top: 4px;
}
.timeline-desc ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 5px;
  opacity: 0;
  transform: translateX(-6px);
}
.timeline-item.visible .timeline-desc ul li {
  animation: liSlide 0.35s ease-out forwards;
}
.timeline-item.visible .timeline-desc ul li:nth-child(1) { animation-delay: 0.25s; }
.timeline-item.visible .timeline-desc ul li:nth-child(2) { animation-delay: 0.3s; }
.timeline-item.visible .timeline-desc ul li:nth-child(3) { animation-delay: 0.35s; }
.timeline-item.visible .timeline-desc ul li:nth-child(4) { animation-delay: 0.4s; }
.timeline-item.visible .timeline-desc ul li:nth-child(5) { animation-delay: 0.45s; }
.timeline-item.visible .timeline-desc ul li:nth-child(6) { animation-delay: 0.5s; }
.timeline-item.visible .timeline-desc ul li:nth-child(7) { animation-delay: 0.55s; }
@keyframes liSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.timeline-desc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366f1;
  opacity: 0.4;
}
.timeline-desc ul li:hover {
  padding-left: 22px;
  transition: padding 0.2s;
}
.timeline-desc ul li:hover::before {
  opacity: 1;
  transition: opacity 0.2s;
}

/* Tablet / Mobile adjustments */
@media (max-width: 768px) {
  .timeline {
    padding-left: 28px;
  }
  .timeline-dot {
    left: -22px;
    width: 10px;
    height: 10px;
  }
  .timeline-item {
    padding-bottom: 26px;
  }
  .timeline::after {
    left: 6px;
    width: 4px;
    height: 40px;
  }
  .timeline-date { font-size: 0.72rem; }
  .timeline-title { font-size: 1rem; }
  .timeline-company { font-size: 0.8rem; }
  .timeline-desc { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .timeline {
    padding-left: 24px;
  }
  .timeline-dot {
    left: -18px;
    width: 9px;
    height: 9px;
    border-width: 2px;
  }
  .timeline-item {
    padding-bottom: 22px;
  }
  .timeline::after {
    left: 5px;
    width: 3px;
    height: 30px;
  }
  .timeline-title { font-size: 0.95rem; }
  .timeline-desc ul li { padding-left: 14px; font-size: 0.82rem; }
}

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

.project-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.dark .project-card {
  background: #0f172a;
  border-color: #1e293b;
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-card .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.project-card .project-tech span {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
}
.dark .project-card .project-tech span {
  background: #1e293b;
  color: #cbd5e1;
}

.project-card p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}
.dark .project-card p {
  color: #9ca3af;
}

.project-card .project-links {
  margin-top: 14px;
  display: flex;
  gap: 14px;
}
.project-card .project-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.project-card .project-links a:hover {
  text-decoration: underline;
}

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

.edu-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.dark .edu-card {
  background: #0f172a;
  border-color: #1e293b;
}
.edu-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.edu-card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

.edu-card .edu-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.edu-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.edu-card .edu-school {
  font-size: 0.85rem;
  color: #6366f1;
  font-weight: 500;
  margin-bottom: 2px;
}

.edu-card .edu-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 8px;
}
.dark .edu-card .edu-meta {
  color: #6b7280;
}

.edu-card .edu-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

/* ===== PUBLICATIONS ===== */
.pub-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}
.dark .pub-card {
  background: #0f172a;
  border-color: #1e293b;
}
.pub-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.pub-card:hover {
  border-color: #6366f1;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
  transform: translateY(-3px) scale(1.01);
}
.dark .pub-card:hover {
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}
.pub-card:hover .pub-icon {
  transform: scale(1.1) rotate(-5deg);
}
.pub-icon {
  transition: transform 0.4s;
}

.pub-card .pub-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.pub-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.pub-card .pub-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 6px;
}
.dark .pub-card .pub-meta {
  color: #6b7280;
}

.pub-card p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}
.dark .pub-card p {
  color: #9ca3af;
}

/* ===== AWARD BADGE ===== */
.award-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}
.dark .award-card {
  background: #0f172a;
  border-color: #1e293b;
}
.award-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.award-card:hover {
  border-color: #6366f1;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
  transform: translateY(-4px) scale(1.01);
}
.dark .award-card:hover {
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}
.award-card:hover .award-icon {
  background: rgba(245, 158, 11, 0.2);
  transform: scale(1.1) rotate(-5deg);
}
.award-icon {
  transition: transform 0.4s, background 0.3s;
}

.award-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  flex-shrink: 0;
}

.award-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.award-card .award-meta {
  font-size: 0.8rem;
  color: #9ca3af;
}
.dark .award-card .award-meta {
  color: #6b7280;
}

.award-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.5;
}
.dark .award-card p {
  color: #9ca3af;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.85rem;
  color: #6b7280;
}
.dark .contact-info-item p {
  color: #9ca3af;
}

.contact-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
}
.dark .contact-form {
  background: #0f172a;
  border-color: #1e293b;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #374151;
}
.dark .form-group label {
  color: #cbd5e1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  background: #fafafa;
  color: #111827;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dark .form-group input,
.dark .form-group textarea {
  background: #030712;
  border-color: #1e293b;
  color: #f3f4f6;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 12px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
  margin-top: 40px;
}
.dark .footer {
  border-top-color: #1f2937;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9ca3af;
}
.dark .footer-inner {
  color: #6b7280;
}
.footer-socials {
  display: flex;
  gap: 14px;
}
.footer-socials a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}
.dark .footer-socials a {
  color: #6b7280;
}
.footer-socials a:hover {
  color: #6366f1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
  .page-header {
    padding: 100px 0 32px;
  }
  .section {
    padding: 48px 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .skill-block-header h2 {
    font-size: 0.95rem;
  }
  .skill-chip {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .pub-card, .award-card {
    padding: 20px;
  }
  .award-card {
    flex-direction: column;
    gap: 10px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero .subtitle {
    font-size: 0.95rem;
  }
  .hero-desc {
    font-size: 0.88rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .hero-socials a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }
  .page-header p {
    font-size: 0.88rem;
  }

  .wrapper {
    padding: 0 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.82rem;
  }

  .card, .skill-category, .project-card, .edu-card, .pub-card, .award-card {
    padding: 18px;
  }

  .nav-inner {
    padding: 0 16px;
    height: 56px;
  }
  .nav-logo {
    font-size: 1.15rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
