/* ===========================
   Reddy Anna Book - Style Sheet
   =========================== */

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --accent-yellow: #FFD700;
    --accent-red: #D00000;
    --accent-red-hover: #b30000;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --border-color: #262626;
    --whatsapp-green: #25d366;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--accent-yellow);
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 4px;
}

.logo .subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.logo .subtitle::before, .logo .subtitle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background-color: var(--accent-yellow);
}
.logo .subtitle::before { left: -50px; }
.logo .subtitle::after { right: -50px; }

.header-icon {
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
}

.hero-banner {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.08);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.hero h2 {
    color: var(--accent-yellow);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-1px);
}

/* Stats Section */
.stats-section {
    padding: 20px 0 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a, #111);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Styling */
section {
    padding: 40px 0;
}

.section-heading {
    color: var(--accent-yellow);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.section-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
    max-width: 900px;
}

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

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px 20px;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

.feature-card span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Image + Text Split Sections */
.image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.image-text-img img {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.image-text-content .section-heading {
    font-size: 28px;
}

.reverse .image-text-grid {
    direction: rtl;
}

.reverse .image-text-grid > * {
    direction: ltr;
}

.check-list {
    list-style: none;
    margin: 16px 0 24px;
}

.check-list li {
    color: var(--text-secondary);
    font-size: 15px;
    padding: 6px 0;
}

/* Games Gallery */
.games-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.03);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 24px 16px 16px;
}

.game-card-overlay span {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: var(--accent-yellow);
    color: #000;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Trust Badges */
.trusted-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    margin: 20px 0;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.badge {
    background: linear-gradient(135deg, #1a1a1a, #222);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-yellow);
}

/* FAQ Accordion */
.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-card-hover);
}

.faq-question .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Bottom CTA */
.cta-box {
    border: 1px solid var(--accent-yellow);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 60px 0 40px;
    background: linear-gradient(135deg, rgba(255,215,0,0.03), transparent);
}

.cta-box h3 {
    color: var(--accent-yellow);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 40px;
}

footer h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-copy {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .logo .subtitle::before, .logo .subtitle::after { width: 20px; }
    .logo .subtitle::before { left: -25px; }
    .logo .subtitle::after { right: -25px; }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-text-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .reverse .image-text-grid {
        direction: ltr;
    }

    .games-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cta-box {
        padding: 24px;
    }

    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-number {
        font-size: 22px;
    }

    .games-gallery {
        grid-template-columns: 1fr;
    }
}

/* Scroll Fade-In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
