/* Bloom-Inspired Design System */
:root {
  /* Soft, organic color palette */
  --primary: #6366f1;
  --primary-light: #a5b4fc;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --secondary-light: #f9a8d4;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  
  /* Light theme colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  
  /* Soft shadows */
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-colored: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
  
  /* Organic border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Spacing system */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  
  /* Animation values */
  --float-distance: 20px;
  --float-duration-primary: 20s;
  --float-duration-secondary: 25s;
  --float-duration-tertiary: 30s;
  --hero-card-delay: 0.8s;
  --underline-width: 60px;
  --underline-draw-duration: 0.8s;
  --underline-draw-delay: 0.3s;
}

/* Dark theme variables */
[data-theme="dark"] {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
  --shadow-colored: 0 10px 15px -3px rgba(99, 102, 241, 0.3), 0 4px 6px -2px rgba(99, 102, 241, 0.2);
}

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

body, html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Organic background shapes */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Enhanced Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.navbar.transparent {
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar.solid {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  letter-spacing: -0.025em;
}

.nav-logo:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.hamburger:hover {
  background: rgba(99, 102, 241, 0.05);
}

.hamburger .bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Bloom-Inspired Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.05) 0%, 
    rgba(236, 72, 153, 0.05) 50%, 
    rgba(6, 182, 212, 0.05) 100%);
  overflow: hidden;
}

/* Organic background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float var(--float-duration-primary) ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float var(--float-duration-secondary) ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(calc(-1 * var(--float-distance))) rotate(5deg); 
  }
}

.hero-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-large);
  position: relative;
  max-width: 400px;
  width: 100%;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: heroCardPop 1s ease-out var(--hero-card-delay) both;
}



.hero-bg {
  display: none; /* Hide video for Bloom-inspired static design */
}

.hero-overlay {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* =================================================================== */
/* Asymmetrical "Bloom" Inspired Hero Section                          */
/* =================================================================== */
.hero-container {
  display: grid;
  grid-template-columns: 1fr; /* Mobile-first: single column */
  gap: var(--space-xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); /* Asymmetrical columns on desktop */
    gap: var(--space-2xl);
  }
}

.hero-content {
  text-align: center; /* Center text on mobile */
}

@media (min-width: 992px) {
  .hero-content {
    text-align: left; /* Align left on desktop */
    position: relative;
    z-index: 2; /* Ensure text is in front of the image overlap */
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-large);
  object-fit: cover;
  border: 4px solid white;
}

@media (min-width: 992px) {
  .hero-main-image {
    max-width: none; /* Allow image to fill its container */
    transform: translateX(20px); /* Creates the subtle overlap effect */
  }
}

/* Remove the old hero-card styling as it's no longer needed */
.hero-card {
  display: none;
}

.hero-title {
  font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-6xl));
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  font-weight: 400;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

/* Ripple effect on click */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease-out, height 0.4s ease-out;
  pointer-events: none;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.2), 0 8px 10px -5px rgba(99, 102, 241, 0.1);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--bg-tertiary);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-medium);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

