:root {
    --primary-color: #FFD700; /* Gold yellow */
    --secondary-color: #FF6347; /* Tomato red/orange */
    --accent-color: #FFA500; /* Orange */
    --text-color: #333;
    --bg-color: #FFF8DC; /* Cornsilk - DEFAULT BODY/SECTION BACKGROUND */
    --bg-color-alt1: #fffaf0; /* FloralWhite - an alternative light bg */
    --bg-color-alt2: #f5f5f5; /* WhiteSmoke - another alternative */
    --pixel-border: 3px solid #000;
    --pixel-box-bg: #f0f0f0;
    --font-pixel: 'Press Start 2P', cursive;
}

/* --- CUSTOM CURSOR --- */
html, body, a, button, input, textarea, select, label,
[role="button"], [contenteditable="true"], .btn, #copyButton,
.pixel-box, #contractAddress
{
    cursor: url('../images/cluckcoin/cursor.png') 15 15, auto !important;
}


body {
    font-family: var(--font-pixel);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 10px;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.pixel-box,
#contractAddress,
input,
textarea,
[contenteditable="true"]
{
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}


img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}


.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header & Nav */
header {
    background-color: var(--secondary-color);
    padding: 10px 0;
    border-bottom: var(--pixel-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 8px;
    border: 2px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

nav a:hover {
    background-color: var(--accent-color);
    border: 2px solid #000;
    color: #000;
}

/* Hero Section */
#hero {
    background:
        linear-gradient(to bottom, rgba(255, 215, 0, 0.65), rgba(255, 165, 0, 0.75)),
        url('../images/cluckcoin/sunsetbackground.jpg');
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 20px 0 30px;
    text-align: center;
    border-bottom: var(--pixel-border);
    position: relative;
}

#hero .hero-outer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#giant-hero-logo {
    display: block;
    width: 50%;
    max-width: 220px;
    height: auto;
    margin-bottom: 15px;
    image-rendering: pixelated;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#hero h1 {
    font-size: 2.0em;
    color: #fff;
    text-shadow: 2px 2px #000, 0 0 10px rgba(0,0,0,0.5);
    margin-bottom: 6px;
    margin-top: 0;
}

#hero .subtitle {
    font-size: 1.0em;
    color: #ffffff;
    text-shadow: 1px 1px #000, 0 0 5px rgba(0,0,0,0.7);
    margin-bottom: 15px;
    max-width: 80%;
}

.hero-secondary-logo {
    width: 90px;
    height: 90px;
    margin-top: 10px;
    margin-bottom: 15px;
    image-rendering: pixelated;
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.3));
}

.contract-address-box {
    margin-top: 0;
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(255,255,255,0.88);
    border: var(--pixel-border);
    display: inline-block;
    max-width: 90%;
    box-shadow: 3px 3px 0px #000;
    text-align: center;
}

.contract-address-box h2 {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px;
}

.address-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 12px auto;
}

#contractAddress {
    font-size: 1em;
    font-weight: bold;
    color: var(--secondary-color);
    background-color: var(--pixel-box-bg);
    padding: 7px 10px;
    border: 2px solid #ccc;
    word-break: break-all;
    margin-bottom: 0;
    flex-grow: 1;
    margin-right: 8px;
    text-align: left;
}

