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

body {
    font-family: 'Comic Neue', cursive;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hand-drawn Button Styles */
.cta-button, .social-button {
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 30px;
    background-color: #ffff00;
    color: #000000;
    border: 4px solid #000000;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px #000000;
}

.cta-button:hover, .social-button:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 6px 6px 0px #000000;
    background-color: #00ff00;
}

.cta-button:active, .social-button:active {
    transform: rotate(-0.5deg) scale(0.95);
    box-shadow: 2px 2px 0px #000000;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 0, 0, 0.05) 25%, rgba(255, 0, 0, 0.05) 50%, transparent 50%, transparent 75%, rgba(0, 255, 0, 0.05) 75%);
    background-size: 40px 40px;
    position: relative;
    overflow: hidden;
}

/* Floating Doodles */
.floating-doodles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-doodle {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.doodle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.doodle-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.doodle-3 {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.doodle-4 {
    top: 70%;
    right: 25%;
    animation-delay: 3s;
}

.doodle-5 {
    top: 40%;
    left: 70%;
    animation-delay: 4s;
}

.logo-container {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.logo {
    max-width: 200px;
    height: auto;
    border: 5px solid #000000;
    transform: rotate(-2deg);
    box-shadow: 8px 8px 0px #000000;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 12px 12px 0px #ff0000;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    transform: rotate(1deg);
    text-shadow: 3px 3px 0px #ff0000;
    position: relative;
    z-index: 2;
    animation: title-bounce 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    transform: rotate(-0.5deg);
    color: #333;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Contract Address in Hero */
.contract-address-hero {
    background-color: #ffff00;
    border: 4px solid #000000;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    transform: rotate(-1deg);
    box-shadow: 8px 8px 0px #000000;
    position: relative;
    z-index: 2;
    animation: pulse-glow 3s ease-in-out infinite;
}

.ca-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.ca-address {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    background-color: #000000;
    color: #00ff00;
    padding: 10px;
    border: 2px solid #00ff00;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.ca-address:hover {
    background-color: #00ff00;
    color: #000000;
    transform: scale(1.02);
}

.ca-copy-hint {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    transform: rotate(-1deg);
    text-shadow: 2px 2px 0px #0066ff;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-text {
    font-size: 1.3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    transform: rotate(0.5deg);
    line-height: 1.8;
    border: 3px dashed #000000;
    padding: 30px;
    background-color: #ffffcc;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.gallery-item {
    text-align: center;
}

.pixel-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    border: 4px solid #000000;
    transition: all 0.3s ease;
    transform: rotate(0deg);
    box-shadow: 4px 4px 0px #000000;
}

.pixel-image:hover {
    transform: rotate(3deg) scale(1.1);
    box-shadow: 8px 8px 0px #ff6600;
    animation: wiggle 0.5s ease-in-out infinite;
}

/* Lore Section */
.lore {
    padding: 80px 0;
    background-color: #ffffff;
}

.lore-quotes {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.quote-bubble {
    background-color: #ff69b4;
    border: 4px solid #000000;
    border-radius: 20px;
    padding: 25px 35px;
    position: relative;
    transform: rotate(-1deg);
    box-shadow: 6px 6px 0px #000000;
    max-width: 500px;
}

.quote-bubble:nth-child(2) {
    background-color: #00ffff;
    transform: rotate(1deg);
    align-self: flex-end;
}

.quote-bubble:nth-child(3) {
    background-color: #90ee90;
    transform: rotate(-0.5deg);
    align-self: flex-start;
}

.quote-bubble p {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.quote-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-top-color: #ff69b4;
    border-bottom: 0;
    margin-left: -15px;
}

.quote-bubble:nth-child(2)::after {
    border-top-color: #00ffff;
    left: auto;
    right: 30px;
}

.quote-bubble:nth-child(3)::after {
    border-top-color: #90ee90;
}

.quote-bubble:nth-child(4) {
    background-color: #ffa500;
    transform: rotate(0.8deg);
    align-self: flex-end;
}

.quote-bubble:nth-child(4)::after {
    border-top-color: #ffa500;
    left: auto;
    right: 30px;
}

/* Contract Address Section */
.contract-section {
    padding: 80px 0;
    background-color: #000000;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contract-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 0, 0.1) 10px,
        rgba(255, 255, 0, 0.1) 20px
    );
    pointer-events: none;
}

.contract-section .section-title {
    color: #ffffff;
    text-shadow: 3px 3px 0px #ffff00;
    margin-bottom: 50px;
}

.contract-display {
    position: relative;
    z-index: 2;
}

.contract-box {
    background-color: #ffff00;
    border: 6px solid #ffffff;
    padding: 40px;
    margin: 0 auto;
    max-width: 800px;
    transform: rotate(1deg);
    box-shadow: 15px 15px 0px #ff0000;
    position: relative;
    animation: contract-pulse 4s ease-in-out infinite;
}

.contract-box::before {
    content: '🚀';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 3rem;
    animation: spin 3s linear infinite;
}

.contract-box::after {
    content: '💎';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

.contract-label {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    text-shadow: 2px 2px 0px #ffffff;
}

.contract-address-main {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    background-color: #000000;
    color: #00ff00;
    padding: 20px;
    border: 4px solid #00ff00;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.contract-address-main::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.5s ease;
}

.contract-address-main:hover::before {
    left: 100%;
}

.contract-address-main:hover {
    background-color: #00ff00;
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ff00;
}

.contract-instructions {
    margin-top: 20px;
}

.contract-instructions p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #000;
    font-weight: 600;
}

/* Community Section */
.community {
    padding: 80px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.community-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.twitter-btn {
    background-color: #000000;
    color: #ffffff;
    transform: rotate(1deg);
    font-size: 20px;
    padding: 18px 35px;
}

.twitter-btn:hover {
    background-color: #1da1f2;
    color: #ffffff;
    transform: rotate(-1deg) scale(1.05);
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
}

.footer-doodles {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 2rem;
    flex-wrap: wrap;
}

.clickable-doodle {
    animation: bounce 2s infinite;
    color: #ffff00;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
}

.clickable-doodle:hover {
    transform: scale(1.5) rotate(180deg);
    background-color: rgba(255, 255, 255, 0.2);
}

.doodle-heart {
    color: #ff69b4;
    animation-delay: 0.3s;
}

.doodle-lightning {
    color: #00ffff;
    animation-delay: 0.6s;
}

.doodle-chaos {
    color: #9966ff;
    animation-delay: 0.9s;
}

.doodle-fire {
    color: #ff4500;
    animation-delay: 1.2s;
}

.footer-text {
    font-size: 1.1rem;
    transform: rotate(-0.5deg);
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-10px) rotate(5deg);
    }
    60% {
        transform: translateY(-5px) rotate(-3deg);
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(3deg) scale(1.1); }
    25% { transform: rotate(-2deg) scale(1.1); }
    50% { transform: rotate(4deg) scale(1.1); }
    75% { transform: rotate(-1deg) scale(1.1); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes title-bounce {
    0%, 100% {
        transform: rotate(1deg) translateY(0px);
    }
    50% {
        transform: rotate(-1deg) translateY(-5px);
    }
}

.bounce {
    animation: bounce 3s infinite;
}

.bounce-delay-1 {
    animation: bounce 4s infinite;
    animation-delay: 0.2s;
}

.bounce-delay-2 {
    animation: bounce 4s infinite;
    animation-delay: 0.8s;
}

.bounce-delay-3 {
    animation: bounce 4s infinite;
    animation-delay: 1.4s;
}

.bounce-delay-4 {
    animation: bounce 4s infinite;
    animation-delay: 2s;
}

.wiggle {
    animation: wiggle 3s infinite;
}

/* Hand-drawn underline animation */
.underline-animation {
    position: relative;
    display: inline-block;
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #ff0000;
    border-radius: 2px;
    animation: draw-underline 2s ease-in-out infinite;
    transform: rotate(-1deg);
}

@keyframes draw-underline {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 8px 8px 0px #000000;
    }
    50% {
        box-shadow: 8px 8px 0px #000000, 0 0 20px #ffff00;
    }
}

@keyframes contract-pulse {
    0%, 100% {
        transform: rotate(1deg) scale(1);
        box-shadow: 15px 15px 0px #ff0000;
    }
    50% {
        transform: rotate(-1deg) scale(1.02);
        box-shadow: 20px 20px 0px #ff0000, 0 0 30px #ffff00;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes copy-bounce {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .community-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .lore-quotes {
        align-items: stretch;
    }
    
    .quote-bubble {
        align-self: center !important;
        transform: rotate(0deg);
    }
    
    .footer-doodles {
        gap: 20px;
    }
    
    .contract-address-hero {
        margin: 20px auto;
        padding: 15px;
        max-width: 90%;
    }
    
    .ca-address {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .contract-box {
        padding: 20px;
        max-width: 95%;
    }
    
    .contract-address-main {
        font-size: 1rem;
        padding: 15px;
    }
    
    .contract-label {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .cta-button, .social-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}