.btn-secondary::after {
  background: rgba(99, 102, 241, 0.1);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

.btn-secondary::after {
  background: rgba(99, 102, 241, 0.1);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Enhanced Fade-in Animations with Varied Distances */
.fade-in {
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Varied translateY distances by element type */
.fade-in h1,
.fade-in h2,
.fade-in h3 {
  transform: translateY(40px);
}

.fade-in p,
.fade-in .hero-description {
  transform: translateY(20px);
}

.fade-in .btn,
.fade-in .hero-buttons {
  transform: translateY(30px);
}

.fade-in .hero-main-image,
.fade-in .project-card,
.fade-in .timeline-content {
  transform: translateY(50px);
}

.fade-in .strength-item,
.fade-in .contact-method {
  transform: translateY(25px);
}

.fade-in.stagger-1 { transition-delay: 0ms; }
.fade-in.stagger-2 { transition-delay: 150ms; }
.fade-in.stagger-3 { transition-delay: 300ms; }
.fade-in.stagger-4 { transition-delay: 450ms; }
.fade-in.stagger-5 { transition-delay: 600ms; }
.fade-in.stagger-6 { transition-delay: 750ms; }

/* Bloom-Inspired Section Styles */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section.light {
  background: var(--bg-primary);
}

.section.dark {
  background: var(--bg-secondary);
}

.section h2 {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  position: relative;
}



/* About Me Section Improvements */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}

.about-text p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Interactive Journey Cards */
.interactive-journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.journey-card {
  background: var(--bg-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
}

.journey-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.journey-card:hover,
.journey-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.journey-card:hover::before,
.journey-card:focus-within::before {
  opacity: 0.3;
}

.journey-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.journey-icon i {
  font-size: var(--font-size-2xl);
  color: white;
}

.journey-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.journey-copy {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Timeline Styles */
.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Apple/Rivian-Style Scroll Animation */
/* starting state */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* when in view */
.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Entry Layout - Clean Grid Implementation */
.timeline-entry {
  /* no floats or positioning here—grid handles layout */
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: auto;
}

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

.timeline-text {
  position: relative;
  z-index: auto;
}

.timeline-image {
  position: relative;
  z-index: auto;
}

.timeline-text h3 {
  margin-bottom: 1rem;      /* pushes bullets down */
  position: relative;       /* ensure it participates in normal flow */
  z-index: auto;            /* remove any forced stacking */
}

.timeline-text ul {
  margin-top: 0.5rem;
}

.timeline-image img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Optional parallax helper */
.parallax {
  transform: translateY(0);
  transition: transform 0.3s ease-out;
}

.fade-in.parallax.in-view {
  transform: translateY(-10px);
}

/* Utility Classes for Grid Layout */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gap-8 {
  gap: 2rem;
}

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

/* Order Classes */
@media (min-width: 768px) {
  .md\:order-first {
    order: -9999;
  }
  
  .md\:order-last {
    order: 9999;
  }
}

/* Container and Spacing */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .lg\:px-0 {
    padding-left: 0;
    padding-right: 0;
  }
}

.space-y-16 > * + * {
  margin-top: 4rem;
}

/* Typography */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-bold {
  font-weight: 700;
}

.text-gray-700 {
  color: rgb(55 65 81);
}

/* List Styling */
.list-disc {
  list-style-type: disc;
}

.ml-5 {
  margin-left: 1.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* Image Utilities */
.w-full {
  width: 100%;
}

.h-auto {
  height: auto;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ───────────────────────────────────────────────────────────────────────────────
   1) Fix header/list overlap
   ──────────────────────────────────────────────────────────────────────────────*/
.timeline-entry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;            /* force both cells to align at top */
  gap: 2rem;
}

.timeline-text h3 {
  position: static !important;   /* remove any stray absolute/relative offsets */
  margin-bottom: 0.75rem;        /* separate from the list */
}

.timeline-text ul {
  margin-top: 0.5rem;            /* ensure ul sits below the header */
}

/* ───────────────────────────────────────────────────────────────────────────────
   2) Apple/Rivian‑style scroll animation
   ──────────────────────────────────────────────────────────────────────────────*/
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Header Improvements */
.timeline-header {
  margin-bottom: var(--space-lg);
}

.timeline-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-3xl);
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: var(--space-2xl);
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: var(--space-2xl);
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: var(--radius-full);
  top: var(--space-md);
  box-shadow: 0 0 0 6px var(--bg-primary), var(--shadow-soft);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: var(--bg-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.timeline-content::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -10px;
  top: var(--space-lg);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--bg-primary);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -10px;
  top: var(--space-lg);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--bg-primary) transparent transparent;
}

.timeline-content h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.timeline-date {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* =================================================================== */
/* =================================================================== */
/* Final, Elegant Project Tabs                                         */
/* =================================================================== */
.project-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.tab-pill {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-base);
}

.tab-pill:hover {
  background-color: var(--bg-secondary);
  color: var(--primary);
}

.tab-pill.active {
  color: var(--primary);
  background-color: rgba(99, 102, 241, 0.05);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-soft);
}

.tab-pill.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.tab-pill i {
  font-size: var(--font-size-lg);
}

/* Project Content Pane Styling */
.project-content-panes {
  position: relative;
}



.project-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-large);
  margin: 0 auto var(--space-xl) auto;
  display: block;
}

.project-details {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.project-details h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-align: center;
    color: var(--text-primary);
}

.project-details p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.project-details strong {
  color: var(--primary);
  font-weight: 600;
}

/* Contact Section - Two Card Layout */
.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* Force equal columns with minmax */
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start; /* Back to original - don't stretch */
}

/* Contact card - force exact width */
.contact-card {
  background: var(--bg-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.1);
  overflow: hidden;
  transition: all var(--transition-base);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%; /* Force full width of grid column */
  max-width: 100%; /* Prevent growing beyond grid */
  min-width: 0; /* Allow shrinking if needed */
}
}

.contact-card:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

/* Subtle geometric overlay */
.contact-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-xl);
  z-index: -2;
  opacity: 0.2;
}

/* Dot pattern overlay */
.contact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(99, 102, 241, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
  z-index: -1;
  opacity: 0.3;
}

/* Card Icon (for Calendly card) */
.card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.card-icon i {
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Book Time Accent Pill - positioned flush in corner */
.book-time-accent {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #6C5BFA, #FA5BA1);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  z-index: 10;
  animation: pulse 3s infinite;
  transition: all 0.2s ease;
}

.book-time-accent:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.contact-card h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  margin-top: 16px; /* 16px below icon for perfect spacing */
  text-align: center;
  line-height: 1.3;
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  text-align: left;
}

/* Contact Buttons */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: var(--space-xl);
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

.contact-btn i {
  font-size: 1.2em;
  color: var(--primary);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: currentColor;
}

/* Brand-specific hover colors */
.social-icon.linkedin:hover {
  background: #0077b5;
  color: white;
}

.social-icon.github:hover {
  background: #333;
  color: white;
}

.social-icon.email:hover {
  background: #ea4335;
  color: white;
}

