:root {
    --primary-color: #1a237e;
    --secondary-color: #d32f2f;
    --background-color: #0a1929;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-color: #ffd700;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Navigation */
header {
    background-color: rgba(26, 35, 126, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 60px;
}

main {
    padding-top: 60px; /* Same as header height */
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    min-height: calc(100vh - 60px); /* Subtract header height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(rgba(10, 25, 41, 0.9), rgba(10, 25, 41, 0.9)),
                url('background.jpg') center/cover;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.story-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.story-card:hover::before {
    opacity: 0.1;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.story-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image::before {
    content: attr(data-title);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.story-card:hover .story-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.section-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.story-card:hover .section-title::after {
    width: 50%;
}

.story-card p {
    color: var(--text-color);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Stats Section */
#stats {
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stats-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Add height control for the chart container */
.stats-card:nth-child(2) {
    height: 400px;
}

#priceChart {
    height: 300px !important;
    width: 100% !important;
}

.address {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    word-break: break-all;
    margin: 1rem 0;
    display: block;
}

.copy-button {
    background: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Community Section */
#community {
    padding: 5rem 0;
    text-align: center;
}

.rally-cry {
    font-size: 2rem;
    margin: 2rem 0;
    color: var(--accent-color);
    line-height: 1.3;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-button {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-button:hover {
    transform: scale(1.05);
    background: var(--accent-color);
    color: var(--background-color);
}

.social-button.coming-soon {
    background: var(--primary-color);
    opacity: 0.7;
    cursor: default;
}

.social-button.coming-soon:hover {
    transform: none;
    background: var(--primary-color);
    color: var(--text-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    padding: 2rem 0;
    text-align: center;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Story Cards */
    .story-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .story-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .story-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .story-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Stats Section */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-card {
        padding: 1.2rem;
        margin: 0 1rem;
    }

    .stats-card:nth-child(2) {
        height: 250px;
    }

    #priceChart {
        height: 200px !important;
    }

    .market-info p {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    .address {
        font-size: 0.8rem;
        padding: 0.5rem;
        word-break: break-all;
    }

    .copy-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Community Section */
    .rally-cry {
        font-size: 1.4rem;
        padding: 0 1rem;
        line-height: 1.4;
        margin: 1.5rem 0;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .social-button {
        width: 80%;
        max-width: 250px;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .story-icon {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .story-card {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }

    .stats-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .stats-card:nth-child(2) {
        height: 220px;
    }

    #priceChart {
        height: 180px !important;
    }

    .rally-cry {
        font-size: 1.2rem;
        padding: 0 0.8rem;
    }

    .social-button {
        width: 90%;
        padding: 0.7rem 1rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Landscape mode optimization */
@media (max-height: 600px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 4rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .story-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .stats-card:nth-child(2) {
        height: 200px;
    }

    #priceChart {
        height: 160px !important;
    }
}

/* Better touch targets for mobile */
@media (hover: none) {
    .social-button,
    .copy-button {
        min-height: 44px;
    }

    .story-card {
        transform: none !important;
    }

    .story-card:active {
        transform: translateY(-2px) !important;
    }
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

.menu-toggle.active i {
    transform: rotate(90deg);
} 