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

body {
    font-family: 'Nunito', sans-serif;
    background-color: #fafff5; /* Light mint-cream background */
    color: #333;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



/* Loading Screen - Fun Look */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #40e0d0; /* Turquoise - will change dynamically */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s, background 0.3s ease;
}

.time-travel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-images-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.loading-image {
    width: 160px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.loading-pump-image {
    width: 180px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0,0,0,0.3);
    animation: pumpFloat 2s ease-in-out infinite alternate;
}

@keyframes pumpFloat {
    0% { transform: translateY(0px) rotate(-2deg); }
    100% { transform: translateY(-10px) rotate(2deg); }
}

.year-display {
    font-family: 'Fredoka One', cursive;
    font-size: 6rem;
    color: #fff;
    text-shadow: 4px 4px 0 #333;
    margin-bottom: 2rem;
    animation: bounceIn 1.5s ease-out;
}

.travel-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 3rem;
    animation: fadeIn 2s ease-out;
}

.progress-bar {
    width: 300px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid #fff;
}

.progress-fill {
    height: 100%;
    background: #ffdd59; /* Bright Yellow */
    width: 0%;
    transition: width 0.5s ease-out;
}

/* Main Content Wrapper */
.main-content-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.main-content-wrapper.loaded {
    display: block;
    opacity: 1;
}

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

/* Base Section Styling */
section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Transparent Backgrounds */
.banner-section, .main-section, .info-section, .community-section {
    background-size: 150px;
    background-repeat: repeat;
    animation: backgroundDance 30s linear infinite;
}

.banner-section::before, .main-section::before, .info-section::before, .community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(250, 255, 245, 0.9); /* Light mint-cream overlay */
    backdrop-filter: blur(5px);
}

.banner-section { background-image: url('spinningcat.png'); }
.main-section { background-image: url('chillguy.png'); }
.info-section { background-image: url('troll.png'); }
.community-section { background-image: url('moodeng.png'); }

/* Section 1: Banner */
.banner-section {
    padding: 2rem 0;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    border: 8px solid #fff;
    box-shadow: 0 10px 0 #e0e0e0, 0 20px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* Section 2: Main Content */
.main-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    text-align: center;
    position: relative;
    z-index: 2;
    background: #fff;
    border: 4px solid #333;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 10px 10px 0px #333;
    transition: box-shadow 0.2s ease;
    max-width: 900px;
    margin: 0 auto;
}

.main-content:hover {
    box-shadow: 12px 12px 0px #333;
}

.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: 4.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 #ddd;
}

.ticker {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #2ed573; /* Bright Green */
    margin-bottom: 3rem;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0px rgba(46, 213, 115, 0.3);
}

.horizontal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

.coin-showcase {
    margin: 0;
    position: relative;
    display: inline-block;
}

.coin-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 8px solid #333;
    box-shadow: 0 0 0 8px #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: wiggle 3s ease-in-out infinite;
}

.coin-image:hover {
    transform: scale(1.08) rotate(5deg);
    animation-play-state: paused;
}

.coin-image.spinning {
    animation: cartoonSpin 5s ease-out;
}

.click-hint {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6c757d;
    margin-top: 1rem;
}

.buy-button {
    background: #2ed573;
    border: 4px solid #333;
    padding: 15px;
    border-radius: 16px;
    cursor: pointer;
    margin: 0;
    box-shadow: 8px 8px 0px #333;
    transition: all 0.2s ease;
    line-height: 0;
    display: inline-block;
}

.buy-button-img {
    width: 280px; /* Increased size */
    height: auto;
    border-radius: 8px;
}

.buy-button:hover {
    transform: translateY(-4px) translateX(-4px);
    box-shadow: 12px 12px 0px #333;
}

.buy-button:active {
    transform: translateY(2px) translateX(2px);
    box-shadow: 4px 4px 0px #333;
}

.ca-container {
    margin-top: 3rem;
}

.ca-label {
    display: block;
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ca-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

#contractAddress {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.copy-btn {
    background: #ffdd59;
    border: 2px solid #333;
    padding: 12px 20px;
    border-radius: 8px;
    color: #333;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 4px 4px 0px #333;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: translateY(-2px) translateX(-2px);
    box-shadow: 6px 6px 0px #333;
}

/* Sections 3 & 4: Collage and Community */
.collage-section, .community-section {
    background-color: #fff;
    border-top: 4px solid #333;
    border-bottom: 4px solid #333;
}

.info-content, .community-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.info-card {
    background: transparent;
    border: none;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.info-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.info-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.main-content .social-links {
    margin-top: 2rem;
    gap: 1.5rem;
}

.social-btn {
    background: #fff;
    color: #333;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 3px solid #333;
    box-shadow: 6px 6px 0px #ddd;
}

.social-btn:hover {
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 9px 9px 0px #ddd;
}

.social-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Image Collage Section */
.collage-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.collage-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 3rem;
    text-shadow: 3px 3px 0 #fff, 6px 6px 0 #2ed573;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.collage-title::before {
    content: '🎨';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    animation: wiggle 3s ease-in-out infinite;
}



