/* Import Cartoon Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Quicksand:wght@300;400;500;600;700&family=Comic+Neue:wght@300;400;700&family=Nunito:wght@200;300;400;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', 'Comic Neue', 'Nunito', cursive, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Cartoon Font Styling */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka One', 'Comic Neue', cursive, sans-serif;
    letter-spacing: 1px;
}

p, div, span, button, input, label {
    font-family: 'Nunito', 'Quicksand', cursive, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Nunito', 'Quicksand', cursive, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #00d4ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00d4ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.text-slider {
    height: 80px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.slide-text {
    position: absolute;
    width: 100%;
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Fredoka One', 'Comic Neue', cursive, sans-serif;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    background: linear-gradient(45deg, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.slide-text.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-description {
    font-size: 1.2rem;
    font-family: 'Nunito', 'Quicksand', cursive, sans-serif;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Nunito', 'Quicksand', cursive, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.social-btn.twitter {
    background: rgba(29, 161, 242, 0.8);
    color: white;
}

.social-btn.community {
    background: rgba(138, 43, 226, 0.8);
    color: white;
}

.social-btn.dexscreener {
    background: rgba(255, 165, 0, 0.8);
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Copy Contract Section */
.contract-section {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contract-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contract-label {
    display: block;
    color: white;
    font-family: 'Fredoka One', 'Comic Neue', cursive, sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.contract-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contract-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contract-input:focus {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.contract-input::selection {
    background: rgba(0, 212, 255, 0.5);
}

.copy-btn {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.8);
    color: white;
    font-family: 'Nunito', 'Quicksand', cursive, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    justify-content: center;
    letter-spacing: 0.5px;
}

.copy-btn:hover {
    background: rgba(0, 212, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.8);
    border-color: rgba(34, 197, 94, 0.5);
}

.copy-message {
    text-align: center;
    color: #22c55e;
    font-family: 'Nunito', 'Quicksand', cursive, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

.copy-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.spin-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.spin-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 2rem;
}

.spin-item {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.spin-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.spin-item:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.spin-item.selected {
    border-color: #00d4ff;
    transform: scale(1.3);
}

.spin-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Fredoka One', 'Comic Neue', cursive, sans-serif;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.selected-image {
    text-align: center;
}

.selected-image img {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

#imageCounter {
    font-size: 1.1rem;
    color: #666;
    font-family: 'Nunito', 'Quicksand', cursive, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* About Section */
.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.85) 0%,
        rgba(118, 75, 162, 0.85) 100%
    );
    z-index: 2;
}

.about-section .container {
    position: relative;
    z-index: 3;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.about-section p {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .slide-text {
        font-size: 2rem;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contract-section {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .contract-container {
        padding: 1rem;
    }

    .contract-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contract-input {
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .spin-container {
        width: 250px;
        height: 250px;
    }

    .about-section {
        min-height: 500px;
        padding: 80px 0;
    }

    .about-background {
        background-attachment: scroll;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-section p {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .selected-image img {
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .slide-text {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .about-section {
        min-height: 400px;
        padding: 60px 0;
    }

    .about-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .about-section p {
        font-size: 1rem;
        padding: 1rem;
        margin: 0 0.5rem;
        line-height: 1.6;
    }

    .contract-container {
        padding: 0.75rem;
    }

    .contract-label {
        font-size: 1rem;
    }

    .contract-input {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .copy-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .spin-container {
        width: 200px;
        height: 200px;
    }

    .spin-item {
        width: 45px;
        height: 45px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 2s ease-in-out;
}

/* Additional Cartoon Effects */
.social-btn, .copy-btn, .spin-btn {
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-btn:hover, .copy-btn:hover, .spin-btn:hover {
    transform: translateY(-5px) scale(1.05);
    animation: bounce 0.6s ease;
}

.contract-input {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contract-input:focus {
    transform: scale(1.02);
}

.nav-link:hover {
    animation: wiggle 0.5s ease;
}

/* Cartoon Animations */
@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(-5px) scale(1.05);
    }
    40% {
        transform: translateY(-10px) scale(1.08);
    }
    80% {
        transform: translateY(-7px) scale(1.06);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

/* Playful Text Effects */
.slide-text {
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.6);
    }
}

/* Cartoon Borders */
.contract-container, .selected-image img {
    border-radius: 20px;
}

.spin-item {
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.spin-item:hover {
    transform: scale(1.2) rotate(5deg) !important;
    z-index: 100;
}