/* ═══════════════ HERO SECTION ═══════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes blobAni {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  50%       { border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%; }
}

.hero-section {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 6rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

/* ── Text side ── */
.hero-text {
  flex: 1;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  text-align: left;
}

.hero-greeting {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  transition: color 0.35s ease;
}

:is(.dark-mode) .hero-greeting {
  color: var(--primary-light);
}

.hero-name {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #1a3a3c;
  line-height: 1.1;
  margin: 0 0 0.3rem;
  transition: color 0.35s ease;
}

.hero-name-accent {
  color: var(--primary-color);
  transition: color 0.35s ease;
}

:is(.dark-mode) .hero-name {
  color: #e2f0f1;
}

:is(.dark-mode) .hero-name-accent {
  color: var(--primary-light);
}

.hero-role {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.2rem;
  transition: color 0.35s ease;
}

:is(.dark-mode) .hero-role {
  color: #99b8ba;
}

.hero-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #555;
  max-width: 480px;
  margin-bottom: 2rem;
  text-align: left;
  transition: color 0.35s ease;
}

:is(.dark-mode) .hero-bio {
  color: #b8d0d2;
}

/* ── CTA buttons ── */
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(69, 122, 126, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69, 122, 126, 0.4);
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(69, 122, 126, 0.08);
  transform: translateY(-2px);
}

:is(.dark-mode) .btn-outline {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

:is(.dark-mode) .btn-outline:hover {
  background: rgba(127, 204, 208, 0.08);
}

/* ── Avatar / image side ── */
.hero-image-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: scaleIn 0.9s ease forwards;
  animation-delay: 0.5s;
}

.hero-avatar-ring {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light), #a8e6e9);
  box-shadow: 0 16px 48px rgba(69, 122, 126, 0.22);
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-blob {
  position: absolute;
  inset: -18px;
  z-index: 1;
  background: rgba(69, 122, 126, 0.08);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: blobAni 6s ease-in-out infinite;
  pointer-events: none;
}

/* ── Responsive hero ── */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-bio {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-avatar-ring {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1.2rem;
  }

  .hero-avatar-ring {
    width: 160px;
    height: 160px;
  }
}

/* ── Bible Verse under avatar ── */
@keyframes floatAni {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 28px rgba(69, 122, 126, 0.12); }
  50%      { box-shadow: 0 8px 36px rgba(69, 122, 126, 0.35); }
}

.hero-verse {
  position: relative;
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(69, 122, 126, 0.35);
  text-align: center;
  max-width: 300px;
  z-index: 2;
  animation: floatAni 5s ease-in-out infinite, pulseGlow 3s ease-in-out infinite;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.verse-text {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.6;
  color: #1a3a3c;
  margin: 0 0 0.4rem;
  font-style: italic;
  transition: color 0.35s ease;
}

.verse-ref {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  letter-spacing: 0.5px;
  transition: color 0.35s ease;
}

:is(.dark-mode) .hero-verse {
  background: rgba(12, 22, 25, 0.95);
  backdrop-filter: blur(8px);
  border-color: rgba(127, 204, 208, 0.3);
  animation: floatAni 5s ease-in-out infinite, pulseGlowDark 3s ease-in-out infinite;
}

:is(.dark-mode) .verse-text {
  color: #e2f0f1;
}

:is(.dark-mode) .verse-ref {
  color: var(--primary-light);
}

@keyframes pulseGlowDark {
  0%, 100% { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4); }
  50%      { box-shadow: 0 8px 36px rgba(127, 204, 208, 0.25); }
}

/* ── Data Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(672px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 4rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(69, 122, 126, 0.12);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 784px;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease,
              background-color 0.35s ease,
              border-color 0.35s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(69, 122, 126, 0.18);
}

:is(.dark-mode) .service-card {
  background: rgba(20, 25, 25, 0.75);
  border-color: rgba(127, 204, 208, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

:is(.dark-mode) .service-card:hover {
  box-shadow: 0 20px 40px rgba(127, 204, 208, 0.15);
  border-color: rgba(127, 204, 208, 0.25);
}

.service-icon {
  width: calc(100% - 2rem);
  aspect-ratio: 600 / 380;
  margin: 1rem auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #1a3a3c;
  transition: transform 0.3s ease;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-8px);
}

.service-card:hover .service-icon img {
  transform: scale(1.04);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--primary-color, #457a7e);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
  transition: color 0.35s ease;
}

.service-card p {
  font-size: 0.92rem;
  color: #5a7a7e;
  line-height: 1.5;
  margin: 0;
}

:is(.dark-mode) .service-card h3 {
  color: var(--primary-light);
}

:is(.dark-mode) .service-card p {
  color: #9ab0b3;
}

/* Hover effect on text colors */
.service-card:hover h3,
.service-card:hover p {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 1.75rem 0 3rem;
    width: 100%;
  }

  .service-card {
    min-width: 0;
    max-width: none;
    padding: 1.25rem;
    width: 100%;
  }

  .service-icon {
    width: 100%;
    margin: 0.25rem auto 1rem;
  }

  .service-card h3,
  .service-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 1rem;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }
}