/* =====================================================
   IB Easy 7 — Main Stylesheet
   ===================================================== */

/* --- CSS Variables --- */
:root {
  --deep-blue:   #0C447C;
  --sky-blue:    #85B7EB;
  --light-blue:  #B5D4F4;
  --pearl-white: #E6F1FB;
  --mint-green:  #1D9E75;
  --mint-dark:   #178a64;
  --white:       #ffffff;
  --text-dark:   #1a2b3c;
  --text-mid:    #4a6070;
  --text-light:  #7a95a8;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(12, 68, 124, 0.10);
  --shadow-lg: 0 8px 40px rgba(12, 68, 124, 0.18);
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-sans); color: var(--text-dark); background: var(--white); line-height: 1.65; }
ul    { list-style: none; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; display: block; }

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  line-height: 1.4;
}
.btn-primary {
  background: var(--mint-green);
  color: var(--white);
  border-color: var(--mint-green);
}
.btn-primary:hover {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29, 158, 117, 0.38);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--deep-blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--pearl-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* =====================================================
   SECTION SHARED
   ===================================================== */
.section-tag {
  display: inline-block;
  background: var(--pearl-white);
  color: var(--deep-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--deep-blue);
  text-align: center;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.section-sub {
  text-align: center;
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 0.5rem; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-blue);
  padding: 0.9rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep-blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-jelly { font-size: 1.5rem; line-height: 1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a:not(.btn) {
  color: var(--text-mid);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:not(.btn):hover { color: var(--deep-blue); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep-blue);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--deep-blue) 0%, #155999 55%, #1a6bbf 100%);
  color: var(--white);
  overflow: hidden;
  padding: 5rem 0 6.5rem;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.hero-text {
  flex: 1;
  max-width: 560px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(133, 183, 235, 0.2);
  border: 1px solid rgba(133, 183, 235, 0.45);
  color: var(--sky-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.18;
  margin-bottom: 1.25rem;
}
.hero-text h1 .accent { color: var(--sky-blue); }
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2.25rem;
  line-height: 1.75;
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Visual / Jellyfish --- */
.hero-visual {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.jellyfish-wrap {
  animation: jellyFloat 3.8s ease-in-out infinite;
  filter: drop-shadow(0 14px 42px rgba(133, 183, 235, 0.55));
}
@keyframes jellyFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-20px); }
}
.jellyfish-svg { width: 250px; height: auto; }

/* Tentacle seaweed sway — each <g> rotates around its own top */
.tentacle {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: tentacleSway ease-in-out infinite;
}
@keyframes tentacleSway {
  0%, 100% { transform: rotate(0deg); }
  30%       { transform: rotate(7deg); }
  70%       { transform: rotate(-7deg); }
}
.t1 { animation-duration: 2.8s; animation-delay:  0.0s; }
.t2 { animation-duration: 3.3s; animation-delay: -0.8s; }
.t3 { animation-duration: 2.9s; animation-delay: -1.5s; }
.t4 { animation-duration: 3.7s; animation-delay: -0.3s; }
.t5 { animation-duration: 3.1s; animation-delay: -1.1s; }
.t6 { animation-duration: 2.6s; animation-delay: -0.5s; }
.t7 { animation-duration: 3.4s; animation-delay: -1.8s; }

/* --- Bubbles --- */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0;   }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) scale(0.7); opacity: 0; }
}

/* --- Wave divider (animated) --- */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  z-index: 3;
  overflow: hidden;
  height: 96px;
}
/* Each track is 200% wide and contains 2 wave cycles → slides -50% = seamless loop */
.wave-track {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
}
.wave-track svg { width: 100%; height: 100%; display: block; }
.wave-track-1 { animation: waveSlide1 13s linear infinite; }
.wave-track-2 { animation: waveSlide2 19s linear infinite; }
@keyframes waveSlide1 {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes waveSlide2 {
  0%   { transform: translateX(-25%); }
  100% { transform: translateX(25%); }
}

/* =====================================================
   SERVICES
   ===================================================== */
.services {
  background: var(--pearl-white);
  padding: 5.5rem 0 5rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--sky-blue);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mint-green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-top-color: var(--mint-green); }
.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--pearl-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.1rem;
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--deep-blue);
  margin-bottom: 0.6rem;
}
.card p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.65; }
.card-badge {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-green);
  background: rgba(29, 158, 117, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-it-works {
  padding: 5.5rem 0 5rem;
  background: var(--white);
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}
/* horizontal line behind steps */
.steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(50% - 280px);
  right: calc(50% - 280px);
  height: 2px;
  background: linear-gradient(to right, var(--sky-blue), var(--light-blue), var(--sky-blue));
  z-index: 0;
}
.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--deep-blue);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 18px rgba(12, 68, 124, 0.3);
  position: relative;
  transition: var(--transition);
}
.step:hover .step-number {
  background: var(--mint-green);
  box-shadow: 0 6px 22px rgba(29, 158, 117, 0.4);
  transform: scale(1.06);
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--deep-blue);
  margin-bottom: 0.55rem;
}
.step p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.65; }

/* =====================================================
   WHY CHOOSE US
   ===================================================== */
.why-us {
  padding: 5.5rem 0 5rem;
  background: linear-gradient(135deg, var(--deep-blue) 0%, #1056a0 100%);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(133, 183, 235, 0.08);
}
.why-us::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(29, 158, 117, 0.07);
}
.why-us .section-tag   { background: rgba(255,255,255,0.1); color: var(--sky-blue); border: 1px solid rgba(133,183,235,0.35); }
.why-us .section-title { color: var(--white); }
.why-us .section-sub   { color: rgba(255,255,255,0.75); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  border-color: rgba(133, 183, 235, 0.4);
}
.stat-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--sky-blue);
  line-height: 1;
  margin-bottom: 0.45rem;
}
.stat-label { font-size: 0.92rem; color: rgba(255,255,255,0.8); font-weight: 500; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  padding: 5.5rem 0;
  background: var(--pearl-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(133,183,235,0.2) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--deep-blue);
  margin-bottom: 0.75rem;
}
.cta-section p { color: var(--text-mid); margin-bottom: 2.25rem; font-size: 1.05rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
}
.footer-main {
  padding: 4rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 0.85rem; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0.65;
  margin-bottom: 1.25rem;
}
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-link:hover { background: var(--mint-green); border-color: var(--mint-green); }
.social-link svg { width: 16px; height: 16px; fill: var(--white); }
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-links-col li { margin-bottom: 0.55rem; }
.footer-links-col a {
  font-size: 0.9rem;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.footer-links-col a:hover { opacity: 1; color: var(--sky-blue); }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}
.contact-list li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  fill: var(--sky-blue);
  margin-top: 2px;
}
.contact-list span { opacity: 0.75; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.35rem 0;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.45;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 820px) {
  .steps::before { display: none; }
  .steps { flex-direction: column; align-items: center; gap: 0; }
  .step { max-width: 400px; width: 100%; padding: 1.25rem 0; }
  .step:not(:last-child)::after {
    content: '';
    display: block;
    width: 2px;
    height: 36px;
    background: var(--light-blue);
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.9rem);
    left: -1.5rem; right: -1.5rem;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--light-blue);
    gap: 0.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.5rem 0; border-bottom: 1px solid var(--pearl-white); }
  .nav-links .btn { text-align: center; margin-top: 0.5rem; }

  .hero { padding: 4rem 0 5.5rem; min-height: unset; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; }
  .hero-visual { flex: 0 0 auto; }
  .jellyfish-svg { width: 170px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; text-align: center; }
  .stat-number { font-size: 2.25rem; }
}