.image-collage {
    position: relative;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    border: 4px solid #333;
    box-shadow: 10px 10px 0px #333;
    overflow: hidden;
}

.image-collage::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #2ed573, #ffdd59, #ff6b6b, #40e0d0);
    border-radius: 35px;
    z-index: -1;
    animation: backgroundDance 3s linear infinite;
}

.collage-image {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #333;
    box-shadow: 4px 4px 0px #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collage-image:hover {
    transform: scale(1.2);
    box-shadow: 6px 6px 0px #333;
    border-color: #2ed573;
    z-index: 10;
}

/* Bouncing animations for each image */
.collage-image:nth-child(1) {
    animation: bounce1 4s ease-in-out infinite;
    top: 20%;
    left: 10%;
}

.collage-image:nth-child(2) {
    animation: bounce2 5s ease-in-out infinite;
    top: 60%;
    left: 20%;
}

.collage-image:nth-child(3) {
    animation: bounce3 3.5s ease-in-out infinite;
    top: 30%;
    left: 70%;
}

.collage-image:nth-child(4) {
    animation: bounce4 4.5s ease-in-out infinite;
    top: 10%;
    left: 50%;
}

.collage-image:nth-child(5) {
    animation: bounce5 3s ease-in-out infinite;
    top: 70%;
    left: 60%;
}

.collage-image:nth-child(6) {
    animation: bounce6 5.5s ease-in-out infinite;
    top: 40%;
    left: 30%;
}

.collage-image:nth-child(7) {
    animation: bounce7 4s ease-in-out infinite;
    top: 80%;
    left: 40%;
}

.collage-image:nth-child(8) {
    animation: bounce8 3.8s ease-in-out infinite;
    top: 15%;
    left: 80%;
}

.collage-image:nth-child(9) {
    animation: bounce9 4.2s ease-in-out infinite;
    top: 50%;
    left: 85%;
}

.collage-image:nth-child(10) {
    animation: bounce10 5s ease-in-out infinite;
    top: 75%;
    left: 15%;
}

.collage-image:nth-child(11) {
    animation: bounce11 3.3s ease-in-out infinite;
    top: 25%;
    left: 40%;
}

.collage-image:nth-child(12) {
    animation: bounce12 4.7s ease-in-out infinite;
    top: 65%;
    left: 75%;
}

.collage-image:nth-child(13) {
    animation: bounce13 3.7s ease-in-out infinite;
    top: 35%;
    left: 15%;
}

.collage-image:nth-child(14) {
    animation: bounce14 5.2s ease-in-out infinite;
    top: 85%;
    left: 70%;
}

.collage-image:nth-child(15) {
    animation: bounce15 4.3s ease-in-out infinite;
    top: 45%;
    left: 55%;
}

.collage-image:nth-child(16) {
    animation: bounce16 3.9s ease-in-out infinite;
    top: 20%;
    left: 25%;
}

.collage-image:nth-child(17) {
    animation: bounce17 4.6s ease-in-out infinite;
    top: 55%;
    left: 8%;
}

.collage-image:nth-child(18) {
    animation: bounce18 3.4s ease-in-out infinite;
    top: 10%;
    left: 65%;
}

.collage-image:nth-child(19) {
    animation: bounce19 4.8s ease-in-out infinite;
    top: 75%;
    left: 50%;
}

/* Simple Footer */
.simple-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.simple-footer p {
    margin: 0;
    font-size: 1rem;
}

/* Spin Result Modal - Fun Look */
.spin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spin-modal.show {
    opacity: 1;
}

.modal-content {
    background: #fff;
    border: 4px solid #333;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 10px 10px 0px #333;
    max-width: 450px;
    width: 90%;
    transform: scale(0.8) rotate(-5deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spin-modal.show .modal-content {
    transform: scale(1) rotate(0deg);
}

.result-header {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-coin-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid #333;
    box-shadow: 0 0 0 6px #fff;
    margin-bottom: 1rem;
}

.result-coin-name {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #2ed573;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0 #ddd;
}

.result-ca-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.result-ca-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 0.9rem;
    text-align: center;
}

.result-copy-btn {
    background: #ffdd59;
    border: 2px solid #333;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.close-modal-btn {
    background: #ff6b6b;
    border: 2px solid #333;
    padding: 12px 25px;
    border-radius: 12px;
    color: #333;
    font-weight: 700;
    font-family: 'Fredoka One', cursive;
    cursor: pointer;
}

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

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes cartoonSpin {
    0% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(360deg) scale(1.2); }
    40% { transform: rotate(720deg) scale(1); }
    60% { transform: rotate(1080deg) scale(1.2); }
    100% { transform: rotate(1800deg) scale(1); }
}

