/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #e6efff 100%); /* Subtle gradient for depth */
    color: #1a1a3e;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px; /* Wider container for modern look */
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif; /* Modern, friendly font */
    color: #1a1a3e;
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    color: #4a4a6a;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #0052ff, #00c4b4); /* Blue to teal gradient */
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0033cc, #00a89a);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.btn-secondary, .btn-game {
    background: transparent;
    border: 2px solid #0052ff;
    color: #0052ff;
}

.btn-secondary:hover, .btn-game:hover {
    background: #0052ff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.btn-login-form {
    background: linear-gradient(45deg, #0052ff, #00c4b4);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
}

.btn-login-form:hover {
    background: linear-gradient(45deg, #0033cc, #00a89a);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px); /* Frosted glass effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    margin-right: 12px;
}

.logo span {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0052ff;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: #1a1a3e;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00c4b4; /* Teal accent */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #1a1a3e;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #e6efff 0%, #f7f9fc 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('blockchain-bg.jpg') no-repeat center/cover;
    opacity: 0.08;
    z-index: -1;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.hero-content {
    max-width: 55%;
}

.hero-content p {
    margin-bottom: 24px;
}

.alert-banner {
    background: #e6f3ff;
    color: #1a1a3e;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #b3d4ff;
    margin: 20px 0;
}

.alert-banner strong {
    color: #0052ff;
}

.market-note {
    font-size: 0.9rem;
    color: #4a4a6a;
    margin-top: 12px;
}

.price-ticker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 82, 255, 0.2);
}

.stat-icon {
    font-size: 1.6rem;
    color: #0052ff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #4a4a6a;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a3e;
}

.stat-tooltip {
    position: absolute;
    background: #0052ff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
}

.stat-card:hover .stat-tooltip {
    opacity: 1;
}

.price-chart {
    margin-top: 32px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.error-message {
    color: #e53e3e;
    text-align: center;
    font-size: 1rem;
}

.login-area {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    align-self:center;
    max-width: 380px;
}

.login-area h2 {
    margin-bottom: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #1a1a3e;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #0052ff;
    box-shadow: 0 0 6px rgba(0, 82, 255, 0.3);
}

.input-group i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #0052ff;
}

.register-link {
    color: #0052ff;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 16px;
}

.register-link:hover {
    color: #00c4b4;
}

/* General Section Styles */
section {
    padding: 80px 0;
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, #f7f9fc 0%, #e6efff 100%);
    position: relative;
}

.faq-grid {
    margin-top: 32px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-header:hover {
    background: #f1f5f9;
}

.faq-header h3 {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    margin: 0;
}

.faq-icon {
    color: #0052ff;
    margin-right: 12px;
    font-size: 1.4rem;
}

.faq-toggle {
    font-size: 1rem;
    color: #4a4a6a;
}

.faq-content {
    height: 0;
    opacity: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.faq-item.active .faq-content {
    padding: 20px;
}

.faq-item p {
    font-size: 1rem;
}

.faq-item a {
    color: #0052ff;
    text-decoration: none;
}

.faq-item a:hover {
    color: #00c4b4;
}

/* Other Section Styles */
.stats-grid, .tech-grid, .ecosystem-grid, .game-grid, .mining-steps, .origins-grid, .community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.stat-card, .tech-card, .ecosystem-card, .game-card, .step, .wallet-card, .origins-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover, .tech-card:hover, .ecosystem-card:hover, .game-card:hover, .step:hover, .wallet-card:hover, .origins-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 82, 255, 0.2);
}

.game-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    color: #0052ff;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #00c4b4;
    transform: scale(1.2);
}

/* Footer */
.footer {
    background: #1a1a3e;
    color: #fff;
    padding: 48px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #b0b0c0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00c4b4;
}

.resources-columns {
    display: flex;
    gap: 24px;
}

.resources-column {
    flex: 1;
}

.footer p {
    text-align: center;
    margin-top: 24px;
    color: #b0b0c0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .login-area {
        margin-top: 32px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active ul {
        display: flex;
    }

    .nav-links li {
        margin: 12px 0;
    }

    .hamburger {
        display: flex;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .price-ticker {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
    }
}

/* Legacy Section */
.legacy {
    background: #1a1a1a;
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.legacy .container {
    max-width: 1200px;
    margin: 0 auto;
}

.legacy h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00ff88;
    text-transform: uppercase;
}

.legacy p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.legacy-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legacy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.2);
}

.legacy-card img.legacy-img {
    max-width: 100px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

.legacy-card i {
    font-size: 2.5rem;
    color: #00ff88;
    margin-bottom: 15px;
}

.legacy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.legacy-card p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 15px;
}

.legacy-card .btn-secondary {
    background: #0052ff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.legacy-card .btn-secondary:hover {
    background: #003bb5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .legacy h2 {
        font-size: 2rem;
    }
    .legacy-grid {
        grid-template-columns: 1fr;
    }
    .legacy-card {
        padding: 15px;
    }
}

/* Existing Legacy Card Styles (unchanged) */
.legacy-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legacy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.2);
}

/* New Image Styling */
.legacy-image {
    margin: 15px 0;
    text-align: center;
}

.legacy-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legacy-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .legacy-image img {
        max-width: 90%;
    }
}