/* --- ROOT COLORS --- */
:root {
    --surface: #0077b6;
    --mid: #0077b6;
    --deep: #03045e;
    --midnight: #000814;
    --accent: #ff7a00;
}


/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* --- BODY (NO FIXED BACKGROUND NOW) --- */
body {
    font-family: "Playfair Display", serif;
    padding-top: 0;

    background: linear-gradient(
        to bottom,
        var(--surface) 0%,
        var(--surface) 30%,
        var(--mid) 55%,
        var(--deep) 75%,
        var(--midnight) 90%,
        #000 100%
    );
}



/* --- HEADER --- */
.main-header {
    width: 100%;
    position: fixed; /* Changed to fixed so it stays as you dive */
    top: 0;
    z-index: 1000;
    background: transparent;
    
}



.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%; /* Responsive padding */
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo img { 
    width: clamp(120px, 56vw, 220px); /* Logo shrinks on mobile */
    height: auto; 
}

/* Hide Nav on very small screens or switch to a burger (simplified here) */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: clamp(10px, 3vw, 25px);
    padding: 0;
}

@media (max-width: 768px) {
    .main-nav { display: none; } /* Hide for mobile-first burger menu later */
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 500;
}

.main-header.hide {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}


/* -------------------------------------------
    Hero Section
------------------------------------------- */



/* --- HERO LAYOUT --- */

.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--surface);
}

/* IMAGE CONTAINER */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    z-index: 1;
    overflow: hidden; /* important */
}

/* BACKGROUND IMAGE */
.hero-bg-image {
    position: absolute;   /* critical fix */
    inset: 0;             /* fill container */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* WAVE */
.wave-divider {
    position: absolute;
    bottom:0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    transform: translateY(1px); /* tiny push down */
}



.wave-divider svg {
    display: block;
    width: 100%;
    height: clamp(40px, 8vw, 120px);
    transform: scaleY(-1);
}

@media (max-width:768px){

.wave-divider svg{
width:180%;
margin-left:-40%;
transform: scaleY(-1) scaleY(1.6);
}

}



/* Foreground Content */
.hero-foreground {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-bottom: 40px;
}

.hero-carousel {
    position: relative;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    width: 100%;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide h3 {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hero-slide p {
    color: #fff;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Title */

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(28px, 5vw, 52px);
    font-style: italic;
    line-height: 1.15;
    color: #fff;
    margin: 12px 0 20px;
}


.hero-btn {
    display: inline-flex;
    align-items: center;
    background: #ffd500;
    padding: clamp(10px, 2vw, 14px) clamp(18px, 4vw, 28px);
    border-radius: 40px;
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.hero-btn .arrow {
    background: #000;
    color: #fff;
    margin-left: clamp(8px, 1.5vw, 12px);
    padding: clamp(4px, 1vw, 6px) clamp(7px, 1.2vw, 10px);
    border-radius: 50%;
}



/* --- scroll indicator --- */

.scroll-indicator {
    position: absolute;
    bottom: clamp(10px, 3vh, 20px);
    left: 0;
    right: 0; 
    text-align: center; 
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.6vw, 5px);
    font-size: clamp(11px, 1.5vw, 14px);
    
    color: #fff;
    z-index: 20;
    opacity:1;
    transition:opacity 0.4s ease;
    
    animation: bounce 2s infinite;
}

        @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }


.scroll-indicator.hide{
opacity:0;
pointer-events:none;
}


/* -------------------------------------------
    Section and Horizonatal scroll
------------------------------------------- */

.section{
    width:100%;
    padding:20px 0;

}

.section .inner{
    max-width:1400px;
    margin:0 auto;
    padding:0 20px; 
    
}


.card-row{
display:flex;
gap:20px;
overflow-x:auto;
}


.card-row{
scroll-snap-type:x mandatory;
}

.content-card{
scroll-snap-align:start;
}

.card-row::-webkit-scrollbar{
display:none;
}

.card-row{
scrollbar-width:none;
}


/* ARROWS — desktop only */
.scroll-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.scroll-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.left-arrow  { left: 8px; }
.right-arrow { right: 8px; }

@media (min-width: 601px) {
    .scroll-arrow { display: flex; align-items: center; justify-content: center; }
}




.section-title {
    display: flex; /* Default for Desktop */
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 8px;
    font-family: "Playfair Display", serif;
    font-size: clamp(28px, 5vw, 52px);
    font-style: italic;
    color: #ffd500;
    margin-bottom: 25px;
    animation: titleBounce 2.5s infinite ease-in-out;
}


.title-main {
    white-space: nowrap; /* Keeps the main title from breaking */
    position: relative;
    
}

.title-main::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:100%;
    height:3px;
    background:#ffd500;
}

/* orange separator */
.title-sep{
    color:#ff7a00;
    margin:0 12px;
    font-weight:600;
}

.tag-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

/* tagline */
.title-tag {
    font-family: "Inter", sans-serif;
    font-size: clamp(14px, 1.5vw, 18px);
    color: #ffffff;
    line-height: 1.4; /* Better readability for multi-line tags */
    display: inline-block;
}


/* 2. MOBILE FIX (Screens smaller than 768px) */
@media (max-width: 768px) {
    .section-title {
        display: grid; 
        grid-template-columns: auto 1fr; 
        align-items: baseline;
        flex-wrap: wrap; /* Safety fallback */
    }

    .tag-container {
        /* This ensures the separator and tagline behave as one block */
        display: inline-flex; 
        flex-wrap: wrap;
        align-items: baseline;
    }
    

    .title-tag {
        
        display: block; 
        line-height: 1.3;
    }
}

@keyframes titleBounce{
    0%,100%{transform:translateY(0);}
    50%{transform:translateY(-6px);}
}


/* -------------------------------------------
    Attraction card
------------------------------------------- */



.content-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 50px 0 50px 0; 
    
    scroll-snap-align: start;
    height: 350px;
    position: relative;
}

