/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary: #ff6b35;
    --secondary: #004e89;
    --accent: #ffd700;
    --dark: #1a1a2e;
    --light: #f5f5f5;
    --blue-accent: #00a8e8;
    --orange-light: #ff8c61;
    --navy: #16213e;
    --white: #ffffff;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --radius: 10px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

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

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--dark);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--light);
    color: var(--primary);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary), var(--navy));
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-width: 800px;
    height: 450px;
    margin: 30px auto 0;
    border-radius: var(--radius);
    border: 4px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image .placeholder-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: var(--radius);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--orange-light));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 60px 0;
    background: var(--white);
}

.disclaimer-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(to bottom, #fff8e1, #ffffff);
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.disclaimer-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.disclaimer-box h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--navy);
}

.disclaimer-box p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Game Section */
.game-section {
    padding: 60px 0;
    background: var(--light);
}

.section-heading {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--navy);
}

.game-wrapper {
    max-width: 900px;
    margin: 0 auto 40px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.game-wrapper:last-child {
    margin-bottom: 0;
}

.game-wrapper h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.game-frame {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius);
    background: var(--light);
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: var(--white);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-container h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.about-container p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    max-width: 600px;
    height: 350px;
    margin: 40px auto 0;
    border-radius: var(--radius);
    border: 3px solid var(--primary);
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image .placeholder-icon {
    font-size: 70px;
    color: #ccc;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: var(--light);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--navy);
}

.feature-box p {
    color: var(--gray);
    line-height: 1.7;
}

/* Reviews Section */
.reviews-section {
    padding: 60px 0;
    background: var(--white);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-box {
    background: linear-gradient(to bottom right, var(--light), var(--white));
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.stars {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 15px;
}

.review-text {
    color: var(--gray);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.7;
}

.reviewer-name {
    font-weight: 600;
    color: var(--navy);
}

/* Contact Page */
.contact-page {
    margin-top: 70px;
    padding: 80px 0;
    background: var(--light);
}

.contact-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-wrapper h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
}

.form-field {
    margin-bottom: 25px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--navy), var(--dark));
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

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

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

.footer-links-list a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup.active {
    display: flex;
}

.popup-box {
    background: var(--white);
    padding: 45px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: popupSlide 0.4s ease;
}

@keyframes popupSlide {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-icon {
    font-size: 55px;
    margin-bottom: 20px;
}

.popup-box h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.popup-box p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Scroll to Top */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Content Pages */
.content-page {
    margin-top: 70px;
    padding: 80px 0;
    background: var(--light);
}

.content-box {
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.content-box h1 {
    font-size: 38px;
    margin-bottom: 30px;
    text-align: center;
}

.content-box h2 {
    font-size: 26px;
    margin: 40px 0 20px;
    color: var(--navy);
}

.content-box p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-box ul {
    margin-bottom: 20px;
    margin-left: 30px;
    color: var(--gray);
}

.content-box ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Responsive Design */
/* Custom Styles Moved from index.html */

@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}
.hero-content h1 {
    animation: floatUpDown 2.8s ease-in-out infinite;
    will-change: transform;
}

/* Floating header styles */
.header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color 240ms ease, box-shadow 240ms ease, padding 240ms ease;
    box-shadow: none;
}
.header .nav-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    max-width: 1200px;
    margin: 0 auto;
}
.header.scrolled{
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.nav-menu, .mobile-menu-toggle{ z-index: 1100; }
main, section.hero{ padding-top: 88px; }
@media (max-width:640px){
    main, section.hero{ padding-top:110px; }
    .header .nav-container{ padding:10px 14px; }
}

/* Hero Flex Layout */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
}
.hero-content {
    flex: 1 1 0;
    text-align: left;
    min-width: 220px;
}
.hero-image {
    flex: 0 0 340px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    max-width: 340px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.68) grayscale(0.08);
    border-radius: 18px;
    display: block;
}
.hero-image .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 54px;
    color: rgba(255,255,255,0.18);
    pointer-events: none;
}
@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column;
        gap: 18px;
    }
    .hero-image {
        max-width: 100%;
        min-height: 180px;
    }
    .hero-content {
        text-align: left;
    }
}
@media (max-width: 640px) {
    .hero-image {
        min-height: 120px;
        border-radius: 12px;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* About Section Custom BG */
.about-section {
    position: relative;
    background: url('aboutbg.webp') center center/cover no-repeat;
    min-height: 320px;
    padding: 56px 0;
}
.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24,32,48,0.68);
    z-index: 0;
}
.about-section .container {
    position: relative;
    z-index: 1;
}
.about-container {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.about-container h2 {
    color: #fff;
}
.about-container p {
    color: #f3f6fa;
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .section-heading {
        font-size: 30px;
    }

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

    .contact-wrapper {
        padding: 35px 25px;
    }

    .content-box {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .popup-box {
        padding: 30px 20px;
    }

    .btn {
        padding: 12px 25px;
    }
}
