/* Sandip Patel — Modern Single-Page Portfolio */

/* ===== CSS Variables ===== */
:root {
  /* Professional slate & teal color palette */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #115e59;
  --accent: #0d9488;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --nav-height: 72px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark mode via class toggle */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --surface: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --primary: #14b8a6;
  --primary-light: #2dd4bf;
  --primary-dark: #0d9488;
  --accent: #2dd4bf;
  --border: #334155;
  --border-light: #1e293b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 16px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.3s ease;
}

[data-theme="dark"] .nav {
  background: rgba(15,23,42,0.95);
}

[data-theme="dark"] .nav-links a {
  color: #e2e8f0;
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--primary-light);
  background: rgba(255,255,255,0.08);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.nav-brand:hover {
  color: var(--text);
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--primary);
  transform: scale(1.05);
}

.theme-toggle svg {
  color: var(--text);
  transition: all 0.2s ease;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* Mobile Navigation */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    margin-left: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
  }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-label .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.hero-image-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  opacity: 0.2;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg);
}

.hero-stats {
  position: absolute;
  bottom: 20px;
  right: -20px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-stats .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-tags, .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-image-wrapper {
    width: 280px;
    height: 280px;
  }
  
  .hero-stats {
    right: 50%;
    transform: translateX(50%);
    bottom: -20px;
  }
}

@media (max-width: 480px) {
  .hero-image-wrapper {
    width: 200px;
    height: 200px;
  }
  
  .hero {
    padding-top: calc(var(--nav-height) + 20px);
    min-height: auto;
    padding-bottom: 60px;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

/* Dark mode button style - outlined with teal */
[data-theme="dark"] .btn-primary {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary-light);
}

[data-theme="dark"] .btn-primary:hover {
  background: rgba(20, 184, 166, 0.15);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--text-muted);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--primary);
  border-color: var(--primary);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ===== About Section ===== */
#about {
  background: var(--bg-alt);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.about-image {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.about-card-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.about-card-header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
}

.about-card-header h3 {
  margin-bottom: 4px;
}

.about-card-header p {
  font-size: 0.9375rem;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: 8px;
}

.about-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 8px;
  color: var(--primary);
}

.about-detail-text {
  flex: 1;
}

.about-detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-detail-value {
  font-weight: 600;
  color: var(--text);
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-highlight-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(14,165,233,0.1));
  border-radius: 10px;
  color: var(--primary);
  flex-shrink: 0;
}

.about-highlight h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.about-highlight p {
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .about-highlights {
    grid-template-columns: 1fr;
  }
}

/* ===== Expertise Section ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.expertise-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(14,165,233,0.1));
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--primary);
}

.expertise-card h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.expertise-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Publications Section ===== */
#publications {
  background: var(--bg-alt);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.publications-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.publication-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

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

.publication-category-header {
  margin-bottom: 18px;
}

.publication-category-label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 10px;
}

.publication-category-header h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.publication-category-header p {
  font-size: 0.9375rem;
}

.publication-item {
  display: flex;
  gap: 20px;
  padding: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.publication-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.publication-year {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.publication-content h4 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.publication-content p {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.publication-venue {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .publications-categories {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .publication-category {
    padding: 20px;
  }

  .publication-item {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== Speaking Section ===== */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.speaking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}

.speaking-card:hover {
  box-shadow: var(--shadow);
}

.speaking-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.speaking-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.speaking-year {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.speaking-card h4 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.speaking-card p {
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .speaking-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Projects Section ===== */
#projects {
  background: var(--bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

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

.project-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: white;
}

.project-card h4 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.project-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Awards Section ===== */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.award-item:hover {
  border-color: var(--primary);
}

.award-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(234,179,8,0.15), rgba(251,191,36,0.15));
  border-radius: 50%;
  color: #eab308;
  flex-shrink: 0;
}

.award-content h4 {
  margin-bottom: 4px;
  font-size: 1.0625rem;
}

.award-content p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.award-year {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .award-item {
    flex-direction: column;
    text-align: center;
  }
  
  .award-year {
    order: -1;
  }
}

/* ===== Experience Section ===== */
#experience {
  background: var(--bg);
}

.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

.experience-item {
  position: relative;
  padding-bottom: 40px;
}

.experience-item:last-child {
  padding-bottom: 0;
}

.experience-marker {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 18px;
  height: 18px;
  background: var(--surface);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
}

.experience-item:hover .experience-marker {
  background: var(--primary);
  transform: scale(1.2);
  transition: all 0.2s ease;
}

.experience-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s ease;
}

.experience-item:hover .experience-content {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-header h4 {
  color: var(--text);
  font-size: 1.25rem;
}

.experience-period {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(15, 118, 110, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.experience-role {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.experience-location {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.experience-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-highlights li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.experience-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.experience-content > p:last-child {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .experience-timeline {
    padding-left: 30px;
  }
  
  .experience-timeline::before {
    left: 4px;
  }
  
  .experience-marker {
    left: -30px;
    width: 14px;
    height: 14px;
  }
  
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Judge Section ===== */
#judge {
  background: var(--bg-alt);
}

/* Featured Judge Experience */
.judge-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.judge-featured-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.judge-featured-image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.judge-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.judge-featured-image:hover img {
  transform: scale(1.05);
}

.judge-featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.judge-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 20px;
}

.judge-featured-badge svg {
  width: 16px;
  height: 16px;
}

.judge-featured-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.judge-featured-org {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.judge-featured-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.judge-featured-content .judge-year {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .judge-featured {
    grid-template-columns: 1fr;
  }
  
  .judge-featured-gallery {
    grid-template-columns: 1fr 1fr;
  }
  
  .judge-featured-image {
    min-height: 300px;
  }
  
  .judge-featured-content {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .judge-featured-gallery {
    grid-template-columns: 1fr;
  }
  
  .judge-featured-image {
    min-height: 280px;
  }
  
  .judge-featured-content {
    padding: 24px;
  }
  
  .judge-featured-content h3 {
    font-size: 1.5rem;
  }
}

.judge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.judge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s ease;
  position: relative;
}

.judge-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.judge-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.judge-icon svg {
  color: white;
}

.judge-card h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--text);
}

.judge-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.judge-year {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 1024px) {
  .judge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .judge-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Mentorship Section ===== */
#mentorship {
  background: var(--bg);
}

.mentorship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mentorship-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s ease;
}

.mentorship-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mentorship-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.mentorship-icon svg {
  color: white;
}

.mentorship-card h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--text);
}

.mentorship-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.mentorship-stats {
  display: flex;
  gap: 16px;
}

.mentorship-stats span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(13, 148, 136, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

@media (max-width: 1024px) {
  .mentorship-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mentorship-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Contact Section ===== */
#contact {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

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

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.contact-method:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  color: var(--text);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 10px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method h4 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.contact-method p {
  font-size: 0.875rem;
  margin: 0;
}

.contact-topics {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-topics h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.topics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.topic-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== Utilities ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
