/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00bcd4;
    --deep-blue: #0077b6;
    --light-blue: #90e0ef;
    --ocean-dark: #023e8a;
    --purple: #7b2cbf;
    --pink: #ff6b9d;
    --yellow: #ffd60a;
    --orange: #ff9500;
    --white: #ffffff;
    --gradient-ocean: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6b9d 0%, #ffd60a 100%);
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0077b6 0%, #023e8a 50%, #7b2cbf 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    animation: preloader-float 3s ease-in-out infinite;
}

@keyframes preloader-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.preloader-video-container {
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 0 0 8px rgba(255, 214, 10, 0.5),
        0 0 0 16px rgba(0, 188, 212, 0.3),
        0 0 60px rgba(123, 44, 191, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.4);
    animation: preloader-glow 2s ease-in-out infinite alternate;
}

@keyframes preloader-glow {
    0% {
        box-shadow: 
            0 0 0 8px rgba(255, 214, 10, 0.5),
            0 0 0 16px rgba(0, 188, 212, 0.3),
            0 0 60px rgba(123, 44, 191, 0.5),
            0 20px 60px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 
            0 0 0 8px rgba(255, 107, 157, 0.6),
            0 0 0 16px rgba(255, 214, 10, 0.4),
            0 0 80px rgba(0, 188, 212, 0.6),
            0 20px 60px rgba(0, 0, 0, 0.4);
    }
}

.preloader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preloader-text {
    color: var(--white);
}

.preloader-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--yellow), var(--pink), var(--primary-blue), var(--yellow));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: preloader-gradient 3s ease infinite;
    text-shadow: none;
}

@keyframes preloader-gradient {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.preloader-loading {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--yellow);
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
    background: var(--yellow);
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
    background: var(--pink);
}

.loading-dot:nth-child(3) {
    animation-delay: 0s;
    background: var(--primary-blue);
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Preloader bubbles effect */
.preloader::before,
.preloader::after {
    content: '🐋';
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: preloader-bubble 4s ease-in-out infinite;
}

.preloader::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.preloader::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes preloader-bubble {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 0.6; }
}

/* Mobile preloader */
@media (max-width: 768px) {
    .preloader-video-container {
        width: 200px;
        height: 200px;
    }
    
    .preloader-title {
        font-size: 1.8rem;
    }
    
    .preloader::before,
    .preloader::after {
        font-size: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Neue', cursive, sans-serif;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
}

/* Fallback gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 119, 182, 0.7) 0%, rgba(0, 188, 212, 0.5) 50%, rgba(144, 224, 239, 0.3) 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Bubbles Background */
.bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 50%;
    animation: rise 10s infinite ease-in;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.bubble:nth-child(1) { width: 20px; height: 20px; left: 10%; animation-duration: 8s; animation-delay: 0s; }
.bubble:nth-child(2) { width: 40px; height: 40px; left: 20%; animation-duration: 12s; animation-delay: 1s; }
.bubble:nth-child(3) { width: 25px; height: 25px; left: 35%; animation-duration: 9s; animation-delay: 2s; }
.bubble:nth-child(4) { width: 50px; height: 50px; left: 50%; animation-duration: 11s; animation-delay: 0.5s; }
.bubble:nth-child(5) { width: 35px; height: 35px; left: 65%; animation-duration: 10s; animation-delay: 3s; }
.bubble:nth-child(6) { width: 45px; height: 45px; left: 75%; animation-duration: 13s; animation-delay: 2.5s; }
.bubble:nth-child(7) { width: 30px; height: 30px; left: 85%; animation-duration: 8s; animation-delay: 1.5s; }
.bubble:nth-child(8) { width: 55px; height: 55px; left: 5%; animation-duration: 14s; animation-delay: 4s; }
.bubble:nth-child(9) { width: 28px; height: 28px; left: 45%; animation-duration: 9s; animation-delay: 3.5s; }
.bubble:nth-child(10) { width: 38px; height: 38px; left: 90%; animation-duration: 11s; animation-delay: 0.8s; }

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(50px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        bottom: 110vh;
        transform: translateX(-30px) scale(0.8);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(0, 119, 182, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.5rem;
}

.whale-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    background: linear-gradient(90deg, var(--yellow), var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--yellow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 119, 182, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.2rem;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
}

.whale-animation {
    margin-bottom: 30px;
}

.whale-body {
    position: relative;
    display: inline-block;
}

.whale-main {
    font-size: 8rem;
    animation: swim 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

@keyframes swim {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    25% { transform: translateY(-20px) rotate(0deg); }
    50% { transform: translateY(0) rotate(5deg); }
    75% { transform: translateY(10px) rotate(0deg); }
}

.water-splash {
    position: absolute;
    top: 10px;
    right: -20px;
    font-size: 2rem;
    animation: splash 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes splash {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 1; transform: translateY(-30px) scale(1.2); }
}

.hero-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 var(--deep-blue), 6px 6px 20px rgba(0,0,0,0.3);
}

.title-word {
    display: inline-block;
    animation: wave-text 2s ease-in-out infinite;
    background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink), var(--purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite, wave-text 2s ease-in-out infinite;
}

.title-word:nth-child(1) { animation-delay: 0s; }
.title-word:nth-child(2) { animation-delay: 0.1s; }
.title-word:nth-child(3) { animation-delay: 0.2s; }

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes wave-text {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-twitter {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
}

.btn-twitter .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-pump {
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    color: #1a1a2e;
}

.btn-dex {
    background: linear-gradient(135deg, #ff6b35 0%, #f7c59f 100%);
    color: #1a1a2e;
}

.btn-dapp {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    color: var(--white);
}

.dapp-icon {
    font-size: 1.3rem;
}

.btn-agent {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: var(--white);
}

.agent-icon {
    font-size: 1.3rem;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
}

.pump-icon, .dex-icon {
    font-size: 1.3rem;
}

/* Wave Animation */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.waves {
    width: 100%;
    height: 100px;
}

.wave-parallax > use {
    animation: wave-move 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.wave-parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.wave-parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.wave-parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.wave-parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes wave-move {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* About Section */
.about {
    background: var(--white);
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--deep-blue);
    text-shadow: 2px 2px 0 rgba(0,119,182,0.2);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,119,182,0.2);
}

.about-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0,119,182,0.3);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.about-card h3 {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.about-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-blue) 100%);
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.gallery .section-title {
    color: var(--deep-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '🐋';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    animation: color-shift 5s ease infinite;
}

@keyframes color-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Community Section */
.community {
    background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--deep-blue) 50%, var(--primary-blue) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.community .section-title {
    color: var(--white);
}

.community-text {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 3.5rem;
    color: var(--yellow);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.2rem;
    color: var(--light-blue);
}

.community-buttons {
    margin-top: 40px;
}

/* Footer */
.footer {
    background: var(--ocean-dark);
    padding: 50px 0 30px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--yellow);
}

.copyright {
    text-align: center;
    color: var(--light-blue);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .navbar {
        padding: 15px 20px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .whale-icon {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .whale-main {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .community-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .whale-main {
        font-size: 4rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ocean-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-blue);
}

/* Selection Styling */
::selection {
    background: var(--yellow);
    color: var(--ocean-dark);
}
