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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #F5F1EB;
  color: #343F4B;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* ===== Background: Corner Blobs ===== */
.blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blobs__shape {
  position: absolute;
}

/* Top-left: dusty sage, spilling into card area */
.blobs__shape--tl {
  width: 55vw;
  height: 65vh;
  top: -10vh;
  left: -8vw;
  background: #7A9E8C;
  opacity: 0.45;
  filter: blur(90px);
  border-radius: 70% 30% 60% 40% / 50% 60% 40% 50%;
}

/* Bottom-right: smoky slate, spilling into card area */
.blobs__shape--br {
  width: 60vw;
  height: 65vh;
  bottom: -10vh;
  right: -8vw;
  background: #6B7F94;
  opacity: 0.40;
  filter: blur(90px);
  border-radius: 40% 60% 35% 65% / 60% 40% 65% 35%;
}

/* Center: connecting glow */
.blobs__shape--center {
  width: 35vw;
  height: 35vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #A0B5A8;
  opacity: 0.25;
  filter: blur(120px);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .blobs__shape--tl {
    width: 70vw; height: 40vh; filter: blur(80px);
  }
  .blobs__shape--br {
    width: 80vw; height: 45vh; filter: blur(90px);
  }
  .blobs__shape--center {
    width: 50vw; height: 50vw; filter: blur(120px);
  }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2.5rem;
  background-color: rgba(245, 241, 235, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.header__description {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  transition: opacity 0.3s ease;
}

.header__about-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 7.5rem;
  padding: 0.55rem 2.25rem;
  border: 1.5px solid #343F4B;
  border-radius: 100px;
  background: transparent;
  color: #343F4B;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
}

.header__about-btn:hover {
  background-color: #343F4B;
  color: #F5F1EB;
}

/* Active state when overlay is open */
.header__about-btn--active {
  background-color: #343F4B;
  color: #F5F1EB;
}

/* ===== About Overlay ===== */
.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 2.5rem 3rem;
  background-color: rgba(245, 241, 235, 0.97);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.about-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.about-overlay__content {
  max-width: 700px;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: #343F4B;
}

.about-overlay__content p {
  margin-bottom: 1.5em;
}

.about-overlay__content p:last-child {
  margin-bottom: 0;
}

/* ===== Cards ===== */
.cards {
  flex: 1;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3vw;
  padding: 6rem 2.5rem 3rem;
}

.card {
  /* Circle */
  width: min(28vh, 280px);
  height: min(28vh, 280px);
  border-radius: 50%;
  flex-shrink: 0;

  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.08),
    0 2px 80px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-decoration: none;
  color: #343F4B;

  /* Animation */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease,
              background 0.4s ease,
              border-color 0.4s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05) translateY(-6px);
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
}

.card__text {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 300;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  .card {
    background: rgba(240, 235, 225, 0.92);
  }
  .header {
    background-color: rgba(245, 241, 235, 0.95);
  }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.5rem 2.5rem;
}

.footer__email {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__email:hover {
  color: #343F4B;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .header__description {
    display: none;
  }

  .cards {
    flex-direction: column;
    flex-wrap: nowrap;
    flex: 0;
    gap: 1.25rem;
    padding: 5rem 1rem 1.5rem;
    align-items: center;
    justify-content: flex-start;
  }

  .card {
    width: 160px;
    height: 160px;
    padding: 1.25rem;
  }

  .card__text {
    font-size: 1rem;
  }

  .about-overlay {
    padding: 5rem 1.25rem 2rem;
  }

  .about-overlay__content {
    font-size: 1rem;
  }

  .footer {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .header__name {
    font-size: 1rem;
  }

  .header__about-btn {
    font-size: 0.8rem;
    padding: 0.45rem 1.5rem;
  }

  .card {
    width: 140px;
    height: 140px;
    padding: 1rem;
  }

  .card__text {
    font-size: 0.9rem;
  }
}
