/* Import pixel font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* CSS Variables */
:root {
    --banana-yellow: #FFD700;
    --banana-light: #FFEB3B;
    --banana-dark: #FFA500;
    --banana-green: #90EE90;
    --bg-dark: #1a0033;
    --bg-purple: #2d1b4e;
    --bg-gradient: linear-gradient(135deg, #1a0033 0%, #2d1b4e 50%, #1a0033 100%);
    --text-light: #ffffff;
    --text-glow: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: var(--bg-gradient);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.pixel-text {
    font-family: 'Press Start 2P', cursive;
    image-rendering: pixelated;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating Bananas Background */
.floating-bananas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-banana {
    position: absolute;
    font-size: 40px;
    animation: float linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.glitch-text {
    font-size: 5rem;
    color: var(--banana-yellow);
    text-shadow:
        0 0 10px var(--banana-yellow),
        0 0 20px var(--banana-yellow),
        0 0 30px var(--banana-yellow),
        3px 3px 0 var(--banana-dark),
        -3px -3px 0 var(--banana-green);
    animation: glitch 3s infinite;
    margin-bottom: 20px;
    line-height: 1.2;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--banana-light);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255, 215, 0, 0.1);
    border: 3px solid var(--banana-yellow);
    padding: 20px 30px;
    border-radius: 0;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 10px 30px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 215, 0, 0.2);
}

.stat-number {
    font-size: 2rem;
    color: var(--banana-yellow);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--banana-light);
    opacity: 0.8;
}

.cta-button {
    background: var(--banana-yellow);
    color: var(--bg-dark);
    border: none;
    padding: 20px 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--banana-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.cta-button:active {
    transform: scale(0.95);
}

.hero-banana-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.rotating-banana {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
    animation: rotate3d 10s ease-in-out infinite, bob 3s ease-in-out infinite;
    image-rendering: pixelated;
}

@keyframes rotate3d {
    0%, 100% { transform: perspective(1000px) rotateY(0deg); }
    50% { transform: perspective(1000px) rotateY(360deg); }
}

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

/* About Section */
.about-section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--banana-yellow);
    text-shadow:
        0 0 10px var(--banana-yellow),
        3px 3px 0 var(--banana-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.about-card {
    background: rgba(255, 215, 0, 0.05);
    border: 3px solid var(--banana-yellow);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    border-color: var(--banana-light);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

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

.about-card h3 {
    font-size: 1.2rem;
    color: var(--banana-yellow);
    margin-bottom: 15px;
}

.about-card p {
    font-size: 0.7rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* XRPL Lore Section */
.xrpl-section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
}

.lore-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.lore-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border: 3px solid var(--banana-yellow);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.lore-card:hover::before {
    left: 100%;
}

.lore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
    border-color: var(--banana-light);
}

.lore-card h3 {
    font-size: 1rem;
    color: var(--banana-yellow);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.lore-card p {
    font-size: 0.7rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Traits Section */
.traits-section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
}

.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.trait-category {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--banana-yellow);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.trait-category:hover {
    transform: scale(1.05);
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.trait-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.trait-category h3 {
    font-size: 1rem;
    color: var(--banana-yellow);
    margin-bottom: 10px;
}

.trait-category p {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid var(--banana-yellow);
    color: var(--banana-yellow);
    padding: 15px 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: var(--banana-yellow);
    color: var(--bg-dark);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background: rgba(255, 215, 0, 0.05);
    border: 3px solid var(--banana-yellow);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '🍌';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
}

.gallery-item:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-name {
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--banana-yellow);
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 40px;
    max-width: 900px;
    background: var(--bg-purple);
    border: 4px solid var(--banana-yellow);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--banana-yellow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--banana-light);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 40px;
    align-items: center;
}

.modal-body img {
    max-width: 400px;
    width: 100%;
    border: 3px solid var(--banana-yellow);
    image-rendering: pixelated;
}

.modal-info {
    flex: 1;
}

.modal-info h2 {
    font-size: 1.5rem;
    color: var(--banana-yellow);
    margin-bottom: 30px;
}

.modal-traits {
    display: grid;
    gap: 15px;
}

.trait-item {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--banana-yellow);
    padding: 15px;
}

.trait-type {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.trait-value {
    font-size: 0.9rem;
    color: var(--banana-yellow);
}

/* Footer */
.footer {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 0 20px;
    margin-top: 100px;
    border-top: 3px solid var(--banana-yellow);
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: var(--banana-yellow);
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-section p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .hero {
        flex-direction: column;
        padding: 50px 20px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-body img {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}
