/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(135deg, #1E3A5F 0%, #1a4a5e 30%, #175954 60%, #1f7a60 100%);
}

.cta-gradient {
  background: linear-gradient(135deg, #1E3A5F 0%, #175954 50%, #1f7a60 100%);
}

/* ── Hero Blobs ── */
.hero-blob {
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-1 {
  animation-delay: 0s;
}

.hero-blob-2 {
  animation-delay: -3s;
}

.hero-blob-3 {
  animation-delay: -5s;
}

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

/* ── Scroll Arrow ── */
.scroll-arrow {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ── Navbar ── */
.nav-text {
  color: #1E3A5F;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7DDFC7;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#navbar.scrolled .nav-text {
  color: #1E3A5F;
}

#navbar.scrolled .nav-link {
  color: #1E3A5F;
}

/* ── Buttons ── */
.btn-primary {
  background: #7DDFC7;
  color: #1E3A5F;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: 2px solid #7DDFC7;
}

.btn-primary:hover {
  background: #5dd4b5;
  border-color: #5dd4b5;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(125, 223, 199, 0.35);
}

.btn-secondary {
  background: transparent;
  color: #1E3A5F;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: 2px solid #1E3A5F;
}

.btn-secondary:hover {
  background: #1E3A5F;
  color: #f0f4f8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.25);
}

/* Hero buttons override */
#hero .btn-primary {
  background: #7DDFC7;
  color: #1E3A5F;
  border-color: #7DDFC7;
}

#hero .btn-primary:hover {
  background: #5dd4b5;
  border-color: #5dd4b5;
}

#hero .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #f0f4f8;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

#hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: #f0f4f8;
}

/* CTA section buttons */
.cta-section .btn-primary {
  background: #7DDFC7;
  color: #1E3A5F;
  border-color: #7DDFC7;
}

.cta-section .btn-primary:hover {
  background: #5dd4b5;
  border-color: #5dd4b5;
}

.cta-section .btn-secondary {
  background: transparent;
  color: #f0f4f8;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f0f4f8;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ── Feature Cards ── */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.08);
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Default state for reduced motion / no-JS */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile Menu ── */
.mobile-link {
  display: block;
  border-bottom: 1px solid #e8f5ec;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ── Menu List Items ── */
#menu ul li:hover {
  background: rgba(125, 223, 199, 0.05);
  border-radius: 8px;
  padding-left: 4px;
  margin-left: -4px;
  transition: all 0.2s ease;
}

/* ── Image Hover ── */
.rounded-2xl.overflow-hidden {
  overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-blob {
    display: none;
  }

  #about .relative > div:last-child {
    display: none;
  }
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #7DDFC7;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Selection ── */
::selection {
  background: #7DDFC7;
  color: #1E3A5F;
}
