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

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-light: #4b5563;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  background-color: var(--bg-primary);
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
  z-index: 1001;
}

.nav-toggle-icon {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

.nav-toggle-active .nav-toggle-icon:nth-child(2) {
  opacity: 0;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a.nav-active {
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-menu a.nav-active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  opacity: 0.5;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.98);
}

.hero-value-statement {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}

.hero-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stat-divider {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  font-weight: 300;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 1rem;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-dark);
}

.hero-social {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  color: white;
  text-decoration: underline;
}

/* Section Styles */
.section {
  padding: 40px 0;
}

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

.section-executive {
  padding: 64px 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.executive-summary-box {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 48px 56px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.executive-summary-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.5px;
}

.executive-summary-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.executive-summary-text {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--text-primary);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 56px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  background: white;
  padding: 32px 36px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-company {
  font-size: 1.125rem;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-date {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.timeline-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--bg-light);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
}

.timeline-description {
  list-style: none;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 16px;
}

.timeline-description li {
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
}

.timeline-description li:last-child {
  margin-bottom: 0;
}

.timeline-description li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Skills Section */
#skills {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#skills .container {
  display: block !important;
  visibility: visible !important;
}

.skills-intro {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  display: block !important;
  visibility: visible !important;
}

.skills-note {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

.skills-note strong {
  color: var(--primary-dark);
}

.skills-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-core {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
}

.skill-core .skill-category-title {
  color: var(--primary-dark);
}

.skill-tag-core {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
}

.skill-tag-core:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.skill-category {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex !important;
  flex-direction: column;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 200px;
  flex: 1 1 320px;
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.skill-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.skill-category-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.skill-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 40px;
}

.skill-tag {
  padding: 6px 16px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap;
}

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

/* Focus Areas Section */
.focus-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.focus-area-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.focus-area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.focus-area-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.focus-area-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.focus-area-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* Projects Section */
.projects-subsection {
  margin-bottom: 32px;
}

.projects-subsection:last-child {
  margin-bottom: 0;
}

.projects-subsection-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.projects-subsection-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

/* Ensure all grid items stretch to fill row height */
.projects-grid > * {
  height: 100%;
}

.project-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  gap: 0;
  flex: 1 1 320px;
  min-height: 0;
}

/* Allow content elements to shrink if needed */
.project-card > *:not(.project-tech):not(.project-impact) {
  flex-shrink: 1;
  flex-grow: 0;
}

/* Ensure project-impact always grows to fill available space */
.project-impact {
  flex-grow: 1 !important;
}

.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
  pointer-events: none;
}

.project-badge-ai {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.project-badge-software {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
  position: relative;
  z-index: 2;
  padding-right: 100px;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  min-width: 0;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: flex-start;
  position: relative;
  z-index: 3;
  margin-top: 0;
}

.project-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.project-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.project-intro {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
  padding: 20px 24px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 20px;
}

.project-intro-item {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.project-intro-item:last-child {
  margin-bottom: 0;
}

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

.project-challenge-solution {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.04));
  padding: 20px 24px;
  border-radius: 10px;
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 16px;
}

.project-challenge-solution .project-description {
  margin-bottom: 12px;
}

.project-challenge-solution .project-description:last-child {
  margin-bottom: 0;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Tighter spacing between consecutive project-description paragraphs (My Role -> Key Technical Implementation) */
.project-description + .project-description {
  margin-top: 0;
}

/* Spacing when project-description follows project-challenge-solution or project-intro */
.project-challenge-solution + .project-description,
.project-intro + .project-description {
  margin-top: 0;
}

/* Reduce bottom margin when followed by another project-description (My Role -> Key Technical Implementation) */
.project-description:not(:last-of-type) {
  margin-bottom: 4px;
}

/* Ensure proper spacing before project-architecture or project-impact */
.project-description:last-of-type {
  margin-bottom: 8px;
}

/* Spacing when project-description is followed by project-architecture */
.project-description:last-of-type + .project-architecture {
  margin-top: 0;
}

.project-architecture {
  margin: 0 0 0 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.architecture-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
}

.arch-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
  transition: transform 0.3s ease;
}

.arch-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.arch-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.arch-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}

.arch-arrow {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  padding: 0 8px;
}

.project-impact {
  color: var(--text-primary);
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  line-height: 1.7;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.15);
  font-weight: 500;
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 0;
}

/* Spacing when project-impact follows project-architecture */
.project-architecture + .project-impact {
  margin-top: 12px;
}

/* Spacing when project-impact follows project-description (Key Technical Implementation -> Business Impact) */
.project-description:last-of-type + .project-impact {
  margin-top: 8px;
}