@keyframes backgroundDance {
    0% { background-position: 0px 0px; }
    100% { background-position: 60px -60px; }
}

/* Bouncing animations */
@keyframes bounce1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(-20px, 15px) rotate(-3deg); }
    75% { transform: translate(15px, -10px) rotate(2deg); }
}

@keyframes bounce2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-25px, 20px) rotate(-4deg); }
    40% { transform: translate(20px, -15px) rotate(6deg); }
    60% { transform: translate(-15px, 25px) rotate(-2deg); }
    80% { transform: translate(10px, -20px) rotate(3deg); }
}

@keyframes bounce3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(25px, 30px) rotate(7deg); }
    66% { transform: translate(-30px, -25px) rotate(-5deg); }
}

@keyframes bounce4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, -25px) rotate(-6deg); }
    50% { transform: translate(35px, 20px) rotate(4deg); }
    75% { transform: translate(-25px, 30px) rotate(-3deg); }
}

@keyframes bounce5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, -35px) rotate(8deg); }
}

@keyframes bounce6 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(15px, -30px) rotate(3deg); }
    40% { transform: translate(-25px, 20px) rotate(-7deg); }
    60% { transform: translate(30px, 25px) rotate(5deg); }
    80% { transform: translate(-20px, -15px) rotate(-2deg); }
}

@keyframes bounce7 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(-35px, 25px) rotate(-4deg); }
    70% { transform: translate(25px, -30px) rotate(6deg); }
}

@keyframes bounce8 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 35px) rotate(5deg); }
    50% { transform: translate(-30px, -20px) rotate(-7deg); }
    75% { transform: translate(35px, -25px) rotate(3deg); }
}

@keyframes bounce9 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    40% { transform: translate(-40px, 30px) rotate(-6deg); }
    80% { transform: translate(20px, -35px) rotate(4deg); }
}

@keyframes bounce10 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(30px, -25px) rotate(7deg); }
    40% { transform: translate(-20px, 35px) rotate(-3deg); }
    60% { transform: translate(25px, 20px) rotate(5deg); }
    80% { transform: translate(-35px, -30px) rotate(-4deg); }
}

@keyframes bounce11 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-25px, -40px) rotate(-8deg); }
}

@keyframes bounce12 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-30px, 20px) rotate(-5deg); }
    50% { transform: translate(35px, -25px) rotate(6deg); }
    75% { transform: translate(-20px, 35px) rotate(-2deg); }
}

@keyframes bounce13 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, 30px) rotate(4deg); }
    66% { transform: translate(-35px, -20px) rotate(-6deg); }
}

@keyframes bounce14 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(25px, -35px) rotate(3deg); }
    40% { transform: translate(-40px, 25px) rotate(-7deg); }
    60% { transform: translate(30px, 30px) rotate(5deg); }
    80% { transform: translate(-25px, -35px) rotate(-4deg); }
}

@keyframes bounce15 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(35px, 40px) rotate(7deg); }
}

@keyframes bounce16 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(-25px, -30px) rotate(-5deg); }
    70% { transform: translate(40px, 25px) rotate(6deg); }
}

@keyframes bounce17 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(35px, -20px) rotate(4deg); }
    50% { transform: translate(-30px, 40px) rotate(-6deg); }
    75% { transform: translate(20px, -35px) rotate(3deg); }
}

@keyframes bounce18 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    40% { transform: translate(-35px, -25px) rotate(-7deg); }
    80% { transform: translate(25px, 35px) rotate(5deg); }
}

@keyframes bounce19 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-40px, 30px) rotate(-4deg); }
    40% { transform: translate(30px, -40px) rotate(8deg); }
    60% { transform: translate(-25px, 25px) rotate(-3deg); }
    80% { transform: translate(35px, -30px) rotate(6deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    section { padding: 4rem 0; }
    
    .year-display { font-size: 4rem; }
    .main-title { font-size: 3rem; }
    .ticker { font-size: 1.8rem; }
    .coin-image { width: 180px; height: 180px; }
    .info-title { font-size: 2.2rem; }
    .info-text { font-size: 1rem; }
    .ca-box { flex-direction: column; }
    
    .main-content { padding: 2rem; box-shadow: 8px 8px 0px #333; }
    .modal-content { padding: 2rem; }
    
    .collage-title { 
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    .collage-title::before,
    .collage-title::after {
        display: none;
    }
    .image-collage {
        height: 400px;
        padding: 1.5rem;
    }
    .collage-image {
        width: 60px;
        height: 60px;
    }
    .social-icon {
        margin-right: 5px;
        font-size: 1em;
    }
    .main-content .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}
