
/* =====================================================
   CORALIS — MARINE SCIENTIFIC INTELLIGENCE
   Main Stylesheet
===================================================== */

/* 01. GLOBAL CONFIGURATION */

:root {
    --navy: #062b3b;
    --navy-dark: #031e2c;
    --navy-light: #10475a;

    --cyan: #26c6c8;
    --cyan-light: #83e5df;
    --teal: #0d9295;

    --white: #ffffff;
    --off-white: #f5f9f8;
    --light-gray: #e7efed;

    --text-dark: #153744;
    --text-muted: #70858c;

    --border: rgba(255,255,255,0.14);

    --font-heading: "Manrope", sans-serif;
    --font-body: "DM Sans", sans-serif;

    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin: 0 auto;
}


/* =====================================================
   02. NAVIGATION
===================================================== */

.navbar {
    width: 100%;
    height: 86px;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;

    border-bottom: 1px solid rgba(255,255,255,0.13);
    background: rgba(3, 30, 44, 0.36);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-content {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background: var(--cyan);
    color: var(--navy-dark);

    border-radius: 12px;

    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 25px;
}

/* OFFICIAL CORALIS LOGO */

.brand-logo {
    display: block;
    width: 82px;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-family: var(--font-heading);
    color: white;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1.3;
}

.brand-text span {
    color: var(--cyan-light);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 37px;
}

.nav-menu a {
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--cyan-light);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    padding: 12px 19px;

    border: 1px solid rgba(38,198,200,0.7);
    border-radius: 7px;

    color: white;
    font-size: 12px;
    font-weight: 700;

    transition: 0.3s ease;
}

.nav-button span {
    color: var(--cyan);
    font-size: 17px;
}

.nav-button:hover {
    background: var(--cyan);
    color: var(--navy-dark);
}


/* =====================================================
   03. HERO SECTION
===================================================== */

.hero {
    min-height: 760px;
    height: min(850px, 100vh);

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    background: var(--navy-dark);
}

.hero-background {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 25, 39, 0.96) 0%,
            rgba(3, 30, 44, 0.86) 40%,
            rgba(3, 30, 44, 0.30) 100%
        ),
        linear-gradient(
            0deg,
            rgba(3, 30, 44, 0.65),
            transparent 45%
        ),
        url("https://images.unsplash.com/photo-1546026423-cc4642628d2b?auto=format&fit=crop&w=2000&q=90");

    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 95px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--cyan-light);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.3px;

    margin-bottom: 31px;
}

.status-dot {
    width: 8px;
    height: 8px;

    background: var(--cyan);
    border-radius: 50%;

    box-shadow: 0 0 15px var(--cyan);
}

.hero h1 {
    color: white;

    font-family: var(--font-heading);
    font-size: clamp(46px, 6.3vw, 79px);
    font-weight: 800;

    line-height: 1.12;
    letter-spacing: -3.8px;
}

.hero h1 span {
    color: var(--cyan-light);
}

.hero-description {
    max-width: 550px;

    margin-top: 25px;

    color: rgba(255,255,255,0.73);
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 17px;

    margin-top: 35px;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    padding: 15px 23px;

    background: var(--cyan);
    color: var(--navy-dark);

    border-radius: 6px;

    font-size: 12px;
    font-weight: 800;

    transition: 0.3s ease;
}

.button-primary span {
    font-size: 19px;
}

.button-primary:hover {
    background: var(--cyan-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(38,198,200,0.2);
}

.button-secondary {
    padding: 14px 21px;

    color: white;
    border: 1px solid rgba(255,255,255,0.35);

    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;

    transition: 0.3s ease;
}

.button-secondary:hover {
    background: rgba(255,255,255,0.12);
}

.hero-footer {
    display: flex;
    align-items: center;
    gap: 60px;

    margin-top: 83px;
    padding-top: 25px;

    border-top: 1px solid rgba(255,255,255,0.2);

    max-width: 680px;
}

.hero-footer div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-footer strong {
    color: white;
    font-family: var(--font-heading);
    font-size: 15px;
}

.hero-footer span {
    color: rgba(255,255,255,0.56);
    font-size: 10px;
}

.hero-image-caption {
    position: absolute;
    bottom: 28px;
    right: 5%;

    display: flex;
    gap: 30px;

    color: rgba(255,255,255,0.65);
    font-size: 9px;
    letter-spacing: 1.4px;
}


/* =====================================================
   04. SECTION GENERAL
===================================================== */

.section-label {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--teal);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2,
.technology-content h2,
.analysis-entry h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 47px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.8px;
}

.section-heading h2 span,
.technology-content h2 span {
    color: var(--teal);
}


/* =====================================================
   05. ABOUT SECTION
===================================================== */

.about-section {
    padding: 110px 0 120px;
    background: var(--off-white);
}

.section-heading {
    max-width: 650px;
}

