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

body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #ffffff;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0,0,0,0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Comic Book Typography */
h1, h2, h3 {
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1976D2, #FFD600);
    overflow: hidden;
    background-image: 
        linear-gradient(45deg, #1976D2, #FFD600),
        radial-gradient(circle, #000 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px;
    background-blend-mode: overlay;
}

.halftone-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, #000 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: halftone-move 20s linear infinite;
}

@keyframes halftone-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.speech-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 20px;
    padding: 10px 20px;
    font-family: 'Bangers', cursive;
    font-size: 24px;
    color: #E50914;
    transform: rotate(-5deg);
    animation: bubble-bounce 3s ease-in-out infinite;
    box-shadow: 4px 4px 0px #000000;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,215,0,0.2) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(229,9,20,0.2) 1px, transparent 1px);
    background-size: 10px 10px;
}

.bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #000000;
}

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

.bubble-2 {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
}

.bubble-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
}

.bubble-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

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

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(5px 5px 0px #000000);
    animation: logo-float 4s ease-in-out infinite;
}

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

.hero-title {
    font-size: 4rem;
    color: #E50914;
    text-shadow: 3px 3px 0px #000000, 6px 6px 0px #FFD600;
    margin-bottom: 10px;
    animation: title-shake 0.5s ease-in-out infinite;
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: #FFD600;
    z-index: -1;
    border-radius: 10px;
    transform: rotate(-2deg);
}

@keyframes title-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.hero-tagline {
    font-size: 1.5rem;
    color: #000000;
    font-weight: bold;
    text-shadow: 2px 2px 0px #ffffff;
    margin-bottom: 30px;
}

.contract-address {
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 8px 8px 0px #E50914;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,215,0,0.2) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(229,9,20,0.2) 1px, transparent 1px);
    background-size: 15px 15px;
}

.contract-address::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #FFD600, #E50914, #1976D2);
    z-index: -1;
    border-radius: 18px;
    opacity: 0.3;
}

.ca-label {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #E50914;
    text-shadow: 2px 2px 0px #000000;
    font-weight: bold;
}

.ca-text {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #000000;
    background: #FFD600;
    padding: 8px 12px;
    border: 2px solid #000000;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
}

.copy-ca-btn {
    background: #E50914;
    color: #ffffff;
    border: 3px solid #000000;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.copy-ca-btn:hover {
    background: #FFD600;
    color: #000000;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 4px 4px 0px #000000;
}

