/* styles.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Match home page theme tokens */
  --primary-50: #eef6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #0b1f3a;

  --accent-50: #fff7ed;
  --accent-100: #ffedd5;
  --accent-200: #fed7aa;
  --accent-300: #fdba74;
  --accent-400: #fb923c;
  --accent-500: #f97316;
  --accent-600: #f36f21;
  --accent-700: #c2410c;

  --teal-400: #22d3ee;
  --teal-500: #06b6d4;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
  color: var(--slate-700);
  background: linear-gradient(135deg, var(--slate-50) 0%, var(--primary-50) 55%, var(--accent-50) 100%);
  min-height: 100vh;
}

/* Utilities */
.text-accent { color: var(--accent-700); font-weight: 800; }
.text-primary { color: var(--primary-800); font-weight: 800; }

.section { padding: 5rem 1rem; }
.section-white { background-color: white; }

.container { max-width: 56rem; margin: 0 auto; }
.container-wide { max-width: 1280px; margin: 0 auto; }

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--slate-600);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

.icon-title { width: 40px; height: 40px; color: var(--accent-600); }

.image-caption {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--slate-500);
  font-size: 0.9rem;
}

/* Navigation */
.navbar {
  position: fixed;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--primary-100);
  transition: background-color 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  gap: 0.75rem;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--primary-800);
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  transition: transform 0.18s ease, background-color 0.18s ease;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--primary-100);
}

.nav-back-btn i { width: 18px; height: 18px; color: var(--accent-600); }
.nav-back-btn:hover { transform: translateY(-1px); background-color: var(--primary-50); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(to right, var(--primary-800), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.icon-nav { width: 22px; height: 22px; color: var(--accent-600); }

.nav-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--accent-600); }

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-700);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--primary-100);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 999;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.mobile-menu.active { transform: translateY(0); opacity: 1; }

.mobile-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.mobile-link:hover { background-color: var(--primary-50); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-menu { display: none; }
}

/* Hero */
.hero {
  padding: 8rem 1rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero--compact { padding: 8rem 1rem 4rem; }

.hero::before {
  content: "";
  position: absolute;
  top: 5rem;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.18));
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(135deg, rgba(243, 111, 33, 0.18), rgba(59, 130, 246, 0.18));
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-icon { display: inline-block; margin-bottom: 1.25rem; }
.icon-hero { width: 64px; height: 64px; color: var(--accent-600); }

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary-900), var(--primary-700), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--slate-600);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--slate-500);
  margin: 0 auto 1.5rem;
  max-width: 56rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
}

.hero-buttons--tight { margin-top: 0.5rem; }

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
  .hero-title { font-size: 4.2rem; }
}

@media (min-width: 900px) {
  .hero-title { font-size: 4.8rem; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to right, var(--primary-800), var(--accent-600));
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 0.65rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover { transform: scale(1.03); filter: brightness(1.03); box-shadow: 0 18px 28px rgba(0, 0, 0, 0.16); }

.btn-secondary {
  display: inline-block;
  padding: 0.78rem 1.6rem;
  border: 2px solid var(--primary-800);
  color: var(--primary-800);
  border-radius: 0.65rem;
  font-weight: 900;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover { background-color: var(--primary-50); transform: translateY(-1px); }

/* Hero meta (contact strip) */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0 1.25rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.meta-item i { width: 18px; height: 18px; color: var(--accent-600); }
.meta-link { color: var(--slate-700); text-decoration: none; font-weight: 700; }
.meta-link:hover { color: var(--accent-600); }

/* About card */
.about-card {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--primary-100);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.1);
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .about-content-wrapper { flex-direction: row; gap: 2.5rem; }
  .about-card { padding: 2.5rem; }
}

.about-profile-image { flex-shrink: 0; display: flex; justify-content: center; align-items: flex-start; }

.about-profile-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-600);
  box-shadow: 0 12px 26px rgba(243, 111, 33, 0.25);
}

@media (min-width: 768px) {
  .about-profile-image img { width: 250px; height: 250px; border-width: 5px; }
}

.about-text { font-size: 1.08rem; color: var(--slate-700); margin-bottom: 1.1rem; line-height: 1.7; }

.bullet-list { list-style: none; margin: 0; padding: 0; }
.bullet-list li { position: relative; padding-left: 1.25rem; margin: 0.55rem 0; color: var(--slate-700); }
.bullet-list li:before { content: "→"; position: absolute; left: 0; color: var(--accent-600); font-weight: 900; }

.about-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) { .about-buttons-container { flex-direction: row; } }

.btn-cv,
.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.65rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.12);
}

.btn-cv { background: linear-gradient(to right, var(--primary-800), var(--accent-600)); }
.btn-cv:hover { transform: scale(1.04); filter: brightness(1.03); }

.btn-learn-more { background: linear-gradient(to right, var(--primary-700), var(--primary-900)); }
.btn-learn-more:hover { transform: scale(1.04); filter: brightness(1.03); }

/* Coursework */
.course-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) { .course-grid { grid-template-columns: 1fr 1fr; } }

.course-card {
  background: white;
  border-radius: 1rem;
  border: 2px solid var(--primary-100);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.course-header { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.75rem; }
.course-icon {
  width: 44px; height: 44px;
  border-radius: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-800), var(--accent-600));
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.14);
  flex-shrink: 0;
}

.course-icon i { width: 22px; height: 22px; color: white; }
.course-title { font-size: 1.15rem; font-weight: 900; color: var(--slate-800); margin-bottom: 0.15rem; }
.course-sub { color: var(--slate-600); font-weight: 700; font-size: 0.95rem; }

