/*
Theme Name: Maldivoff VIP Freediving (V9 Creative Ocean Masterpiece)
Description: SVG waves, floating bubbles, gold shimmer, glassmorphism, animated ocean gradient.
Version: 9.0.0
*/

:root {
    --bg: #020202;
    --text: #ececec;
    --text-muted: #9a9a9a;
    --gold: #999944;
    --gold-deep: #666111;
    --gold-dark: #4A4404;
    --gold-glow: rgba(153, 153, 68, 0.25);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-pill: 40px;
    --ease-fluid: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-zen: cubic-bezier(0.4, 0.0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    width: 100%;
}

::selection {
    background: var(--gold-dark);
    color: #fff;
}

/* =========================================================================
   LIVING OCEAN BACKGROUND (Animated Gradient Caustics)
========================================================================= */
.ocean-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -100;
    overflow: hidden;
}

.ocean-ambient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(153, 153, 68, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(102, 97, 17, 0.04) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(74, 68, 4, 0.05) 0%, transparent 55%);
    animation: ocean-drift 60s ease-in-out infinite alternate;
}

.ocean-ambient::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background:
        radial-gradient(ellipse at 70% 60%, rgba(153, 153, 68, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 20%, rgba(74, 68, 4, 0.06) 0%, transparent 50%);
    animation: ocean-drift 80s ease-in-out infinite alternate-reverse;
}

@keyframes ocean-drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(3%, -2%) rotate(3deg);
    }

    66% {
        transform: translate(-2%, 3%) rotate(-2deg);
    }

    100% {
        transform: translate(1%, -1%) rotate(1deg);
    }
}

/* =========================================================================
   FLOATING OCEAN BUBBLES (CSS-only particles)
========================================================================= */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -50;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -10%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(153, 153, 68, 0.15), rgba(153, 153, 68, 0.03));
    animation: bubble-rise linear infinite;
    opacity: 0;
}

.bubble:nth-child(1) {
    left: 10%;
    width: 6px;
    height: 6px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    left: 25%;
    width: 4px;
    height: 4px;
    animation-duration: 20s;
    animation-delay: 3s;
}

.bubble:nth-child(3) {
    left: 45%;
    width: 8px;
    height: 8px;
    animation-duration: 30s;
    animation-delay: 1s;
}

.bubble:nth-child(4) {
    left: 60%;
    width: 3px;
    height: 3px;
    animation-duration: 22s;
    animation-delay: 5s;
}

.bubble:nth-child(5) {
    left: 75%;
    width: 5px;
    height: 5px;
    animation-duration: 28s;
    animation-delay: 2s;
}

.bubble:nth-child(6) {
    left: 88%;
    width: 7px;
    height: 7px;
    animation-duration: 35s;
    animation-delay: 4s;
}

.bubble:nth-child(7) {
    left: 35%;
    width: 4px;
    height: 4px;
    animation-duration: 26s;
    animation-delay: 7s;
}

.bubble:nth-child(8) {
    left: 55%;
    width: 5px;
    height: 5px;
    animation-duration: 32s;
    animation-delay: 6s;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        transform: translateY(-50vh) translateX(20px) scale(1);
        opacity: 0.4;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(-110vh) translateX(-10px) scale(0.8);
        opacity: 0;
    }
}

/* =========================================================================
   GOLD SHIMMER TEXT ANIMATION
========================================================================= */
.text-shimmer {
    background: linear-gradient(120deg,
            var(--gold-dark) 0%,
            var(--gold) 25%,
            #cccc77 50%,
            var(--gold) 75%,
            var(--gold-dark) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 250% center;
    }

    100% {
        background-position: -250% center;
    }
}

/* =========================================================================
   TYPOGRAPHY
========================================================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.15;
    color: #fff;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.6s var(--ease-fluid);
}

a:hover {
    color: var(--gold);
}

/* =========================================================================
   ANIMATIONS (Reveal, Fade, Float)
========================================================================= */
.reveal-wrap {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}

.reveal-text {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 2s var(--ease-zen);
    will-change: transform;
}

.is-visible .reveal-text {
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.4s;
}

.delay-2 {
    transition-delay: 0.8s;
}

.delay-3 {
    transition-delay: 1.2s;
}

