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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #F9F9F7;
  color: #111111;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========== UTILITY ========== */
.section {
  padding: 100px 24px;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-heading-wrapper {
  margin-bottom: 56px;
}

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

/* Red underline for section headings */
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #BF2B2B;
  border-radius: 1.5px;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: padding 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  background: rgba(249, 249, 247, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}

.nav.scrolled .nav-container {
  padding: 10px 24px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111111;
}

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

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #555555;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #BF2B2B;
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111111;
}

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

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-content {
  max-width: 720px;
}

.hero-name {
  margin-bottom: 12px;
}

.hero-name-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #111111;
  display: inline-block;
  position: relative;
}

/* Animated underline on the name */
.underline-animate::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #BF2B2B;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineIn 0.8s 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes underlineIn {
  to {
    transform: scaleX(1);
  }
}

.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: #444444;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-contact a {
  color: #BF2B2B;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hero-contact a:hover {
  color: #8a1f1f;
}

.hero-badge {
  margin-bottom: 36px;
}

.pill-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 18px;
  border: 1.5px solid #D9D9D4;
  border-radius: 100px;
  color: #444444;
  background: transparent;
  transition: all 0.2s ease;
}

.pill-tag:hover {
  border-color: #BF2B2B;
  color: #BF2B2B;
}

.pill-red {
  background: #BF2B2B;
  color: #FFFFFF;
  border-color: #BF2B2B;
}

.pill-red:hover {
  background: #a02424;
  border-color: #a02424;
  color: #FFFFFF;
}

.btn-cta {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  background: #111111;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-cta:hover {
  background: #BF2B2B;
  transform: translateY(-1px);
}

/* ========== ABOUT ========== */
.about {
  padding-top: 80px;
}

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

.about-bio p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333333;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-item {
  padding: 24px;
  border: 1px solid #E5E5E0;
  border-radius: 6px;
  text-align: center;
  transition: border-color 0.25s ease;
}

.stat-item:hover {
  border-color: #BF2B2B;
}

.stat-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #BF2B2B;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.4;
}

/* ========== EXPERTISE ========== */
.expertise {
  background: #FFFFFF;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.expertise-card {
  padding: 32px;
  border: 1px solid #EBEBE5;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.expertise-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: #BF2B2B;
  border-radius: 50%;
  margin-bottom: 16px;
}

.expertise-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111111;
}

.expertise-card p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #555555;
}

/* ========== EXPERIENCE / TIMELINE ========== */
.experience {
  padding-top: 100px;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #D9D9D4;
}

.timeline-entry {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-marker {
  position: absolute;
  left: -37px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border: 2px solid #BF2B2B;
  border-radius: 50%;
}

.timeline-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111111;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555555;
}

/* ========== TOOLS ========== */
.tools {
  background: #FFFFFF;
}

.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tools-tags .pill-tag {
  cursor: default;
}

/* ========== REVIEWS / CAROUSEL ========== */
.reviews {
  padding-top: 100px;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid #D9D9D4;
  background: #FFFFFF;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #444444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  border-color: #BF2B2B;
  color: #BF2B2B;
  background: #FDF8F8;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0 16px 0;
  flex: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  padding: 28px 24px;
  border: 1px solid #E5E5E0;
  border-radius: 8px;
  background: #FFFFFF;
}

.carousel-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 14px;
  quotes: '\201C' '\201D';
}

.carousel-card blockquote::before {
  content: open-quote;
  font-family: 'Syne', serif;
  font-size: 2rem;
  line-height: 0;
  color: #BF2B2B;
  vertical-align: -0.3em;
  margin-right: 4px;
}

.carousel-card cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888888;
  font-style: normal;
}

/* ========== FOOTER ========== */
.footer {
  background: #111111;
  color: #CCCCCC;
  padding: 56px 24px 40px;
  text-align: center;
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.footer-contact a {
  color: #BF2B2B;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #D94A4A;
}

.footer-copy {
  font-size: 0.8rem;
  color: #777777;
}

/* ========== FADE-IN ON SCROLL ========== */
.fade-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .section {
    padding: 72px 20px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .nav-container {
    padding: 12px 16px;
  }

  .nav.scrolled .nav-container {
    padding: 8px 16px;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a {
    font-size: 0.7rem;
  }

  .section {
    padding: 56px 16px;
  }

  .section-heading {
    font-size: 1rem;
  }

  .hero-name-text {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

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

  .hero-contact {
    font-size: 0.85rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 16px 12px;
  }

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

  .expertise-card {
    padding: 24px;
  }

  .carousel-card {
    flex: 0 0 280px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-marker {
    left: -29px;
    width: 10px;
    height: 10px;
  }

  .footer {
    padding: 40px 16px 32px;
  }

  .btn-cta {
    padding: 12px 28px;
    font-size: 0.875rem;
  }
}