.social-icon.youtube:hover {
  background: #ff0000;
  color: white;
}

.social-icon.sports:hover {
  background: #00a000;
  color: white;
}

.social-icon.travel:hover {
  background: #007bff;
  color: white;
}

.social-icon.sports:hover {
  background: #00a86b;
  color: white;
}

.social-icon.travel:hover {
  background: #1da1f2;
  color: white;
}

/* Scheduler Card Specific Styling */
.scheduler-card {
  position: relative;
}

.scheduler-card .calendly-inline-widget {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: var(--space-md);
}

/* Advanced Calendly Widget Customization - Native Integration */

/* 1. Hide the default "Powered by Calendly" ribbon */
.calendly-badge-widget,
.calendly-badge {
  display: none !important;
}

/* 2. Tuck the "Book Time" pill into the top‑right corner */
.book-time-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: linear-gradient(90deg, #6B5DD6, #D84C89);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  z-index: 10;
  font-size: var(--font-size-sm);
  animation: pulse 3s infinite;
}

.book-time-pill:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* 3. Blend the Calendly header into your card's gradient */
.calendly-inline-widget .calendly-popup-content header,
.calendly-inline-widget .calendly-popup-header,
.calendly-inline-widget .calendly-header {
  background: rgba(255, 255, 255, 0.1) !important; /* 10% white */
  height: 32px !important;                          /* shrink it */
  line-height: 32px !important;
  padding: 0 !important;
  min-height: 32px !important;
  max-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 4. Icon → Widget spacing and alignment */
.card-with-calendar .calendar-icon {
  display: block;
  margin: 0 auto var(--space-md); /* center icon with more space below */
  text-align: center;
}

.card-with-calendar .calendar-icon i {
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Remove heading styles since heading is removed */
.card-with-calendar h3 {
  display: none;
}

/* 5. Match left card's drop‑shadow and add hover fade‑in */
/* Force calendar card to match contact card size */
.card-with-calendar {
  position: relative;
  transition: all var(--transition-base);
  height: 480px; /* Approximate height of contact card content */
  min-height: 480px;
}

.card-with-calendar:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

/* Maintain gradient overlay for consistency */
.card-with-calendar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-xl);
  z-index: -2;
  opacity: 0.2;
}

/* Dot pattern overlay */
.card-with-calendar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(99, 102, 241, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
  z-index: -1;
  opacity: 0.3;
}

/* Widget styling - centered and cropped container */
.card-with-calendar .calendly-widget-container {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.02);
  width: 100%; /* Force full width */
  max-width: 100%; /* Prevent overflow */
  min-height: 400px; /* Ensure minimum height for calendar */
}

#calendly-scheduler {
  width: 100% !important;
  height: 100% !important;
  min-height: 400px !important;
}

.card-with-calendar .calendly-inline-widget {
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.card-with-calendar .calendly-inline-widget iframe {
  border-radius: var(--radius-md) !important;
  width: 100% !important;
  max-width: 100% !important; /* Prevent iframe from expanding card */
  min-width: 0 !important; /* Allow shrinking */
}
}

/* Calendly text styling to match our theme */
.calendly-inline-widget .calendly-popup-content *,
.calendly-inline-widget * {
  font-family: var(--font-family-base) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  /* Mobile cards will auto-size with content */
  
  .contact-card:hover,
  .card-with-calendar:hover {
    transform: scale(1.02);
    transition: all 0.2s ease;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .book-time-pill {
    top: 8px;
    right: 8px;
    padding: 0.4rem 0.8rem;
    font-size: var(--font-size-xs);
  }
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--space-2xl) 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-content p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-decoration: none;
}

.footer-links a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links a i {
  font-size: var(--font-size-lg);
}

/* Enhanced Fade-in Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.stagger-1 { transition-delay: 0ms; }
.fade-in.stagger-2 { transition-delay: 150ms; }
.fade-in.stagger-3 { transition-delay: 300ms; }
.fade-in.stagger-4 { transition-delay: 450ms; }
.fade-in.stagger-5 { transition-delay: 600ms; }
.fade-in.stagger-6 { transition-delay: 750ms; }

/* =================================================================== */
/* Final & Corrected Animated Underline for Section Headers            */
/* =================================================================== */

/* This styles the underline pseudo-element and sets its INITIAL state (invisible) */
.section h2::after {
  content: '';
  display: block;
  
  /* Use margin-top to position below the header instead of absolute positioning */
  margin-top: var(--space-md, 24px);
  margin-left: auto;
  margin-right: auto;
  
  /* Set the final dimensions of the line */
  width: var(--underline-width, 60px);
  height: 4px;
  
  /* Style the line with the brand gradient */
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  
  /*
    INITIAL STATE: The line starts scaled down to zero width.
    This is what makes it invisible before the animation.
  */
  transform: scaleX(0);
  transform-origin: center; /* Ensures the animation originates from the center */

  /* A premium, smooth easing for the animation transition */
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); 
}

