:root {
    --primary-color: #3d5fb8;
    --primary-light: #5d7fd8;
    --primary-dark: #2a4387;
    --secondary-color: #ffca28;
    /* Added for game accents */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);

    --font-heading: 'Luckiest Guy', cursive;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: var(--font-body);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: rgba(61, 95, 184, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    z-index: 1001;
    /* Ensure logo is above mobile menu */
}

/* Fix for header button misalignment */
.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(61, 95, 184, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 95, 184, 0.4);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-circle {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(61, 95, 184, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background-color: var(--text-main);
    color: white;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.store-btn:hover {
    background-color: black;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.store-icon {
    width: 24px;
    height: 24px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    border: 12px solid #1a1a1a;
    box-shadow: 0 25px 50px -12px rgba(61, 95, 184, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

.phone-showcase {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 0;
    perspective: 1000px;
    align-items: center;
}

/* Mobile responsive for showcase */
@media (max-width: 900px) {
    .phone-showcase {
        flex-direction: column;
        gap: 2rem;
        transform: scale(0.8);
    }
}

.phone {
    width: 260px;
    height: 520px;
    background: #111;
    border-radius: 40px;
    border: 12px solid #1a1a1a;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateY(15deg) scale(0.9);
    transition: var(--transition);
    opacity: 0.8;
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 28px;
    /* Matches inner radius of phone (40px outer - 12px border) */
}

.center-phone {
    transform: rotateY(0) scale(1.05);
    opacity: 1;
    z-index: 10;
    border-color: #000;
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6);
}

.phone:hover {
    transform: rotateY(0) scale(1);
    opacity: 1;
    z-index: 11;
    border-color: #000;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 20;
}

.placeholder-bg {
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Game Modes Grid */
.gamemodes-section {
    padding: 6rem 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mode-card {
    padding: 2rem;
    border-radius: 20px;
    background: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mode-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-color: rgba(61, 95, 184, 0.2);
}

.mode-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.mode-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.mode-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Features List */
.features-section {
    padding: 6rem 0;
    background-color: var(--bg-body);
}

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

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-check {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 0.8rem;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Why This Game */
.why-section {
    padding: 6rem 0;
    background-color: #fff;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    background: var(--bg-body);
    border-radius: 16px;
}

.benefit-card strong {
    display: block;
    margin-top: 1rem;
    color: var(--text-main);
}

/* Blog Styles - RESTORED & FIXED */
.blog-header {
    padding-top: 140px;
    padding-bottom: 3rem;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-main);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Article Page Styling */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 1.5rem 6rem;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.6rem 1.25rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb:hover {
    background: rgba(0, 0, 0, 0.05);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

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

/* Add separator after links, but not if it's the last child */
.breadcrumb a::after {
    content: '';
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.8rem;
    margin-right: 0.4rem;
    opacity: 0.4;
    position: relative;
    top: -1px;
}

.breadcrumb span {
    color: var(--primary-color);
    font-weight: 600;
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    /* Prevent it from getting too long on mobile */
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.article-meta-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.cta-box {
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

/* Footer */
.main-footer {
    background-color: #fff;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand p {
    max-width: 300px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}



.social-icons svg {
    width: 20px;
    height: 20px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
}

/* Animations & Mobile */
@media (max-width: 900px) {
    .navbar {
        display: none;
        /* Hide desktop menu */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .navbar.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        margin-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand p {
        margin: 1rem auto;
    }

    .social-icons {
        justify-content: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .form-page {
        padding-top: 120px;
    }

    .form-container {
        padding: 2rem;
    }
}