/* If project-architecture is the last element before tech tags, add bottom margin */
.project-architecture:last-child {
  margin-bottom: 0;
}

.project-impact strong {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.tech-tag {
  padding: 6px 16px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.tech-tag:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0;
  opacity: 0;
}

.tech-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.education-card {
  background: white;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.education-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.education-institution {
  font-size: 1rem;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 4px;
}

.education-date {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.education-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
}

/* Forward-Looking Section */
.future-focus-content {
  max-width: 900px;
  margin: 0 auto;
}

.future-focus-text {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: center;
}

.future-focus-text:last-child {
  margin-bottom: 0;
}

.future-focus-list {
  list-style: none;
  max-width: 800px;
  margin: 32px auto;
  padding: 0;
}

.future-focus-list li {
  padding: 20px 24px;
  margin-bottom: 16px;
  background: white;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.future-focus-list li:last-child {
  margin-bottom: 0;
}

.future-focus-list li strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

/* Contact Section */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-cta {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin: 24px 0 0 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.contact-cta strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.contact-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.contact-resume {
  text-align: center;
  margin-top: 32px;
}

.btn-resume,
.btn-resume-contact {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
}

.btn-resume:hover,
.btn-resume-contact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  font-size: 2rem;
}

.contact-info {
  text-align: left;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-text {
  flex: 1;
  min-width: 250px;
}

.footer p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.95);
}

.footer-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-menu-active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats-bar {
    gap: 16px;
    padding: 16px 20px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }

  .hero-stat-divider {
    font-size: 1.25rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 28px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
    gap: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 5px;
    width: 20px;
    height: 20px;
  }

  .skills-grid,
  .projects-grid {
    flex-direction: column;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 0;
  }

  .project-links {
    align-self: flex-start;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-menu {
    gap: 12px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    margin-bottom: 24px;
    font-size: 1.75rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 24px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .contact-methods-grid {
    grid-template-columns: 1fr;
  }

  .skills-intro {
    padding: 16px;
  }

  .project-card {
    padding: 24px;
  }

  .project-impact {
    padding: 16px;
    font-size: 0.9rem;
  }

  .project-architecture {
    padding: 16px;
  }

  .architecture-diagram {
    gap: 12px;
    padding: 12px;
  }

  .arch-step {
    min-width: 80px;
    padding: 10px;
  }

  .arch-icon {
    font-size: 1.5rem;
  }

  .arch-label {
    font-size: 0.75rem;
  }

  .arch-arrow {
    font-size: 1.25rem;
    padding: 0 4px;
  }

  .timeline-item {
    margin-bottom: 40px;
  }

  .timeline-description li {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
}


/* Shared section subtitle */
.section-subtitle {
  text-align: center;
  margin: -8px auto 40px;
  color: var(--text-secondary);
  max-width: 780px;
}

/* About section professional layout */
.about-content-single {
  grid-template-columns: 1fr;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  flex-wrap: wrap;
}

.stats-bar-item {
  text-align: center;
  min-width: 140px;
}

.stats-bar-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.stats-bar-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.about-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.expertise-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.expertise-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.expertise-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-philosophy {
  margin: 0;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  color: var(--text-secondary);
}

/* Compact cards for GitHub featured */
.project-card-compact {
  max-width: 400px;
}

.center-cta {
  text-align: center;
  margin-top: 40px;
}

/* Insights section */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.insight-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.insight-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.insight-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.insight-text {
  color: var(--text-secondary);
  margin: 0;
}


.project-program { margin-bottom: 12px; }
.project-program-label { color: var(--primary-dark); }


/* Architecture section cards */
.architecture-card {
  max-width: 600px;
  margin: 20px auto 0;
}

.architecture-card-first {
  margin-top: 0;
}

.architecture-title {
  margin-bottom: 20px;
}

.architecture-description {
  margin-top: 20px;
}


/* Additional projects (executive trim) */
.additional-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.additional-projects-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.additional-projects-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.additional-projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.additional-projects-list li {
  margin-bottom: 10px;
}

.additional-projects-list li:last-child {
  margin-bottom: 0;
}

.additional-projects-list a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.additional-projects-list a:hover {
  text-decoration: underline;
}


.additional-projects-tag {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-left: 6px;
}

/* H-CDT case study */
.case-study-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.case-study-summary {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.case-study-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
}

.case-study-block h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.case-study-block p,
.case-study-tech {
  color: var(--text-secondary);
  margin: 0;
}

/* Mermaid diagram card */
.mermaid-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  padding: 12px;
}


/* Compact GitHub links grid */
.repo-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.repo-link-card {
  display: block;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.repo-link-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}
