:root {
    --primary-color: #4CAF50;
    --secondary-color: #45a049;
    --accent-color: #FF6B6B;
    --background-color: #f0f8f0;
    --text-color: #333;
    --gradient: linear-gradient(45deg, #4CAF50, #45a049);
}

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

/* Prevent initial scroll and ensure proper loading */
html {
    scroll-behavior: auto; /* Prevent automatic smooth scrolling on load */
}

html.loaded {
    scroll-behavior: smooth; /* Enable smooth scrolling after page loads */
}

body {
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    position: relative; /* Ensure proper positioning context */
}

/* All headers use D-DIN-Bold font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.logo-img {
    height: 40px;
    width: auto;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

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

.buy-button {
    background: var(--gradient);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #2d4a2f;
    cursor: pointer;
    transition: transform 0.3s ease !important;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
    font-size: inherit;
    text-decoration: none;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.buy-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 5px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px #1e3220;
    border-color: #1e3220;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
                url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 0L100 50L50 100L0 50z" fill="%234CAF50" fill-opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.hero-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
    font-size: 72px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tagline {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    border: 3px solid #2d4a2f;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.35),
        0 0 0 2px #1e3220,
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(76, 175, 80, 0.4);
    border-color: #1e3220;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.about-text {
    text-align: center;
    font-size: 20px;
    margin-bottom: 30px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature .emoji {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Game Section */
.game-section {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
                url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="%234CAF50" fill-opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.game-container {
    text-align: center;
    margin-top: 40px;
}

.game-description {
    text-align: center;
    margin-bottom: 30px;
}

.game-button {
    background: var(--gradient);
    color: white;
    border: 3px solid #2d4a2f;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.game-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.3),
        0 0 0 2px #1e3220,
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15),
        0 8px 22px rgba(76, 175, 80, 0.4);
    border-color: #1e3220;
}

/* Tokenomics */
.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tokenomics-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tokenomics-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.tokenomics-item p {
    word-break: break-all;
    font-size: 14px;
    line-height: 1.4;
}

.whale-rankings {
    margin-top: 60px;
    text-align: center;
}

.whale-rankings h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 30px;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ranking-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ranking-item:hover {
    transform: translateY(-5px);
}

.rank-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.ranking-item h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.ranking-item p {
    margin: 5px 0;
    color: var(--text-color);
}

.ranking-item .amount {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 16px;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rankings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 20px 20px;
    }
    
    .hero-container {
        max-width: 100%;
    }
    
    .hero-content {
        padding: 20px 10px;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .tagline {
        font-size: 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    .rankings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .buy-links {
        flex-direction: column;
        align-items: center;
    }
    
    .widget-container iframe {
        max-width: 100% !important;
        height: 500px !important;
    }
}

@media (max-width: 480px) {
    .rankings-grid {
        grid-template-columns: 1fr;
    }
}

.code-description {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.code-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.code-container pre {
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-container code {
    color: #d4d4d4;
    font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', 'Source Code Pro', Menlo, Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.3s ease;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.copy-button:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .code-container {
        margin: 0 20px;
    }
}

/* Buy Section */
.buy-section {
    background: linear-gradient(rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.1));
}

.buy-description {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* Analytics Section */
.analytics-section {
    background: white;
}

.analytics-description {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-color);
}

.analytics-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.buy-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.buy-link {
    display: inline-block;
    background: var(--gradient);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    border: 2px solid #2d4a2f;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.buy-link:hover {
    transform: scale(1.05);
    box-shadow: 
        0 5px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px #1e3220,
        0 6px 18px rgba(76, 175, 80, 0.3);
    border-color: #1e3220;
}

/* RGB Glitch Effects */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 0, 0, 0.1) 25%, 
        transparent 50%, 
        rgba(0, 255, 0, 0.1) 75%, 
        transparent 100%);
    animation: glitchSweep 0.3s ease-in-out;
}

.glitch-active {
    animation: glitchPulse 0.5s ease-in-out;
}

@keyframes glitchSweep {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    20% {
        opacity: 0.6;
        transform: translateX(-50%);
    }
    50% {
        opacity: 0.8;
        transform: translateX(0%);
    }
    80% {
        opacity: 0.6;
        transform: translateX(50%);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes glitchPulse {
    0%, 100% {
        filter: none;
        transform: translate(0);
    }
    10% {
        filter: hue-rotate(90deg) saturate(150%);
        transform: translate(-2px, 0);
    }
    20% {
        filter: hue-rotate(180deg) saturate(200%);
        transform: translate(2px, 0);
    }
    30% {
        filter: hue-rotate(270deg) saturate(100%);
        transform: translate(-1px, 1px);
    }
    40% {
        filter: hue-rotate(360deg) saturate(150%);
        transform: translate(1px, -1px);
    }
    50% {
        filter: invert(20%) hue-rotate(90deg);
        transform: translate(-2px, 1px);
    }
    60% {
        filter: contrast(150%) brightness(120%);
        transform: translate(2px, -1px);
    }
    70% {
        filter: sepia(50%) hue-rotate(180deg);
        transform: translate(-1px, 0);
    }
    80% {
        filter: saturate(200%) brightness(80%);
        transform: translate(1px, 1px);
    }
    90% {
        filter: hue-rotate(45deg) contrast(120%);
        transform: translate(0, -1px);
    }
}

.rgb-shift {
    animation: rgbShift 0.3s ease-out;
}

@keyframes rgbShift {
    0% {
        text-shadow: 0 0 0 red, 0 0 0 green, 0 0 0 blue;
    }
    25% {
        text-shadow: -2px 0 0 red, 2px 0 0 green, 0 2px 0 blue;
    }
    50% {
        text-shadow: 2px 0 0 red, -2px 0 0 green, 0 -2px 0 blue;
    }
    75% {
        text-shadow: -1px 1px 0 red, 1px -1px 0 green, 1px 1px 0 blue;
    }
    100% {
        text-shadow: 0 0 0 red, 0 0 0 green, 0 0 0 blue;
    }
}

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

/* Donate Address Styling */
.donate-address {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    border-bottom: 2px dotted var(--primary-color);
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
    user-select: text;
    font-family: 'D-DIN-Bold', Arial, Verdana, sans-serif;
}

.donate-address:hover {
    background-color: var(--primary-color);
    color: white;
    border-bottom: 2px solid var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}
