@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap');

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradientMove 4s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Fredoka', cursive;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.preloader-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.cartoon-logo {
    position: relative;
    margin-bottom: 30px;
}

.spinning-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    animation: spin 2s linear infinite, bounce 1.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.bounce-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.dot1 { animation-delay: -0.32s; }
.dot2 { animation-delay: -0.16s; }
.dot3 { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

.loading-text {
    font-size: 2.5em;
    font-weight: 600;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.8); }
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 100%;
    border-radius: 10px;
    width: 0%;
    animation: progressFill 3s ease-in-out, gradientShift 1.5s ease infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.loading-subtitle {
    font-size: 1.2em;
    margin-top: 15px;
    opacity: 0.9;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.float-element {
    position: absolute;
    font-size: 2em;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.float-element:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.float-element:nth-child(2) { left: 80%; top: 10%; animation-delay: 1s; }
.float-element:nth-child(3) { left: 70%; top: 70%; animation-delay: 2s; }
.float-element:nth-child(4) { left: 20%; top: 80%; animation-delay: 3s; }
.float-element:nth-child(5) { left: 90%; top: 50%; animation-delay: 4s; }
.float-element:nth-child(6) { left: 5%; top: 60%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

body {
    font-family: 'Fredoka', cursive;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%),
                url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #333;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

header h1 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Navigation Styles */
.main-nav {
    position: relative;
    z-index: 1;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.copy-contract {
    position: relative;
}

.copy-contract:hover {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4) !important;
    color: white !important;
}

.copy-contract.copied {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    color: white !important;
}

.copy-contract.copied::after {
    content: "✓ Copied!";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.marquee-section {
    overflow: hidden;
    background: linear-gradient(90deg, #ff9a9e, #fecfef, #fecfef, #ff9a9e);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    color: #333;
    padding: 15px 0;
    border-top: 3px solid #fff;
    border-bottom: 3px solid #fff;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 25s linear infinite;
    font-size: 1.2em;
    font-weight: 600;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Home Section */
.home-section {
    padding: 60px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    margin: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-content h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-content p {
    font-size: 1.2em;
    color: #fffcfc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-section h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 1em;
    opacity: 0.9;
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 30px;
    gap: 20px;
}

.twitter-community, .dexscreener-iframe {
    flex: 1;
    min-width: 350px;
    margin: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.twitter-community:hover, .dexscreener-iframe:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.twitter-community h2, .dexscreener-iframe h2 {
    color: #333;
    margin-top: 0;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

iframe {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-weight: 500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Floating PumpFun Button */
.floating-pumpfun {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 1000;
    animation: floatBounce 3s ease-in-out infinite;
}

.floating-pumpfun a {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    padding: 8px;
}

.floating-pumpfun a:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.pumpfun-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.floating-pumpfun a:hover .pumpfun-icon {
    transform: rotate(10deg);
}

@keyframes floatBounce {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }
    
    .preloader-content .loading-text {
        font-size: 2em;
    }
    
    .spinning-logo {
        width: 100px;
        height: 100px;
    }
    
    .progress-bar {
        width: 250px;
    }
    
    .float-element {
        font-size: 1.5em;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.9em;
        padding: 10px 15px;
        margin: 2px;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .twitter-community, .dexscreener-iframe {
        min-width: 280px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .welcome-content h2 {
        font-size: 1.8em;
    }
    
    .gallery-section h2 {
        font-size: 1.8em;
    }
    
    .floating-pumpfun {
        bottom: 70px;
        right: 20px;
    }
    
    .floating-pumpfun a {
        width: 60px;
        height: 60px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}