/* =========================================
   1. RESET & ASAS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Scroll licin */
}

body {
    background-color: #fefade;
    font-family: sans-serif;
    overflow-x: hidden; 
    overflow-y: auto;   
}

/* =========================================
   2. STICKY NAVBAR (MUNCUL BILA SCROLL)
   ========================================= */
.sticky-navbar {
    position: fixed; /* Melekat kat skrin */
    top: -150px;     /* Sorok kat atas siling pada mulanya */
    left: 0;
    width: 100%;
    padding: 15px 50px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff9e6; 
    
    z-index: 1000; /* Paling depan sekali */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Bayang sikit */
    
    /* Animasi Luncur Turun */
    transition: top 0.5s ease-in-out;
}

/* Class ini ditambah oleh JS bila scroll ke bawah */
.sticky-navbar.muncul {
    top: 0; /* Turun ke posisi asal */
}

/* Style Item Navbar */
.nav-logo { width: 60px; cursor: pointer; transition: transform 0.3s; }
.nav-logo:hover { transform: scale(1.1); }
.nav-menu { list-style: none; display: flex; gap: 20px; }
.nav-btn {
    text-decoration: none;
    color: #d62f56;              
    font-weight: 700;
    padding: 8px 25px;
    border: 2px solid #d62f56;    /* Default Pink Border */
    border-radius: 50px;
    transition: all 0.3s ease;
}
.nav-btn:hover {
    background-color: #d62f56;    /* Changes to Yellow on hover */
    border-color: #d62f56;        /* Border matches yellow */
    color: #fff;                  /* White text for contrast */
}
.nav-btn.active {
    color: #f5d34b;               /* Yellow Text */
    background-color: transparent; 
    border-color: #f5d34b;        /* Yellow Border */
}

.nav-btn.active:hover {
    background-color: #f5d34b;    /* Solid yellow when hovering active link */
    color: #fff;
}

/* Active navbar link — golden text, keep border */
.sticky-navbar .nav-menu .nav-btn.active {
    color: #f5d34b !important;        /* text color golden */
    background-color: transparent !important; /* no background */
    /* remove the transparent border line, so it keeps the original red border */
}

.sticky-navbar .nav-menu .nav-btn.active:hover {
    color: #f5d34b !important;        /* keep golden text on hover */
    background-color: transparent !important; 
}




/* Spacer: Jarak kosong di atas section supaya konten tak tertutup dek navbar */
.spacer-top { height: 100px; width: 100%; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
    background-image: url('../img/homepage/backdown.jpg'); 
    background-color: #e8c67a; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    z-index: 1; 
}

/* WRAPPER AWAN */
.cloud-wrapper {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 10; 
    pointer-events: none; /* Mouse tembus */
    opacity: 0; transform: translateY(80%) scale(0.8);
    animation: premiumEntrance 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.full-cloud-bottom {
    width: 100%; height: 100%;
    background-image: url('../img/homepage/backgroundremove.png'); 
    background-size: 100% auto; background-position: bottom center; background-repeat: no-repeat;
    transform-origin: bottom center;
    animation: cloudPulse 5s ease-in-out infinite, softGlow 4s ease-in-out infinite 2s;
}

/* CONTAINER LOGO & ARROW */
.hero-content {
    position: relative; z-index: 50; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-top: 50px; pointer-events: auto; /* Boleh Klik */
    transform: translateY(150px) scale(0.8); opacity: 0; 
    animation: logoRiseUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1s;
}

.hero-logo {
    width: 800px; max-width: 90vw; height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
    animation: magicalFloat 6s ease-in-out infinite;
}

.arrow-down {
    margin-top: 30px; font-size: 3rem; color: #d62f56;
    animation: bounceArrow 2s infinite; cursor: pointer; z-index: 51;
}

/* =========================================
   4. LAYOUT SECTION (STORY, DIVE, SPONSOR, CONTACT)
   ========================================= */
.story-section, .dive-info-section, .sponsors-section, .contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #fff9e6; 
    display: flex;
    flex-direction: column; 
    align-items: center;
    padding-bottom: 50px;
    z-index: 20; 
}

/* =========================================
   5. CONTENT STYLES
   ========================================= */
