/*
 * Modern Personal Website Stylesheet
 * Clean, minimal design with teal/slate palette
 */

/* ============================================
   1. Design Tokens (CSS Custom Properties)
   ============================================ */
:root {
  --color-primary: #0d9488;
  --color-primary-light: #14b8a6;
  --color-primary-dark: #0f766e;
  --color-accent: #5eead4;
  --color-accent-soft: rgba(94, 234, 212, 0.15);

  --color-dark: #0f172a;
  --color-dark-secondary: #1e293b;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-text-lighter: #94a3b8;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1140px;
  --max-width-narrow: 720px;
  --nav-height: 72px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

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

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

ul, ol {
  padding-left: 1.5rem;
}

::selection {
  background: var(--color-accent);
  color: var(--color-dark);
}


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

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 100px 0;
}

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

.section--dark {
  background-color: var(--color-bg-dark);
  color: #fff;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__title {
  margin-bottom: 12px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: 16px auto 0;
  border-radius: 2px;
}

.section__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

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


/* ============================================
   4. Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

/* Default: solid dark nav (for inner pages) */
.nav {
  background-color: var(--color-dark-secondary);
  box-shadow: var(--shadow-md);
}

/* Homepage: transparent nav */
.page-home .nav {
  background-color: transparent;
  box-shadow: none;
}

/* Homepage: scrolled state */
.page-home .nav.nav--scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}

/* Inner pages always look scrolled */
.page-inner .nav {
  background-color: rgba(15, 23, 42, 0.97);
}

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

.nav__brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent) !important;
  letter-spacing: -0.5px;
  transition: color var(--transition-fast);
}

.nav__brand:hover {
  color: #fff !important;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.nav__links a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-lighter);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav__links a:hover,
.nav__links a.active {
  color: #fff;
  background-color: rgba(255,255,255,0.08);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--color-dark-secondary);
    padding: 100px 32px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 1rem;
    padding: 12px 16px;
  }
}


/* ============================================
   5. Hero Sections
   ============================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.6) 0%, rgba(15,23,42,0.85) 100%);
  z-index: 1;
}

/* Full-height hero for homepage */
.hero--full {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
}

/* Shorter hero for subpages */
.hero--compact {
  min-height: 40vh;
  padding: calc(var(--nav-height) + 60px) 24px 60px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__lead {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 8px;
  color: #fff;
}

.hero--compact .hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}


/* ============================================
   6. Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13,148,136,0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.btn--dark {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--dark:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,148,136,0.3);
}


/* ============================================
   7. Service / Why Cards
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  text-align: center;
  padding: 40px 32px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-size: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(13,148,136,0.25);
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--color-dark);
}

.card__text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}


/* ============================================
   8. Timeline
   ============================================ */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

.timeline__item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 80px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--color-accent);
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(13,148,136,0.2);
}

.timeline__marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline__marker--text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.timeline__text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline__item {
    width: 50%;
    padding-left: 0;
    padding-right: 48px;
    text-align: right;
  }

  .timeline__marker {
    left: auto;
    right: -32px;
    width: 80px;
    height: 80px;
  }

  .timeline__item:nth-child(even) {
    margin-left: 50%;
    padding-left: 48px;
    padding-right: 0;
    text-align: left;
  }

  .timeline__item:nth-child(even) .timeline__marker {
    left: -40px;
    right: auto;
  }
}

@media (min-width: 1024px) {
  .timeline__marker {
    width: 100px;
    height: 100px;
    right: -50px;
  }

  .timeline__item:nth-child(even) .timeline__marker {
    left: -50px;
  }

  .timeline__item {
    padding-right: 64px;
    margin-bottom: 64px;
  }

  .timeline__item:nth-child(even) {
    padding-left: 64px;
  }
}


/* ============================================
   9. Team / About Me
   ============================================ */
.profile {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.profile__photo {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 24px;
  border: 4px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile__photo:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.profile__name {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.profile__role {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.profile__location {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-lighter);
  font-style: italic;
  margin-bottom: 16px;
}

.profile__details {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.profile__details li {
  padding: 4px 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

.profile__bio {
  font-style: italic;
  color: var(--color-text-light);
  margin-top: 16px;
  font-size: 0.95rem;
}


/* ============================================
   10. Social Buttons
   ============================================ */
.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--color-dark-secondary);
  color: #fff;
  font-size: 18px;
  transition: all var(--transition);
}

.social a:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(13,148,136,0.35);
}


/* ============================================
   11. Contact Form
   ============================================ */
.contact {
  background-color: var(--color-dark);
  background-image: url('../img/map-image.png');
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.contact .section__title {
  color: #fff;
}

.contact .section__subtitle {
  color: var(--color-text-lighter);
}

.contact .section__subtitle a {
  color: var(--color-accent);
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-lighter);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

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

.contact-form__submit {
  text-align: center;
  margin-top: 8px;
}

.contact-form__message {
  text-align: center;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  display: none;
}

.contact-form__message--success {
  background: rgba(94,234,212,0.15);
  color: var(--color-accent);
}

.contact-form__message--error {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
}


/* ============================================
   12. Blog Listing
   ============================================ */
.posts {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.post-card {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition-fast);
  color: inherit;
  text-decoration: none;
}

.post-card:first-child {
  padding-top: 0;
}

.post-card:hover {
  color: inherit;
}

.post-card:hover .post-card__title {
  color: var(--color-primary);
}

.post-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

.post-card__excerpt {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-text-lighter);
}

.post-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-accent-soft);
  border-radius: var(--radius-full);
  text-transform: lowercase;
}


/* ============================================
   13. Blog Post / Article
   ============================================ */
.article {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.article h1 { font-size: 2rem; margin: 2rem 0 1rem; }
.article h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.article h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }
.article h4 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }

.article p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.article ul, .article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.article li {
  margin-bottom: 0.4rem;
}

.article blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 12px 24px;
  margin: 1.5rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text-light);
  font-style: italic;
}

.article code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary-dark);
}

.article pre {
  background: var(--color-dark);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.article a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--color-text-lighter);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.article-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}


/* ============================================
   14. About Page Content
   ============================================ */
.about-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}


/* ============================================
   15. Contact Page Content
   ============================================ */
.contact-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.contact-page p {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-page .form-group input,
.contact-page .form-group textarea {
  border: 2px solid var(--color-border);
}

.contact-page .form-group input:focus,
.contact-page .form-group textarea:focus {
  border-color: var(--color-primary);
}


/* ============================================
   16. Footer
   ============================================ */
.footer {
  padding: 40px 0;
  text-align: center;
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-dark-secondary);
  color: #fff;
  font-size: 16px;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-lighter);
}


/* ============================================
   17. 404 Page
   ============================================ */
.error-page {
  min-height: calc(100vh - var(--nav-height) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 40px;
}

.error-page__code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.15;
  margin-bottom: -20px;
}

.error-page__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-page__text {
  color: var(--color-text-light);
  margin-bottom: 24px;
}


/* ============================================
   18. Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================
   19. Responsive
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .hero--full {
    min-height: 85vh;
  }

  .hero--compact {
    min-height: 30vh;
  }

  .profile__photo {
    width: 160px;
    height: 160px;
  }

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

  .timeline__item {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    letter-spacing: -1px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .card {
    padding: 32px 24px;
  }
}


/* ============================================
   20. Utility
   ============================================ */
.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-muted {
  color: var(--color-text-light);
}

.text-primary {
  color: var(--color-primary);
}

.mb-0 { margin-bottom: 0; }
