@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=DM+Sans:wght@300;400;500;700&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  --navy: #0B2545;
  --teal: #0D8F78;
  --sage: #37C9A8;
  --amber: #F5A623;
  --sand: #EEF6FF;
  --cream: #F8FBFF;
  --water: #134074;
  --text: #0B1F35;
  --muted: #4A6FA5;
  --white: #ffffff;
  --card-shadow: 0 4px 20px rgba(11, 37, 69, 0.06);
  --hover-shadow: 0 10px 30px rgba(11, 37, 69, 0.12);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--teal);
  transition: var(--transition);
}
a:hover {
  color: var(--sage);
}

.section-padding {
  padding: 90px 0;
  position: relative;
}

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

.title-underline {
  width: 60px;
  height: 2px;
  background: var(--teal);
  margin: 15px auto 30px;
}

.title-underline.left {
  margin: 15px 0 25px;
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== GLASSMORPHIC NAVBAR ===== */
#modern-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 5vw;
  height: 90px;
  background: rgba(248, 251, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
  transition: var(--transition);
  overflow: visible;
}

#modern-header.scrolled {
  background: rgba(248, 251, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(11, 37, 69, 0.04);
  box-shadow: 0 8px 32px rgba(11, 37, 69, 0.05);
  padding: 2px 5vw;
  height: 78px;
}

.nav-brand-img {
  height: 82px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

#modern-header:not(.scrolled) .nav-brand-img {
  transform: scale(1.15) translateY(0);
}

#modern-header.scrolled .nav-brand-img {
  height: 72px;
  transform: scale(1.1) translateY(0);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu li.active a {
  color: var(--navy);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu li.active a::after {
  width: 80%;
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

/* ===== HERO ===== */
.modern-intro-header {
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.modern-intro-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.55) 0%, rgba(19, 64, 116, 0.25) 100%);
  z-index: 1;
}

.modern-intro-header .container {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
}

.modern-intro-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
  text-shadow: 0 4px 10px rgba(11, 37, 69, 0.35);
  margin-bottom: 10px;
}

