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

/* Root Variables */
:root {
    --primary-bg: #0d1421;
    --secondary-bg: #1a2332;
    --accent-bg: #2a3441;
    --primary-color: #00ff41;
    --secondary-color: #ff6b35;
    --text-light: #ffffff;
    --text-dark: #000000;
    --border-color: #00ff41;
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --twitter-blue: #1da1f2;
    
    /* Bud Light Theme Colors */
    --budlight-blue: #004B87;
    --budlight-light-blue: #0066CC;
    --budlight-accent: #00BFFF;
    --budlight-silver: #C0C0C0;
    --budlight-white: #FFFFFF;
    --budlight-dark: #002244;
}

/* Base Styles */
body {
    font-family: 'Press Start 2P', monospace;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    background: url('../images/beer background.png') no-repeat center top;
    background-size: contain;
    min-height: 100vh;
}

/* Ensure HTML also has proper background handling */
html {
    background: url('../images/beer background.png') no-repeat center top;
    background-size: contain;
    min-height: 100%;
}

@keyframes float {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

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

/* Header */
.header {
    background: rgba(0, 75, 135, 0.95);
    border-bottom: 4px solid var(--budlight-light-blue);
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 var(--text-dark);
    animation: pulse 2s infinite;
}

.logo-image {
    height: 50px;
    width: auto;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0 var(--text-dark));
}

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

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    padding: 8px 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    image-rendering: pixelated;
}

.nav-link:hover {
    border: 2px solid var(--primary-color);
    background: var(--accent-bg);
    color: var(--primary-color);
    text-shadow: 1px 1px 0 var(--text-dark);
}

/* Hero Section */
.hero {
    margin-top: 100px;
    padding: 150px 0;
    text-align: center;
    background: transparent;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.main-coin {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-coin-image {
    width: 300px;
    height: auto;
    max-width: 100%;
    animation: float-coin 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

@keyframes float-coin {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Buttons */
.btn {
    font-family: 'Press Start 2P', monospace;
    padding: 12px 24px;
    font-size: 14px;
    border: 4px solid;
    background: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    image-rendering: pixelated;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    color: var(--budlight-white);
    background: var(--budlight-light-blue);
    border-color: var(--budlight-blue);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
    background: var(--budlight-accent);
}

.btn-secondary {
    color: var(--budlight-white);
    background: var(--budlight-blue);
    border-color: var(--budlight-dark);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
    background: var(--budlight-light-blue);
}

.btn-twitter {
    color: var(--text-light);
    background: var(--twitter-blue);
    border-color: var(--twitter-blue);
    box-shadow: 4px 4px 0 var(--text-dark);
    padding: 12px 20px;
}

.btn-twitter:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text-dark);
}

.twitter-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Sections */
.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    text-shadow: 3px 3px 0 var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 20px auto;
    box-shadow: 2px 2px 0 var(--text-dark);
}

/* About Section */
.about {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about .section-title {
    color: var(--budlight-accent);
    text-shadow: 3px 3px 0 var(--text-dark);
}

.about .section-title::after {
    background: var(--budlight-accent);
    box-shadow: 2px 2px 0 var(--text-dark);
}

.pixel-box {
    background: rgba(0, 34, 68, 0.9);
    border: 4px solid var(--budlight-accent);
    padding: 40px;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
    position: relative;
}

.pixel-box::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--budlight-accent) 25%, transparent 25%),
                linear-gradient(-45deg, var(--budlight-accent) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, var(--budlight-accent) 75%),
                linear-gradient(-45deg, transparent 75%, var(--budlight-accent) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    z-index: -1;
}

.about-text {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--budlight-white);
    text-shadow: 2px 2px 0 var(--text-dark);
}

/* Tokenomics Section */
.tokenomics {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.tokenomics .container {
    position: relative;
    z-index: 2;
}

.tokenomics .section-title {
    color: var(--budlight-accent);
    text-shadow: 3px 3px 0 var(--text-dark);
}

.tokenomics .section-title::after {
    background: var(--budlight-accent);
    box-shadow: 2px 2px 0 var(--text-dark);
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.tokenomics-card {
    background: var(--budlight-dark);
    border: 4px solid var(--budlight-accent);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
    image-rendering: pixelated;
}

.tokenomics-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.6);
    border-color: var(--budlight-light-blue);
}

.card-title {
    font-size: 14px;
    color: var(--budlight-accent);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 var(--budlight-dark);
}

.card-value {
    font-size: 24px;
    color: var(--budlight-white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 var(--budlight-dark);
}

.card-subtitle {
    font-size: 10px;
    color: var(--budlight-silver);
    text-shadow: 1px 1px 0 var(--budlight-dark);
}

/* Footer */
.footer {
    background: rgba(0, 75, 135, 0.95);
    border-top: 4px solid var(--budlight-light-blue);
    padding: 30px 0;
    text-align: center;
}

.footer-text {
    font-size: 12px;
    color: var(--budlight-accent);
    text-shadow: 1px 1px 0 var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
        min-height: 70vh;
    }
    
    .hero-coin-image {
        width: 250px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .btn {
        width: 200px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .pixel-box {
        padding: 20px;
        margin: 0 10px;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
        min-height: 60vh;
    }
    
    .hero-coin-image {
        width: 200px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .about-text {
        font-size: 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}