.image-card {
    padding: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-width: 600px;
}

.image-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


.image-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0,0,0,0.6);
    z-index: 1;
    color: #fff;
}

.card-desc{
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
position:relative;
}

.card-desc.expanded{
-webkit-line-clamp:unset;
}

.card-desc:not(.expanded)::after{
content:"";
position:absolute;
bottom:0;
right:0;
width:40%;
height:20px;
background:linear-gradient(to right, transparent, rgba(0,0,0,0.6));
}

.read-more{
background:none;
border:none;
color:#ffd500;
font-size:14px;
cursor:pointer;
padding:0;
}

.read-more::after{
content:"→";
margin-left:5px;
transition:0.3s;
}

.read-more:hover::after{
margin-left:10px;
}



.card-row .content-card{
flex: 0 0 calc((100% - 40px) / 3); /* 3 cards, 20px gap */
height:350px;
margin:0;
}

@media (max-width:1024px){

.card-row .content-card{
flex: 0 0 calc((100% - 20px) / 2);
}

}

@media (max-width:600px){

.card-row .content-card{
flex:0 0 100%;
}

}


/* -------------------------------------------
    Activity Card
------------------------------------------- */

.surf-card {

    height: 420px;
    display: flex;
    flex-direction: column;

    background: transparent;

    border-top-left-radius: 110px;
    border-top-right-radius: 110px;
    border-bottom-left-radius: 110px 40px;
    border-bottom-right-radius: 110px 40px;

    border: 1px solid rgba(255,255,255,0.2);

    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    transition: transform .3s, box-shadow .3s;
}

.surf-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,180,255,0.4);
}

/* IMAGE */

.surf-image{
    height: 240px;
}

.surf-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* INFO */

.surf-info{

    flex:1;
    padding:18px;

    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;

    color:#fff;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
}

.surf-info h3{
    margin:0;
}

.price{
    color:#48cae4;
    font-weight:bold;
}

.book-btn{
    padding:8px 20px;
    background:#00b4d8;
    color:#012a4a;
    border-radius:20px;
    font-weight:600;
    text-decoration:none;
    transition:.3s;
}

.book-btn:hover{
    background:#48cae4;
}


.card-row .surf-card{
flex: 0 0 calc((100% - 40px) / 5); /* 3 cards, 20px gap */
margin:0;
}

@media (max-width:1024px){

.card-row .surf-card{
flex: 0 0 calc((100% - 20px) / 2);
}

}

@media (max-width:600px){

.card-row .surf-card{
        flex: 0 0 250px; /* fixed narrow width */
        height: 500px;   /* taller for surfboard look */
        }

 .surf-image{
    height: 350px;
}

}





