* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00d4ff;
    --light-blue: #4de1ff;
    --water-blue: #00a8cc;
    --deep-blue: #0066cc;
    --ocean-dark: #004488;
    --white: #ffffff;
    --blox-shadow: 0 4px 0 var(--ocean-dark);
    --blox-shadow-light: 0 3px 0 var(--water-blue);
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(180deg,
        #0077b6 0%,
        #0096c7 20%,
        #00b4d8 40%,
        #48cae4 60%,
        #90e0ef 80%,
        #ade8f4 100%
    );
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fish Background */
.fish-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.background-fish {
    position: absolute;
    opacity: 0.12;
    transition: transform 0.3s ease;
}

.background-fish svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

/* Bubbles */
.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(255,255,255,0.8), rgba(255,255,255,0.2));
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    animation: rise linear infinite;
}

@keyframes rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50vh) translateX(20px);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(-20px);
        opacity: 0;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 50px 20px 30px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Blox Fish Logo */
.blox-fish {
    width: 130px;
    height: 85px;
    position: relative;
    animation: swim 2.5s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.fish-body {
    width: 85px;
    height: 55px;
    background: linear-gradient(135deg, #00d4ff, #0096c7);
    border-radius: 10px;
    position: absolute;
    left: 20px;
    top: 15px;
    box-shadow: var(--blox-shadow);
    border: 3px solid var(--ocean-dark);
}

.fish-tail {
    width: 30px;
    height: 35px;
    background: linear-gradient(135deg, #00d4ff, #0096c7);
    position: absolute;
    right: 2px;
    top: 25px;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    box-shadow: var(--blox-shadow);
    border: 3px solid var(--ocean-dark);
}

.fish-eye {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 5px;
    position: absolute;
    left: 32px;
    top: 28px;
    border: 2px solid var(--ocean-dark);
    animation: blink 3s infinite;
}

.fish-eye::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    right: 2px;
    top: 3px;
}

.fish-fin {
    width: 22px;
    height: 18px;
    background: linear-gradient(135deg, #4de1ff, #00b4d8);
    position: absolute;
    left: 55px;
    top: 2px;
    border-radius: 5px 5px 0 0;
    border: 2px solid var(--ocean-dark);
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.title {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    color: var(--white);
    text-shadow:
        4px 4px 0 var(--ocean-dark),
        -2px -2px 0 var(--ocean-dark),
        2px -2px 0 var(--ocean-dark),
        -2px 2px 0 var(--ocean-dark),
        0 8px 20px rgba(0,0,0,0.3);
    animation: bounce 2s ease-in-out infinite;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

/* Main */
.main {
    padding: 20px;
}

/* Hero */
.hero {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.blox-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 45px;
    border-radius: 20px;
    box-shadow:
        0 10px 0 var(--ocean-dark),
        0 15px 40px rgba(0,0,0,0.25);
    border: 4px solid var(--ocean-dark);
    max-width: 650px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    backdrop-filter: blur(10px);
}

.card-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    color: var(--ocean-dark);
    margin-bottom: 15px;
}

.card-text {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    gap: 25px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    border: 2px solid var(--water-blue);
    box-shadow: 0 3px 0 var(--ocean-dark);
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* Hungarian Flag */
.hungarian-flag {
    display: inline-block;
    width: 50px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.hungarian-flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: #CE2939;
}

.hungarian-flag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: #477050;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--ocean-dark);
    font-weight: 800;
}

/* Features */
.features {
    margin-bottom: 50px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.section-title h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--white);
    text-shadow: 3px 3px 0 var(--ocean-dark);
}

.title-emoji {
    font-size: 2.5rem;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 0 var(--ocean-dark), 0 12px 30px rgba(0,0,0,0.2);
    border: 3px solid var(--ocean-dark);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
    backdrop-filter: blur(10px);
}

.feature-card:nth-child(1) { animation-delay: 0.3s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }
.feature-card:nth-child(4) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 12px 0 var(--ocean-dark), 0 20px 40px rgba(0,0,0,0.25);
}

.feature-card h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--ocean-dark);
    margin: 15px 0 10px;
    font-size: 1.5rem;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 12px;
    box-shadow: 0 4px 0 var(--ocean-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.brainrot-icon {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    border: 3px solid #6a1b9a;
}

.brainrot-icon::before {
    content: '🧠';
    font-size: 2.8rem;
}

.adventure-icon {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: 3px solid #ef6c00;
}

.adventure-icon::before {
    content: '⚔️';
    font-size: 2.8rem;
}

.collect-icon {
    background: linear-gradient(135deg, #ffd60a, #ffaa00);
    border: 3px solid #cc8800;
}

.collect-icon::before {
    content: '⭐';
    font-size: 2.8rem;
}

.rank-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border: 3px solid #d32f2f;
}

.rank-icon::before {
    content: '🏆';
    font-size: 2.8rem;
}

/* Buttons Section */
.buttons-section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--white);
    text-shadow: 3px 3px 0 var(--ocean-dark);
    margin-bottom: 10px;
}

