/* Portfolio Styles with Dark/Light Mode */

/* CSS Variables for Theme Colors */
:root {
  --primary: #1e1b4b;
  --secondary: #0ea5e9;
  --accent: #f97316;
  --neutral: #f8fafc;
  --text: #475569;
  --white: #ffffff;
}

[data-theme="dark"], .dark {
  --primary: #e2e8f0;
  --secondary: #38bdf8;
  --accent: #fb923c;
  --neutral: #0f172a;
  --text: #cbd5e1;
  --card-bg: #1e293b;
  --border: #334155;
  --white: #1e293b;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.6;
  background-color: var(--neutral);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container Utilities */
.container {
  max-width: 1792px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-small {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.section {
  padding: 5rem 0;
  transition: background-color 0.3s ease;
}

.section-content-center {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text);
  max-width: 768px;
  margin: 0 auto;
  transition: color 0.3s ease;
}

/* Navigation */
#navbar {
  background: transparent;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark #navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  color: var(--primary);
  transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-brand {
  color: white;
}

/* Base nav-link styles (will be overridden by theme-specific styles below) */
.nav-link {
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

#navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

#navbar:not(.scrolled) .nav-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--secondary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.dark-toggle {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

#navbar.scrolled .dark-toggle {
  background: var(--neutral);
  color: var(--text);
}

#navbar.scrolled .dark-toggle:hover {
  background: var(--card-bg, #f1f5f9);
}

/* ========================================
   THEME-SPECIFIC STYLES 
   ======================================== */

/* ====================
   LIGHT THEME STYLES
   ==================== */
body.bg-slate-50 {
  /* Navigation styles for light theme */
}

body.bg-slate-50 .nav-link {
  color: #1e293b;
  font-weight: 500;
}

body.bg-slate-50 .nav-link:hover {
  text-decoration: underline;
  text-decoration-color: #0ea5e9;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Light theme hamburger menu */
body.bg-slate-50 #mobileMenuToggle {
  border-color: #1e293b30;
  background: rgba(30, 41, 59, 0.1);
}

body.bg-slate-50 #mobileMenuToggle:hover {
  background: rgba(30, 41, 59, 0.2);
}

body.bg-slate-50 #mobileMenuToggle svg {
  color: #1e293b;
}

/* Light theme navbar when scrolled */
body.bg-slate-50 #navbar.bg-white\/95 #mobileMenuToggle svg {
  color: #1e293b;
}

/* ====================
   DARK THEME STYLES
   ==================== */
body.bg-slate-900 {
  /* Navigation styles for dark theme */
}

body.bg-slate-900 .nav-link {
  color: #e2e8f0;
  font-weight: 500;
}

body.bg-slate-900 .nav-link:hover {
  text-decoration: underline;
  text-decoration-color: #38bdf8;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Dark theme hamburger menu */
body.bg-slate-900 #mobileMenuToggle {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

body.bg-slate-900 #mobileMenuToggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.bg-slate-900 #mobileMenuToggle svg {
  color: white;
}

/* Dark theme navbar when scrolled */
body.bg-slate-900 #navbar.bg-slate-900\/95 #mobileMenuToggle svg {
  color: white;
}

/* ====================
   HERO SECTION OVERRIDES
   (Always white text on hero regardless of theme)
   ==================== */
#navbar:not(.bg-white\/95):not(.bg-slate-900\/95) .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

#navbar:not(.bg-white\/95):not(.bg-slate-900\/95) .nav-link:hover {
  text-decoration: underline;
  text-decoration-color: #38bdf8;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

#navbar:not(.bg-white\/95):not(.bg-slate-900\/95) #mobileMenuToggle svg {
  color: white !important;
}

#navbar:not(.bg-white\/95):not(.bg-slate-900\/95) #mobileMenuToggle {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1792px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: white;
}

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-gradient {
  display: block;
  background: linear-gradient(to right, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 1024px;
  margin: 0 auto 4rem auto;
}

.metric {
  text-align: center;
}

.metric-number {
  font-size: clamp(1.875rem, 5vw, 2.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

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

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  background-color: var(--secondary);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: white;
  transform: scale(1.05);
}

/* About Section */
.about-section {
  background-color: var(--white);
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Awards Section */
.awards-section {
  background-color: var(--neutral);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .awards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.award-card {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.dark .award-card {
  border-color: var(--border);
}

.award-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.award-link, .award-content {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.award-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.award-year {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.award-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.award-link:hover .award-title {
  color: var(--secondary);
}

.award-subtitle {
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.award-level {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Speaking Section */
.speaking-section {
  background-color: var(--white);
}

.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .speaking-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.speaking-card {
  padding: 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
  transition: all 0.3s ease;
}

.dark .speaking-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 64, 175, 0.1) 100%);
}

.speaking-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.speaking-link, .speaking-content {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.speaking-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem auto;
  border-radius: 0.5rem;
  background-color: var(--secondary);
  color: white;
  font-size: 1rem;
}

.speaking-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.speaking-link:hover .speaking-title {
  color: var(--secondary);
}

.speaking-description {
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.speaking-type {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background-color: