/* ============================================================
   JohnDou — Professional Site Stylesheet
   Pure CSS — no frameworks, no preprocessors
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-dark-bg: #0a192f;
  --color-dark-bg-alt: #112240;
  --color-light-bg: #f7f8fc;
  --color-white: #ffffff;
  --color-accent: #00b4d8;
  --color-accent-hover: #0096c7;
  --color-accent-subtle: rgba(0, 180, 216, 0.1);
  --color-text-light: #ccd6f6;
  --color-text-light-muted: #8892b0;
  --color-text-dark: #1a1a2e;
  --color-text-dark-muted: #555b6e;
  --color-border: #233554;
  --color-border-light: #e0e4ec;
  --color-success: #2ecc71;
  --color-error: #e74c3c;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial,
    sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', Consolas,
    'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1400px;
  --nav-height: 70px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- Reset --- */
*,
*::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: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-dark {
  background: var(--color-dark-bg);
  color: var(--color-text-light);
  position: relative;
}

.section-dark-alt {
  background: var(--color-dark-bg-alt);
  color: var(--color-text-light);
  position: relative;
}

.section-light {
  background: var(--color-light-bg);
  color: var(--color-text-dark);
  position: relative;
}

/* --- Dot grid pattern on dark sections --- */
.section-dark::before,
.section-dark-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* --- Angled section dividers --- */
.section-angled {
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding-top: calc(var(--space-3xl) + 3vw);
  padding-bottom: calc(var(--space-3xl) + 3vw);
  margin-top: -3vw;
  margin-bottom: -3vw;
  position: relative;
  z-index: 1;
}

.section-angled-first {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding-bottom: calc(var(--space-3xl) + 3vw);
  margin-bottom: -3vw;
  position: relative;
  z-index: 1;
}

.section-angled-last {
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--space-3xl) + 3vw);
  margin-top: -3vw;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.section-dark .section-header h2,
.section-dark-alt .section-header h2 {
  color: var(--color-text-light);
}

.section-header .accent-dot {
  color: var(--color-accent);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-dark-muted);
  font-size: 1.1rem;
}

.section-dark .section-header p,
.section-dark-alt .section-header p {
  color: var(--color-text-light-muted);
}

.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;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.4;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

.nav-logo a:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--color-text-light-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav CTA buttons */
.nav-ctas {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text-light);
  transition: all var(--transition-base);
}

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

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

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

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-dark-bg);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Animated gradient background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 180, 216, 0.06) 0%,
    transparent 40%,
    rgba(0, 150, 199, 0.04) 60%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: heroGradient 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Animated visual element */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-circuit {
  width: 100%;
  max-width: 400px;
  height: auto;
  opacity: 0.9;
}

.hero-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb--2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 150, 199, 0.1) 0%, transparent 70%);
  animation-delay: -3s;
  animation-duration: 10s;
  top: 10%;
  left: 10%;
}

.hero-orb--3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
  animation-delay: -6s;
  animation-duration: 12s;
  bottom: 5%;
  right: 5%;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Hero content / slider */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00b4d8, #48cae4, #90e0ef, #48cae4, #00b4d8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 10s ease-in-out infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.hero-slider {
  position: relative;
  min-height: 220px;
}

.hero-slide {
  display: none;
  animation: heroFadeIn 0.7s ease;
}

.hero-slide.active {
  display: block;
}

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

