<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <meta name="theme-color" content="#0A2A43">

  <title>Whales of Indonesia</title>

  <link rel="preconnect" href="https://fonts.googleapis.com">

  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

  <link href="https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Work+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

  <style>

    :root{--navy:#0A2A43;--blue:#1C6E8C;--teal:#6FCFB0;--cream:#F3ECDD;--white:#FBF9F4;--ink:#18313e;--muted:#52666d}

    *{box-sizing:border-box;margin:0;padding:0}

    html{scroll-behavior:smooth}

    body{font-family:"Work Sans",sans-serif;background:var(--cream);color:var(--ink)}

    h1,h2,h3,h4,.brand{font-family:"Fraunces",serif}

    button{font:inherit;cursor:pointer}

    img{display:block;width:100%;height:100%;object-fit:cover}

    .container{width:min(92%,1200px);margin:auto}

    .page{display:none;min-height:70vh}.page.active{display:block}

    .topbar{position:sticky;top:0;z-index:1000;background:var(--navy);color:var(--white);border-radius:0 0 16px 16px}

    .navbar{width:min(92%,1200px);min-height:76px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}

    .logo{display:flex;align-items:center;gap:10px;cursor:pointer;color:var(--white);font:700 20px "Fraunces",serif}

    .logo-icon{width:42px;height:42px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--navy);flex-shrink:0}

    .logo-icon img{width:100%;height:100%;object-fit:cover;transform:scale(1);object-position:center}

    .nav-links{display:flex;gap:8px;list-style:none;flex-wrap:wrap}

    .nav-links button{border:0;border-radius:22px;padding:10px 14px;background:transparent;color:var(--white);font-size:12px;font-weight:700}

    .nav-links button:hover,.nav-links button.active-nav{background:#ffffff20;color:var(--teal)}

   

    .hero{min-height:82vh;position:relative;display:flex;align-items:center;overflow:hidden;color:var(--white)}

    .hero-video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1}

    .hero-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,#08263be8,#08263b55);z-index:2}

    .hero-content{position:relative;z-index:3;padding:90px 0;width:min(92%,1200px);margin:auto}

    .eyebrow{color:var(--teal);font-weight:700;letter-spacing:2px;text-transform:uppercase;font-size:12px}

    .hero h1{font-size:clamp(42px,7vw,78px);line-height:1.05;max-width:850px;margin:16px 0}

    .hero p{font-size:18px;line-height:1.7;max-width:620px;color:#e5edf0;margin-bottom:28px}

    .action{display:inline-flex;align-items:center;gap:10px;background:var(--teal);color:var(--navy);border:0;border-radius:30px;padding:14px 24px;font-weight:700;text-decoration:none}

    .action:hover{background:var(--white)}

    .section{padding:72px 0}

    .section-title{text-align:center;color:var(--navy);font-size:clamp(32px,5vw,48px);margin-bottom:34px}

    .ocean-grid,.intro-grid,.split{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}

    .panel{background:var(--white);border:1px solid #e2d9c5;border-radius:22px;padding:38px;display:flex;flex-direction:column;justify-content:center}

    .panel h2,.panel h3{color:var(--navy);font-size:30px;margin-bottom:14px}

    .panel p{color:var(--muted);line-height:1.8}

    .photo-panel{min-height:300px;border-radius:22px;overflow:hidden;background:center/cover no-repeat}

    .banner{margin-top:25px;background:var(--blue);color:var(--white);padding:28px;border-radius:20px;text-align:center;line-height:1.8}

    .page-heading{text-align:center;padding:55px 0 24px}

    .page-heading h1{font-size:clamp(40px,6vw,56px);color:var(--navy)}

    .intro-banner{width:min(92%,1200px);margin:0 auto 38px;background:var(--blue);color:white;border-radius:24px;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;min-height:250px}

    .intro-banner .copy{padding:38px;display:flex;flex-direction:column;justify-content:center}

    .intro-banner h2{font-size:36px;margin-bottom:10px}

    .intro-banner p{line-height:1.7}

    .intro-banner .photo{background:center/cover no-repeat url("https://images.unsplash.com/photo-1568430462989-44163eb1752f?auto=format&fit=crop&w=1000&q=80")}

    .filters{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:20px 0 30px}

    .filter-btn{border:1px solid var(--blue);background:var(--white);color:var(--navy);padding:10px 18px;border-radius:25px;font-weight:700}

    .filter-btn.active,.filter-btn:hover{background:var(--blue);color:white}

    .carousel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}

    .carousel-heading h2{font-size:clamp(25px,4vw,36px);color:var(--navy)}

    .arrows{display:flex;gap:10px}

    .arrow{border:0;width:42px;height:42px;border-radius:50%;background:var(--teal);color:var(--navy)}

    .arrow:hover{background:#52b798}

    .carousel{overflow:hidden;padding-bottom:15px}

    .track{display:flex;gap:18px;transition:transform .45s ease}

    .whale-card{position:relative;flex:0 0 calc((100% - 36px)/3);height:390px;border-radius:20px;overflow:hidden;background:var(--navy)}

    .whale-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform .5s}

    .whale-card:hover img{transform:scale(1.06)}

    .card-shade{position:absolute;inset:0;background:linear-gradient(transparent 25%,#071e31ed);display:flex;flex-direction:column;justify-content:flex-end;padding:22px;color:white}

    .tag{align-self:flex-start;border:1px solid var(--teal);background:#6fcfb033;color:var(--teal);border-radius:20px;padding:4px 10px;font-size:11px;font-weight:700;margin-bottom:8px}

    .card-shade h3{font-size:23px;margin-bottom:7px}

    .card-shade p{font-size:13px;line-height:1.55;color:#e0e9eb}

    .source-link{display:inline-block;color:var(--teal);font-size:12px;font-weight:700;margin-top:10px;text-decoration:none}

    .source-link:hover{text-decoration:underline}

    .distribution{background:#f8f3e6;padding:70px 0;margin-top:35px}

    .distribution-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px;align-items:center}

    .distribution h2{font-size:42px;color:var(--navy);margin-bottom:14px}

    .distribution p{color:var(--muted);line-height:1.7;margin-bottom:20px}

    .dist-list{display:grid;gap:12px}

    .dist-card{display:flex;gap:14px;align-items:flex-start;background:white;border-radius:15px;padding:17px;border:1px solid transparent;text-align:left;width:100%;cursor:pointer;transition:all .3s}

    .dist-card:hover,.dist-card.active-dist{background:#d9f4e9;border-color:var(--teal)}

    .dist-card i{color:var(--blue);margin-top:3px}

    .dist-card strong{display:block;color:var(--navy);margin-bottom:3px}

    .dist-card span{font-size:12px;line-height:1.5;color:var(--muted)}

    .map-wrap{padding:16px;background:white;border-radius:22px;box-shadow:0 8px 25px #0000000c}

    .map-label{font-weight:700;color:var(--navy);margin:3px 0 13px}

    .map-img-box{width:100%;height:410px;border-radius:15px;overflow:hidden}

    .hero-split{min-height:370px;display:grid;grid-template-columns:1fr 1fr;background:#0f4561;color:white}

    .hero-split .copy{padding:60px;display:flex;flex-direction:column;justify-content:center}

    .hero-split h1{font-size:clamp(45px,6vw,65px)}

    .hero-split p{font-size:19px;line-height:1.6;color:#e2e8f0;margin-top:14px}

    .hero-split .photo{min-height:300px;background:center/cover no-repeat}

    .threat-grid,.help-grid,.why-grid,.project-grid,.team-grid{display:grid;gap:18px}

    .threat-grid{grid-template-columns:repeat(2,1fr)}

    .threat-card{display:grid;grid-template-columns:.9fr 1.1fr;min-height:185px;background:var(--white);border-radius:18px;overflow:hidden;border:1px solid #e2d9c5}

    .threat-card .photo{background:center/cover no-repeat}

    .threat-card .copy{padding:20px;display:flex;flex-direction:column;justify-content:center}

    .threat-card h3{font-size:21px;color:var(--navy);margin-bottom:8px}

    .threat-card p,.small-card p,.team-card p{font-size:13px;line-height:1.6;color:var(--muted)}

    .navy-section{background:#0f4561;color:white}

    .navy-section .section-title{color:white}

    .help-grid{grid-template-columns:repeat(4,1fr)}

    .small-card{background:var(--white);color:var(--navy);padding:25px 18px;border-radius:18px;text-align:center}

    .round-icon{width:52px;height:52px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:var(--teal);font-size:21px}

    .small-card h3{margin-bottom:8px}

    .why-grid{grid-template-columns:repeat(5,1fr)}

    .why-grid .small-card{border:1px solid #e2d9c5;padding:22px 13px}

    .why-grid .round-icon{background:var(--navy);color:white}

    .project-grid,.team-grid{grid-template-columns:repeat(3,1fr)}

    .team-section{background:var(--white)}

    .team-card{text-align:center}

    .team-photo{width:145px;height:145px;border-radius:50%;overflow:hidden;margin:0 auto 14px;border:4px solid #dcefed}

    .team-card h3{font-size:19px;color:var(--navy);margin-bottom:4px}

    footer{background:var(--navy);color:white;padding:45px 0 18px;border-radius:20px 20px 0 0;margin-top:20px}

    .footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px}

    .footer-grid h3{color:var(--teal);margin-bottom:12px;font-size:18px}

    .footer-grid p,.footer-grid li{color:#cbd5e1;font-size:13px;line-height:1.8;list-style:none}

    .footer-grid a{color:#cbd5e1;text-decoration:none}.footer-grid a:hover{color:var(--teal)}

    .footer-brand{font:700 25px "Fraunces",serif;margin-bottom:10px}

    .copyright{text-align:center;border-top:1px solid #ffffff20;margin-top:30px;padding-top:16px;color:#94a3b8;font-size:12px}

    @media(max-width:900px){.navbar{padding:12px 0;flex-direction:column}.ocean-grid,.intro-banner,.distribution-grid,.hero-split,.split{grid-template-columns:1fr}.whale-card{flex-basis:calc((100% - 18px)/2)}.help-grid{grid-template-columns:repeat(2,1fr)}.why-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr}.hero-split .copy{padding:40px}}

    @media(max-width:600px){.nav-links{justify-content:center}.nav-links button{font-size:10px;padding:8px}.whale-card{flex-basis:100%;height:370px}.threat-grid,.project-grid,.team-grid{grid-template-columns:1fr}.threat-card{grid-template-columns:1fr}.threat-card .photo{min-height:160px}.help-grid{grid-template-columns:1fr 1fr}.carousel-heading{align-items:flex-start}.section{padding:52px 0}.panel{padding:26px}.intro-banner .copy{padding:27px}}

  </style>

</head>

<body>

<header class="topbar">

  <nav class="navbar">

    <div class="logo" onclick="switchPage('home')">

      <span class="logo-icon">

        <img src="c:\Users\Annisa\Pictures\Screenshots\Screenshot 2026-11-15 171233.png" alt="Logo Paus">

      </span>

      Whales of Indonesia

    </div>

    <ul class="nav-links">

      <li><button class="nav-btn active-nav" id="btn-home" onclick="switchPage('home')">HOME</button></li>

      <li><button class="nav-btn" id="btn-explore" onclick="switchPage('explore')">EXPLORE WHALES</button></li>

      <li><button class="nav-btn" id="btn-conservation" onclick="switchPage('conservation')">CONSERVATION</button></li>

      <li><button class="nav-btn" id="btn-about" onclick="switchPage('about')">ABOUT US</button></li>

    </ul>

  </nav>

</header>

<main>

<section id="page-home" class="page active">

  <div class="hero">

    <video class="hero-video" autoplay muted loop playsinline>

      <source src="C:\Users\Annisa\AppData\Local\Packages\5319275A.WhatsAppDesktop_cv1g1gvanyjgm\LocalState\sessions\330DB90B021369389A8C2D55E4D10BE08B597BB3\transfers\2026-46\coba.mp4" type="video/mp4">

      Your browser does not support the video tag.

    </video>

    <div class="hero-overlay"></div>

   

    <div class="hero-content">

      <div class="eyebrow">Discover marine biodiversity</div>

      <h1>Introduction to the Whales of Indonesia</h1>

      <p>Explore the remarkable whales found in and around Indonesian waters, their habitats, and why protecting the ocean matters.</p>

      <button class="action" onclick="switchPage('explore')">Start Exploring <i class="fa-solid fa-arrow-right"></i></button>

    </div>

  </div>

  <section class="section">

    <div class="container">

      <h2 class="section-title">Indonesian Oceans</h2>

      <div class="ocean-grid">

        <div class="panel">

          <h3>Indonesian Ocean Biodiversity</h3>

          <p>Indonesia lies within the Coral Triangle and connects the Pacific and Indian Oceans. Its deep-water passages, seas, and coastal ecosystems provide important habitats and migration routes for many marine mammals, including several whale species.</p>

        </div>

        <div class="photo-panel" style="background-image:url('https://images.unsplash.com/photo-1546026423-cc4642628d2b?auto=format&fit=crop&w=1200&q=85')"></div>

      </div>

      <div class="banner">The Banda Sea, Savu Sea, and Ombai Strait are among the important deep-water areas in eastern Indonesia. These waters form part of a wider marine environment used by migrating cetaceans.</div>

    </div>

  </section>

</section>

<section id="page-explore" class="page">

  <div class="page-heading"><h1>About Whales</h1></div>

  <div class="intro-banner">

    <div class="copy"><h2>Explore Whales</h2><p>Discover the characteristics, physical features, and behaviours of 21 whale species included in this educational project.</p></div>

    <div class="photo"></div>

  </div>

  <section class="container section" style="padding-top:10px">

    <div class="filters">

      <button class="filter-btn active" data-filter="all" onclick="filterSpecies('all',this)">All 21 Species</button>

      <button class="filter-btn" data-filter="baleen" onclick="filterSpecies('baleen',this)">Baleen Whales (8)</button>

      <button class="filter-btn" data-filter="toothed" onclick="filterSpecies('toothed',this)">Toothed Whales (13)</button>

    </div>

    <div class="carousel-heading">

      <h2 id="carousel-title-text">Whale Species (21 Species)</h2>

      <div class="arrows"><button class="arrow" onclick="moveCarousel(-1)" aria-label="Previous"><i class="fa-solid fa-chevron-left"></i></button><button class="arrow" onclick="moveCarousel(1)" aria-label="Next"><i class="fa-solid fa-chevron-right"></i></button></div>

    </div>

    <div class="carousel" id="carouselContainer"><div class="track" id="whaleTrack"></div></div>

  </section>

  <section class="distribution">

    <div class="container distribution-grid">

      <div>

        <h2>Where Do They Live?</h2>

        <p>Whales use different parts of Indonesia's vast marine environment. Deep-water corridors and oceanic habitats are especially important for several migratory and deep-diving species.</p>

        <div class="dist-list">

          <div class="dist-card active-dist" onclick="changeMap('peta-savusea.jpg', this)"><i class="fa-solid fa-location-dot"></i><span><strong>Savu Sea & Ombai Strait</strong>Important deep-water migration corridor in the Lesser Sunda region.</span></div>

          <div class="dist-card" onclick="changeMap('peta-bandasea.jpg', this)"><i class="fa-solid fa-location-dot"></i><span><strong>Banda Sea & Maluku</strong>A deep ocean basin with habitats for oceanic cetaceans.</span></div>

          <div class="dist-card" onclick="changeMap('peta-rajaampat.jpg', this)"><i class="fa-solid fa-location-dot"></i><span><strong>Raja Ampat & Papua</strong>Part of the biodiverse waters of eastern Indonesia.</span></div>

        </div>

      </div>

      <div class="map-wrap">

        <div class="map-label"><i class="fa-solid fa-map-location-dot"></i> Indonesian Whale Habitat Areas</div>

        <div class="map-img-box">

          <img id="habitatMapImg" src="c:\Users\Annisa\AppData\Local\Packages\5319275A.WhatsAppDesktop_cv1g1gvanyjgm\LocalState\sessions\330DB90B021369389A8C2D55E4D10BE08B597BB3\transfers\2026-46\WhatsApp Image 2026-11-15 at 17.26.19.jpeg" alt="Indonesian Whale Habitat Map">

        </div>

      </div>

    </div>

  </section>

</section>

<section id="page-conservation" class="page">

  <div class="hero-split">

    <div class="copy"><h1>Conservation</h1><p>“Protecting whales means protecting the ocean ecosystems they depend on.”</p></div>

    <div class="photo" style="background-image:url('https://images.unsplash.com/photo-1518467166778-b88f373ffec7?auto=format&fit=crop&w=1200&q=80')"></div>

  </div>

  <section class="section"><div class="container">

    <h2 class="section-title">Threats to Whales</h2>

    <div class="threat-grid">

      <article class="threat-card">

        <div class="photo" style="background-image:url('https://images.unsplash.com/photo-1621451537084-482c73073a0f?auto=format&fit=crop&w=800&q=85')"></div>

        <div class="copy">

          <h3>Plastic Pollution</h3>

          <p>Plastic waste can enter marine environments and create risks for whales and other marine life.</p>

        </div>

      </article>

      <article class="threat-card">

        <div class="photo" style="background-image:url('https://images.unsplash.com/photo-1518837695005-2083093ee35b?auto=format&fit=crop&w=800&q=85')"></div>

        <div class="copy">

          <h3>Fishing Gear</h3>

          <p>Lost or abandoned fishing gear can entangle whales and interfere with their movement.</p>

        </div>

      </article>

      <article class="threat-card">

        <div class="photo" style="background-image:url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=800&q=85')"></div>

        <div class="copy">

          <h3>Ship Strikes</h3>

          <p>Vessel traffic can create collision risks, particularly in busy shipping corridors.</p>

        </div>

      </article>

      <article class="threat-card">

        <div class="photo" style="background-image:url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=800&q=85')"></div>

        <div class="copy">

          <h3>Climate Change</h3>

          <p>Changing ocean conditions can affect prey availability and the habitats whales depend on.</p>

        </div>

      </article>

    </div>

  </div></section>

  <section class="section navy-section"><div class="container">

    <h2 class="section-title">How You Can Help</h2>

    <div class="help-grid">

      <div class="small-card"><div class="round-icon"><i class="fa-solid fa-recycle"></i></div><h3>Reduce Plastic</h3><p>Use fewer single-use plastics and dispose of waste responsibly.</p></div>

      <div class="small-card"><div class="round-icon"><i class="fa-solid fa-water"></i></div><h3>Protect Oceans</h3><p>Keep beaches clean and support responsible marine protection.</p></div>

      <div class="small-card"><div class="round-icon"><i class="fa-solid fa-bullhorn"></i></div><h3>Spread Awareness</h3><p>Share reliable information about whales and marine biodiversity.</p></div>

      <div class="small-card"><div class="round-icon"><i class="fa-solid fa-hand-holding-heart"></i></div><h3>Support Conservation</h3><p>Learn about and support credible marine conservation initiatives.</p></div>

    </div>

  </div></section>

  <section class="section"><div class="container">

    <h2 class="section-title">Why Conservation Matters</h2>

    <div class="why-grid">

      <div class="small-card"><div class="round-icon">1</div><p>Whales are important parts of marine food webs.</p></div>

      <div class="small-card"><div class="round-icon">2</div><p>Whale nutrients can support ocean productivity.</p></div>

      <div class="small-card"><div class="round-icon">3</div><p>Protecting whales also helps conserve marine biodiversity.</p></div>

      <div class="small-card"><div class="round-icon">4</div><p>Whale falls provide food for deep-sea organisms.</p></div>

      <div class="small-card"><div class="round-icon">5</div><p>Healthy whale populations are part of resilient ocean ecosystems.</p></div>

    </div>

  </div></section>

</section>

<section id="page-about" class="page">

  <div class="hero-split">

    <div class="copy"><h1>About Us</h1><p>Learn about the team and ideas behind this educational initiative.</p></div>

    <div class="photo" style="background-image:url('https://images.unsplash.com/photo-1530053969600-caed2596d242?auto=format&fit=crop&w=1200&q=80')"></div>

  </div>

  <section class="section"><div class="container">

    <h2 class="section-title">Our Project</h2>

    <div class="project-grid">

      <div class="small-card"><div class="round-icon"><i class="fa-solid fa-water"></i></div><h3>Our Focus</h3><p>Introducing 21 whale species recorded in or relevant to Indonesian waters.</p></div>

      <div class="small-card"><div class="round-icon"><i class="fa-solid fa-lightbulb"></i></div><h3>Our Purpose</h3><p>Providing accessible and interactive learning materials about marine mammals.</p></div>

      <div class="small-card"><div class="round-icon"><i class="fa-solid fa-bullseye"></i></div><h3>Our Mission</h3><p>Encouraging ocean awareness and biodiversity conservation.</p></div>

    </div>

  </div></section>

  <section class="section team-section"><div class="container">

    <h2 class="section-title">Our Team</h2>

    <div class="team-grid">

      <div class="team-card"><div class="team-photo"><img src="c:\Users\Annisa\AppData\Local\Packages\5319275A.WhatsAppDesktop_cv1g1gvanyjgm\LocalState\sessions\330DB90B021369389A8C2D55E4D10BE08B597BB3\transfers\2026-46\WhatsApp Image 2026-11-15 at 18.18.27.jpeg" alt="Sabrina"></div><h3>Sabrina Adawiyah Ghaisani P.</h3><p>Coding</p></div>

      <div class="team-card"><div class="team-photo"><img src="c:\Users\Annisa\AppData\Local\Packages\5319275A.WhatsAppDesktop_cv1g1gvanyjgm\LocalState\sessions\330DB90B021369389A8C2D55E4D10BE08B597BB3\transfers\2026-46\WhatsApp Image 2026-11-14 at 13.37.35.jpeg" alt="Aurelika"></div><h3>Aurelika Maharani</h3><p>Design</p></div>

      <div class="team-card"><div class="team-photo"><img src="c:\Users\Annisa\AppData\Local\Packages\5319275A.WhatsAppDesktop_cv1g1gvanyjgm\LocalState\sessions\330DB90B021369389A8C2D55E4D10BE08B597BB3\transfers\2026-46\WhatsApp Image 2026-11-15 at 18.21.26.jpeg" alt="Annisa Galuh Amirah"></div><h3>Annisa Galuh Amirah</h3><p>Research</p></div>

    </div>

  </div></section>

</section>

</main>

<style>

  .footer-grid {

    display: grid;

    grid-template-columns: 1.8fr 1fr 1.1fr 1.6fr;

    gap: 30px;

  }

  .footer-grid a {

    color: #cbd5e1;

    text-decoration: none;

    white-space: nowrap;

  }

  .footer-grid a:hover {

    color: var(--teal);

  }

</style>

<footer>

  <div class="container">

    <div class="footer-grid">

      <div>

        <div class="footer-brand">Whales of Indonesia</div>

        <p>An educational platform dedicated to whale diversity, marine ecosystems, and ocean conservation in Indonesia.</p>

      </div>

      <div>

        <h3>Explore</h3>

        <ul>

          <li><a href="#" onclick="switchPage('home');return false">Home</a></li>

          <li><a href="#" onclick="switchPage('explore');return false">Explore Whales</a></li>

          <li><a href="#" onclick="switchPage('conservation');return false">Conservation</a></li>

          <li><a href="#" onclick="switchPage('about');return false">About Us</a></li>

        </ul>

      </div>

      <div>

        <h3>References</h3>

        <p>WWF Indonesia<br>NOAA Fisheries<br>Ocean Conservancy<br>Ministry of Marine Affairs and Fisheries</p>

      </div>

      <div>

        <h3>Connect</h3>

        <p>

          <a href="https://instagram.com/whales_of_indonesia" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-instagram"></i> @whales_of_indonesia</a><br>

          <a href="mailto:whalesofindonesia@gmail.com"><i class="fa-solid fa-envelope"></i> whalesofindonesia@gmail.com</a>

        </p>

      </div>

    </div>

    <div class="copyright">© 2026 Whales of Indonesia. Educational project.</div>

  </div>

</footer>

<script>

const whales = [

  {name:"Minke Whale",type:"baleen",desc:"A relatively small baleen whale with a slender body and pointed snout. Some populations have pale bands on their pectoral fins.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Minke_Whale_(NOAA).jpg",source:"https://unsplash.com/photos/gray-whale-wU2Nx1yoDQc"},

  {name:"Bryde's Whale",type:"baleen",desc:"A medium-sized tropical baleen whale with three prominent ridges running along the top of its head.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Bryde%27s_whale_1.jpg",source:"https://pixabay.com/photos/brydes-whale-whale-fish-ocean-sea-8316785/"},

  {name:"Sei Whale",type:"baleen",desc:"A large, streamlined baleen whale known for its speed and tall, curved dorsal fin.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Sei_whale.jpg",source:"https://boudewijnhuijgens.getarchive.net/topics/sei+whale/wildlife"},

  {name:"Blue Whale",type:"baleen",desc:"The largest known animal on Earth, with a long body and bluish-grey mottled colouring.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/BLUE_WHALE.jpg",source:"https://pixabay.com/photos/ocean-blue-whale-sea-wave-whale-2051760/"},

  {name:"Humpback Whale",type:"baleen",desc:"Recognised by its very long pectoral fins, knobbly head, and spectacular surface behaviours.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Humpback_Whale.jpg",source:"https://pixabay.com/photos/whale-humpback-whale-iceland-animal-8274342/"},

  {name:"Fin Whale",type:"baleen",desc:"One of the largest whale species, with a long, streamlined body and asymmetrical lower-jaw colouring.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Fin_whale.jpg",source:"https://www.freenatureimages.eu/Animals/Mammalia%2C%20Zoogdieren%2C%20Mammals/Balaenoptera%20physalus/index.html"},

  {name:"Pygmy Blue Whale",type:"baleen",desc:"A smaller subspecies of blue whale found in the Southern Hemisphere and parts of the Indian Ocean.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Pygmy_blue_whale.jpg",source:"https://www.freenatureimages.eu/Animals/Mammalia%2C%20Zoogdieren%2C%20Mammals/Balaenoptera%20musculus/index.html"},

  {name:"Omura's Whale",type:"baleen",desc:"A relatively small, slender baleen whale found mainly in tropical and subtropical waters.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Omura%27s_whale_(Balaenoptera_omurai)_breaching.jpg",source:"https://commons.wikimedia.org/wiki/Special:FilePath/Omura%27s_whale_(Balaenoptera_omurai)_breaching.jpg"},

  {name:"Killer Whale / Orca",type:"toothed",desc:"A highly recognisable black-and-white cetacean that belongs to the dolphin family.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Killer_Whales.jpg",source:"https://commons.wikimedia.org/wiki/File:Killer_Whales.jpg"},

  {name:"Pygmy Killer Whale",type:"toothed",desc:"A dark-coloured oceanic dolphin with a rounded head and slender body.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Feresa_attenuata_173092025.jpg",source:"https://www.biolib.cz/en/image/id439055/"},

  {name:"Short-finned Pilot Whale",type:"toothed",desc:"A dark cetacean with a rounded head that usually travels in close social groups.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Short-finned_pilot_whale.jpg",source:"https://commons.wikimedia.org/wiki/Special:FilePath/Short-finned_pilot_whale.jpg"},

  {name:"Melon-headed Whale",type:"toothed",desc:"A slender, dark-coloured cetacean with a rounded head; it often forms large groups.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Melon-headed_whale_large.jpg",source:"https://commons.wikimedia.org/wiki/Special:FilePath/Melon-headed_whale_large.jpg"},

  {name:"False Killer Whale",type:"toothed",desc:"A large oceanic dolphin with a long, slender dark body and no orca-like white patches.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/False_killer_whale_890002.jpg",source:"https://commons.wikimedia.org/w/index.php?search=Pseudorca+crassidens&title=Special%3AMediaSearch&type=image"},

  {name:"Pygmy Sperm Whale",type:"toothed",desc:"A small, elusive sperm whale with a relatively large head and a shark-like profile.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Pygmy_sperm_whale.jpg",source:"https://www.inaturalist.org/taxa/41464-Kogia-breviceps/browse_photos"},

  {name:"Dwarf Sperm Whale",type:"toothed",desc:"One of the smallest sperm whales, with a compact body and a small, underslung mouth.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Dwarf_sperm_whale_(NOAA_Pitman).jpg",source:"https://commons.wikimedia.org/wiki/File:Dwarf_sperm_whale_(NOAA_Pitman).jpg"},

  {name:"Sperm Whale",type:"toothed",desc:"A deep-diving whale with an enormous block-shaped head and a single blowhole set to the left.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Zoomed_image_of_a_Sperm_Whale_(Physeter_macrocephalus).jpg",source:"https://commons.wikimedia.org/wiki/File:Zoomed_image_of_a_Sperm_Whale_(Physeter_macrocephalus).jpg"},

  {name:"Blainville's Beaked Whale",type:"toothed",desc:"A deep-diving beaked whale. Adult males have distinctive teeth that emerge from the lower jaw.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Beaked_Whale.jpg",source:"https://commons.wikimedia.org/wiki/Special:FilePath/Beaked_Whale.jpg"},

  {name:"Ginkgo-toothed Beaked Whale",type:"toothed",desc:"A rarely observed beaked whale; adult males have unusual ginkgo-leaf-shaped teeth.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Mesoplodon_ginkgodens.jpg",source:"https://commons.wikimedia.org/wiki/File:Mesoplodon_ginkgodens.jpg"},

  {name:"Southern Bottlenose Whale",type:"toothed",desc:"A deep-diving beaked whale with a prominent forehead and a relatively long beak.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Southern_Bottlenose_Whale,_Hyperoodon_planifrons,_December_2016,_near_Clarence_Island.jpg",source:"https://commons.wikimedia.org/wiki/File:Southern_Bottlenose_Whale,_Hyperoodon_planifrons,_December_2016,_near_Clarence_Island.jpg"},

  {name:"Cuvier's Beaked Whale",type:"toothed",desc:"A deep-diving whale with a short beak and rounded forehead, adapted to offshore waters.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Cuvier%E2%80%99s_Beaked_Whale_(Ziphius_cavirostris).jpg",source:"https://commons.wikimedia.org/w/index.php?search=Ziphius+cavirostris&title=Special%3AMediaSearch&type=image"},

  {name:"Longman's Beaked Whale",type:"toothed",desc:"A rarely encountered beaked whale also known as the Indo-Pacific beaked whale.",img:"https://commons.wikimedia.org/wiki/Special:FilePath/Beaked_Whale.jpg",source:"https://commons.wikimedia.org/wiki/File:Beaked_Whale.jpg"}

];

let currentIndex = 0, activeFilter = "all";

const track = document.getElementById("whaleTrack");

function makeWhaleFallback(label) {

  const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 650"><defs><linearGradient id="sea" x2="0" y2="1"><stop stop-color="#2b7890"/><stop offset="1" stop-color="#082a43"/></linearGradient></defs><rect width="900" height="650" fill="url(#sea)"/><path d="M0 470 Q180 430 360 470 T720 470 T1080 470 V650 H0Z" fill="#0b3850"/><g fill="#d5e7e6"><path d="M170 330 Q245 230 470 250 Q590 260 690 330 Q745 370 805 345 Q775 405 700 410 Q600 475 410 440 Q270 420 170 370 Q120 350 85 375 Q105 330 170 330Z"/><path d="M680 330 Q735 250 800 255 Q770 300 805 345Z"/><path d="M420 415 Q450 475 520 490 Q475 505 420 450Z"/></g><circle cx="260" cy="325" r="8" fill="#082a43"/><text x="450" y="565" fill="#eaf6f4" font-family="Arial,sans-serif" font-size="26" text-anchor="middle">${label.replace(/[&<>]/g,'')}</text><text x="450" y="605" fill="#b7d8d9" font-family="Arial,sans-serif" font-size="16" text-anchor="middle">Photo unavailable · illustration shown</text></svg>`;

  return 'data:image/svg+xml;charset=UTF-8,' + encodeURIComponent(svg);

}

function visibleWhales() {

  return whales.filter(w => activeFilter === "all" || w.type === activeFilter);

}

function visibleCount() {

  return window.innerWidth <= 600 ? 1 : (window.innerWidth <= 900 ? 2 : 3);

}

function renderWhales() {

  const list = visibleWhales();

  track.innerHTML = list.map(w => `

    <article class="whale-card">

      <img src="${w.img}" alt="${w.name}" loading="lazy" decoding="async" referrerpolicy="no-referrer" onerror="this.onerror=null;this.src=makeWhaleFallback('${w.name.replace(/'/g, "\\'")}');this.alt='Illustrated whale placeholder for ${w.name.replace(/'/g, "\\'")}'">

      <div class="card-shade">

        <span class="tag">${w.type === "baleen" ? "Baleen Whale · Mysticeti" : "Toothed Whale · Odontoceti"}</span>

        <h3>${w.name}</h3><p>${w.desc}</p>

        <a class="source-link" href="${w.source}" target="_blank" rel="noopener noreferrer">View photo source ↗</a>

      </div>

    </article>`).join("");

 

  document.getElementById("carousel-title-text").textContent =

    activeFilter === "baleen" ? "Baleen Whales (8 Species)" :

    activeFilter === "toothed" ? "Toothed Whales (13 Species)" :

    "Whale Species (21 Species)";

 

  updateCarousel();

}

function updateCarousel() {

  const card = track.querySelector(".whale-card");

  if (!card) {

    track.style.transform = "translateX(0)";

    return;

  }

  const gap = 18;

  const step = card.getBoundingClientRect().width + gap;

  const max = Math.max(0, visibleWhales().length - visibleCount());

  currentIndex = Math.min(currentIndex, max);

  track.style.transform = `translateX(-${currentIndex * step}px)`;

}

function moveCarousel(direction) {

  const max = Math.max(0, visibleWhales().length - visibleCount());

  currentIndex += direction;

  if (currentIndex > max) currentIndex = 0;

  if (currentIndex < 0) currentIndex = max;

  updateCarousel();

}

function filterSpecies(type, button) {

  activeFilter = type;

  currentIndex = 0;

  document.querySelectorAll(".filter-btn").forEach(b => b.classList.remove("active"));

  button.classList.add("active");

  renderWhales();

}

function switchPage(pageId) {

  document.querySelectorAll('.page').forEach(p => p.classList.remove('active'));

  document.getElementById('page-' + pageId).classList.add('active');

  document.querySelectorAll('.nav-btn').forEach(b => b.classList.remove('active-nav'));

  const activeBtn = document.getElementById('btn-' + pageId);

  if (activeBtn) activeBtn.classList.add('active-nav');

  window.scrollTo({ top: 0, behavior: 'smooth' });

}

function changeMap(imageSrc, cardElement) {

  document.getElementById('habitatMapImg').src = imageSrc;

  document.querySelectorAll('.dist-card').forEach(card => card.classList.remove('active-dist'));

  cardElement.classList.add('active-dist');

}

window.addEventListener('DOMContentLoaded', () => {

  renderWhales();

});

window.addEventListener('resize', () => {

  updateCarousel();

});

</script>

</body>

</html>