.section-heading > p {
    max-width: 590px;

    margin-top: 22px;

    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.9;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    margin-top: 55px;
}

.about-card {
    padding: 32px 29px;

    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 10px;

    transition: 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: 0 15px 35px rgba(6,43,59,0.07);
}

.card-number {
    display: inline-block;

    margin-bottom: 31px;

    color: var(--teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.about-card h3 {
    margin-bottom: 12px;

    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 17px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
}


/* =====================================================
   06. TECHNOLOGY SECTION
===================================================== */

.technology-section {
    padding: 110px 0;

    background: white;
}

.technology-content {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 100px;
}

.technology-content > div:first-child > p {
    max-width: 470px;

    margin-top: 24px;

    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.9;
}

.technology-panel {
    padding: 36px;

    background: var(--navy);
    border-radius: 12px;

    color: white;

    box-shadow: 0 20px 50px rgba(6,43,59,0.15);
}

.tech-status {
    color: var(--cyan-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.technology-panel h3 {
    margin: 15px 0 29px;

    font-family: var(--font-heading);
    font-size: 26px;
}

.tech-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding: 16px 0;

    border-top: 1px solid rgba(255,255,255,0.13);

    font-size: 11px;
}

.tech-row span {
    color: rgba(255,255,255,0.57);
}

.tech-row strong {
    color: var(--cyan-light);
    text-align: right;
}


/* =====================================================
   07. SPECIES SECTION
===================================================== */

.species-section {
    padding: 110px 0 120px;

    background: var(--off-white);
}

.species-section h2 {
    font-family: var(--font-heading);
    color: var(--navy);

    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -1.5px;
}

.species-description {
    margin-top: 13px;

    color: var(--text-muted);
    font-size: 13px;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;

    margin-top: 42px;
}

.species-card {
    overflow: hidden;

    background: white;
    border-radius: 10px;

    border: 1px solid var(--light-gray);

    transition: 0.3s ease;
}

.species-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(6,43,59,0.09);
}

.species-image {
    height: 235px;

    background-size: cover;
    background-position: center;

    background-color: #d9e8e4;
}

.acropora-image {
    background-image:
        url("https://images.unsplash.com/photo-1546026423-cc4642628d2b?auto=format&fit=crop&w=800&q=85");
}

.pocillopora-image {
    background-image:
        url("https://images.unsplash.com/photo-1582967788606-a171c1080cb0?auto=format&fit=crop&w=800&q=85");
}

.stylophora-image {
    background-image:
        url("https://images.unsplash.com/photo-1518467166778-b88f373ffec7?auto=format&fit=crop&w=800&q=85");
}

.species-info {
    padding: 24px;
}

.species-info > span {
    color: var(--teal);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.species-info h3 {
    margin: 8px 0;

    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 21px;
}

.species-info p {
    color: var(--text-muted);
    font-size: 11px;
}


/* =====================================================
   08. ANALYSIS ENTRY
===================================================== */

.analysis-entry {
    padding: 90px 0;

    background:
        linear-gradient(
            110deg,
            rgba(3,30,44,0.98),
            rgba(13,87,99,0.95)
        );
}

.analysis-entry-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.analysis-entry .section-label {
    color: var(--cyan-light);
}

.analysis-entry h2 {
    color: white;
}

.analysis-entry p {
    max-width: 520px;

    margin-top: 18px;

    color: rgba(255,255,255,0.68);
    font-size: 13px;
    line-height: 1.9;
}

.analysis-entry .button-primary {
    flex-shrink: 0;
}


/* =====================================================
   09. FOOTER
===================================================== */

.footer {
    padding: 32px 0;

    background: var(--navy-dark);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-content > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-content strong {
    color: white;
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 2px;
}

.footer-content div span,
.footer-content p,
.footer-content > span {
    color: rgba(255,255,255,0.54);
    font-size: 9px;
}


/* =====================================================
   10. RESPONSIVE DESIGN
===================================================== */

@media (max-width: 900px) {

    .nav-menu {
        gap: 18px;
    }

    .technology-content {
        gap: 45px;
    }

    .hero-footer {
        gap: 35px;
    }
}

@media (max-width: 680px) {

    .container {
        width: calc(100% - 38px);
    }

    .navbar {
        height: 72px;
    }

    .nav-menu {
        display: none;
    }

    .brand-icon {
        width: 37px;
        height: 37px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .nav-button {
        padding: 10px 12px;
        font-size: 10px;
    }
    .hero {
    min-height: 850px;
    height: auto;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    padding: 80px 0 70px;
    box-sizing: border-box;

    background: var(--navy-dark);
}

    .hero-background {
        background-position: 60% center;
    }

    .hero-content {
        padding-top: 135px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: clamp(43px, 11vw, 62px);
        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;

        margin-top: 55px;
    }

    .hero-image-caption {
        display: none;
    }

    .about-section,
    .technology-section,
    .species-section {
        padding: 75px 0;
    }

    .about-grid,
    .species-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .technology-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .technology-panel {
        padding: 25px 20px;
    }

    .analysis-entry {
        padding: 70px 0;
    }

    .analysis-entry-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* OFFICIAL CORALIS LOGO */

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 82px;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
}

/* =========================================
   OFFICIAL CORALIS LOGO
========================================= */

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 82px;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
}

/* =========================================
   OFFICIAL CORALIS LOGO
========================================= */

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 82px;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
}


/* =========================================
   OFFICIAL CORALIS LOGO
========================================= */

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 82px;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
}
/* =========================================
   OFFICIAL CORALIS LOGO
========================================= */

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 82px;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
}



/* =========================================
   CORALIS — LANDING PAGE INTERACTIONS
========================================= */

/* Navbar saat halaman digulir */
.navbar {
    transition: background 0.35s ease,
                box-shadow 0.35s ease,
                padding 0.35s ease;
}

.navbar.scrolled {
    background: rgba(3, 30, 44, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* Animasi elemen ketika masuk viewport */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease,
                transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efek interaktif kartu spesies */
.species-card {
    transition: transform 0.35s ease,
                box-shadow 0.35s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.species-card:hover {
    box-shadow: 0 18px 40px rgba(3, 30, 44, 0.16);
}

/* Gerakan halus latar hero */
.hero-background {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Animasi tombol */
.btn,
button {
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

/* CORALIS — Explicit Reveal Transition Fix */
@media (prefers-reduced-motion: reduce) {
    .coralis-reveal,
    .coralis-reveal.is-visible,
    .navbar,
    .species-card {
        transition: opacity 0.7s ease,
                    transform 0.7s ease,
                    background 0.7s ease,
                    box-shadow 0.7s ease !important;
    }

    .coralis-reveal {
        opacity: 0;
        transform: translateY(25px);
    }

    .coralis-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   CORALIS — JAVASCRIPT CLASS COMPATIBILITY
========================================= */

/* Navbar scroll effect */
.navbar.navbar-scrolled {
    background: rgba(3, 30, 44, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* Reveal animation */
.coralis-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease,
                transform 0.8s ease;
}

.coralis-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback jika animasi tidak didukung */
@media (prefers-reduced-motion: reduce) {
    .coralis-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =========================================
   CORALIS — IMMERSIVE UNDERWATER HERO
========================================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-background .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Navy-cyan cinematic overlay */
.hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(3, 25, 42, 0.88) 0%,
            rgba(3, 35, 55, 0.58) 48%,
            rgba(3, 35, 55, 0.18) 100%
        ),
        linear-gradient(
            0deg,
            rgba(3, 25, 42, 0.42),
            transparent 55%
        );
    pointer-events: none;
}

/* Keep hero content above the video */
.hero .hero-content {
    position: relative;
    z-index: 2;
}


/* =========================================
   CORALIS — HERO HEIGHT & CONTENT FIX
   ========================================= */

/* Pastikan seluruh konten hero terlihat */
.hero {
    min-height: 900px;
    height: auto;
    padding: 110px 0 55px;
    box-sizing: border-box;
}

/* Atur posisi konten utama */
.hero-content {
    padding-top: 35px;
    padding-bottom: 0;
}

/* Beri ruang yang cukup untuk statistik */
.hero-footer {
    margin-top: 65px;
    padding-top: 24px;
    max-width: 760px;
    flex-wrap: wrap;
}

/* Pastikan video tetap memenuhi hero */
.hero-background {
    position: absolute;
    inset: 0;
    height: 100%;
}

/* Penyesuaian layar laptop kecil */
@media (max-height: 800px) and (min-width: 681px) {
    .hero {
        min-height: 850px;
    }

    .hero-footer {
        margin-top: 50px;
    }
}

/* Penyesuaian layar ponsel */
@media (max-width: 680px) {
    .hero {
        min-height: 900px;
        height: auto;
        padding: 85px 0 55px;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 0;
    }

    .hero-footer {
        margin-top: 45px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }
}


/* =========================================
   CORALIS — BRIGHT & CLEAR VIDEO
   ========================================= */

/* Tingkatkan kejernihan video */
.hero-background .hero-video {
    filter: brightness(1.20) contrast(1.08) saturate(1.12);
}

/* Kurangi intensitas lapisan gelap */
.hero-background::after {
    background:
        linear-gradient(
            90deg,
            rgba(3, 25, 42, 0.65) 0%,
            rgba(3, 35, 55, 0.32) 48%,
            rgba(3, 35, 55, 0.08) 100%
        ),
        linear-gradient(
            0deg,
            rgba(3, 25, 42, 0.22),
            transparent 55%
        );
}

