:root {
    --primary-color: #ff69b4;
    --secondary-color: #9b59b6;
    --background: #2a1b3d;
    --text-color: #ffffff;
    --card-bg: rgba(255, 105, 180, 0.1);
    --blur-bg: rgba(255, 105, 180, 0.05);
    --container-width-xl: 1400px;
    --container-width-lg: 1200px;
    --container-width-md: 960px;
    --container-width-sm: 720px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', cursive;
}

body {
    background: var(--background);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 105, 180, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(155, 89, 182, 0.1) 0%, transparent 20%);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width-xl);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cobweb Style */
.cobweb {
    position: fixed;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, 
        transparent 45%, rgba(255, 105, 180, 0.1) 45%, 
        rgba(255, 105, 180, 0.1) 55%, transparent 55%),
        linear-gradient(-45deg, 
        transparent 45%, rgba(255, 105, 180, 0.1) 45%, 
        rgba(255, 105, 180, 0.1) 55%, transparent 55%);
    transform: rotate(45deg);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* Floating Ghosts */
.floating-ghosts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ghost {
    position: absolute;
    opacity: 0.2;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.3));
    animation: float 6s infinite ease-in-out;
    will-change: transform;
}

/* Navigation */
.nav {
    position: fixed;
    margin:  1%;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
    background: rgba(42, 27, 61, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

.nav-btn {
    transform-origin: center;
    animation: bounce 2s infinite;
    text-decoration: none;
    transition: transform 0.3s ease;
    will-change: transform;
}

.nav-btn:hover {
    transform: scale(1.1);
}

.nav-btn img {
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.4));
    width: 90px;
    height: auto;
}

/* Page Layout */
.page {
    min-height: 100vh;
    padding: 6rem 1rem 2rem;
    position: relative;
    width: 100%;
    max-width: var(--container-width-xl);
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    max-width: var(--container-width-xl);
    margin: 0 auto;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 80%;
    height: auto;
    max-width: 500px;
    filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.3));
    animation: float 6s infinite ease-in-out;
}

.hero-content {
    background: rgba(42, 27, 61, 0.3);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.2);
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Typography */
.cartoon-text {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        3px 3px 0 rgba(255, 105, 180, 0.3),
        -3px -3px 0 rgba(155, 89, 182, 0.3);
    animation: drip 2s infinite;
    will-change: transform;
}

.wavy-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    animation: wave 2s infinite;
    will-change: transform;
    color: var(--primary-color);
}

.glow-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
    animation: glow 2s infinite;
}

.bounce-text {
    animation: bounce 2s infinite;
    will-change: transform;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Contract Address */
.contract-address {
    text-align: center;
    padding: 2rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    cursor: pointer;
    background: rgba(255, 105, 180, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.contract-address:hover {
    transform: scale(1.05);
    background: rgba(255, 105, 180, 0.2);
}

.copy-message {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.contract-address:hover .copy-message {
    bottom: 5px;
    opacity: 1;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: var(--container-width-xl);
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(42, 27, 61, 0.9);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 105, 180, 0.2);
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.3);
}

.feature-card img {
    width: 66%;
    height: auto;
    margin: 0 auto;
    max-width: 300px;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.2));
    transition: transform 0.3s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card h3 {
    margin-top: 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
    color: var(--text-color);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: var(--container-width-xl);
    margin: 0 auto;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 105, 180, 0.2);
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
}

.gallery img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.3);
}

/* Divider Section */
.divider-section {
    width: 100%;
    padding: 3rem 0;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 105, 180, 0.1),
        rgba(155, 89, 182, 0.1),
        transparent
    );
    margin: 2rem 0;
    overflow: hidden;
}

.floating-divider {
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider-text {
    display: flex;
    gap: 1rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-color);
    letter-spacing: 0.5rem;
}

.divider-text span {
    display: inline-block;
    animation: floatLetter 3s infinite ease-in-out;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    opacity: 0.8;
    will-change: transform;
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(3deg) scale(1); 
    }
    50% { 
        transform: translate(15px, -15px) rotate(-3deg) scale(1.1); 
    }
}

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

@keyframes drip {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.1); }
}

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

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px var(--primary-color); }
    50% { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

@keyframes floatLetter {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 1;
    }
}

/* Media Queries */
@media (max-width: 1400px) {
    .page {
        max-width: var(--container-width-lg);
    }
    
    .hero {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .page {
        max-width: var(--container-width-md);
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        width: 60%;
    }

    .hero-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page {
        max-width: var(--container-width-sm);
        padding: 5rem 1rem 1.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav {
        padding: 0.75rem;
    }

    .nav-btn img {
        width: 50px;
    }

    .divider-text {
        font-size: 1.8rem;
        gap: 0.5rem;
    }

    .feature-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 1rem;
    }

    .hero-image img {
        width: 80%;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .contract-address {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* High-resolution screens */
@media (min-width: 1800px) {
    :root {
        --container-width-xl: 1600px;
    }

    .hero-image img {
        max-width: 600px;
    }

    .feature-card img {
        max-width: 350px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(255, 105, 180, 0.08);
        --blur-bg: rgba(255, 105, 180, 0.03);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .nav, .floating-ghosts, .cobwebs {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-content, .feature-card {
        background: none;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .cartoon-text {
        color: black;
        text-shadow: none;
        background: none;
    }

    .glow-text {
        text-shadow: none;
    }
}

/* Additional Effects */
.sparkle {
    position: absolute;
    pointer-events: none;
    background: white;
    border-radius: 50%;
    animation: sparkle 1.5s infinite;
}

.sparkle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
    background: inherit;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dripping effect for text */
.drip-text {
    position: relative;
}

.drip-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: 
        linear-gradient(to bottom, 
            var(--primary-color) 50%, 
            transparent 50%);
    background-size: 20px 20px;
    animation: drip 2s infinite;
    opacity: 0.5;
}

/* Hover effects enhancement */
.feature-card:hover .sparkle {
    animation: sparkle 0.8s infinite;
}

.nav-btn:hover img {
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.6));
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Focus states */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection style */
::selection {
    background: var(--primary-color);
    color: var(--background);
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}