/* ===== FEATURES GRID (What Makes Us Different) ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  border: 1px solid rgba(11, 37, 69, 0.04);
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.04);
  transition: var(--transition);
}

.feature-item:hover {
  box-shadow: var(--card-shadow);
  border-color: rgba(13, 143, 120, 0.12);
  transform: translateY(-2px);
}

.feature-item .fi-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: var(--transition);
}

/* Icon color variants */
.fi-fish { background: linear-gradient(135deg, #0D8F78, #37C9A8); color: white; }
.fi-dna { background: linear-gradient(135deg, #7C3AED, #A78BFA); color: white; }
.fi-flask { background: linear-gradient(135deg, #2563EB, #60A5FA); color: white; }
.fi-drop { background: linear-gradient(135deg, #0EA5E9, #38BDF8); color: white; }
.fi-globe { background: linear-gradient(135deg, #F59E0B, #FBBF24); color: white; }
.fi-shield { background: linear-gradient(135deg, #10B981, #34D399); color: white; }
.fi-leaf { background: linear-gradient(135deg, #059669, #6EE7B7); color: white; }

.feature-item:hover .fi-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-item.full-width {
  grid-column: 1 / -1;
  justify-content: center;
}

/* ===== PREMIUM CARDS ===== */
.modern-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.modern-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 38px 30px 32px;
  border: 1px solid rgba(11, 37, 69, 0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  opacity: 0;
  transition: var(--transition);
}

.modern-card:hover::before {
  opacity: 1;
}

.modern-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(13, 143, 120, 0.12);
}

.modern-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
  transition: var(--transition);
}

/* Card icon color variants */
.ci-fish { background: linear-gradient(135deg, #0D8F78, #37C9A8); color: white; }
.ci-dna { background: linear-gradient(135deg, #7C3AED, #A78BFA); color: white; }
.ci-egg { background: linear-gradient(135deg, #F97316, #FB923C); color: white; }
.ci-flower { background: linear-gradient(135deg, #EC4899, #F472B6); color: white; }

.modern-card:hover .modern-card-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.modern-card h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
  font-weight: 400;
}

.modern-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== MISSION / VISION CARDS ===== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.mv-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.2);
}

.mv-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--teal);
}

.mv-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
  transition: var(--transition);
}

/* MV icon color variants */
.mv-bullseye { background: linear-gradient(135deg, #DC2626, #F87171); color: white; }
.mv-eye { background: linear-gradient(135deg, #7C3AED, #C4B5FD); color: white; }

.mv-card:hover .mv-icon {
  transform: scale(1.1);
}

.mv-card h3 {
  color: var(--sage);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}

.mv-card p {
  color: var(--sand);
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0;
}

/* ===== FOOTER SOCIAL ===== */
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(238, 246, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(238, 246, 255, 0.1);
}
.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 6px 16px rgba(13, 143, 120, 0.3);
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  z-index: 9999;
  width: 0;
  transition: width 0.1s linear;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 10px;
  border: 2px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sage);
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--sage));
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(13, 143, 120, 0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
#back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(13, 143, 120, 0.45);
}

/* ===== HERO ANIMATED OVERLAY ===== */
.modern-intro-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.15) 0%, transparent 50%, rgba(13, 143, 120, 0.08) 100%);
  z-index: 1;
  animation: heroShimmer 8s ease-in-out infinite alternate;
}
@keyframes heroShimmer {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ===== SWIMMING FISH ===== */
.fish-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.fish {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  pointer-events: none;
}
.fish-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(11, 37, 69, 0.08));
}

/* tail wag */
@keyframes tailWag {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(6deg); }
  75% { transform: rotate(-6deg); }
}
.tail-group {
  animation: tailWag 0.5s ease-in-out infinite;
  transform-origin: 80px 30px;
}

/* Fish 1 — large, teal, rightward, slow, top */
.fish-1 {
  width: 90px;
  top: 10%;
  animation-name: swimRight1;
  animation-duration: 28s;
  animation-delay: 0s;
  opacity: 0.45;
  color: #0D8F78;
}

/* Fish 3 — large, indigo, rightward, very slow, mid */
.fish-3 {
  width: 72px;
  top: 55%;
  animation-name: swimRight3;
  animation-duration: 35s;
  animation-delay: 0s;
  opacity: 0.35;
  color: #134074;
}

/* Fish 5 — medium, teal, rightward, medium, bottom */
.fish-5 {
  width: 60px;
  top: 85%;
  animation-name: swimRight5;
  animation-duration: 24s;
  animation-delay: 5s;
  opacity: 0.3;
  color: #2a9d8f;
}

/* reverse (leftward) fish — flip SVG horizontally */
.fish.reverse .fish-svg {
  transform: scaleX(-1);
}

/* ===== FISH KEYFRAMES ===== */
@keyframes swimRight1 {
  0%   { transform: translate(-180px, 0) rotate(0deg); }
  20%  { transform: translate(20vw, -22px) rotate(-2deg); }
  40%  { transform: translate(45vw, 8px) rotate(1.5deg); }
  60%  { transform: translate(65vw, -18px) rotate(-2.5deg); }
  80%  { transform: translate(85vw, 12px) rotate(2deg); }
  100% { transform: translate(calc(100vw + 180px), 0) rotate(0deg); }
}
@keyframes swimRight3 {
  0%   { transform: translate(-200px, 8px) rotate(1deg); }
  25%  { transform: translate(25vw, -28px) rotate(-3deg); }
  50%  { transform: translate(55vw, 18px) rotate(2deg); }
  75%  { transform: translate(80vw, -12px) rotate(-1.5deg); }
  100% { transform: translate(calc(100vw + 200px), 5px) rotate(0deg); }
}
@keyframes swimRight5 {
  0%   { transform: translate(-180px, 0) rotate(0deg); }
  20%  { transform: translate(20vw, 20px) rotate(2deg); }
  40%  { transform: translate(45vw, -8px) rotate(-1.5deg); }
  60%  { transform: translate(65vw, 18px) rotate(2.5deg); }
  80%  { transform: translate(85vw, -12px) rotate(-2deg); }
  100% { transform: translate(calc(100vw + 180px), 0) rotate(0deg); }
}

/* ===== FOOTER ===== */
#modern-footer {
  background: var(--navy);
  color: var(--sand);
  padding: 70px 5vw 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(238, 246, 255, 0.1);
}

.footer-brand img {
  height: 96px;
  background: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: contain;
}

.footer-brand p {
  color: rgba(238, 246, 255, 0.6);
  max-width: 350px;
  line-height: 1.7;
}

.footer-title {
  color: var(--sage);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(238, 246, 255, 0.65);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(238, 246, 255, 0.7);
}

.footer-contact-list i {
  color: var(--sage);
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(238, 246, 255, 0.4);
  font-size: 0.8rem;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  #modern-header {
    padding: 5px 5vw;
  }
  .nav-toggle-btn {
    display: block;
  }
  .nav-menu {
    display: none !important;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    flex-direction: column !important;
    background: rgba(248, 251, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(11, 37, 69, 0.08);
    box-shadow: 0 8px 32px rgba(11, 37, 69, 0.1);
    padding: 15px 5vw 20px;
    gap: 0 !important;
    z-index: 999;
  }
  .nav-menu[style*="flex"] {
    display: flex !important;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu a {
    display: block;
    padding: 14px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(11, 37, 69, 0.05);
  }
  .nav-menu li:last-child a {
    border-bottom: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-item.full-width {
    grid-column: 1;
  }
  .mv-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
