/* ========================================
   MALAYSIAN FISH GUIDE - COMPLETE CSS
   ======================================== */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #003366;
    --secondary: #0066cc;
    --accent: #00cccc;
    --light: #f4f9ff;
    --white: #ffffff;
    --dark: #222;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    --radius: 14px;
    --transition: all 0.3s ease;
}

/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #003366, #0066cc);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.section-container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
}

/* Desktop nav */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links .active {
    color: var(--accent);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    background: var(--white);
    top: 30px;
    left: 0;
    display: none;
    flex-direction: column;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dropdown-menu a {
    padding: 10px 15px;
    color: var(--dark);
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

/* ========================================
   HERO SECTION (SAFE VERSION)
======================================== */

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* ===== Background Image ===== */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("images/background.jpg") center/cover no-repeat;

    z-index: 1;
}

/* ===== Dark Overlay ===== */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(0,0,0,0.7),
        rgba(0,40,80,0.6)
    );

    z-index: 2;
}

/* ===== Text Content ===== */
.hero-content {
    position: relative;
    z-index: 3;

    color: white;
    max-width: 800px;
    padding: 20px;
}

/* ===== Text Styling ===== */
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 30px;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* ===== Buttons ===== */

.cta-button,
.cta-button-large {
    display: inline-block;
    padding: 12px 25px;

    background: var(--secondary); /* Light blue first */
    color: white;

    text-decoration: none;
    border-radius: 30px;

    margin: 10px;

    transition: var(--transition);
}

.cta-button:hover,
.cta-button-large:hover {
    background: var(--primary); /* Dark blue hover */
    transform: scale(1.05);
}

/* ========================================
   FEATURED SECTION
======================================== */
.featured-section {
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.fish-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 1.2em;

    margin: 2.2em 0;
    padding: 0 1em;
}

.fish-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    margin-bottom: 20px; /* NEW */
}


@media (max-width: 768px) {

    .fish-grid {
        gap: 30px;
    }

    .fish-card {
        margin-bottom: 25px;
    }

    .section-container {
        padding: 40px 20px;
    }
}

.fish-card:hover {
    transform: translateY(-10px);
}

.fish-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.learn-more-btn,
.view-all-btn,
.btn-secondary {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: var(--transition);
}

.learn-more-btn:hover,
.view-all-btn:hover,
.btn-secondary:hover {
    background: var(--primary);
}

/* ========================================
   COMPARISON SECTION
======================================== */
.comparison-section {
    background: white;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.comparison-item {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.benefits-list {
    list-style: none;
    margin: 20px 0;
}

.benefits-list li {
    margin: 10px 0;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: linear-gradient(135deg, #0066cc, #00cccc);
    color: white;
    text-align: center;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: #001a33;
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-column h4 {
    margin-bottom: 15px;
}

.footer-column a {
    color: #00cccc;
    text-decoration: none;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 30px 0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* ========================================
   BUBBLE ANIMATION
======================================== */
.bubble-container {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

@keyframes rise {
    0% { transform: translateY(0); opacity: 0.6; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* ========================================
   FUN FISH CURSOR 🐟
======================================== */
body {
    cursor: url('images/fish-cursor.png'), auto;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        height: auto;
        padding-top: 120px;
    }
}

/* ========================================
   ADD THESE STYLES TO YOUR EXISTING CSS
   ======================================== */

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.95) 0%, rgba(0, 102, 204, 0.95) 100%);
    color: var(--white);
    padding: 60px 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.95;
}

/* CONTENT SECTIONS */
.content-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease;
}

.content-section h2 {
    color: var(--primary-blue);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--light-blue);
    padding-bottom: 0.75rem;
}

.content-section h3 {
    color: var(--secondary-blue);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.content-section p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.section-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: block;
}

/* COMPARISON CARDS */
.comparison-card {
    background: linear-gradient(135deg, #85a3bd 0%, #194f89 100%);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 5px solid var(--light-blue);
    border-radius: 8px;
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.comparison-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.comparison-card p {
    color: #4b4b4b;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* CARE ELEMENTS */
.care-element {
    background: linear-gradient(135deg, #506b84 0%, #e6f2ff 100%);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 5px solid var(--light-blue);
    border-radius: 8px;
    transition: var(--transition);
}

.care-element:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.care-element h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.care-element p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

/* BENEFIT CARDS */
.benefit-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 5px solid var(--accent-teal);
    border-radius: 8px;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.benefit-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 170, 255, 0.9) 100%);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: 15px;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    border: none;
    color: var(--white);
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
    color: var(--white);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA BUTTONS WRAPPER */
.cta-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.cta-button-large {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary); /* LIGHT BLUE */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.cta-button-large:hover {
    background: var(--primary); /* DARK BLUE */
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* RESPONSIVE BUTTONS */
@media (max-width: 768px) {
    .cta-buttons-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button-large {
        width: 100%;
        max-width: 300px;
    }

    .content-section {
        padding: 1.5rem 1rem;
    }
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FADE IN ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* SECTION CONTAINER */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .content-section {
        margin-bottom: 2rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }
}


/* ===== NAVBAR ===== */

#main-header{
    width:100%;
    height:80px;

    background: linear-gradient(270deg,#6c5ce7,#00cec9,#fd79a8);
    background-size:400% 400%;
    animation:morphingGradient 15s ease infinite;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 40px;

    position:fixed;
    top:0;
    z-index:999;
}

/* Logo */
.logo{
    color:white;
    font-size:1.5rem;
    font-weight:bold;
    text-decoration:none;
}

/* Desktop Nav */
.nav-links{
    display:flex;
    gap:30px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-weight:600;
}




/* ================= HERO VIDEO BACKGROUND ================= */

.hero {
    position: relative;
    height: 100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    overflow:hidden;
}

/* Video */
.hero-video {
    position:absolute;
    top:0;
    left:0;

    width:100%;
    height:100%;

    object-fit:cover;
    z-index:1;
}

/* Dark Overlay (VERY IMPORTANT for readability) */
.hero-overlay {
    position:absolute;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background: linear-gradient(
        rgba(0,0,0,0.7),
        rgba(0,40,80,0.6)
    );

    z-index:2;
}

/* Text content above video */
.hero-content {
    position:relative;
    z-index:3;
    color:white;
    max-width:800px;
    padding:20px;
}

.hero-content h1 {
    font-size:3rem;
    margin-bottom:20px;
}

.hero-content p {
    font-size:1.2rem;
    margin-bottom:30px;
}







/* BURGER MENU */

.menu-toggle{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

.menu-toggle .bar{
    width:28px;
    height:3px;
    background:white;
}

/* MOBILE NAV */

@media(max-width:768px){

    .menu-toggle{
        display:flex;
    }

    .nav-links{
        position:fixed;
        top:0;
        right:-100%;

        width:100%;
        height:100vh;

        background:rgba(0,0,0,0.95);

        flex-direction:column;
        justify-content:center;
        align-items:center;

        transition:0.4s ease;
    }

    .nav-links a{
        font-size:1.5rem;
        margin:15px 0;
    }

    .nav-links.active{
        right:0;
    }

}

/* Burger Animation */
.menu-toggle.active .bar:nth-child(1){
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2){
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle .bar{
    transition: 0.3s ease;
}

