:root {
    --bg-dark: #1b3d1b;
    --bg-darker: #0c1c0c;
    --primary-green: #7fff50;
    --primary-green-hover: #5ee030;
    --border-color: #000000;
    --text-dark: #000000;
    --text-light: #ffffff;
    --border-width: 4px;
}

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

body {
    font-family: 'Space Mono', monospace;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-hover);
}

/* Halftone / Dotted Background */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: radial-gradient(#2d5c2d 20%, transparent 20%);
    background-size: 10px 10px;
    opacity: 0.5;
}

/* Utility Classes */
.neo-border {
    border: var(--border-width) solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
}

.neo-border-top-bottom {
    border-top: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
}

h1, h2, h3, .hero-title, .section-title {
    font-family: 'Fredoka One', 'Dela Gothic One', cursive;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-darker);
    margin: 20px auto;
    padding: 15px 40px;
    width: 100%;
    max-width: 1000px;
    border-radius: 50px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-green);
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a.nav-explorer {
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a.nav-explorer:hover {
    color: var(--text-light);
}

/* Buttons */
.btn-primary, .btn-copy, .btn-pill {
    background-color: var(--primary-green);
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    font-family: 'Space Mono', monospace;
}

.btn-primary:hover, .btn-copy:hover, .btn-pill:hover, .btn-icon:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border-color);
}

.btn-primary:active, .btn-copy:active, .btn-pill:active, .btn-icon:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--border-color);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--text-light);
    color: var(--text-dark);
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-icon:hover {
    background-color: #eee;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border-color);
}

/* Viewport Fold */
.viewport-fold {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 0;
    position: relative;
    overflow: hidden;
    min-height: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(12rem, 50vw, 50rem);
    color: var(--primary-green);
    text-shadow: 
        -4px -4px 0 #000,
        4px -4px 0 #000,
        -4px 4px 0 #000,
        4px 4px 0 #000,
        15px 15px 0 #000;
    line-height: 0.8;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    white-space: nowrap;
}

.hero-title span {
    display: inline-block;
    animation: float-letter 4s ease-in-out infinite;
}

.hero-image-wrapper {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 100%;
}

.hero-mascot {
    width: 750px;
    max-width: 120%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 -10px 40px rgba(127, 255, 80, 0.4));
    transform: translateY(100%);
    opacity: 0;
    animation: slide-up-mascot 3s cubic-bezier(0.25, 1, 0.5, 1) 2s forwards;
}

@keyframes slide-up-mascot {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Contract Section */
.contract-section {
    background-color: var(--primary-green);
    background-image: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.05) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.05) 75%,
        transparent 75%,
        transparent 100%
    );
    background-size: 40px 40px;
    animation: slide-stripes 2s linear infinite;
    padding: 20px 20px;
    text-align: center;
    color: var(--text-dark);
    flex-shrink: 0;
}

@keyframes slide-stripes {
    0% { background-position: 0 0; }
    100% { background-position: -40px 0; }
}

.contract-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contract-box {
    background-color: var(--bg-darker);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    padding: 10px 10px 10px 30px;
    border-radius: 50px;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: hidden;
}

