/* e-KORAL modern reef theme */
:root {
  --deep-blue: #0b2d49;
  --reef-teal: #0e6e75;
  --sea-teal: #0fa3a5;
  --soft-teal: #55c0c2;
  --coral: #ff6f61;
  --soft-coral: #ff8678;
  --sand: #f7f7f7;
  --ink: #101316;
  --muted: #5f6b7a;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(130%) blur(8px); background: linear-gradient(180deg, rgba(10,46,74,0.75) 0%, rgba(10,46,74,0.55) 100%); border-bottom: 1px solid rgba(255,255,255,0.12); box-shadow: 0 6px 20px rgba(11,45,73,0.18); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0.5rem;
}
.brand { font-weight: 800; letter-spacing: 0.5px; color: var(--white); text-decoration: none; font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.logo { width: 40px; height: 40px; object-fit: contain; }
.nav-links { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 600; opacity: 0.9; }
.nav-links a:hover { opacity: 1; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--white); font-size: 1.25rem; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #08243c 0%, #0a2e4a 45%, #0b3d5f 80%, #0c4d73 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 134, 120, 0.18) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(85, 192, 194, 0.14) 0%, transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(255, 111, 97, 0.12) 0%, transparent 20%);
  pointer-events: none;
  animation: drift 24s ease-in-out infinite;
}
.hero-content { padding: 6rem 0 4rem 0; text-align: center; position: relative; z-index: 2; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: 1.2px; background: linear-gradient(90deg, #ffffff 0%, #e8fbfb 50%, #aef6f7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 1rem auto 2rem; max-width: 60ch; color: #e9f3ff; font-weight: 300; }
.cta { display: flex; gap: 0.75rem; justify-content: center; }

.hero-decoration::before,
.hero-decoration::after {
  content: "";
  position: absolute;
  border-radius: 50% 40% 60% 45% / 60% 45% 55% 40%;
  filter: blur(8px);
  animation: float 9s ease-in-out infinite;
  z-index: 1;
}
.hero-decoration { transform: translate(calc(var(--parallaxX, 0px) * 0.02), calc(var(--parallaxY, 0px) * 0.02)); will-change: transform; }
.hero-decoration::before {
  width: 240px; height: 240px; left: -40px; bottom: 40px;
  background: radial-gradient(80px 80px at 30% 30%, #ffd0c8 0%, var(--soft-coral) 35%, var(--coral) 100%);
  opacity: 0.35;
}
.hero-decoration::after {
  width: 320px; height: 320px; right: -60px; top: 50px;
  background: radial-gradient(100px 100px at 70% 60%, #aef6f7 0%, var(--soft-teal) 45%, var(--sea-teal) 100%);
  opacity: 0.25;
  animation-delay: 2s;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Coral illustrations */
.coral-scene {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  z-index: 1;
  pointer-events: none;
}

.coral-illustration {
  position: absolute;
  bottom: 0;
  will-change: transform;
}

/* Branching coral */
.coral-branching {
  left: 5%;
  width: 80px;
  height: 120px;
  background: linear-gradient(180deg, #ff9688 0%, #ff6f61 100%);
  clip-path: polygon(
    50% 0%, 55% 15%, 60% 15%, 62% 25%, 68% 25%, 70% 40%, 75% 40%, 77% 60%, 80% 100%,
    60% 100%, 62% 70%, 58% 70%, 60% 50%, 55% 50%, 52% 30%, 48% 30%, 45% 50%,
    40% 50%, 42% 70%, 38% 70%, 40% 100%, 20% 100%, 23% 60%, 25% 40%, 30% 40%,
    32% 25%, 38% 25%, 40% 15%, 45% 15%
  );
  animation: sway 4s ease-in-out infinite;
}

/* Massive coral */
.coral-massive {
  left: 18%;
  width: 100px;
  height: 90px;
  background: radial-gradient(ellipse at 50% 40%, #ffb3a8 0%, #ff8678 50%, #ff6f61 100%);
  border-radius: 50% 50% 45% 55% / 40% 40% 60% 60%;
  animation: pulse 6s ease-in-out infinite;
}

.coral-massive::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 15%;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.coral-massive::after {
  content: "";
  position: absolute;
  top: 30%;
  right: 20%;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

/* Submassive coral */
.coral-submassive {
  left: 35%;
  width: 110px;
  height: 85px;
  background: linear-gradient(180deg, #70d4d6 0%, #55c0c2 50%, #0fa3a5 100%);
  border-radius: 45% 55% 50% 50% / 35% 35% 65% 65%;
  clip-path: polygon(
    0% 40%, 8% 35%, 15% 38%, 22% 32%, 30% 35%, 38% 30%, 45% 33%, 52% 28%,
    60% 32%, 68% 28%, 75% 33%, 82% 30%, 90% 35%, 95% 38%, 100% 42%,
    100% 100%, 0% 100%
  );
  animation: pulse 5s ease-in-out infinite 1s;
}

/* Solitary coral */
.coral-solitary {
  right: 30%;
  width: 70px;
  height: 100px;
  background: linear-gradient(180deg, #ffc4bd 0%, #ffab9f 40%, #ff8678 100%);
  border-radius: 50% 50% 50% 50% / 20% 20% 40% 40%;
  animation: sway 5s ease-in-out infinite 0.5s;
}

.coral-solitary::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(255, 111, 97, 0.6) 0%, transparent 70%);
  border-radius: 50%;
}

/* Mushroom coral */
.coral-mushroom {
  right: 12%;
  width: 90px;
  height: 70px;
}

.coral-mushroom::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 35px;
  background: linear-gradient(180deg, #8dd6d8 0%, #70d4d6 100%);
  border-radius: 10px;
}

.coral-mushroom::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85px;
  height: 45px;
  background: radial-gradient(ellipse at 50% 60%, #70d4d6 0%, #55c0c2 50%, #0fa3a5 100%);
  border-radius: 50% 50% 45% 55% / 50% 50% 50% 50%;
  box-shadow: inset 0 -5px 10px rgba(15, 163, 165, 0.3);
}

/* Small decorative corals */
.coral-small {
  right: 5%;
  width: 50px;
  height: 65px;
  background: linear-gradient(180deg, #ffd4cf 0%, #ffc4bd 50%, #ffab9f 100%);
  clip-path: polygon(
    40% 0%, 45% 20%, 50% 20%, 52% 35%, 55% 35%, 58% 55%, 60% 100%,
    40% 100%, 42% 55%, 45% 35%, 48% 35%, 50% 20%, 55% 20%
  );
  animation: sway 3.5s ease-in-out infinite 1.5s;
}

@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.hero-wave { display: block; width: 100%; height: 160px; }
.wave { will-change: transform; animation: drift-waves 20s linear infinite; }
.wave.wave-2 { animation-duration: 28s; opacity: 0.6; }
.wave.wave-3 { animation-duration: 36s; opacity: 0.35; }
@keyframes drift-waves { 0% { transform: translateX(0); } 50% { transform: translateX(-24px); } 100% { transform: translateX(0); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 999px; padding: 0.75rem 1.25rem; font-weight: 700; text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, var(--soft-teal), var(--sea-teal)); color: var(--white); box-shadow: 0 12px 28px rgba(15,163,165,0.38); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { color: var(--white); border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px); }
.btn.outline { border: 2px solid var(--sea-teal); color: var(--sea-teal); background: transparent; }
.btn.outline:hover { background: rgba(15,163,165,0.08); }

/* Sections */
.section { padding: 4rem 0; position: relative; }
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(85, 192, 194, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(255, 134, 120, 0.03) 0%, transparent 25%);
  pointer-events: none;
}
.section-alt { background: var(--white); }
.section-header { text-align: center; }
.section-header h2 { margin: 0 0 0.5rem 0; font-size: clamp(1.75rem, 3.2vw, 2.25rem); }
.section-header p { margin: 0 auto; max-width: 70ch; color: var(--muted); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.feature { background: #fff; border-radius: 16px; padding: 1.25rem; box-shadow: 0 8px 24px rgba(11,45,73,0.06); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.show { opacity: 1; transform: none; }
.feature h3 { margin: 0.25rem 0 0.5rem; }
.feature p { margin: 0; color: var(--muted); }
.icon { width: 40px; height: 40px; border-radius: 50%; }
.icon.coral { background: linear-gradient(135deg, var(--soft-coral), var(--coral)); }
.icon.teal { background: linear-gradient(135deg, var(--soft-teal), var(--sea-teal)); }
.icon.blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.card { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #f9f9fb 100%); box-shadow: 0 16px 40px rgba(11,45,73,0.08); }
.card-illustration { position: absolute; inset: 0 0 auto 0; height: 160px; }
.coral { background: radial-gradient(120px 120px at 15% 40%, rgba(255,134,120,0.3) 0%, rgba(255,111,97,0.18) 35%, rgba(255,111,97,0.08) 65%), radial-gradient(140px 140px at 85% 45%, rgba(85,192,194,0.25) 0%, rgba(15,163,165,0.14) 45%, rgba(15,163,165,0.06) 75%); }
.card-body { padding: 1.25rem; padding-top: 180px; }
.card h3 { margin: 0 0 0.5rem; }
.card p { margin: 0 0 1rem; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; align-items: center; margin-top: 2rem; }
.bullets { margin: 0; padding-left: 1rem; color: var(--muted); }
.bullets li { margin-bottom: 0.5rem; }
.about-art { position: relative; height: 220px; }
.reef-blob { position: absolute; border-radius: 45% 55% 40% 60%/ 45% 55% 60% 40%; filter: blur(6px); animation: float 10s ease-in-out infinite; }
.blob-1 { width: 160px; height: 160px; left: 10px; top: 20px; background: radial-gradient(70px 70px at 35% 35%, #ffd7cf 0%, var(--soft-coral) 35%, var(--coral) 100%); opacity: 0.35; }
.blob-2 { width: 120px; height: 120px; right: 20px; top: 40px; background: radial-gradient(60px 60px at 60% 60%, #c9fbfb 0%, var(--soft-teal) 45%, var(--sea-teal) 100%); opacity: 0.3; animation-delay: 2s; }
.blob-3 { width: 90px; height: 90px; left: 120px; bottom: 0; background: radial-gradient(50px 50px at 40% 60%, #9fc9ff 0%, #60a5fa 45%, #3b82f6 100%); opacity: 0.25; animation-delay: 4s; }

/* Contact */
.contact-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; background: #fff; border-radius: 16px; padding: 1.25rem; box-shadow: 0 12px 30px rgba(11,45,73,0.08); margin-top: 2rem; }
.contact-card h3 { margin: 0 0 0.5rem; }
.contact-card p { margin: 0.25rem 0; color: var(--muted); }

/* Footer */
.footer { background: #fff; border-top: 1px solid #eef1f5; }
.footer-content { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo { width: 36px; height: 36px; object-fit: contain; }
.footer .to-top { color: var(--sea-teal); text-decoration: none; }
.footer .to-top:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-links { position: absolute; right: 4%; top: 62px; background: rgba(6,32,52,0.9); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 0.5rem; backdrop-filter: blur(8px); display: none; flex-direction: column; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-decoration::before,
  .hero-decoration::after,
  .coral-branching,
  .coral-massive,
  .coral-submassive,
  .coral-solitary,
  .coral-small,
  .reef-blob,
  .wave { animation: none !important; }
  .hero-decoration { transform: none !important; }
}
