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

/* CSS Variables for Theme */
:root {
    --primary: #3B0A59;
    --accent: #F72585;
    --secondary: #4361EE;
    --text: #FAFAFA;
    --dark-overlay: rgba(59, 10, 89, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(45deg, var(--accent) 0%, var(--secondary) 100%);
    --shadow-glow: 0 0 20px rgba(247, 37, 133, 0.3);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(67, 97, 238, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 37, 133, 0.3) 0%, transparent 50%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/neon-dusk-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0.9;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display SC', serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 900; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.8rem; font-weight: 700; }
h4 { font-size: 1.4rem; font-weight: 600; }

p { 
    font-size: 1.1rem; 
    margin-bottom: 1rem; 
    line-height: 1.5;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Playfair Display SC', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    text-shadow: var(--shadow-glow);
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;

  /* Blend gradient over the image */
  background-image:
    linear-gradient(
      to bottom right,
      rgba(0, 0, 0, 0.6),  /* semi‑dark overlay top-left */
      rgba(0, 0, 0, 0.2)   /* lighter overlay bottom-right */
    ),
    url('/images/mainbg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    animation: float 6s ease-in-out infinite;
}

.hero-title {
    font-size: 4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(247, 37, 133, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

.btn-secondary:hover {
    background: var(--text);
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--dark-overlay) 80%);
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.3rem;
    opacity: 0.8;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Games Showcase */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 350px;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.game-thumbnail {
aspect-ratio: 1/1;
width: 100%;
  background: var(--gradient-main);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Keeps the image clipped to the container */
}

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills and crops as needed */
  display: block;     /* Removes default inline whitespace */
}


.game-card[data-game="1"] .game-thumbnail { background: linear-gradient(45deg, #ff6b6b, #4ecdc4); }
.game-card[data-game="2"] .game-thumbnail { background: linear-gradient(45deg, #a8edea, #fed6e3); }
.game-card[data-game="3"] .game-thumbnail { background: linear-gradient(45deg, #74b9ff, #0984e3); }
.game-card[data-game="4"] .game-thumbnail { background: linear-gradient(45deg, #fd79a8, #fdcb6e); }
.game-card[data-game="5"] .game-thumbnail { background: linear-gradient(45deg, #e17055, #f39c12); }
.game-card[data-game="6"] .game-thumbnail { background: linear-gradient(45deg, #6c5ce7, #a29bfe); }

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-overlay h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.game-overlay p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.play-btn {
    background: var(--accent);
    color: var(--text);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* Disclaimer */
.disclaimer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.disclaimer-panel {
    background: rgba(247, 37, 133, 0.1);
    border: 1px solid var(--accent);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.disclaimer-panel h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.showcase-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
}

.player-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.showcase-item h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--text);
    box-shadow: var(--shadow-glow);
}

.step h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--dark-overlay);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 2rem;
}

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

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    opacity: 0.7;
}

/* Game Page Styles */
.game-container {
    min-height: 100vh;
    padding-top: 100px;
}

.game-header {
    text-align: center;
    padding: 3rem 0;
}

.game-player {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.game-frame {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 15px;
    background: #000;
}

.game-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.game-description {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
}

.game-controls {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
}

.control-btn {
    display: block;
    width: 100%;
    background: var(--gradient-accent);
    color: var(--text);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(247, 37, 133, 0.3);
}

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

.submit-btn {
    background: var(--gradient-accent);
    color: var(--text);
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

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

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
}

.legal-content h2 {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.legal-content h3 {
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-panel {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    section {
        padding: 3rem 0;
    }
    
    .game-frame {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-card {
        height: 250px;
    }
    
    .contact-form,
    .legal-content {
        padding: 2rem;
        margin: 0 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header,
.game-card,
.feature,
.showcase-item,
.step {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}