/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
}

/* Animated Ocean Background */
.ocean-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #006994 0%, 
        #009dc4 30%, 
        #00b4d8 60%, 
        #90e0ef 100%);
    z-index: -2;
    overflow: hidden;
}

/* Animated Waves */
.wave {
    position: absolute;
    width: 200%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    animation: wave 10s linear infinite;
}

.wave-1 {
    bottom: 0;
    opacity: 0.3;
    animation-duration: 15s;
}

.wave-2 {
    bottom: 20px;
    opacity: 0.2;
    animation-duration: 12s;
    animation-delay: -2s;
}

.wave-3 {
    bottom: 40px;
    opacity: 0.1;
    animation-duration: 18s;
    animation-delay: -4s;
}

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

/* Bubbles Animation */
.bubbles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    animation: rise linear infinite;
    opacity: 0.6;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* Floating Fish */
.fish-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.fish {
    position: absolute;
    font-size: 2rem;
    animation: swim linear infinite;
    opacity: 0.8;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes swim {
    0% {
        transform: translateX(-100px) scaleX(-1);
    }
    45% {
        transform: translateX(calc(100vw + 50px)) scaleX(-1);
    }
    50% {
        transform: translateX(calc(100vw + 50px)) scaleX(1);
    }
    95% {
        transform: translateX(-100px) scaleX(1);
    }
    100% {
        transform: translateX(-100px) scaleX(-1);
    }
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, #90e0ef 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fish-emoji {
    font-size: 3rem;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-whirlpool {
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    color: white;
    font-size: 1.3rem;
    padding: 1.2rem 2.5rem;
    animation: pulse-whirlpool 2s ease-in-out infinite;
    border: 3px solid rgba(157, 78, 221, 0.5);
    border-radius: 50px;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-whirlpool:hover {
    background: linear-gradient(135deg, #c77dff 0%, #9d4edd 100%);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.6);
}

.btn-whirlpool.spinning {
    animation: spin-btn 0.5s linear infinite;
}

@keyframes pulse-whirlpool {
    0%, 100% { box-shadow: 0 0 20px rgba(157, 78, 221, 0.4); }
    50% { box-shadow: 0 0 40px rgba(157, 78, 221, 0.8); }
}

@keyframes spin-btn {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.whirlpool-control {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Whirlpool Effect on Fish */
.fish.whirlpool {
    transition: all 0.5s ease-out;
}

/* Whirlpool Visual Effect */
.whirlpool-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whirlpool-overlay.active {
    opacity: 1;
}

.whirlpool-vortex {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle,
        transparent 0%,
        transparent 10%,
        rgba(157, 78, 221, 0.1) 20%,
        rgba(157, 78, 221, 0.2) 40%,
        rgba(123, 44, 191, 0.1) 60%,
        transparent 80%
    );
    animation: whirlpool-spin 2s linear infinite;
}

.whirlpool-vortex::before,
.whirlpool-vortex::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(157, 78, 221, 0.3);
    border-right-color: rgba(157, 78, 221, 0.2);
}

.whirlpool-vortex::before {
    width: 70%;
    height: 70%;
    animation: whirlpool-spin 3s linear infinite reverse;
}

.whirlpool-vortex::after {
    width: 40%;
    height: 40%;
    animation: whirlpool-spin 1.5s linear infinite;
}

@keyframes whirlpool-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pun Display */
.pun-display {
    margin-bottom: 3rem;
}

.pun-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pun-card.featured {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.2);
}

.pun-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.pun-text {
    font-size: 1.8rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.pun-contributor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.avatar {
    font-size: 1.5rem;
}

/* Puns Grid */
.puns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pun-card-small {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pun-card-small:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.pun-card-small .pun-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pun-card-small .pun-contributor {
    font-size: 0.9rem;
}

/* Cursor Following Fish */
.cursor-fish {
    position: fixed;
    font-size: 3rem;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    display: none;
}

@media (pointer: fine) {
    .cursor-fish {
        display: block;
    }
}

/* Ripple Effects */
.ripple-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
    height: 100%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sound-toggle.active {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    border-color: transparent;
}

/* Submit Page Styles */
.submit-container {
    max-width: 600px;
    margin: 0 auto;
}

.pun-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 154, 86, 0.3);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.btn-submit {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #5ee790 0%, #34d466 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.submit-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.submit-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.submit-info ul {
    list-style: none;
    padding: 0;
}

.submit-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.submit-info li::before {
    content: '🐟';
    position: absolute;
    left: 0;
}

.success-message {
    background: rgba(74, 222, 128, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    border: 2px solid rgba(74, 222, 128, 0.5);
    text-align: center;
}

.success-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.success-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Donations Page Styles */
.donate-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.donate-intro p {
    margin-bottom: 0.5rem;
}

.donate-thanks {
    font-weight: 700;
    color: #ff9a56;
    font-size: 1.3rem;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.crypto-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.crypto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9a56, #ff6b6b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.crypto-card:hover::before {
    transform: scaleX(1);
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.crypto-icon {
    font-size: 2rem;
    font-weight: bold;
}

.crypto-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
}

.crypto-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.crypto-address code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    flex: 1;
    color: #90e0ef;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.copy-btn.copied {
    background: #4ade80;
}

.crypto-label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-align: center;
}

.donate-message {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem 0;
    opacity: 0.8;
}

.footer p {
    margin-bottom: 0.5rem;
}

.domain {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .fish-emoji {
        font-size: 2rem;
    }
    
    .pun-text {
        font-size: 1.4rem;
    }
    
    .puns-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .crypto-grid {
        grid-template-columns: 1fr;
    }
    
    .cursor-fish {
        display: none;
    }
}

/* Ocean Floor Sand */
.ocean-floor {
    position: relative;
    width: 100%;
    height: 150px;
    margin-top: auto;
    pointer-events: none;
    z-index: 0;
}

.sand-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #d4c4a0 0%,
        #c9b896 30%,
        #b5a380 60%,
        #a08f6e 100%);
    border-radius: 50% 50% 0 0 / 40px 40px 0 0;
}

.sand-texture {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: 
        radial-gradient(circle at 20% 80%, #9a8b5f 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, #8b7c52 1.5px, transparent 1.5px),
        radial-gradient(circle at 60% 90%, #9a8b5f 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, #8b7c52 1px, transparent 1px),
        radial-gradient(circle at 10% 50%, #9a8b5f 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 40%, #8b7c52 2px, transparent 2px);
    background-size: 100px 100px, 80px 80px, 120px 120px, 60px 60px, 90px 90px, 110px 110px;
}