#copyButton {
    background-color: var(--secondary-color);
    border: var(--pixel-border);
    padding: 6px;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0px #000;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s, width 0.2s, height 0.2s;
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    font-family: var(--font-pixel);
    font-size: 0.8em;
    line-height: 1;
    overflow: hidden;
    flex-shrink: 0;
}
#copyButton img { width: 20px; height: 20px; display: block; image-rendering: pixelated; }
#copyButton.text-feedback { width: auto; min-width: 38px; padding: 7px 10px; }
#copyButton.text-feedback img { display: none; }
#copyButton:hover { background-color: var(--accent-color); }
#copyButton:active { transform: translate(2px, 2px); box-shadow: none; }
#copyButton:disabled { background-color: #aaa; box-shadow: none; transform: none; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; text-decoration: none; font-family: var(--font-pixel);
    font-size: 1em; border: var(--pixel-border);
    box-shadow: 3px 3px 0px #000;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s;
    margin-top: 10px;
    color: var(--text-color);
    background-color: var(--primary-color); line-height: 1; text-align: center;
}
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn-primary { background-color: var(--primary-color); color: var(--text-color); }
.btn-primary:hover { background-color: #e6c300; }
.button-icon { width: 18px; height: 18px; display: inline-block; image-rendering: pixelated; vertical-align: middle; }

.contract-address-box .btn.interest-check {
    margin-top: 0;
    font-size: 1.1em;
    padding: 10px 20px;
}

.hero-action-buttons {
    display: flex; justify-content: center; align-items: center;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 20px; flex-wrap: wrap;
}

#hero .social-button {
    margin-top: 0; margin-bottom: 0;
    font-size: 1.1em; padding: 12px 22px; color: white;
}
#hero .social-button .button-icon { width: 18px; height: 18px; }
.btn-telegram { background-color: #0088cc; color: white; }
.btn-telegram:hover { background-color: #0077b3; }
.btn-discord { background-color: #5865F2; color: white; }
.btn-discord:hover { background-color: #4a55cf; }

.coming-soon-text {
    font-size: 1.2em; color: #fff;
    text-shadow: 1px 1px #000, 0 0 5px rgba(0,0,0,0.7);
    margin-top: 0; font-weight: bold;
}
.interest-check-footer {
    font-size: 1.2em; background-color: var(--secondary-color);
    color: white; border-color: #000;
}
.interest-check-footer:hover { background-color: #e55337; }


/* Default Content Section Styling */
.content-section {
    padding: 40px 0;
    border-bottom: var(--pixel-border);
    text-align: center;
    position: relative;
}
.content-section:last-of-type { border-bottom: none; }
.content-section h2 { font-size: 2em; margin-bottom: 30px; color: var(--secondary-color); text-shadow: 1px 1px #000; }
.pixel-icon { margin-right: 8px; }

/* --- SECTION SPECIFIC BACKGROUNDS --- */
#about {
    background:
        linear-gradient(rgba(255, 248, 220, 0.85), rgba(255, 248, 220, 0.85)),
        url('../images/cluckcoin/moonbackground.png');
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#about .about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; text-align: left; align-items: center; }
#about .about-grid img { max-width: 100%; border: var(--pixel-border); image-rendering: pixelated; }
.full-width-banner { max-width: 60%; margin: 30px auto 0; display: block; image-rendering: pixelated; }

#features {
    background:
        linear-gradient(rgba(245, 245, 245, 0.9), rgba(245, 245, 245, 0.9)),
        url('../images/features_bg.png');
    background-color: var(--bg-color-alt2);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; text-align: left; }
.feature-card {
    background-color: #fff;
    padding: 20px;
    border: var(--pixel-border);
    box-shadow: 3px 3px 0px #000;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.feature-card:hover {
    transform: translate(-2px, -4px);
    box-shadow: 5px 7px 0px #000;
}
.feature-card img { max-width: 80px; height: auto; margin-bottom: 15px; display: block; margin-left: auto; margin-right: auto; image-rendering: pixelated; }
.feature-card h3 { font-size: 1.3em; color: var(--accent-color); margin-bottom: 10px; }
.inline-logo { height: 1.2em; vertical-align: middle; margin: 0 3px; image-rendering: pixelated; }
.small-logo { height: 20px; }
.floating-coin-visual { max-width: 200px; margin: 30px auto 0; image-rendering: pixelated; }

#tokenomics {
    background-color: var(--bg-color-alt1);
}
#tokenomics .tokenomics-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; text-align: left; align-items: center; }
#tokenomics .feature-img { max-width: 100%; border: var(--pixel-border); image-rendering: pixelated; }
#tokenomics ul { list-style: none; padding-left: 0; }
#tokenomics ul li { margin-bottom: 8px; padding-left: 20px; position: relative; }
#tokenomics ul li::before { content: "⭐"; position: absolute; left: 0; font-size: 0.8em; }
#tokenomics p { margin-bottom: 15px; }

#roadmap {
    background-color: var(--bg-color);
}
.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; text-align: left; }
.roadmap-phase {
    background-color: var(--pixel-box-bg);
    border: var(--pixel-border);
    padding: 15px;
    box-shadow: 2px 2px 0px #000;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.roadmap-phase:hover {
    transform: translate(-2px, -4px);
    box-shadow: 4px 6px 0px #000;
}
.roadmap-phase h3 { color: var(--secondary-color); border-bottom: 2px solid var(--accent-color); padding-bottom: 5px; margin-top: 0; }
.roadmap-phase p { font-size: 0.9em; line-height: 1.8; }

#sponsors {
     background-color: var(--bg-color-alt2);
}
#sponsors .sponsor-subtitle { font-size: 1.3em; margin-top: 30px; margin-bottom: 15px; color: var(--text-color); }
.sponsor-carousel-container {
    width: 100%; overflow: hidden; padding: 15px 0;
    background-color: rgba(255,255,255,0.7);
    border-top: 2px dashed var(--accent-color);
    border-bottom: 2px dashed var(--accent-color);
    box-sizing: border-box; margin-top: 10px; margin-bottom: 20px;
}
.sponsors-grid.tech-sponsors {
    display: flex; width: calc((120px + 40px) * 18);
    animation: scrollSponsors 45s linear infinite;
    gap: 40px; padding: 0 20px; box-sizing: content-box;
}
.sponsors-grid.tech-sponsors:hover { animation-play-state: paused; }
.sponsors-grid.tech-sponsors img {
    max-height: 60px; max-width: 120px; height: auto;
    flex-shrink: 0; image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.2));
    object-fit: contain;
}
@keyframes scrollSponsors { 0% { transform: translateX(0); } 100% { transform: translateX(-33.3333%); } }