.section-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 40px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 5px solid transparent;
    box-shadow:
        0 12px 0 rgba(0,0,0,0.2),
        0 20px 40px rgba(0,0,0,0.15);
    animation: fadeInUp 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 0 rgba(0,0,0,0.2),
        0 30px 50px rgba(0,0,0,0.2);
}

.action-btn:nth-child(1) { animation-delay: 0.3s; }
.action-btn:nth-child(2) { animation-delay: 0.4s; }

.btn-icon-wrapper {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.btn-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.btn-content h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.btn-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.4;
}

.btn-features {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.btn-feature span {
    font-size: 1rem;
}

.btn-arrow {
    font-size: 2.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.action-btn:hover .btn-arrow {
    transform: translateX(10px) scale(1.2);
}

.action-btn:hover .btn-icon-wrapper {
    animation: bounce 0.5s ease-in-out;
}

/* Discord Button */
.discord-btn {
    background: linear-gradient(145deg, #5865f2, #7289da, #5865f2);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite, fadeInUp 0.6s ease-out both;
    border-color: #4752c4;
    box-shadow:
        0 12px 0 #373ba3,
        0 20px 40px rgba(87, 101, 242, 0.4);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.discord-btn:hover {
    background: linear-gradient(145deg, #4752c4, #5865f2, #4752c4);
    background-size: 200% 200%;
    box-shadow:
        0 20px 0 #2c2f7a,
        0 30px 50px rgba(87, 101, 242, 0.5);
}

.discord-btn .btn-icon-wrapper {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    box-shadow: inset 0 4px 8px rgba(255,255,255,0.2);
}

.discord-btn .btn-content h3,
.discord-btn .btn-content p {
    color: white;
}

.discord-btn .btn-arrow {
    color: white;
}

/* Roblox Button */
.roblox-btn {
    background: linear-gradient(145deg, #00d4ff, #0096c7, #00b4d8);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite, fadeInUp 0.6s ease-out both;
    border-color: var(--ocean-dark);
    box-shadow:
        0 12px 0 var(--ocean-dark),
        0 20px 40px rgba(0, 212, 255, 0.4);
}

.roblox-btn:hover {
    background: linear-gradient(145deg, #0096c7, #00d4ff, #0096c7);
    background-size: 200% 200%;
    box-shadow:
        0 20px 0 #003366,
        0 30px 50px rgba(0, 212, 255, 0.5);
}

.roblox-btn .btn-icon-wrapper {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    box-shadow: inset 0 4px 8px rgba(255,255,255,0.2);
}

.roblox-btn .btn-content h3,
.roblox-btn .btn-content p {
    color: white;
}

.roblox-btn .btn-arrow {
    color: white;
}

/* About Section */
.about {
    margin-bottom: 50px;
}

.about-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid var(--ocean-dark);
    box-shadow: 0 8px 0 var(--ocean-dark), 0 12px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.about-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--ocean-dark);
    margin-bottom: 20px;
}

.about-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
}

.footer-content {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.footer-logo {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.footer-text {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    font-size: 2rem;
    transition: transform 0.2s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.social-link:hover {
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swim {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(-2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(12px) rotate(2deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .blox-card {
        padding: 30px 20px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .discord-card {
        padding: 30px 20px;
    }

    .discord-logo {
        font-size: 3rem;
    }

    .discord-card h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}