/* Story */
.content-container {
    max-width: 1100px; width: 100%; padding: 0 20px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.story-quote { font-size: 1.2rem; font-weight: 600; color: #d62f56; margin-bottom: 30px; max-width: 800px; }
.media-wrapper {
    position: relative;
    background-color: #000000; /* This provides the 'black' color */
    border-radius: 20px;
    overflow: hidden;
    display: block;
}
.media-wrapper:hover { transform: translateY(-5px); }
.story-image {
    width: 100%;
    display: block;
    opacity: 1; /* Fully visible */
    transition: opacity 0.3s ease; /* Smooth transition to dark */
}
.play-btn-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.8); width: 80px; height: 80px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 2rem; color: #d62f56;
}
.next-arrow-right { position: absolute; right: -50px; top: 55%; font-size: 4rem; color: #d62f56; animation: sideBounce 2s infinite; }

/* Dive Info */
.dive-content-wrapper { gap: 80px; flex-wrap: wrap; margin-top: 20px; display: flex; justify-content: center; align-items: center; max-width: 1100px; width: 100%; }
.image-collage { position: relative; width: 450px; height: 400px; }
.collage-img {
    position: absolute; width: 240px; height: 160px; object-fit: cover;
    border-radius: 20px; border: 4px solid #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.video-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.video-link:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.2);
    background-color: #c42754 !important; /* Solid Pink background */
    color: #ffffff !important;           /* White Arrow icon */
    box-shadow: 0 8px 25px rgba(196, 39, 84, 0.4);
}

/* Brighten the thumbnail image on hover */
.video-link:hover .story-image {
    opacity: 0.5; /* 0.5 = 50% black overlay effect */
}

/* --- Click Effect: Slight shrink when pressed --- */
.video-link:active .media-wrapper {
    transform: scale(0.98);
    transition: 0.1s;
}
/* Base style for all collage images */
.collage-img {
    position: absolute;
    border-radius: 20px;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, z-index 0s;
    object-fit: cover;
}
.image-collage {
    position: relative;
    width: 450px;
    height: 450px; /* Increased height slightly to accommodate the float */
    margin: 20px;
}

/* Individual Positions with Unique Floating Animations */
.img-top {
    top: 0;
    left: -50px;
     width: 260px;
    height: 260px;
    z-index: 1;
    animation: floatTop 7s ease-in-out infinite;
}

.img-bottom {
    bottom: -80px;
    left: -40px;
   width: 260px;
    height: 260px;
    z-index: 2;
    animation: floatBottom 8s ease-in-out infinite;
}

.img-center {
    top: 20%;
    right: 0;
    width: 260px;
    height: 260px;
    z-index: 3;
    animation: floatCenter 6s ease-in-out infinite;
}

/* Hover effect to stop animation and pop forward */
.collage-img:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10;
    animation-play-state: paused; /* Stops floating when you look closer */
}

/* --- Keyframes for the "Roll & Float" effect --- */

@keyframes floatTop {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes floatBottom {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-20px) translateX(10px) rotate(-1deg); }
}

