/* --- CSS STYLES --- */
:root {
    --font-heading: 'Luckiest Guy', cursive;
    --font-body: 'Nunito', sans-serif;
    --color-yellow: #FFD95A;
    --color-orange: #FFBB5C;
    --color-pink: #FF869E;
    --color-green: #9ADE7B;
    --color-dark: #3A3845; /* Darker, like logo outline */
    --color-light: #FFF8E1; /* Light cream for contrast */
    --border-radius: 15px;
}

/* Custom cursor and general enhancements */
body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" style="fill: %239ADE7B;"><text y="20">🐾</text></svg>'), auto;
}

/* --- Desktop & Base Layout --- */
.container {
    max-width: 960px;
    margin: 0 auto; /* Center the container */
    padding: 20px;
}

section {
    padding: 40px 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 20px;
}

section h2 {
    font-size: 2.8em;
    color: var(--color-dark);
}

.hero-content {
    position: relative; /* For z-index to work */
    z-index: 1;
}

/* --- Modifier for Hero Contract Address --- */
.hero-ca-modifier {
    margin-top: 20px; /* Add some space from the mascot */
    margin-bottom: 20px;
    padding: 15px;
    max-width: 500px; /* A bit smaller for the hero */
}

.hero-ca-modifier p {
    font-size: 1em; /* Slightly smaller text */
    margin-bottom: 8px;
}

.hero-ca-modifier span {
    font-size: 1em;
    padding: 8px 12px;
}

.cta-buttons, .community-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Adds space between buttons */
}

.info-blocks {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.info-block {
    flex-basis: 30%; /* Each block takes up about a third of the space */
    background-color: #fff; /* Give them a slight background */
    padding: 25px;
    border-radius: var(--border-radius);
    border: 3px solid var(--color-dark);
    box-shadow: 3px 3px 0px var(--color-dark);
    text-align: center;
}

.info-block .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: inline-block;
    animation: iconPop 3s infinite ease-in-out;
}

.contract-address {
    text-align: center;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    border-radius: var(--border-radius);
}

.contract-address p {
    font-family: var(--font-heading);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.contract-address span {
    font-family: monospace;
    font-size: 1.1em;
    background: #eee;
    padding: 10px 15px; /* Increased padding */
    border-radius: 8px;
    display: block; /* Makes it a block, easy to select */
    margin: 0 auto; /* Center it */
    max-width: 90%; /* Prevent it from being too wide */
    word-wrap: break-word; /* Ensure it wraps on small screens */
}

.copy-button {
    font-family: var(--font-heading);
    background-color: var(--color-pink);
    color: var(--color-light);
    border: 2px solid var(--color-dark);
    padding: 8px 15px;
    font-size: 1em;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-button:hover {
    background-color: #c2185b; /* Darker pink */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enhanced button styles */
.cta-buttons button, .community-links button {
    font-family: var(--font-heading);
    background-color: var(--color-green);
    color: var(--color-dark);
    border: 3px solid var(--color-dark);
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin: 10px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                background-color 0.3s ease,
                box-shadow 0.3s ease;
    box-shadow: 3px 3px 0px var(--color-dark);
    position: relative;
    overflow: hidden;
}

.cta-buttons button:hover, .community-links button:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--color-yellow);
    box-shadow: 5px 8px 0px var(--color-dark);
    animation: wiggle 0.5s ease-in-out;
}

.cta-buttons button::before, .community-links button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
    pointer-events: none;
}

.cta-buttons button:hover::before, .community-links button:hover::before {
    transform: scale(1);
    animation: sparkle 0.8s ease-out;
}

/* Fun border styles */
.contract-address {
    border: none;
    position: relative;
}

.contract-address::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px dashed var(--color-dark);
    border-radius: var(--border-radius);
    animation: borderDance 4s linear infinite;
}

/* Word emphasis for "CUTE. CHAOTIC. UNSTOPPABLE." */
.word1, .word2, .word3 {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.word1:hover {
    color: var(--color-pink);
    transform: scale(1.1) rotate(-5deg);
}

.word2:hover {
    color: var(--color-orange);
    transform: scale(1.1) rotate(5deg);
}

.word3:hover {
    color: var(--color-green);
    transform: scale(1.1) rotate(-3deg);
}

/* Add icons spacing in buttons */
.cta-buttons button i, .community-links button i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Scroll animation classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header / Navigation --- */
header {
    background-color: rgba(58, 56, 69, 0.85); /* Semi-transparent dark */
    color: var(--color-yellow);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--color-yellow);
}