.delay-4 {
    transition-delay: 1.6s;
}

.reveal-img-wrap {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transition: clip-path 2.5s var(--ease-zen);
    will-change: clip-path;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.is-visible.reveal-img-wrap,
.is-visible .reveal-img-wrap {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.img-scale {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 4s var(--ease-fluid);
    will-change: transform;
    border-radius: var(--radius-lg);
}

.is-visible .img-scale {
    transform: scale(1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 10s ease-in-out infinite;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2s var(--ease-zen), transform 2s var(--ease-zen);
}

.is-visible.fade-up,
.is-visible .fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   LAYOUT
========================================================================= */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section-spacer {
    padding: 10vw 0;
}

/* =========================================================================
   SVG WAVE DIVIDER
========================================================================= */
.wave-divider {
    width: 100%;
    height: auto;
    display: block;
    margin: -2px 0;
    /* Remove subpixel gaps */
    overflow: hidden;
}

.wave-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

.wave-divider path {
    fill: var(--bg);
}

.wave-divider.flip {
    transform: scaleY(-1);
}

/* =========================================================================
   HEADER
========================================================================= */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5vw 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: padding 0.8s var(--ease-fluid), background 0.8s var(--ease-fluid);
}

.header-main.scrolled {
    padding: 1.2vw 5vw;
    background: rgba(2, 2, 2, 0.8);
    backdrop-filter: blur(30px) saturate(150%);
    border-bottom: 1px solid rgba(153, 153, 68, 0.08);
}

.logo-wrap {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.logo-wrap span {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    display: block;
    margin-top: 0.15rem;
}

.nav-links {
    display: flex;
    gap: 3.5vw;
    list-style: none;
}

.nav-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.6s var(--ease-fluid);
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================================================================
   LIQUID OCEAN GOLD BUTTON (V9: REFINED ULTRA-SLOW)
========================================================================= */
.btn-luxury {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1.4rem 4rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    border: 1px solid var(--gold-deep);
    border-radius: var(--radius-pill);
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: color 1.5s var(--ease-fluid), border-color 1.5s var(--ease-fluid), box-shadow 2s var(--ease-fluid);
    z-index: 1;
}

.btn-luxury span {
    position: relative;
    z-index: 2;
}

.btn-luxury::before,
.btn-luxury::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    top: 160px;
    /* Start below the button */
    left: 50%;
    margin-left: -200px;
    border-radius: 40%;
    transition: top 8s ease-in-out;
    /* ZEN: 8 seconds to fill */
    z-index: -1;
    pointer-events: none;
}

.btn-luxury::before {
    background: rgba(102, 97, 17, 0.92);
    animation: wave-spin 18s linear infinite;
}

.btn-luxury::after {
    background: rgba(153, 153, 68, 0.85);
    border-radius: 43%;
    animation: wave-spin 24s linear infinite reverse;
}

.btn-luxury:hover::before {
    top: -180px;
}

.btn-luxury:hover::after {
    top: -190px;
}

@keyframes wave-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-luxury:hover {
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 60px rgba(153, 153, 68, 0.2), 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Underwater glow */
}

/* =========================================================================
   HERO
========================================================================= */
.hero-v4 {
    height: 100vh;
    height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg,
.hero-bg .grok-gallery-wrapper,
.hero-bg .gallery-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(2, 2, 2, 0.15) 0%, rgba(2, 2, 2, 0.5) 50%, rgba(2, 2, 2, 0.95) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 10;
    width: 100%;
    pointer-events: none;
}

.hero-content .btn-luxury {
    pointer-events: auto;
}

.hero-title {
    font-size: clamp(4rem, 14vw, 12rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin: 0;
    line-height: 0.85;
    text-shadow: 0 0 80px rgba(153, 153, 68, 0.15), 0 20px 60px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.65rem, 1.5vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.6em;
    color: var(--gold);
    margin-bottom: 4vh;
}

.hero-spacer {
    height: 5vh;
}

/* =========================================================================
   ABOUT
========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 8vw;
    align-items: center;
}

.about-img {
    aspect-ratio: 3/4;
}

.about-text h2 {
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
}

.about-text p em {
    font-family: var(--font-heading);
    font-size: 1.3em;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* =========================================================================
   GLASSMORPHISM PROGRAM CARDS
========================================================================= */
.programs-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5vw;
    width: 100%;
}

.program-card {
    background: rgba(153, 153, 68, 0.03);
    /* Near-invisible tint */
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(153, 153, 68, 0.1);
    border-radius: var(--radius-lg);
    padding: 3.5vw 3vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1.3;
    transition: all 1.2s var(--ease-fluid);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow */
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(153, 153, 68, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 1.2s var(--ease-fluid);
    pointer-events: none;
}

.program-card:hover {
    border-color: rgba(153, 153, 68, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(153, 153, 68, 0.08);
}

.program-card:hover::before {
    opacity: 1;
}

.prog-price {
    color: var(--gold);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    letter-spacing: 0.15em;
    margin-bottom: auto;
    font-family: var(--font-body);
    font-weight: 300;
}

.prog-content {
    margin-top: 3vw;
}

.prog-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 0.8rem;
}

.prog-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================================================
   FULLWIDTH VISUAL
========================================================================= */
.fullwidth-image {
    position: relative;
    height: 70vh;
    margin: 0 5vw;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* =========================================================================
   FAQ (Minimalist)
========================================================================= */
.faq-wrap {
    max-width: 750px;
    margin: 0 auto;
}

.faq-q {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    padding: 2vw 0;
    border-bottom: 1px solid rgba(153, 153, 68, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.5s var(--ease-fluid);
}

.faq-q:hover {
    color: var(--gold);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s var(--ease-fluid);
}

.faq-a-inner {
    padding: 2vw 0 3.5vw 0;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

.faq-input:checked+.faq-q+.faq-a {
    max-height: 500px;
}

.faq-input:checked+.faq-q .icon {
    transform: rotate(45deg);
    color: var(--gold);
}

.faq-input {
    display: none;
}

.faq-q .icon {
    transition: transform 0.6s var(--ease-fluid), color 0.6s var(--ease-fluid);
    font-family: var(--font-body);
    font-weight: 100;
    font-size: 1.8rem;
    color: var(--gold-deep);
}

/* =========================================================================
   CTA SECTION
========================================================================= */
.cta-section {
    text-align: center;
    position: relative;
}

.cta-section h2 {
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 2rem;
}

.cta-section p {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 200;
    margin-bottom: 4vw;
    max-width: 600px;
    margin-inline: auto;
}

/* =========================================================================
   MOBILE (768px): ABSOLUTE CENTER & SAFE ZONES
========================================================================= */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 8vw;
    }

    .about-img {
        aspect-ratio: 16/9;
    }

    .programs-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-card {
        aspect-ratio: auto;
        min-height: 380px;
    }

    .fullwidth-image {
        margin: 0 4vw;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding: 0 8vw !important;
        max-width: 100%;
    }

    .section-spacer {
        padding: 20vw 0;
    }

    .header-main {
        padding: 5vw 8vw;
    }

    .header-main.scrolled {
        padding: 4vw 8vw;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .hero-subtitle {
        letter-spacing: 0.4em;
        font-size: 0.7rem;
    }

    /* ABSOLUTE CENTER: Force everything */
    .about-text,
    .prog-content,
    .faq-wrap,
    .cta-section,
    .reveal-wrap,
    .reveal-text {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    .about-text p {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 95%;
    }

    .btn-luxury {
        display: inline-flex !important;
        width: auto !important;
        margin: 0 auto !important;
        max-width: 90%;
    }

    .about-img {
        aspect-ratio: 4/5;
        border-radius: 20px;
    }

    .programs-wrapper {
        grid-template-columns: 1fr;
        gap: 6vw;
        padding: 0 2vw;
    }

    .program-card {
        padding: 10vw 8vw;
        aspect-ratio: auto;
        min-height: 320px;
        align-items: center;
        text-align: center;
    }

    .prog-price {
        margin-bottom: 2rem;
    }

    .faq-q {
        font-size: 1.5rem;
        text-align: center !important;
        flex-direction: column;
        gap: 0.8rem;
        padding: 5vw 0;
    }

    .faq-a-inner {
        text-align: center !important;
        padding: 4vw 4vw !important;
    }

    .fullwidth-image {
        margin: 0 4vw;
        height: 50vh;
    }

    .wave-divider svg {
        height: 40px;
    }
}