@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Space+Grotesk:wght@300;400;500;600&display=swap');

:root {
    --bg-primary: #060b17;
    --bg-secondary: #0f172a;
    --bg-card: #111827;
    --neon-cyan: #00f0ff;
    --neon-purple: #a855f7;
    --neon-green: #22c55e;
    --neon-red: #f43f5e;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --container-max: 1200px;
    --spacing-desktop: 110px;
    --spacing-tablet: 80px;
    --spacing-mobile: 50px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Spacing Helpers */
.section-padding {
    padding: var(--spacing-mobile) 0;
}
@media (min-width: 768px) {
    .section-padding { padding: var(--spacing-tablet) 0; }
}
@media (min-width: 1024px) {
    .section-padding { padding: var(--spacing-desktop) 0; }
}

/* Header */
.cyber-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 11, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 240, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--neon-purple);
    font-size: 28px;
    text-shadow: 0 0 15px var(--neon-purple);
}

.nav-menu {
    display: none;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        gap: 30px;
    }
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 24px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

/* Buttons */
.btn-cyber {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 26px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.25s ease;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-cyber:hover::before {
    opacity: 1;
}

.btn-cyber:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), 0 0 40px rgba(168, 85, 247, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    background-image: url('images/photo-1550751827-4bd374c3f58b-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(6,11,23,0.7) 0%, rgba(6,11,23,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

@media (min-width: 768px) {
    .hero-title { font-size: 64px; }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 22px; }
}

/* Game Section */
.game-section {
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .section-title { font-size: 42px; }
}

.game-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2), inset 0 0 20px rgba(168, 85, 247, 0.1);
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, var(--neon-cyan), transparent 30%);
    animation: rotate 4s linear infinite;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

@keyframes rotate {
    100% { transform: rotate(1turn); }
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.game-frame-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1024px) {
    .game-container { width: 90%; }
}

@media (max-width: 768px) {
    .game-container { width: 100%; border-radius: 8px; padding: 5px; border-width: 1px;}
    .game-frame-wrapper { border-radius: 4px; }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--neon-purple);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.feature-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* SEO Content Section */
.seo-content {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2, .content-block h3 {
    color: var(--neon-purple);
    margin-bottom: 20px;
}

.content-block p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 17px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    position: relative;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    border: 2px solid var(--bg-primary);
}

.reviewer-info h4 {
    font-size: 18px;
    margin: 0;
    color: var(--text-primary);
}

.stars {
    color: var(--neon-green);
    font-size: 14px;
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

.review-text {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 15px;
}

/* Responsible Notice Inline */
.resp-notice-box {
    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-left: 4px solid var(--neon-red);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.resp-notice-box h3 {
    color: var(--neon-red);
    margin-bottom: 15px;
}

.resp-notice-box p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Footer */
.cyber-footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    padding: 60px 0 20px;
    position: relative;
}

.cyber-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    box-shadow: 0 0 10px var(--neon-purple);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 50%; height: 2px;
    background: var(--neon-cyan);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 15px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Page Header (Internal Pages) */
.page-header {
    margin-top: 80px;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(15,23,42,0.8), var(--bg-primary));
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.page-title {
    font-size: 40px;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Forms */
.cyber-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(6, 11, 23, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Legal Pages Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--neon-purple);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Responsive Mobile Menu */
@media (max-width: 767px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        border-bottom: 1px solid var(--neon-cyan);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        display: flex;
    }
}