/* Character Showcase */
.character-showcase {
    padding: 80px 20px;
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Specific character styling */
.character-card[data-hero="joker"] .action-text {
    color: #9C27B0;
    background: #FFD600;
    animation: joker-laugh 2s ease-in-out infinite;
}

.character-card[data-hero="joker"] .hero-name {
    color: #9C27B0;
}

.character-card[data-hero="joker"]:hover .hero-image {
    filter: contrast(1.3) saturate(1.4) hue-rotate(10deg);
}

.character-card[data-hero="greenlantern"] .action-text {
    color: #E50914;
    background: #FFD600;
}

.character-card[data-hero="greenlantern"] .hero-name {
    color: #1976D2;
}

.character-card[data-hero="greenlantern"]:hover .hero-image {
    filter: contrast(1.2) saturate(1.3) hue-rotate(120deg);
}

.character-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 98%, #000 98%),
        linear-gradient(0deg, transparent 98%, #000 98%);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

.comic-panel {
    position: relative;
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 8px 8px 0px #1976D2;
    transition: transform 0.3s ease;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0,0,0,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.comic-panel:hover {
    transform: translateY(-10px) rotate(2deg);
}

.character-card {
    text-align: center;
    position: relative;
}

.action-text {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #E50914;
    text-shadow: 2px 2px 0px #000000;
    z-index: 10;
    animation: action-pulse 2s ease-in-out infinite;
    background: #FFD600;
    padding: 5px 15px;
    border: 3px solid #000000;
    border-radius: 20px;
    transform: translateX(-50%) rotate(-5deg);
}

@keyframes action-pulse {
    0%, 100% { transform: translateX(-50%) rotate(-5deg) scale(1); }
    50% { transform: translateX(-50%) rotate(-5deg) scale(1.1); }
}

.hero-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 3px solid #000000;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    filter: contrast(1.2) saturate(1.3);
    background: linear-gradient(45deg, #FFD600, #E50914);
    padding: 5px;
    border-radius: 15px;
}

.character-card:hover .hero-image {
    transform: scale(1.05);
}

.hero-name {
    font-size: 1.5rem;
    color: #1976D2;
    text-shadow: 1px 1px 0px #000000;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #FFD600, #E50914);
    position: relative;
    background-image: 
        linear-gradient(135deg, #FFD600, #E50914),
        radial-gradient(circle, #000 1px, transparent 1px);
    background-size: 100% 100%, 25px 25px;
    background-blend-mode: overlay;
}

.comic-frame {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 6px solid #000000;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 10px 10px 0px #1976D2;
    position: relative;
    background-image: 
        linear-gradient(45deg, transparent 49%, rgba(0,0,0,0.05) 49%, rgba(0,0,0,0.05) 51%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0,0,0,0.05) 49%, rgba(0,0,0,0.05) 51%, transparent 51%);
    background-size: 20px 20px;
}

.comic-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        #000000 10px,
        #000000 12px
    );
    z-index: -1;
    border-radius: 20px;
}

.section-title {
    font-size: 3rem;
    color: #E50914;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 3px 3px 0px #000000;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

/* Community Section */
.community-section {
    padding: 80px 20px;
    background: #ffffff;
}

.speech-explosion {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.speech-explosion::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, #FFD600 0%, #E50914 50%, #1976D2 100%);
    border-radius: 50%;
    z-index: -1;
    animation: explosion-pulse 3s ease-in-out infinite;
}

@keyframes explosion-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 15px;
    padding: 20px;
    min-width: 150px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255,215,0,0.3) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, rgba(229,9,20,0.3) 1px, transparent 1px);
    background-size: 15px 15px;
}

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

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 8px 8px 0px #E50914;
}

.social-link .action-text {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #E50914;
    margin-bottom: 5px;
    position: static;
    transform: none;
}

.social-link .platform {
    font-size: 1rem;
    color: #000000;
    font-weight: bold;
}

.kaboom:hover { box-shadow: 8px 8px 0px #E50914; }
.zap:hover { box-shadow: 8px 8px 0px #1976D2; }
.whack:hover { box-shadow: 8px 8px 0px #FFD600; }

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

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .contract-address {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin: 20px 10px;
    }
    
    .ca-text {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .ca-label {
        font-size: 1.2rem;
    }
    
    .character-showcase {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 40px 20px;
    }
    
    .comic-frame {
        padding: 20px;
        margin: 0 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        min-width: 200px;
    }
    
    .bubble {
        font-size: 18px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .character-showcase {
        grid-template-columns: 1fr;
    }
    
    .comic-frame {
        padding: 15px;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

/* Comic Panel Transitions */
.comic-panel {
    animation: slide-in 0.8s ease-out;
    position: relative;
}

.comic-panel::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #E50914, #1976D2, #FFD600);
    z-index: -1;
    border-radius: 12px;
    opacity: 0.3;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(50px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Unstable Hover Effects */
.character-card:hover {
    animation: unstable-shake 0.5s ease-in-out;
}

.character-card:hover .hero-image {
    filter: contrast(1.4) saturate(1.5) brightness(1.1);
    transform: scale(1.1) rotate(3deg);
}

.character-card:hover .action-text {
    animation: action-bounce 0.3s ease-in-out infinite;
}

@keyframes unstable-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-1deg); }
    75% { transform: translateX(3px) rotate(1deg); }
}

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

@keyframes joker-laugh {
    0%, 100% { transform: translateX(-50%) rotate(-5deg) scale(1); }
    25% { transform: translateX(-50%) rotate(-8deg) scale(1.1); }
    50% { transform: translateX(-50%) rotate(-2deg) scale(1.05); }
    75% { transform: translateX(-50%) rotate(-10deg) scale(1.15); }
}

/* Scroll Animations */
.comic-panel:nth-child(1) { animation-delay: 0.1s; }
.comic-panel:nth-child(2) { animation-delay: 0.2s; }
.comic-panel:nth-child(3) { animation-delay: 0.3s; }
.comic-panel:nth-child(4) { animation-delay: 0.4s; }