.sponsors-grid.non-scrolling-sponsors {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 25px;
}
.sponsors-grid.non-scrolling-sponsors img {
    max-height: 50px; max-width: 120px;
    image-rendering: pixelated; filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.3));
}

#join {
    background-color: var(--primary-color);
}
#join h2 { color: var(--text-color); text-shadow: 1px 1px var(--bg-color); }

#join .social-icons-footer {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#join .social-icons-footer a {
    display: inline-block;
    transition: transform 0.2s ease-out;
}

#join .social-icons-footer a:hover {
    transform: scale(1.15);
}

#join .social-icons-footer .social-icon-img {
    width: 35px;
    height: 35px;
    image-rendering: pixelated;
    border: 2px solid var(--text-color);
    border-radius: 5px;
    background-color: var(--bg-color-alt1);
    padding: 4px;
    box-shadow: 2px 2px 0px var(--text-color);
    display: block;
}


footer {
    background-color: var(--text-color); color: var(--bg-color);
    padding: 20px 0; text-align: center; font-size: 0.8em;
}
#footer-logo { height: 40px; margin-bottom: 10px; image-rendering: pixelated; }
.disclaimer { font-size: 0.7em; margin-top: 10px; opacity: 0.8; max-width: 600px; margin-left: auto; margin-right: auto; }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }


