/* ===== CSS Custom Properties ===== */
:root {
    --ocean-dark: #0a1628;
    --ocean-mid: #0d2137;
    --ocean-light: #133b5c;
    --deep-ocean: #060f1d;
    --coral: #FF6B6B;
    --teal: #4ECDC4;
    --gold: #FFD93D;
    --purple: #6C5CE7;
    --pink: #FD79A8;
    --green: #00B894;
    --blue: #0984E3;
    --text-primary: #ffffff;
    --text-secondary: #b8d4e3;
    --text-muted: #7a9bb5;
    --shark-body: #5f7d95;
    --shark-fin: #4a6a82;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.05);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--ocean-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Animated Bubbles Background ===== */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle at 30% 30%, rgba(78, 205, 196, 0.15), rgba(78, 205, 196, 0.03));
    border-radius: 50%;
    animation: rise linear infinite;
}

.bubble:nth-child(1)  { left: 5%;  width: 30px; height: 30px; animation-duration: 18s; animation-delay: 0s; }
.bubble:nth-child(2)  { left: 15%; width: 20px; height: 20px; animation-duration: 22s; animation-delay: 2s; }
.bubble:nth-child(3)  { left: 30%; width: 40px; height: 40px; animation-duration: 25s; animation-delay: 4s; }
.bubble:nth-child(4)  { left: 45%; width: 15px; height: 15px; animation-duration: 20s; animation-delay: 1s; }
.bubble:nth-child(5)  { left: 55%; width: 35px; height: 35px; animation-duration: 28s; animation-delay: 3s; }
.bubble:nth-child(6)  { left: 65%; width: 25px; height: 25px; animation-duration: 19s; animation-delay: 5s; }
.bubble:nth-child(7)  { left: 75%; width: 45px; height: 45px; animation-duration: 24s; animation-delay: 2s; }
.bubble:nth-child(8)  { left: 85%; width: 18px; height: 18px; animation-duration: 21s; animation-delay: 6s; }
.bubble:nth-child(9)  { left: 92%; width: 28px; height: 28px; animation-duration: 26s; animation-delay: 1s; }
.bubble:nth-child(10) { left: 40%; width: 22px; height: 22px; animation-duration: 23s; animation-delay: 7s; }

@keyframes rise {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-110vh) translateX(40px) scale(0.3); opacity: 0; }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s;
}

.nav-brand {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--teal), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--coral));
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(78, 205, 196, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--ocean-dark) 0%, var(--ocean-mid) 100%);
    padding: 2rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 1rem;
}

.wave-text span {
    display: inline-block;
    animation: wave 2.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}

.wave-text span:nth-child(odd) {
    color: var(--teal);
}