#ca-text {
    margin-right: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dex-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.btn-pill {
    background-color: var(--text-light);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-pill:hover {
    background-color: #f0f0f0;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.w-100 {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.bg-green {
    background-color: var(--primary-green);
}

.about-content {
    background-color: var(--bg-darker);
    padding: 40px;
    border-radius: 8px;
    border: var(--border-width) solid var(--border-color);
    box-shadow: 6px 6px 0px var(--border-color);
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-content h2::after {
    content: ' $FIH';
    color: var(--primary-green);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Custom Tweet Embed */
a.custom-tweet {
    background-color: #000;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: left;
    text-transform: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.custom-tweet:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border-color);
}

.tweet-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.tweet-author {
    display: flex;
    flex-direction: column;
}

.tweet-name {
    font-weight: bold;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.tweet-handle {
    color: #888;
    font-size: 0.9rem;
}

.tweet-logo {
    margin-left: auto;
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

.tweet-body {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 400;
}

.tweet-body a {
    color: var(--primary-green);
    text-decoration: none;
}

.tweet-body a:hover {
    text-decoration: underline;
}

.tweet-footer {
    color: #888;
    font-size: 0.9rem;
}

.tweet-footer a {
    color: inherit;
    text-decoration: none;
}

.tweet-footer a:hover {
    text-decoration: underline;
}

.mt-4 {
    margin-top: 20px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mb-5 {
    margin-bottom: 40px;
}

/* Marquee */
.marquee-wrapper {
    background-color: var(--primary-green);
    color: var(--text-dark);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.marquee-content {
    display: flex;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    animation: marquee 60s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Tokenomics */
.tokenomics-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.tokenomics-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    align-items: center;
}

.t-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.t-card {
    background-color: var(--bg-darker);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.t-card h3 {
    color: var(--primary-green);
    font-size: 3rem;
    margin-bottom: 10px;
}

.t-card p {
    font-weight: 700;
    font-size: 1.2rem;
}

.t-center {
    display: flex;
    justify-content: center;
}

.t-mascot {
    width: 100%;
    max-width: 350px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* Lore Section */
.lore-section {
    padding: 80px 20px 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lore-container {
    background-color: var(--primary-green);
    color: var(--text-dark);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 6px 6px 0px var(--border-color);
}

.lore-container h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.lore-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Community Section */
.community-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.community-card {
    background-color: var(--primary-green);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    color: var(--text-dark);
}

.c-image {
    width: 40%;
    background-color: var(--bg-darker);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-right: var(--border-width) solid var(--border-color);
}

.c-image img {
    width: 80%;
    max-width: 250px;
    margin-bottom: -20px;
}

.c-content {
    width: 60%;
    padding: 60px 40px;
    text-align: center;
}

.c-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.c-content p {
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.c-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    background-color: var(--primary-green);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px var(--border-color);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    border-top: var(--border-width) dashed var(--primary-green);
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.f-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    margin-right: 20px;
    font-size: 0.9rem;
}

.f-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Busy Hero Animations & Elements */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(127, 255, 80, 0.4) 0%, transparent 60%);
    z-index: 0;
    animation: pulse-glow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

.floating-particle {
    position: absolute;
    background-color: var(--primary-green);
    color: var(--text-dark);
    padding: 10px;
    border-radius: 12px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    z-index: 1;
    animation: float-around 6s ease-in-out infinite alternate;
}

.p1 { top: 10%; left: 15%; animation-delay: 0s; }
.p2 { top: 20%; right: 10%; animation-delay: -1s; font-size: 2rem; }
.p3 { bottom: 30%; left: 10%; animation-delay: -2s; font-size: 2.5rem; }
.p4 { bottom: 15%; right: 20%; animation-delay: -3s; }
.p5 { top: 40%; left: 5%; background-color: var(--text-light); animation-delay: -1.5s; font-size: 1rem; }
.p6 { top: 15%; right: 25%; background-color: var(--text-light); animation-delay: -2.5s; font-size: 1.2rem; }

/* Glitch animation removed */

.float-anim {
    animation: float-up-down 3s ease-in-out infinite alternate;
}

@keyframes float-letter {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(3deg);
    }
    66% {
        transform: translateY(15px) rotate(-2deg);
    }
}

.hero-cta-wrapper {
    position: relative;
    z-index: 3;
    margin-top: 40px;
    margin-bottom: 20px;
}

.btn-hero-cta {
    background-color: var(--primary-green);
    color: var(--text-dark);
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    text-transform: uppercase;
}

.pulse-anim {
    animation: pulse-button 1.5s infinite;
}

/* Keyframes */
@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes float-around {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes float-up-down {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

@keyframes pulse-button {
    0% { transform: scale(1); box-shadow: 6px 6px 0px var(--border-color); }
    50% { transform: scale(1.05); box-shadow: 10px 10px 0px var(--border-color); }
    100% { transform: scale(1); box-shadow: 6px 6px 0px var(--border-color); }
}

/* Glitch keyframes removed */

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
    }
    
    .t-center {
        grid-row: 1;
    }
    
    .community-card {
        flex-direction: column;
    }
    
    .c-image {
        width: 100%;
        border-right: none;
        border-bottom: var(--border-width) solid var(--border-color);
        padding-top: 40px;
    }
    
    .c-content {
        width: 100%;
        padding: 40px 20px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
        border-radius: 20px;
    }
    
    .contract-box {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    #ca-text {
        margin-right: 0;
    }
}
