html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    font-family: 'Comic Sans MS', sans-serif;
    /* Fallback solid color */
    background-color: #a35200;
    /* Gradient as background-image */
    background-image: linear-gradient(to bottom, #a35200 0%, #e69500 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #f5f2ea;
    min-height: 100%;
    overflow-x: hidden;
    position: relative;
    text-align: center;
}

.bg-decorations {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -3;
}
.bg-decorations::before, .bg-decorations::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.bg-decorations::before {
    width: 400px; height: 400px;
    top: 15%; left: 10%;
    background: rgba(255,170,80,0.3);
    filter: blur(50px);
}
.bg-decorations::after {
    width: 300px; height: 300px;
    bottom: 20%; right: 20%;
    background: rgba(255,140,0,0.3);
    filter: blur(50px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    color: #f5f2ea;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section h1 {
    font-size: 4em;
    text-shadow: 2px 2px 10px rgba(255, 150, 0, 0.8);
    margin: 0;
    z-index: 1;
}

.hero-section p {
    font-size: 1.5em;
    margin-top: 10px;
    text-shadow: 1px 1px 5px rgba(255, 200, 0, 0.8);
    z-index: 1;
}

#explore-btn {
    z-index:1;
    margin-top:20px;
    padding:12px 25px;
    font-size:1.2em;
    background: linear-gradient(90deg, #ffae00, #ff7518);
    border:none; border-radius:5px;
    cursor:pointer; transition: transform 0.3s;
}
#explore-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Canvases */
#three-canvas,
#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background:transparent;
}

#three-canvas {
    z-index: 0;
}

#hero-canvas {
    z-index: -1;
}

/* Sticky Navigation Bar */
.sticky-navbar {
    background: rgba(148, 90, 31, 0.5);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.sticky-navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.sticky-navbar li {
    margin: 0 15px;
}

.sticky-navbar a {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: color 0.3s ease;
}
.sticky-navbar a:hover {
    color: #ff4500;
}

/* Container */
.container {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    overflow: hidden;
    border-top: 3px solid #b35900;
    border-bottom: 3px solid #b35900;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
    text-align: center;
}

.container-heading {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #f5f2ea;
    text-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.container-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f5f2ea;
}

#container-3d-canvas {
    display: block;
    margin: 0 auto 50px auto;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 2 / 1;
    border: 1px solid #b35900;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* Sections */
.section {
    margin: 80px auto;
    padding: 30px;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
    color: #f5f2ea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0; /* will fade in with GSAP */
    transform: translateY(50px);
}

.section h2 {
    color: #f2e4d1;
    margin-bottom: 20px;
    font-size: 2em;
    text-shadow: 0 0 3px rgba(0,0,0,0.2);
}

.section p {
    font-size: 1.1em;
    line-height: 1.5em;
    color: #f5f2ea;
}

.section a {
    color: #f5e3c9;
    font-weight: bold;
    text-decoration: underline;
}

.section a:hover {
    color: #ebdbc6;
}

/* Images */
.story-images, .images-section {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.story-images img, .images-section img {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 10px;
    border-radius: 10px;
    border: 1px solid #b35900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-images img:hover, .images-section img:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Price Tracker */
.price-tracker {
    font-size: 1.2em;
    color: #f5f2ea;
    margin-top: 10px;
}

.dexscreener-logo {
    width: 130px;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.dexscreener-logo:hover {
    transform: scale(1.05);
}

/* Call-to-Action Buttons */
.cta-buttons a {
    text-decoration: none;
    margin: 10px;
    padding: 8px 15px;
    background: linear-gradient(90deg, #b35900, #d67a00);
    color: #f5f2ea;
    border-radius: 5px;
    font-size: 1em;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.cta-buttons a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #b35900, #d67a00);
    color: #f5f2ea;
    text-align: center;
    padding: 20px;
}

#contract-address {
    cursor: pointer;
    color: #f5e3c9;
    text-decoration: underline;
}

#copy-confirmation {
    display: none;
    color: #90ee90;
    margin-left: 10px;
}

/* Background Canvas */
#bg-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    #explore-btn {
        font-size: 0.9em;
    }

    .container-heading {
        font-size: 1.8em;
    }

    .section {
        margin: 40px auto;
        padding: 20px;
    }

    .section h2 {
        font-size: 1.5em;
    }

    .story-images img, .images-section img {
        max-width: 100%;
    }

    #contract-address {
        font-size: 0.75em;
    }
}