.wave-text span:nth-child(even) {
    color: var(--coral);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 25px rgba(78, 205, 196, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(78, 205, 196, 0.5);
}

/* ===== Swimming Sharks ===== */
.hero-sharks {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.swimming-shark {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Subtle tail/body wiggle */
.shark-body-group {
    transform-origin: center;
}

/* Great White - large, right to left, mid-screen */
.shark-1 {
    width: 280px;
    top: 55%;
    animation: swim-rtl 18s linear infinite, bob-1 4s ease-in-out infinite, fade-shark 18s linear infinite;
}

/* Hammerhead - left to right, upper area */
.shark-2 {
    width: 220px;
    top: 25%;
    animation: swim-ltr 22s linear infinite 4s, bob-2 5s ease-in-out infinite, fade-shark 22s linear infinite 4s;
}

/* Reef shark - small, right to left, lower */
.shark-3 {
    width: 150px;
    top: 72%;
    animation: swim-rtl 14s linear infinite 8s, bob-1 3.5s ease-in-out infinite, fade-shark 14s linear infinite 8s;
}

/* Whale shark - big and slow, left to right, mid-low */
.shark-4 {
    width: 340px;
    top: 42%;
    animation: swim-ltr 28s linear infinite 2s, bob-2 6s ease-in-out infinite, fade-shark 28s linear infinite 2s;
}

/* Blue shark - fast and small, right to left, high */
.shark-5 {
    width: 140px;
    top: 18%;
    animation: swim-rtl 12s linear infinite 6s, bob-1 3s ease-in-out infinite, fade-shark 12s linear infinite 6s;
}

/* Swim right to left */
@keyframes swim-rtl {
    0%   { left: 110%; }
    100% { left: -30%; }
}

/* Swim left to right */
@keyframes swim-ltr {
    0%   { left: -30%; }
    100% { left: 110%; }
}

/* Gentle vertical bob variations */
@keyframes bob-1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30%      { transform: translateY(-12px) rotate(-1.5deg); }
    70%      { transform: translateY(8px) rotate(1deg); }
}

@keyframes bob-2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40%      { transform: translateY(10px) rotate(1deg); }
    80%      { transform: translateY(-8px) rotate(-1.5deg); }
}

/* Fade in/out at edges */
@keyframes fade-shark {
    0%   { opacity: 0; }
    5%   { opacity: 0.45; }
    90%  { opacity: 0.45; }
    100% { opacity: 0; }
}

/* ===== Sections ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--teal), var(--coral), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===== Shark Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.shark-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    position: relative;
    overflow: hidden;
}

.shark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    border-radius: 20px 20px 0 0;
}

.shark-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px color-mix(in srgb, var(--accent) 15%, transparent);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.shark-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.latin-name {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.shark-card > p:not(.latin-name) {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat strong {
    color: var(--accent);
}

.card-tag {
    display: inline-block;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    color: var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ===== Fun Facts Banner ===== */
.fun-facts-banner {
    background: linear-gradient(135deg, var(--ocean-light), var(--purple));
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.facts-scroll {
    display: flex;
    gap: 4rem;
    animation: scroll-left 30s linear infinite;
    width: max-content;
}

.fact {
    white-space: nowrap;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Marine Life Cards ===== */
.marine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.marine-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.marine-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--color) 10%, transparent), transparent 70%);
    pointer-events: none;
}

.marine-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.marine-emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.marine-card h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.marine-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== Diving Section ===== */
.diving-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.diving-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(9, 132, 227, 0.1));
    border-color: rgba(78, 205, 196, 0.3);
}

.diving-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.diving-card h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--teal);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.diving-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.diving-checklist h4 {
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.diving-checklist ul {
    list-style: none;
}

.diving-checklist li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.diving-checklist li::before {
    content: '🫧';
    position: absolute;
    left: 0;
}

.diving-goals h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--coral);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.destination-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.destination {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.25rem;
    transition: transform 0.3s, border-color 0.3s;
}

.destination:hover {
    transform: translateX(8px);
    border-color: rgba(255, 107, 107, 0.4);
}

.dest-flag {
    font-size: 2rem;
    flex-shrink: 0;
}

.destination strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.destination p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ===== Conservation Section ===== */
.conservation-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(253, 121, 168, 0.08));
    border-radius: 0;
    max-width: 100%;
    padding: 6rem 2rem;
}

.conservation-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.conservation-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 1.5rem auto 3rem;
}

.conservation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.cons-stat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s;
}

.cons-stat:hover {
    transform: translateY(-5px);
}

.cons-number {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--coral), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.cons-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ===== About Section ===== */
.about-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-avatar {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.about-content h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    background: var(--deep-ocean);
    text-align: center;
    padding: 0;
}

.footer-wave {
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.footer-content {
    padding: 2rem;
    background: var(--deep-ocean);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-tagline {
    color: var(--teal) !important;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ===== Scroll Animations ===== */
.shark-card,
.marine-card,
.diving-card,
.diving-goals,
.destination,
.cons-stat {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.shark-card.visible,
.marine-card.visible,
.diving-card.visible,
.diving-goals.visible,
.destination.visible,
.cons-stat.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .diving-content {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 1.25rem;
    }

    .swimming-shark {
        transform: scale(0.6);
    }
}

@media (max-width: 480px) {
    .conservation-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .marine-grid {
        grid-template-columns: 1fr;
    }
}