.mini-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }

.course-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  border: 1px solid var(--primary-100);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.note-icon i { width: 22px; height: 22px; color: var(--accent-600); }
.note-title { font-weight: 900; color: var(--slate-800); margin-bottom: 0.15rem; }
.note-body { color: var(--slate-700); }

/* Timeline */
.timeline { display: grid; gap: 2rem; }

.timeline-item {
  background: white;
  border-radius: 1rem;
  border: 2px solid var(--primary-100);
  padding: 1.5rem;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.role { font-size: 1.25rem; color: var(--slate-800); font-weight: 900; }
.org { color: var(--slate-600); font-weight: 700; }

.when-where {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--slate-600);
  font-weight: 700;
}

.when-where i { width: 16px; height: 16px; color: var(--accent-600); }
.when-where .where, .when-where .when { display: inline-flex; align-items: center; gap: 0.35rem; }

.detail-text { color: var(--slate-700); }

.detail-list { list-style: none; margin-top: 0.5rem; }
.detail-list li { padding-left: 1.25rem; margin: 0.5rem 0; position: relative; color: var(--slate-700); }
.detail-list li:before { content: "•"; position: absolute; left: 0.25rem; color: var(--accent-600); font-weight: 900; }

.role-split { display: grid; gap: 1.25rem; margin-top: 0.75rem; }
.role-block { padding-top: 0.75rem; border-top: 1px solid var(--primary-100); }
.role-block:first-child { border-top: 0; padding-top: 0; }

.role-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-weight: 900;
  color: var(--slate-800);
}

.role-title { color: var(--primary-800); }
.role-date { color: var(--slate-600); font-weight: 800; }

/* Education */
.edu-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .edu-grid { grid-template-columns: 1fr 1fr; } }

.edu-card {
  background: white;
  border: 2px solid var(--primary-100);
  border-radius: 1rem;
  padding: 1rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.edu-card:hover { border-color: var(--accent-300); transform: translateY(-1px); }

.edu-header { display: flex; gap: 0.75rem; }
.edu-header i { width: 24px; height: 24px; color: var(--accent-600); flex-shrink: 0; }

.edu-title { font-weight: 900; color: var(--slate-800); }
.edu-sub { color: var(--slate-600); font-weight: 700; }
.edu-sub--tight { margin-top: 0.35rem; }

.edu-when { margin-top: 0.5rem; color: var(--slate-600); padding-left: 40px; font-weight: 700; }

/* Leadership detail card */
.detail-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 2px solid var(--primary-100);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .detail-card { grid-template-columns: auto 1fr; align-items: start; }
}

.detail-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-800), var(--accent-600));
  border-radius: 1rem;
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.14);
}

.detail-icon { width: 40px; height: 40px; color: white; }

.detail-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
}

.photo-row { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 700px) { .photo-row { grid-template-columns: 1fr 1fr; } }

.photo-item img {
  width: 100%;
  height: auto;
  border-radius: 0.9rem;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.1);
}

/* Skills */
.skills-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }

.spec-card {
  background: white;
  border: 2px solid var(--primary-100);
  border-radius: 1rem;
  padding: 1rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.spec-card:hover { border-color: var(--accent-300); transform: translateY(-1px); }

.spec-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary-100);
  margin-bottom: 0.6rem;
}

.spec-header i { width: 22px; height: 22px; color: var(--accent-600); }
.spec-header h3 { font-size: 1rem; color: var(--slate-800); font-weight: 900; }

.spec-content p { color: var(--slate-700); font-size: 0.95rem; }

/* Projects */
.projects-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }

@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1024px) {
  .projects-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
  .project-card { flex: 0 1 360px; max-width: 380px; }
}

.project-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid var(--primary-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  border-color: var(--accent-300);
  transform: scale(1.04);
  box-shadow: 0 22px 28px rgba(0, 0, 0, 0.14);
}

.project-image-container { position: relative; height: 12rem; overflow: hidden; }
.project-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .project-image { transform: scale(1.1); }

.project-badge-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-800), var(--accent-600));
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-badge-header i { width: 16px; height: 16px; }

.project-content { padding: 1.5rem; }

.project-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-800);
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--slate-600);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.tag {
  padding: 0.25rem 0.75rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--primary-800);
  font-weight: 800;
}

.project-links-simple { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.link-details { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--primary-600); font-size: 0.875rem; font-weight: 800; }

/* Contact section */
.contact-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 55%, var(--accent-600) 100%);
  overflow: hidden;
  text-align: center;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 70% 50%, rgba(243, 111, 33, 0.22) 0%, transparent 55%);
  animation: glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.contact-container { position: relative; z-index: 1; }
.contact-title { color: white; font-size: 3rem; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.contact-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; }
@media (min-width: 640px) { .contact-links { flex-direction: row; justify-content: center; align-items: center; } }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  border: 3px solid white;
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 900;
  font-size: 1.125rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.contact-card:hover {
  background: var(--primary-50);
  border-color: var(--accent-400);
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.icon-contact { width: 22px; height: 22px; color: var(--accent-600); }

/* Footer */
.footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--primary-100);
  background: white;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.icon-footer { width: 16px; height: 16px; color: var(--accent-600); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  z-index: 1100;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, bottom 0.35s ease;
}

.toast.show { bottom: 18px; opacity: 1; }

/* Responsive trims */
@media (max-width: 767px) {
  .hero { padding: 6.5rem 1rem 3.5rem; }
  .hero-title { font-size: 2.3rem; }
  .section { padding: 3.5rem 1rem; }
  .section-title { font-size: 2rem; }
}