@keyframes floatCenter {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}
.info-box-container { flex: 1; max-width: 700px; display: flex; flex-direction: column; align-items: center; }
.info-card {
    background-color: #c23358; 
	color: #fff; 
	padding: 40px; 
	border-radius: 30px;
    text-align: center; 
	box-shadow: 0 15px 30px rgba(194, 51, 88, 0.3); 
	border: 2px solid #fff;
    animation: floatCard 6s ease-in-out infinite;
	text-align: justify;
}
.info-card p { text-align: justify;}
.info-card strong { font-size: 1.3rem; color: #fff5d7; }
.dive-in-btn {
    margin-top: 30px; display: inline-block; background-color: #c23358; color: #fff;
    text-decoration: none; font-weight: bold; padding: 12px 40px; border-radius: 50px; border: 2px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.3s ease;
}
.dive-in-btn:hover { background-color: #fff; color: #c23358; transform: translateY(-5px); }

/* Sponsors */
.sponsors-section { padding-top: 60px; }
.section-title { font-size: 2.5rem; color: #d62f56; margin-bottom: 40px; font-weight: 700; text-align: center; }
.main-sponsor-wrapper { display: flex; justify-content: center; align-items: flex-start; gap: 40px; max-width: 1100px; width: 100%; padding: 0 20px; margin-bottom: 60px; }
.sponsor-left { text-align: center; max-width: 350px; }
.white-logo-card { background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 15px; }
.sponsor-img { width: 100%; height: auto; object-fit: contain; }
.sponsor-details h3 { color: #d62f56; font-size: 1.2rem; margin-bottom: 5px; }
.sponsor-details p { color: #c23358; font-weight: 600; }
.sponsor-right { flex: 1; display: flex; align-items: center; gap: 20px; }
.red-text-box { background-color: #c23358; color: #fff; padding: 30px; border-radius: 20px; line-height: 1.6; font-size: 0.95rem; flex: 1; text-align: justify; border: 2px solid #fff; }
.social-side { display: flex; flex-direction: column; gap: 15px; }
/* Remove default link styling */
.social-link {
    text-decoration: none;
    display: block;
    margin-bottom: 15px; /* Space between the two rows */
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background-color: transparent;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon {
    width: 30px;
    height: auto;
    transition: transform 0.3s ease;
}

.social-item span {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 18px;
    color: #d62f56; /* Match your pink theme */
    font-weight: 600;
}

/* --- HOVER ANIMATION --- */
.social-link:hover .social-item {
    background-color: rgba(214, 47, 86, 0.1); /* Very light pink tint */
    transform: translateX(10px); /* Slides slightly to the right */
}

.social-link:hover .social-icon {
    transform: scale(1.2) rotate(10deg); /* Grows and tilts icon */
}

.social-link:hover span {
    color: #c42754; /* Darkens text slightly */
}
.co-title {
    margin-bottom: 20px;
}

.co-sponsors-band {
    width: 100%;
    background-color: #c23358;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.co-sponsors-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;      /* stay in one row */
    overflow-x: hidden;     /* remove scrollbar */
    max-width: 1200px;
    width: 100%;
    padding: 10px 50px 10px 10px;
}

.co-card {
    background: #fff;
    width: 250px;
    border-radius: 0;
    overflow: hidden;
    text-align: center;
    display: flex;
    display: flex;
    flex-direction: column;
    flex-shrink: 1;         /* allow shrinking so no overflow */
}


.co-img-box {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.co-img-box img {
    max-width: 80%;
    max-height: 80%;
}

.co-text {
    background-color: #fff9e6;
    padding: 10px;
    font-size: 0.8rem;
    color: #c23358;
}

.co-text h4 {
    margin-bottom: 3px;
    font-weight: bold;
}

/* 1. Adjustable Title Image */
/* --- Updated Contact Content Wrapper --- */
.contact-content {
    text-align: center;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    margin: 0 auto 80px auto; /* Centers the whole container */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    justify-content: center;
}

/* 1. Adjustable Title Image Fix */
.contact-title-img {
    width: 450px;
    max-width: 90%;
    height: auto;
    margin: 0 auto 10px auto; /* Removed margin-left: 100px */
    display: block;
}

.contact-subtitle {
	color
}
/* 2. Video Link Wrapper (The "Dark Room") */
.world-link {
    display: block;
    margin: 20px auto 0 auto;
    text-decoration: none;
    position: relative;
    max-width: 800px; 
    width: 100%;
    cursor: pointer;
    
    /* ADD THESE FOR THE BLACK OVERLAY */
    background-color: #000000; /* The black that shows through */
    border-radius: 20px;       /* Match your thumbnail rounding */
    overflow: hidden;          /* Keeps the black contained */
}

/* 3. The Thumbnail Image */
.world-link .story-image {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease; /* Smooth transition */
}

/* 4. HOVER EFFECT: Darkens the image */
.world-link:hover .story-image {
    opacity: 0.5; /* Makes it 50% dark */
}

/* --- 1. The Play Button (Default State) --- */
.world-link .play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    
    /* Colors */
    background-color: #ffffff !important; /* Start White */
    color: #c42754 !important;           /* Pink Arrow */
    
    /* Shaping */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    z-index: 10;
    
    /* Animation Smoothness */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- 2. The Play Button (Hover State) --- */
/* We target the button WHEN the link is hovered */
.world-link:hover .play-btn-overlay {
    background-color: #c42754 !important; /* Turn Pink */
    color: #ffffff !important;           /* Arrow turns White */
    transform: translate(-50%, -50%) scale(1.15); /* Pop effect */
    box-shadow: 0 8px 25px rgba(196, 39, 84, 0.4);
}

/* Container for video sizing */
.video-container {
    width: 100%;
    margin: 0 auto;
}
/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;        /* distance from bottom */
    right: 30px;         /* distance from right */
    width: 50px;
    height: 50px;
    background-color: #c32c53;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 999;
}


/* ===== ARROW (CHEVRON, NO TAIL) ===== */
.scroll-top span {
    width: 14px;
    height: 14px;
    border-left: 4px solid #fefade;
    border-top: 4px solid #fefade;
    transform: rotate(45deg);
    margin-top: 4px; /* optical centering */
}

/* ===== HOVER EFFECT (OPTIONAL) ===== */
.scroll-top:hover {
    transform: translateY(-4px);
    transition: 0.3s ease;
}

/* --- FOOTER & COLLAB CONTAINER --- */
/* This section holds the pink bar and the copyright */
.collaboration-section {
    width: 100%;
    padding: 20px 40px; /* Space around the pink bar */
    background-color: #fefade; /* Matches page background */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* THE PINK "PILL" BOX */
.collab-box {
    position: relative;
    width: 250%;
    max-width: 1485px; /* Adjust based on your container width */
    height: 120px;
    background-color: #c42754;
    border: 2px solid #fefade; /* Thin light border like the image */
    border-radius: 30px; /* Rounded corners for the pill look */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* CONTAINER FOR LOGOS (Inside the pink box) */
.footer-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left side (Socials) */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center; /* Keeps icons vertically centered */
}

.social-icons img {
    width: 60px;
    height: auto;
    display: block;
    margin-top: 30px; /* Removed fixed top margin to let flexbox handle it */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
}

/* Hover Effect: Icon grows and brightens */
.social-icons a:hover img {
    transform: scale(1.2); /* Grows 20% larger */
    filter: brightness(1.2);
}

/* Click Effect: Icon shrinks slightly when pressed */
.social-icons a:active img {
    transform: scale(0.9);
    transition: transform 0.1s;
}
/* Right side (Collab Text + Logos) */
.collab-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Keeps everything aligned to the right */
    gap: 12px;             /* Space between the title image and the logos */
}
.collab-tagline {
    font-family: 'NegritaPro', sans-serif;
    color: #fff;
    font-size: 18px;
    margin: 0;
}
.collab-title-img {
    width: 200px;          /* Adjust this width based on your image size */
    height: auto;
    display: block;
    margin-bottom: -10px;    /* Extra fine-tuning for the gap */
}

.partner-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}

.partner-logos img {
    height: 60px;
    width: auto;
}

/* --- COPYRIGHT FOOTER --- */
.site-footer {
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    text-align: center;
	margin-bottom: -20px;
}

.site-footer p {
    color: #c42754; /* Pink text on yellow background */
    font-size: 16px;
    font-weight: 500px;
	margin-top: 5px;
}


/* =========================================
   6. ANIMASI (KEYFRAMES)
   ========================================= */
@keyframes premiumEntrance { 0% { opacity: 0; transform: translateY(80%) scale(0.8); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes logoRiseUp { 0% { opacity: 0; transform: translateY(150px) scale(0.8); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cloudPulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes softGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.1); } }
@keyframes magicalFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 33% { transform: translateY(-15px) rotate(-2deg); } 66% { transform: translateY(5px) rotate(2deg); } }
@keyframes bounceArrow { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes sideBounce { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.logo-exit { animation: logoDropExit 0.8s ease-in forwards !important; }
@keyframes logoDropExit { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(300px) scale(0.8); opacity: 0; } }
.logo-enter { animation: logoReEnter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important; }
@keyframes logoReEnter { 0% { opacity: 0; transform: translateY(150px) scale(0.8); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* =========================================
   7. RESPONSIVE (PHONE)
   ========================================= */
@media (max-width: 900px) {
    .main-sponsor-wrapper { flex-direction: column; align-items: center; }
    .sponsor-right { flex-direction: column; width: 100%; }
    .social-side { flex-direction: row; margin-top: 10px; }
}
@media (max-width: 768px) {
    .sticky-navbar { flex-direction: column; gap: 10px; padding: 15px; }
    .spacer-top { height: 140px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .hero-logo { width: 90%; }
    .next-arrow-right { display: none; }
    .dive-content-wrapper { flex-direction: column-reverse; gap: 40px; }
    .image-collage { width: 100%; height: 350px; display: flex; justify-content: center; }
    .img-top { left: 10%; width: 180px; height: 120px; }
    .img-bottom { left: 5%; bottom: 20px; width: 180px; height: 120px; }
    .img-center { right: 10%; width: 200px; height: 200px; }
    .footer-bar { flex-direction: column; gap: 20px; padding: 30px 20px; text-align: center; }
    .back-to-top-btn { right: 20px; bottom: 200px; width: 50px; height: 50px; }
    .co-card { width: 45%; }
}