/* This class is added by JavaScript when the header scrolls into view.
  It is the TRIGGER for the animation.
*/
.section h2.animate-underline::after {
  /* FINAL STATE: Animate the line to its full width (scaleX to 1) */
  transform: scaleX(1); 
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .nav-container {
    padding: 0 var(--space-md);
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: var(--space-2xl) 0;
    gap: var(--space-lg);
    transition: left var(--transition-base);
    box-shadow: var(--shadow-soft);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu.active .nav-link {
    color: var(--text-primary);
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-main-image {
    max-width: 300px;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .interactive-journey {
    padding: var(--space-2xl) 0;
  }
  
  .mission-text {
    font-size: var(--font-size-lg);
    padding: var(--space-lg);
  }
  
  .interactive-journey {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .timeline::before {
    left: var(--space-lg);
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: calc(var(--space-lg) * 2) !important;
    padding-right: 0 !important;
  }
  
  .timeline-dot {
    left: calc(var(--space-lg) - 10px) !important;
  }
  
  .timeline-content::before {
    display: none;
  }
  
  .year-labels {
    display: none;
  }
  
  .year-pills {
    display: flex;
  }
  
  /* Title-Tick Slider Mobile Styles */
  .project-slider-container {
    margin-bottom: var(--space-xl);
  }
  
  .tick-icon {
    font-size: var(--font-size-xl);
    bottom: 25px;
  }
  
  .tick-label {
    font-size: var(--font-size-sm);
    top: 25px;
  }
  
  .slider-handle {
    width: 32px;
    height: 32px;
    border-width: 4px;
  }
  
  .project-details h3 {
    font-size: var(--font-size-2xl);
  }
  
  .project-details p {
    font-size: var(--font-size-sm);
    line-height: 1.5;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-description {
    font-size: var(--font-size-base);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .hero-main-image {
    max-width: 280px;
    border-width: 3px;
  }
  
  .section h2 {
    font-size: var(--font-size-3xl);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .timeline-header,
  .project-year-header {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .milestone-image,
  .project-year-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    align-self: center;
  }
  
  /* Timeline entries stack on mobile */
  .timeline-entry {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Title-Tick Slider Small Mobile Styles */
  .project-slider {
    padding: var(--space-lg) 0;
  }
  
  .tick-icon {
    font-size: var(--font-size-lg);
    bottom: 20px;
  }
  
  .tick-label {
    font-size: var(--font-size-xs);
    top: 20px;
  }
  
  .slider-handle {
    width: 28px;
    height: 28px;
  }
  
  .slider-tooltip {
    font-size: var(--font-size-xs);
    padding: var(--space-xs);
  }
  
  .project-details {
    padding: 0 var(--space-sm);
  }
  
  .project-links {
    margin-top: var(--space-lg);
    padding: var(--space-sm);
    font-size: var(--font-size-sm);
    text-align: left;
  }
  
  .project-links a {
    display: inline-block;
    margin: var(--space-xs) 0;
  }
  
  /* Reset order classes on mobile */
  .timeline-text,
  .timeline-image {
    order: 0 !important;
  }
  
  /* Ensure text comes first on mobile */
  .timeline-text {
    order: 1 !important;
  }
  
  /* Ensure image comes second on mobile */
  .timeline-image {
    order: 2 !important;
  }
  
  .about-text {
    max-width: 100%;
  }
  
  .about-text p {
    font-size: var(--font-size-base);
  }
  .about-text,
  .strengths {
    padding: var(--space-lg);
  }
}

/* Loading States */
.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero::before,
  .hero::after {
    animation: none !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary: #0000FF;
    --secondary: #FF0000;
    --text-primary: #000000;
    --text-secondary: #333333;
  }
}

/* Focus Styles */
.nav-link:focus-visible,
.btn:focus-visible,
.hamburger:focus-visible,
.project-card:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .hamburger,
  .hero::before,
  .hero::after {
    display: none !important;
  }
  
  .hero {
    height: auto;
    background: white !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  .project-card,
  .timeline-item {
    break-inside: avoid;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection Styles */
::selection {
  background: var(--primary-light);
  color: white;
}

::-moz-selection {
  background: var(--primary-light);
  color: white;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

/*───────────────────────────────────────────────────────────────────────────────
  Grid & Spacing Fix
────────────────────────────────────────────────────────────────────────────────*/
.timeline-entry {
  display: grid;
  grid-template-columns: 1fr;    /* mobile: one column */
  gap: 2rem;
  margin-bottom: 4rem;           /* space between entries */
  align-items: start;            /* align text & image at top */
}

@media (min-width: 768px) {
  .timeline-entry {
    grid-template-columns: repeat(2, 1fr); /* two columns on MD+ */
  }
}

/* Ensure headers and lists never overlap */
.timeline-text h3 {
  margin: 0 0 0.75rem 0;          /* push list down */
  position: static !important;    /* override any absolute */
  z-index: auto;                  /* remove any forced stacking */
}

.timeline-text ul {
  margin-top: 0;
}

/*───────────────────────────────────────────────────────────────────────────────
  Apple/Rivian‑Style Fade‑In‑Up Scroll Animation
────────────────────────────────────────────────────────────────────────────────*/
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax helper (optional) */
.parallax { will-change: transform; }
/* =================================================================== */
/* Apple/Rivian Inspired Experience Section                            */
/* =================================================================== */
.experience-showcase {
  display: flex;
  flex-direction: column;
  gap: 8rem; /* Creates significant space between each year's feature */
}

.feature-entry {
  display: grid;
  grid-template-columns: 1fr; /* Mobile-first: single column */
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-entry {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

/* Normal entries: Text left, Image right */
.feature-entry .feature-text {
  order: 1;
}

.feature-entry .feature-image {
  order: 2;
}

/* Reverse entries: Image left, Text right */
.feature-entry.reverse .feature-text {
  order: 2;
}

.feature-entry.reverse .feature-image {
  order: 1;
}

.feature-text {
  background: var(--bg-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-year {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.feature-text ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-text li {
  position: relative;
  padding-left: var(--space-xl);
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-large);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image img:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 32px 64px -12px rgba(0, 0, 0, 0.25),
    0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .experience-showcase {
    gap: 4rem;
  }
  
  /* Reset all orders on mobile - text always first */
  .feature-entry .feature-text,
  .feature-entry.reverse .feature-text {
    order: 1;
  }
  
  .feature-entry .feature-image,
  .feature-entry.reverse .feature-image {
    order: 2;
  }
  
  .feature-text {
    padding: var(--space-xl);
  }
  
  .feature-title {
    font-size: var(--font-size-2xl);
  }
}
/* =================================================================== */
/* Interactive Project Timeline (Slider Content)                       */
/* =================================================================== */
.project-content {
  max-width: 900px;
  margin: 0 auto;
}

.project-year-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.project-year-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-snapshot-card {
  display: grid;
  grid-template-columns: 1fr; /* Mobile first */
  gap: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

@media (min-width: 768px) {
  .project-snapshot-card {
    grid-template-columns: 1fr 1.5fr; /* Image on left, text on right for desktop */
  }
}

.snapshot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}

.snapshot-details {
  padding: var(--space-2xl);
}

.snapshot-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-lg) 0;
  line-height: 1.3;
}

.snapshot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.snapshot-list li {
  position: relative;
  padding-left: var(--space-xl);
  color: var(--text-secondary);
  line-height: 1.6;
}

.snapshot-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: var(--font-size-lg);
}
.project-links {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.project-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition-base);
}

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

.project-note {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-lg);
  padding: var(--space-sm);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .project-slider {
    display: none;
  }
  
  .project-pills {
    display: flex;
  }
  
  .project-details {
    padding: 0 var(--space-md);
  }
  
  .project-links {
    flex-direction: column;
    align-items: center;
  }
}
/* =================================================================== */
/* Title-Tick Slider Rail with FontAwesome Icons                       */
/* =================================================================== */
.project-slider-container {
  max-width: 600px;
  margin: 0 auto var(--space-2xl) auto;
}

.slider-rail {
  position: relative;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  margin: var(--space-2xl) 0;
}

.slider-tick {
  position: absolute;
  top: -50px;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.slider-tick:nth-child(1) { left: 0%; }
.slider-tick:nth-child(2) { left: 33.33%; }
.slider-tick:nth-child(3) { left: 66.66%; }
.slider-tick:nth-child(4) { left: 100%; }

.slider-tick i {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
  display: block;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.slider-tick:hover i,
.slider-tick.active i {
  color: var(--primary);
}

.slider-tick:hover {
  color: var(--primary);
  transform: translateX(-50%) translateY(-2px);
}

.slider-tick.active {
  color: var(--primary);
}

.slider-handle {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transform: translateY(-50%) translateX(-50%);
  cursor: grab;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  z-index: 10;
}

.slider-handle:active {
  cursor: grabbing;
}

.slider-handle:hover {
  transform: translateY(-50%) translateX(-50%) scale(1.1);
}



.project-pane h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.project-pane img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-large);
  margin: var(--space-lg) auto;
  display: block;
}

.project-pane ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.project-pane li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.project-pane li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.project-pane .links {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.project-pane .links a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition-base);
}

.project-pane .links a:hover {
  color: var(--secondary);
}

/* Mobile: Hide slider rail below 640px */
@media (max-width: 640px) {
  .slider-rail {
    display: none;
  }
  
  .project-slider-container {
    margin-bottom: var(--space-lg);
  }
  
  .project-content {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  
  .project-pane {
    scroll-snap-align: start;
  }
}

/* Styling for Project Assets & Related Links */
.project-links {
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.project-links a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    margin: 0 var(--space-xs);
    transition: color var(--transition-base);
}

.project-links a:hover {
    color: var(--primary-dark);
}
/*
  Final Fix: Hide the redundant floating Calendly pop-up widget
  that appears at the bottom of the page.
*/
.calendly-inline-widget .calendly-popup {
  display: none !important;
}
/* Calendly mobile widget improvements */
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
  
  .calendly-widget-container {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .calendly-inline-widget {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 70vh !important; /* Responsive height based on viewport */
    overflow-x: auto;
  }
}
/* Calendly loader styling */
#calendly-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 16px;
  color: #666;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 10px 0;
}

#calendly-loader::after {
  content: '';
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid #ddd;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Resume download button */
.resume-download {
  margin-top: var(--space-lg);
  text-align: center;
}

.resume-download .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  font-weight: 500;
  transition: all var(--transition-base);
}

.resume-download .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.resume-download .btn i {
  font-size: var(--font-size-sm);
}
/* Tech Stack Badges */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-lg) 0 var(--space-md) 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--bg-tertiary);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-tertiary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.tech-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Tech badge specific colors */
.tech-badge.google { background: #4285f4; color: white; }
.tech-badge.web { background: #ff6b35; color: white; }
.tech-badge.dashboard { background: #00d4aa; color: white; }
.tech-badge.training { background: #7c3aed; color: white; }
.tech-badge.tableau { background: #e97627; color: white; }
.tech-badge.agile { background: #0052cc; color: white; }
.tech-badge.analytics { background: #ff4081; color: white; }
.tech-badge.logistics { background: #795548; color: white; }
.tech-badge.strategy { background: #673ab7; color: white; }
.tech-badge.ux { background: #ff5722; color: white; }
.tech-badge.marketing { background: #e91e63; color: white; }
.tech-badge.frameworks { background: #607d8b; color: white; }
.tech-badge.html { background: #e34f26; color: white; }
.tech-badge.js { background: #f7df1e; color: black; }
.tech-badge.healthcare { background: #4caf50; color: white; }

/* Enhanced Project Actions */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--bg-tertiary);
}

.project-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.project-actions .btn-primary {
  background: var(--primary);
  color: white;
}

.project-actions .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.project-actions .btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.project-actions .btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.project-note {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-style: italic;
  margin-left: auto;
}

/* Enhanced Project Pane Layout - Consolidated */
.project-pane {
  display: none; /* JS will manage visibility */
  padding: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.project-pane.visible {
  display: block;
}

.project-pane:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.project-details h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  line-height: 1.3;
}

.project-details p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
  color: var(--text-secondary);
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.project-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  .project-pane {
    padding: var(--space-lg);
  }
  
  .project-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .project-actions .btn {
    justify-content: center;
    padding: var(--space-md);
  }
  
  .project-note {
    margin-left: 0;
    text-align: center;
    margin-top: var(--space-sm);
  }
  
  .tech-stack {
    justify-content: center;
  }
  
  .project-tabs {
    overflow-x: auto;
    padding-bottom: var(--space-sm);
  }
  
  .tab-pill {
    min-width: 120px;
    white-space: nowrap;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--text-muted);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-secondary);
  margin-left: var(--space-md);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-soft);
}

.theme-toggle:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.theme-toggle i {
  font-size: 1.1rem;
  transition: transform var(--transition-base);
}

.theme-toggle:hover i {
  transform: rotate(15deg);
}

/* Theme toggle mobile positioning */
@media (max-width: 768px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
    margin-left: var(--space-sm);
  }
  
  .theme-toggle i {
    font-size: 1rem;
  }
}
/* Enhanced Scroll Animations - Exclude project panes from fade-in-up-enhanced */
.fade-in-up-enhanced:not(.project-pane) {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up-enhanced:not(.project-pane).in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animation delays */
.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; }
/* Enhanced Hover Effects */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.hover-glow {
  position: relative;
  transition: all var(--transition-base);
}

.hover-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  border-radius: inherit;
  transition: opacity var(--transition-base);
  z-index: -1;
  filter: blur(20px);
}

.hover-glow:hover::before {
  opacity: 0.3;
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* Floating animation for hero elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-animation:nth-child(2) {
  animation-delay: -2s;
}

.float-animation:nth-child(3) {
  animation-delay: -4s;
}
/* Subtle Parallax Effect */
.parallax-bg {
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

/* Smooth scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Enhanced section transitions */
.section {
  transition: all var(--transition-base);
}

/* Dark mode specific enhancements */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
}

[data-theme="dark"] .project-pane {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
}

[data-theme="dark"] .tech-badge {
  background: var(--bg-tertiary);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-secondary);
}

[data-theme="dark"] .journey-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
}
/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Dark mode specific enhancements */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
}

[data-theme="dark"] .project-pane {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
}

[data-theme="dark"] .tech-badge {
  background: var(--bg-tertiary);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-secondary);
}

[data-theme="dark"] .journey-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
}

[data-theme="dark"] .section.dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Enhanced transitions for all interactive elements - exclude display property */
* {
  transition: background-color var(--transition-base), 
              color var(--transition-base), 
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}
/* Advanced Mobile Features - Selectively Re-enabled */

/* Touch-friendly interactions - Safe to re-enable */
.touch-friendly {
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
  touch-action: manipulation;
}

/* Enhanced project tabs for mobile - Safe */
.project-tabs {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.project-tabs::-webkit-scrollbar {
  display: none;
}

/* Smart navigation - hide on scroll down, show on scroll up - Safe */
.nav-smart {
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.nav-smart.hidden {
  transform: translateY(-100%);
}

/* Mobile-optimized animations - Safe */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Thumb-friendly button sizing - Safe */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
  }
  
  .tab-pill {
    min-height: 48px;
    padding: var(--space-sm) var(--space-md);
  }
  
  .nav-link {
    padding: var(--space-md);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* Swipe indicator for project content - Temporarily hidden */
.swipe-indicator {
  display: none !important;
}

/* Smart navigation - hide on scroll down, show on scroll up */
.nav-smart {
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.nav-smart.hidden {
  transform: translateY(-100%);
}

/* Mobile-optimized animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch feedback - Temporarily disabled */
.touch-feedback {
  position: relative;
  overflow: hidden;
}

.touch-feedback::before {
  display: none !important;
}

/* Thumb-friendly button sizing */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
  }
  
  .tab-pill {
    min-height: 48px;
    padding: var(--space-sm) var(--space-md);
  }
  
  .nav-link {
    padding: var(--space-md);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}



@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Performance and Battery Optimizations */

/* Slow connection optimizations */
.slow-connection * {
  animation-duration: 0.1s !important;
  transition-duration: 0.1s !important;
}

.slow-connection .fade-in-up-enhanced,
.slow-connection .slide-in-left,
.slow-connection .slide-in-right {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Low battery optimizations */
.low-battery * {
  animation: none !important;
  transition-duration: 0.05s !important;
}

.low-battery .scroll-progress {
  display: none;
}

/* Install prompt styling */
.install-prompt {
  animation: slideInUp 0.3s ease-out;
}

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

/* Enhanced mobile viewport handling */
@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

/* Safe area handling for notched devices */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(var(--space-lg), env(safe-area-inset-left));
    padding-right: max(var(--space-lg), env(safe-area-inset-right));
  }
  
  .hero {
    padding-left: max(var(--space-lg), env(safe-area-inset-left));
    padding-right: max(var(--space-lg), env(safe-area-inset-right));
  }
}

/* Improved focus indicators for keyboard navigation */
.btn:focus-visible,
.tab-pill:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Enhanced mobile scrolling */
.project-tabs {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.tab-pill {
  scroll-snap-align: center;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  /* Larger touch targets */
  .swipe-dot {
    width: 12px;
    height: 12px;
    margin: 0 4px;
  }
  
  /* Better spacing for thumb navigation */
  .project-tabs {
    padding: 0 var(--space-md);
    gap: var(--space-sm);
  }
  
  /* Optimized animations for mobile */
  .fade-in-up-enhanced {
    transform: translateY(20px) !important;
  }
  
  /* Prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px !important;
  }
}
/* Performance and Battery Optimizations - Safe to re-enable */

/* Slow connection optimizations */
.slow-connection * {
  animation-duration: 0.1s !important;
  transition-duration: 0.1s !important;
}

.slow-connection .fade-in-up-enhanced,
.slow-connection .slide-in-left,
.slow-connection .slide-in-right {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Low battery optimizations */
.low-battery * {
  animation: none !important;
  transition-duration: 0.05s !important;
}

.low-battery .scroll-progress {
  display: none;
}

/* Enhanced mobile viewport handling */
@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

/* Safe area handling for notched devices */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(var(--space-lg), env(safe-area-inset-left));
    padding-right: max(var(--space-lg), env(safe-area-inset-right));
  }
  
  .hero {
    padding-left: max(var(--space-lg), env(safe-area-inset-left));
    padding-right: max(var(--space-lg), env(safe-area-inset-right));
  }
}

/* Improved focus indicators for keyboard navigation */
.btn:focus-visible,
.tab-pill:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Enhanced mobile scrolling */
.project-tabs {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.tab-pill {
  scroll-snap-align: center;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  /* Better spacing for thumb navigation */
  .project-tabs {
    padding: 0 var(--space-md);
    gap: var(--space-sm);
  }
  
  /* Optimized animations for mobile */
  .fade-in-up-enhanced {
    transform: translateY(20px) !important;
  }
  
  /* Prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px !important;
  }
}
/* Enhanced Dark Mode Hero Text Visibility */
[data-theme="dark"] .hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero-subtitle {
  color: #e5e7eb !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero-description {
  color: #d1d5db !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Simple highlight text for dark mode - completely override */
[data-theme="dark"] .hero-title .highlight {
  color: #a5b4fc !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #a5b4fc !important;
  background-clip: initial !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Ensure buttons are visible in dark mode hero */
[data-theme="dark"] .hero .btn {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}
/* Additional dark mode contrast improvements - simplified */

/* Improve text contrast against dark hero background */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
}

/* Make sure all hero text has sufficient contrast - simplified */
[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-description {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
/* Dark Mode Navigation Styling - Updated */
[data-theme="dark"] .navbar.transparent {
  background: rgba(17, 24, 39, 0.8) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .navbar.solid {
  background: rgba(17, 24, 39, 0.95) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-logo {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-link {
  color: #d1d5db !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #a5b4fc !important;
  background: rgba(165, 180, 252, 0.1) !important;
}

/* Fix nav-link underlines in dark mode */
[data-theme="dark"] .nav-link::after {
  background: linear-gradient(90deg, #a5b4fc, #f9a8d4) !important;
}

[data-theme="dark"] .theme-toggle {
  color: #d1d5db !important;
}

[data-theme="dark"] .theme-toggle:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
/* Dark mode hamburger menu */
[data-theme="dark"] .hamburger {
  color: #d1d5db !important;
}

[data-theme="dark"] .hamburger:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .hamburger .bar {
  background: #d1d5db !important;
}

/* Dark mode mobile menu */
[data-theme="dark"] .nav-menu {
  background: rgba(17, 24, 39, 0.95) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-menu .nav-link {
  color: #d1d5db !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-menu .nav-link:hover,
[data-theme="dark"] .nav-menu .nav-link.active {
  color: #a5b4fc !important;
  background: rgba(165, 180, 252, 0.1) !important;
}
/* Alternative: Hide navbar border completely in dark mode if needed */
[data-theme="dark"] .navbar {
  border-bottom: 1px solid transparent !important;
}

/* Footer quote styling */
.footer-quote {
  display: flex;
  align-items: center;
}

.footer-quote p {
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* Dark mode footer quote */
[data-theme="dark"] .footer-quote p {
  color: #9ca3af;
}
/* Hide only the floating Calendly widget that appears outside the main content */
body > div[class*="lmtWIHO_gkbTeeyuvoJC"] {
  display: none !important;
}

/* Additional targeting for floating Calendly widgets */
div[class*="lmtWIHO_gkbTeeyuvoJC"]:not(.card-with-calendar *) {
  display: none !important;
}

/* Hide Calendly widgets that appear as floating overlays */
body > div[class*="calendly"][style*="position: fixed"],
body > div[class*="calendly"][style*="position: absolute"] {
  display: none !important;
}

/* Target the specific floating widget classes */
body > div[class*="lmtWIHO"],
body > div[class*="sbRR6Vj"],
body > div[class*="mOUYF5Z"],
body > div[class*="_JUGVkf"] {
  display: none !important;
}
/* Targeted removal of only floating Calendly widget */
/* Mobile-specific social icon improvements */
@media (max-width: 768px) {
  .social-icons {
    justify-content: center;
    gap: 1.5rem; /* More space between icons on mobile */
    margin-top: 1.5rem;
  }
  
  .social-icon {
    width: 56px; /* Larger touch targets */
    height: 56px;
    background: rgba(255, 255, 255, 0.15) !important; /* More visible background */
    color: rgba(255, 255, 255, 0.95) !important; /* More visible text */
    font-size: 1.4rem; /* Larger icons */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Visible border */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* More prominent shadow */
  }
  
  /* Always show brand colors on mobile (no hover needed) */
  .social-icon.linkedin {
    background: rgba(0, 119, 181, 0.2) !important;
    border-color: rgba(0, 119, 181, 0.4);
    color: #0077b5 !important;
  }
  
  .social-icon.github {
    background: rgba(51, 51, 51, 0.2) !important;
    border-color: rgba(51, 51, 51, 0.4);
    color: #333 !important;
  }
  
  .social-icon.email {
    background: rgba(234, 67, 53, 0.2) !important;
    border-color: rgba(234, 67, 53, 0.4);
    color: #ea4335 !important;
  }
  
  .social-icon.youtube {
    background: rgba(255, 0, 0, 0.2) !important;
    border-color: rgba(255, 0, 0, 0.4);
    color: #ff0000 !important;
  }
  
  .social-icon.sports {
    background: rgba(0, 128, 0, 0.2) !important;
    border-color: rgba(0, 128, 0, 0.4);
    color: #00a000 !important;
  }
  
  .social-icon.travel {
    background: rgba(0, 123, 255, 0.2) !important;
    border-color: rgba(0, 123, 255, 0.4);
    color: #007bff !important;
  }
  
  /* Touch feedback - brief scale effect when tapped */
  .social-icon:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
}

/* Dark mode mobile social icons */
@media (max-width: 768px) {
  [data-theme="dark"] .social-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  [data-theme="dark"] .social-icon.linkedin {
    background: rgba(0, 119, 181, 0.3) !important;
    color: #4fc3f7 !important;
  }
  
  [data-theme="dark"] .social-icon.github {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
  }
  
  [data-theme="dark"] .social-icon.email {
    background: rgba(234, 67, 53, 0.3) !important;
    color: #ff6b6b !important;
  }
  
  [data-theme="dark"] .social-icon.youtube {
    background: rgba(255, 0, 0, 0.3) !important;
    color: #ff5252 !important;
  }
  
  [data-theme="dark"] .social-icon.sports {
    background: rgba(76, 175, 80, 0.3) !important;
    color: #4caf50 !important;
  }
  
  [data-theme="dark"] .social-icon.travel {
    background: rgba(33, 150, 243, 0.3) !important;
    color: #42a5f5 !important;
  }
}