/* Responsive Design */
@media (max-width: 768px) {
    body { font-size: 9px; }
    header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    nav a {
        margin: 5px 8px;
    }

    #giant-hero-logo {
        max-width: 180px;
        width: 50%;
    }
    .hero-secondary-logo {
        width: 70px;
        height: 70px;
    }
    #hero h1 {
        font-size: 1.7em;
    }
    #hero .subtitle {
        font-size: 0.9em;
        max-width: 90%;
    }

    .address-input-group {
        max-width: 90%;
    }
    .contract-address-box .btn.interest-check {
        font-size: 1em;
        padding: 10px 18px;
    }
    #hero .social-button {
        font-size: 1em;
        padding: 10px 18px;
    }
    #hero .social-button .button-icon {
        width: 16px;
        height: 16px;
    }

    #copyButton {
        width: 34px; height: 34px; padding: 5px; font-size: 0.7em;
    }
    #copyButton.text-feedback { padding: 6px 8px; }
    #copyButton img { width: 18px; height: 18px; }

    #about .about-grid, #tokenomics .tokenomics-grid { grid-template-columns: 1fr; }
    #about .about-grid img, #tokenomics .feature-img { margin-top: 20px; order: -1; }
    .full-width-banner { max-width: 90%; }
    .content-section h2 { font-size: 1.8em; }
    .feature-card h3 { font-size: 1.2em; }
    .sponsors-grid.tech-sponsors { gap: 30px; width: calc((100px + 30px) * 18); }
    .sponsors-grid.tech-sponsors img { max-height: 50px; max-width: 100px; }
    .sponsors-grid.non-scrolling-sponsors img { max-height: 40px; max-width: 100px; }
}

@media (max-width: 480px) {
    body { font-size: 8px; }
    #giant-hero-logo {
        max-width: 150px;
        width: 60%;
    }
    .hero-secondary-logo {
        width: 60px;
        height: 60px;
    }
    nav a {
        font-size: 0.9em;
        margin: 3px 5px;
        padding: 4px 6px;
    }
    #hero h1 {
        font-size: 1.5em;
    }
    #hero .subtitle {
        font-size: 0.85em;
    }
    .contract-address-box {
        padding: 12px;
    }
    .contract-address-box h2 {
        font-size: 1em;
    }
    #contractAddress {
        font-size: 0.9em;
        padding: 6px 8px;
        margin-bottom: 0;
    }
    #copyButton {
        width: 32px;
        height: 32px;
        padding: 5px;
        font-size: 0.65em;
    }
    #copyButton.text-feedback { padding: 5px 7px; }
    #copyButton img { width: 16px; height: 16px; }

    .contract-address-box .btn.interest-check {
        font-size: 0.9em;
        padding: 8px 15px;
        width: auto;
        max-width: 220px;
    }

    .features-grid, .roadmap-grid { grid-template-columns: 1fr; }
    .sponsors-grid.tech-sponsors { gap: 20px; width: calc((80px + 20px) * 18); }
    .sponsors-grid.tech-sponsors img { max-height: 40px; max-width: 80px; }

    .hero-action-buttons {
        display: flex;         /* Ensure flex behavior */
        flex-direction: column;
        align-items: center;   /* THIS IS KEY: Horizontally center flex items */
        width: 100%;           /* Make the container take full available width */
        gap: 10px;
        padding: 0 10px;       /* Optional: adds some space from screen edges if screen is very narrow */
        box-sizing: border-box;/* Optional: ensures padding is included in width calculation */
    }
    #hero .social-button {
        /* width: 100%; */    /* REMOVED: Let button size naturally up to max-width */
        max-width: 280px;    /* Max width for the button itself */
        /* Other styles like padding, font-size, etc., come from .btn and existing #hero .social-button rules */
        /* display: inline-flex and text-align: center from .btn will style the button's internals */
        /* margin-top/bottom overrides are still active from general #hero .social-button rule */
    }
    #hero .social-button .button-icon {
        width: 16px;
        height: 16px;
    }

    /* Responsive adjustments for footer social icons */
    #join .social-icons-footer {
        gap: 10px;
    }
    #join .social-icons-footer .social-icon-img {
        width: 30px;
        height: 30px;
        padding: 3px;
    }
}