.drop-card {
    width: 280px;
    height: 280px; /* Squares work best for droplets */
    background: #012a4a;
    
    /* The Droplet Shape */
    border-radius: 0% 50% 50% 50%; 
    transform: rotate(-45deg); 
    
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.drop-content {
    width: 100%;
    height: 100%;
    /* Un-rotate the content so it appears upright */
    transform: rotate(45deg) scale(1.4); 
    position: relative;
}

.drop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drop-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%; /* Covers the bottom half */
    background: linear-gradient(transparent, rgba(0, 29, 61, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding-bottom: 20px;
}

.drop-overlay h3 { margin: 0; font-size: 1.2rem; }
.drop-overlay p { color: #48cae4; font-weight: bold; margin: 5px 0; }




.shell-card {
    width: 280px;
    height: 350px;
    background: linear-gradient(180deg, #0077b6 0%, #0096c7 100%);
    
    /* The Shell Shape: 
       Horizontal: 50% top corners, 20% bottom corners
       Vertical: 80% top corners, 20% bottom corners */
    border-radius: 50% 50% 20% 20% / 80% 80% 20% 20%;
    
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.shell-image-container {
    width: 100%;
    height: 60%; /* The image fills the 'top' of the shell */
}

.shell-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shell-info {
    padding: 15px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shell-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
    color: #caf0f8;
}

.view-btn {
    margin-top: 15px;
    padding: 8px 25px;
    background: #ade8f4;
    color: #03045e;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Hover effect: The shell "opens" or lifts slightly */
.shell-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 45px rgba(0,180,216,0.5);
    border-color: #90e0ef;
}


/* -------------------------------------------
    Ocean
------------------------------------------- */


/* OCEAN WRAPPER */

.ocean-section {
    position: relative;
    width: 100%;
    display: block; /* Ensure it's not collapsed */
    overflow: visible;
    isolation: isolate;
   
}

/* FISH CONTAINER */
.fish-container {
    position: absolute;
    top: -20vh;       /* start near hero title */
    left: 0;
    width: 100%;
    bottom: 0;        /* stop at end of page content */
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}


/* FISH */
.fish {
    width: 50px;
    height: 30px;

    background-image: url('/assets/icons/fish.svg'); /* 👈 your path */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    display: block;
}


.fish-row {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

/* LEFT → RIGHT */
.fish-row.left {
    animation: swim-left linear infinite;
}

/* RIGHT → LEFT */
.fish-row.right {
    animation: swim-right linear infinite;
}

.fish-row.left .fish {
    transform: scaleX(1);   /* face right */
}

.fish-row.right .fish {
    transform: scaleX(-1);  /* face left */
}


@keyframes swim-left {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(150%); }
}

@keyframes swim-right {
    0% { transform: translateX(150%); }
    100% { transform: translateX(-150%); }
}


.fish {
    position: relative;
    display: inline-block;
}

/* Bubble from mouth */
.fish .bubble {
    position: absolute;
    left: 80%;   /* mouth position */
    top: 40%;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    opacity: 0;

    animation: bubbleUp 4s infinite;
}

/* Different timing for variation */
.fish .bubble:nth-child(1) {
    animation-delay: 0s;
}
.fish .bubble:nth-child(2) {
    animation-delay: 1.5s;
}

/* Bubble animation */
@keyframes bubbleUp {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translate(-20px, -80px) scale(1.2);
        opacity: 0;
    }
}

/* CONTENT ABOVE FISH */
.ocean-section section {
    position: relative;
    z-index: 2;
}




/* --- CORAL BARRIER --- */

.coral-barrier {
    width: 100%;
    height: 100px;

    background-image: url("coral.svg");
    background-repeat: repeat-x;
    background-size: contain;
    background-position: bottom;

    position: relative;
    z-index: 5;
    margin-bottom: -5px;
}

/* On Mobile: Make corals slightly smaller to ensure 3 fit comfortably */
@media (max-width: 600px) {
    .coral-barrier {
        height: 70px; 
    }
}


/* -------------------------------------------
    Footer 
------------------------------------------- */

.main-footer {
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--deep); 
    overflow: hidden;
    }

.footer-wave{
line-height:0;
margin-top:-2px;
}

.footer-wave svg{
display:block;
width:100%;
height:90px;
}


.footer-wave path{
fill: var(--deep);   /* #03045e */

}

@media (max-width:768px){

.footer-wave svg{
width:180%;
margin-left:-40%;

}

}


/* Inner Wrapper to Center Content */
.footer-inner-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px; /* Standard maximum width for centering content */
    margin: 0 auto;
    padding: 0 20px;
    text-align: center; /* Center the logo and social icons */
}


/* 2. Logo and Dividers Styling */
.footer-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.footer-logo {
    height: 40px; /* Adjust height of your logo */
    margin: 0 20px;
    filter: brightness(0) invert(1); /* Optional: Use if your logo is dark and you need it white */
}

.logo-line {
    flex-grow: 1; /* Makes the line take up available space */
    height: 1px;
    background-color: #ffffff;
    max-width: 300px; /* Limit the length of the line */
    opacity: 0.4;
}

/* 3. Social Icons Styling */
.footer-social-icons {
    padding: 5px 0 10px 0;
    display: flex;
    justify-content: center;
}

.footer-social-icons a {
    color: #ffffff;
    font-size: 20px;
    margin: 0 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-social-icons a:hover {
    opacity: 1;
}

/* 4. Copyright Text Styling */
.footer-copyright {
  
    padding: 10px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.7;
    text-align: center;
    border-top: 1px solid #333333; /* Separator line */
}

.footer-copyright p {
   color: #ffffff;
    margin: 5px 0;
}