.hero-slide h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero-slide p {
  color: var(--color-text-light-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 550px;
}

.hero-dots {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.hero-scroll {
  text-align: center;
  padding-top: var(--space-xl);
  position: relative;
  z-index: 1;
}

.hero-scroll a {
  color: var(--color-text-light-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}

.hero-scroll a:hover {
  color: var(--color-accent);
}

.hero-scroll span {
  display: block;
  margin-top: var(--space-xs);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-dark-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat-item {
  padding: var(--space-md);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, #00b4d8, #48cae4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--color-dark-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-xl) var(--space-2xl);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow:
    0 8px 30px rgba(0, 180, 216, 0.15),
    0 0 20px rgba(0, 180, 216, 0.1),
    inset 0 0 20px rgba(0, 180, 216, 0.03);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.service-card p {
  color: var(--color-text-light-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card ul {
  margin-top: var(--space-md);
}

.service-card li {
  color: var(--color-text-light-muted);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  padding-left: 1.2rem;
  position: relative;
}

.service-card li::before {
  content: '\25B8';
  color: var(--color-accent);
  position: absolute;
  left: 0;
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

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

.section-dark .timeline::before {
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
}

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

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-light-bg);
}

.section-dark .timeline-dot {
  border-color: var(--color-dark-bg);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.timeline-item h3 {
  font-size: 1.2rem;
  color: var(--color-text-dark);
  margin-bottom: 2px;
}

.section-dark .timeline-item h3 {
  color: var(--color-text-light);
}

.timeline-item .role {
  font-size: 1rem;
  color: var(--color-text-dark-muted);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.section-dark .timeline-item .role {
  color: var(--color-text-light-muted);
}

.timeline-item ul {
  margin-top: var(--space-sm);
}

.timeline-item li {
  font-size: 0.95rem;
  padding: var(--space-xs) 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-text-dark-muted);
}

.section-dark .timeline-item li {
  color: var(--color-text-light-muted);
}

.timeline-item li::before {
  content: '\25B8';
  color: var(--color-accent);
  position: absolute;
  left: 0;
}

.earlier-career {
  padding: var(--space-lg);
  background: var(--color-accent-subtle);
  border-radius: 6px;
  border-left: 3px solid var(--color-accent);
}

.earlier-career h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.earlier-career p {
  font-size: 0.9rem;
  color: var(--color-text-dark-muted);
}

.section-dark .earlier-career p {
  color: var(--color-text-light-muted);
}

/* --- Alternating Timeline (wide screens) --- */
@media (min-width: 900px) {
  .timeline {
    padding-left: 0;
    max-width: 1000px;
    margin: 0 auto;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 47%;
    padding-left: 0;
    padding-right: 0;
  }

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

  .timeline-item:nth-child(even) {
    margin-left: 53%;
    text-align: left;
    padding-left: var(--space-xl);
  }

  .timeline-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: calc(-6% - 6px);
  }

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

  .timeline-item:nth-child(odd) ul {
    text-align: left;
  }

  .timeline-item:nth-child(odd) li {
    direction: ltr;
  }

  .timeline-item:nth-child(odd) .earlier-career {
    text-align: left;
  }
}

/* --- Industry Icons Bar --- */
.industries-bar {
  padding: var(--space-xl) 0;
  background: var(--color-dark-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 2;
}

.industries-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-light-muted);
  margin-bottom: var(--space-lg);
}

.industries-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl) var(--space-2xl);
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.industry-item:hover {
  opacity: 1;
}

.industry-item svg {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
}

.industry-item span {
  font-size: 0.75rem;
  color: var(--color-text-light-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Decorative margin accents (wide screens) --- */
@media (min-width: 1200px) {
  .section-dark::after,
  .section-dark-alt::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 3%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(0, 180, 216, 0.06);
    border-radius: 50%;
    pointer-events: none;
  }

  .section-dark-alt::after {
    top: auto;
    bottom: 15%;
    right: auto;
    left: 3%;
    width: 80px;
    height: 80px;
    border-radius: 0;
    transform: rotate(45deg);
  }

  .section-light::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 4%;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 180, 216, 0.08);
    border-radius: 50%;
    pointer-events: none;
  }

  /* Second accent shape on opposite side */
  .section-dark > .container::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -8%;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.08), transparent);
    pointer-events: none;
  }

  .section-dark > .container::after {
    content: '';
    position: absolute;
    bottom: 25%;
    right: -8%;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.08), transparent);
    pointer-events: none;
  }

  .section-dark > .container,
  .section-dark-alt > .container,
  .section-light > .container {
    position: relative;
  }
}

/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.skill-category h3 {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  border: 1px solid rgba(0, 180, 216, 0.2);
}

/* --- Presentations Section --- */
.presentations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.presentation-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base);
  background: var(--color-dark-bg-alt);
  border: 1px solid var(--color-border);
}

.presentation-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow:
    0 6px 20px rgba(0, 180, 216, 0.15),
    0 0 15px rgba(0, 180, 216, 0.08);
}

.presentation-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.presentation-card:hover img {
  opacity: 1;
}

.presentation-card .card-info {
  padding: var(--space-md);
}

.presentation-card h4 {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.presentation-card p {
  font-size: 0.8rem;
  color: var(--color-text-light-muted);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-dark-bg-alt);
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--color-border);
}

.modal-image {
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.modal-body {
  padding: var(--space-xl);
}

.modal-body h3 {
  font-size: 1.3rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.modal-body p {
  color: var(--color-text-light-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
}

.modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--color-text-light-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

/* --- Testimonials --- */
.testimonials {
  text-align: center;
}

.testimonial-slider {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  min-height: 200px;
}

.testimonial {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial.active {
  display: block;
}

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

.testimonial blockquote {
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial blockquote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 0.1em;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-text-light);
}

.testimonial-author span {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-light-muted);
  margin-top: var(--space-xs);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--color-accent);
}

/* --- Contact Section --- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-text h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.contact-text p {
  color: var(--color-text-dark-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.contact-social {
  display: flex;
  gap: var(--space-md);
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-dark-muted);
  transition: all var(--transition-base);
}

.contact-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-dark);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aab;
}

.form-status {
  font-size: 0.9rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* --- Footer --- */
.footer {
  background: var(--color-dark-bg);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-social a {
  color: var(--color-text-light-muted);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-accent);
}

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

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

.back-to-top {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--color-text-light-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--color-accent);
}

/* --- Scroll Reveal Animation --- */
/* Only hide elements when JS has loaded and enabled reveals */
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 25, 47, 0.98);
    padding: var(--space-lg);
    gap: var(--space-md);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .section-angled,
  .section-angled-first,
  .section-angled-last {
    clip-path: none;
    margin: 0;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-visual {
    min-height: 200px;
    order: -1;
  }

  .hero-circuit {
    max-width: 250px;
  }

  .nav-ctas {
    display: none;
  }

  .nav-links.open ~ .nav-ctas-mobile {
    display: flex;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .service-card {
    padding: var(--space-xl);
  }

  .presentations-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-dot {
    left: -23px;
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .hero-slide h1 {
    font-size: 1.5rem;
  }

  .hero-visual {
    min-height: 150px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

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

  .modal {
    margin: var(--space-md);
  }
}

/* --- Print Styles (for resume) --- */
@media print {
  .nav,
  .hero,
  .footer,
  .back-to-top,
  .btn,
  .contact-form,
  .modal-overlay,
  .no-print {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  .section {
    padding: 0.5rem 0;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}
