/* ============================================
   MODERN AI-ERA PORTFOLIO WEBSITE STYLES
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================================
   CSS VARIABLES - Modern Color Palette
   ============================================ */
:root {
  /* Primary Colors - Professional Blue with AI-tech feel */
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  
  /* Accent Colors - Modern gradient */
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-color: #8b5cf6;
  --accent-light: #a78bfa;
  
  /* Neutral Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  
  /* Border & Surface */
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: var(--spacing-sm) 0;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  margin: 0 var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm) !important;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
}

.navbar .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: var(--bg-secondary);
}

.navbar .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0.05;
  border-radius: 0 0 0 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  color: white;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.hero-description {
  color: rgba(255, 255, 255, 0.8);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PROFILE IMAGE
   ============================================ */
.profile-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.profile-img-container img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow-hover);
  border: 4px solid white;
  transition: transform 0.3s ease;
}

.profile-img-container img:hover {
  transform: scale(1.05) rotate(2deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--accent-gradient);
  color: white;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  border: none;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  display: inline-block;
}

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

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-light);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  color: white;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   SKILLS GRID
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.skill-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: var(--primary-light);
  background: white;
  transform: translateY(-3px);
}

.skill-category {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.skill-tag {
  background: white;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ============================================
   STATS / METRICS
   ============================================ */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: white;
  box-shadow: var(--card-shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }
  
  .hero-section {
    padding: var(--spacing-xl) 0;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   GLASSMORPHISM EFFECT (OPTIONAL)
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
/* ============================================
   GLASSMORPHISM EFFECT (OPTIONAL)
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* ============================================
   QUARTO-SPECIFIC OVERRIDES FOR DARK HEADER
   ============================================ */
.quarto-title-block {
  background: radial-gradient(ellipse at top left, #1e3a8a 0%, #6366f1 50%, #7c3aed 100%) !important;
  padding: 3rem 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.quarto-title .title {
  color: white !important;
}

.quarto-title .subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

.quarto-title-block p {
  color: rgba(255, 255, 255, 0.8) !important;
}

#quarto-content p {
  color: var(--text-secondary);
}

.about-entity p {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   STANDARDIZED TYPOGRAPHY FOR ALL PAGES
   ============================================ */

/* Override h1 sizes across all pages */
h1, .title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* Override h2 sizes across all pages */
h2 {
  font-size: 2rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

/* Override h3 sizes across all pages */
h3 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* Override h4 sizes across all pages */
h4 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* Override h5 and h6 sizes */
h5 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

h6 {
  font-size: 1rem !important;
  font-weight: 600 !important;
}

/* Standardize paragraph text */
p, .quarto-content p {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  margin-bottom: 1rem !important;
}

/* Standardize list items */
li {
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* Standardize links */
a {
  font-size: inherit !important;
}

/* Keep subtitle/description text consistent */
.subtitle, .description {
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
}

/* ============================================
   LIGHT BLUE NAVIGATION BAR
   ============================================ */

/* Make navbar light blue */
.navbar {
  background: #2563eb !important;  /* Bright blue */
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Keep text white for visibility */
.navbar-brand {
  color: white !important;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar .nav-link:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.navbar .nav-link.active {
  color: white !important;
}

.navbar .nav-link.active::after {
  background: white !important;
}

.navbar .bi {
  color: white !important;
}

/* ============================================
   AI PURPLE FOOTER BACKGROUND
   ============================================ */

/* Change footer background to AI purple gradient */
.footer, .nav-footer {
  background: #ffffff !important;  /* White */
}

/* Keep text white for visibility */
.footer, .footer a, .nav-footer, .nav-footer a {
  color: white !important;
}

/* Footer links hover */
.footer a:hover, .nav-footer a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}
/* ============================================
   LEFT ALIGN EVERYTHING ON HOME PAGE
   ============================================ */

/* Left align all content */
.quarto-title-block,
.quarto-title .title,
.quarto-title .subtitle,
.about-entity,
#quarto-content p,
#quarto-content h2,
#quarto-content h3,
#quarto-content ul {
  text-align: left !important;
}
/* ============================================
   CONSISTENT TEXT COLOR ON HOME PAGE
   ============================================ */

/* Make ALL text (including headings) the same color */
#quarto-content h2,
#quarto-content h3,
#quarto-content h4,
#quarto-content p,
#quarto-content li {
  color: var(--text-secondary) !important;  /* Same gray as body text */
}

/* Or if you want everything slightly darker for better readability */
#quarto-content h2,
#quarto-content h3,
#quarto-content h4,
#quarto-content p,
#quarto-content li {
  color: #64748b !important;  /* Medium gray */
}