header .logo-small {
    width: 50px;
    height: auto;
    animation: gentleWiggle 5s infinite ease-in-out;
}

header nav a {
    color: var(--color-yellow);
    text-decoration: none;
    font-family: var(--font-heading);
    margin-left: 20px;
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.2s ease;
}

header nav a:hover {
    color: var(--color-pink);
    transform: scale(1.1);
}

header nav a.nav-cfd-link { /* Specific style for $CFD link */
    color: var(--color-pink);
}
header nav a.nav-cfd-link:hover {
    color: var(--color-green);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange), var(--color-pink));
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* For background elements */
}

/* Fun background elements for hero */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    opacity: 0.2;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero::before { /* Paw prints */
    content: '🐾';
    font-size: 5em;
    left: 10%;
    top: 20%;
    transform: rotate(-15deg);
    animation: float 8s ease-in-out infinite;
}
.hero::after { /* Lily pad - could use an SVG or character */
    content: '🌿'; /* Placeholder, ideally a lily pad icon */
    font-size: 6em;
    right: 15%;
    bottom: 10%;
    transform: rotate(10deg);
    animation: float 10s 1s ease-in-out infinite reverse;
}

/* --- Animations --- */
@keyframes wiggle {
    0%, 100% { transform: translateY(-5px) scale(1.05) rotate(0deg); }
    25% { transform: translateY(-5px) scale(1.05) rotate(-3deg); }
    75% { transform: translateY(-5px) scale(1.05) rotate(3deg); }
}

@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(180deg); opacity: 0; }
}

@keyframes borderDance {
    0% { border-style: dashed; }
    25% { border-style: dotted; }
    50% { border-style: double; }
    75% { border-style: dotted; }
    100% { border-style: dashed; }
}

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

@keyframes gentleWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes iconPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(5deg); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-15deg); }
    50% { transform: translateY(-20px) rotate(-10deg); }
    100% { transform: translateY(0px) rotate(-15deg); }
}

/* --- Responsive Adjustments --- */
.mascot-main {
    max-width: 250px; /* Adjust this value as needed */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center the image */
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8em;
    }
    .hero p.sub-headline {
        font-size: 1.2em;
    }
    section h2 {
        font-size: 2.2em;
    }
    .info-blocks {
        flex-direction: column;
        align-items: center;
    }
    .info-block {
        flex-basis: auto;
        width: 80%;
        max-width: 350px;
    }
    header nav {
        display: flex; /* Or stack them if too many */
        flex-wrap: wrap;
        justify-content: center;
    }
    header nav a {
        margin: 5px 10px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2em;
        padding: 0 10px;
    }
    .hero p.sub-headline {
        font-size: 1em;
        padding: 0 15px;
    }
    .cta-buttons button, .community-links button {
        font-size: 1em;
        padding: 12px 20px;
        width: 90%;
        margin: 10px auto;
        display: block;
    }
    .cta-buttons, .community-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    section h2 {
        font-size: 1.8em;
        padding: 0 10px;
    }
    .contract-address {
        margin: 20px 10px;
        padding: 15px;
    }
    .contract-address span {
        font-size: 0.8em;
        word-break: break-all;
        display: block;
        margin-bottom: 10px;
    }
    .copy-button {
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
        padding: 12px;
    }
    header {
        flex-direction: column;
        padding: 10px;
    }
    header .logo-small { 
        margin-bottom: 10px;
        width: 40px;
    }
    header nav {
        width: 100%;
    }
    header nav a {
        font-size: 0.9em;
        margin: 5px;
        padding: 5px;
    }
    
    /* Hide decorative elements on very small screens */
    .hero::before, .hero::after {
        display: none;
    }
    
    /* Adjust padding for better mobile spacing */
    .hero {
        padding: 40px 10px;
    }
    .container {
        padding: 15px 10px;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.8em;
    }
    .hero p.sub-headline {
        font-size: 0.9em;
    }
    header nav a {
        font-size: 0.8em;
    }
}

/* --- About Section Specifics --- */
#about p {
    text-align: center;
    max-width: 750px; /* Constrain width for readability */
    margin-left: auto; /* Center the block */
    margin-right: auto;
}