/* ============================================
   CUBICLENS - Main Stylesheet
   Dark Theme | Modern | Responsive
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --bg-card: #16162a;
  
  --text-primary: #ffffff;
  --text-secondary: #b8b8d4;
  --text-muted: #6b6b8d;
  
  --accent-primary: #a855f7;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --accent-glow: 0 0 20px rgba(168, 85, 247, 0.5);
  
  --border-color: #2a2a4a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --container-max: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

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

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  color: var(--accent-primary);
  font-size: 1.8rem;
  animation: pulse 2s ease-in-out infinite;
}

.logo-text .accent {
  color: var(--accent-primary);
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
  color: var(--text-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-normal);
}

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

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

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

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

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

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(123, 47, 247, 0.15) 0%, transparent 60%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* --- 3D Rotating Cubic Lens --- */
.hero-lens {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.cube-container {
  width: 300px;
  height: 300px;
  perspective: 1000px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 15s linear infinite;
}

.cube-face {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid var(--accent-primary);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(123, 47, 247, 0.1) 100%);
  box-shadow: inset 0 0 50px rgba(0, 212, 255, 0.2), 0 0 30px rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(5px);
}

.cube-face::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.cube-face::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.6) 0%, transparent 70%);
  border-radius: 50%;
}

.cube-face-front {
  transform: translateZ(150px);
}

.cube-face-back {
  transform: rotateY(180deg) translateZ(150px);
}

.cube-face-right {
  transform: rotateY(90deg) translateZ(150px);
}

.cube-face-left {
  transform: rotateY(-90deg) translateZ(150px);
}

.cube-face-top {
  transform: rotateX(90deg) translateZ(150px);
}

.cube-face-bottom {
  transform: rotateX(-90deg) translateZ(150px);
}

.lens-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(151px);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
  animation: lensPulse 3s ease-in-out infinite;
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes lensPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) translateZ(151px) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) translateZ(151px) scale(1.1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Hero Content */
.hero-content {
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.glitch {
  position: relative;
  color: var(--text-primary);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: var(--accent-primary);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  animation: glitch-2 2s infinite linear alternate-reverse;
  color: var(--accent-secondary);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 15px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 40%; left: 50%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 30%; animation-delay: 3s; }
.particle:nth-child(5) { top: 30%; left: 70%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 1; }
}

/* --- Features Section --- */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-gradient);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: var(--accent-glow);
}

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

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--accent-primary);
}

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

/* --- CTA Section --- */
.cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 15px;
  position: relative;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  position: relative;
}

/* --- Page Header --- */
.page-header {
  padding: 150px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--accent-gradient);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- About Page --- */
.about-content {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-primary);
  margin-bottom: 20px;
  margin-top: 40px;
}

.about-text h2:first-child {
  margin-top: 0;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.mission-list {
  margin-top: 20px;
}

.mission-list li {
  padding: 10px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.mission-list li:last-child {
  border-bottom: none;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-content: start;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Team Section */
.team-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

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

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.team-avatar {
  font-size: 4rem;
  margin-bottom: 15px;
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.team-role {
  color: var(--accent-primary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.team-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Games Page --- */
.games-section {
  padding: 80px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.game-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.game-image {
  position: relative;
  height: 200px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card.featured .game-image {
  height: 100%;
}

.game-placeholder {
  font-size: 5rem;
}

.game-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.game-info {
  padding: 25px;
}

.game-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.game-genre {
  color: var(--accent-primary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.game-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.game-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.game-platform {
  background: var(--bg-tertiary);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Contact Page --- */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-social h4 {
  font-family: var(--font-heading);
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
}

.contact-form-wrapper h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.alert {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(0, 200, 100, 0.2);
  border: 1px solid rgba(0, 200, 100, 0.4);
  color: #00c864;
}

.alert-error {
  background: rgba(255, 50, 50, 0.2);
  border: 1px solid rgba(255, 50, 50, 0.4);
  color: #ff3232;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

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

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

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
}

.faq-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

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

.footer-brand .logo {
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 15px;
}

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

.footer-links ul li a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Admin Page --- */
.admin-section {
  padding: 80px 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.admin-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
}

.admin-form-wrapper h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.admin-games-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
}

.admin-games-list h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.admin-games {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.admin-game-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px;
}

.admin-game-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-game-emoji {
  font-size: 2rem;
}

.admin-game-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 3px;
}

.admin-game-info p {
  color: var(--accent-primary);
  font-size: 0.85rem;
}

.delete-form {
  margin: 0;
}

.btn-danger {
  background: rgba(255, 50, 50, 0.2);
  color: #ff3232;
  border: 1px solid rgba(255, 50, 50, 0.4);
}

.btn-danger:hover {
  background: #ff3232;
  color: var(--bg-primary);
}

.no-games {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.no-games-admin {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-lens {
    order: -1;
  }
  
  .cube-container {
    width: 250px;
    height: 250px;
  }
  
  .cube-face {
    width: 250px;
    height: 250px;
  }
  
  .cube-face-front { transform: translateZ(125px); }
  .cube-face-back { transform: rotateY(180deg) translateZ(125px); }
  .cube-face-right { transform: rotateY(90deg) translateZ(125px); }
  .cube-face-left { transform: rotateY(-90deg) translateZ(125px); }
  .cube-face-top { transform: rotateX(90deg) translateZ(125px); }
  .cube-face-bottom { transform: rotateX(-90deg) translateZ(125px); }
  
  .hero-description {
    margin: 0 auto 30px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .game-card.featured {
    grid-column: span 2;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .cube-container {
    width: 200px;
    height: 200px;
  }
  
  .cube-face {
    width: 200px;
    height: 200px;
  }
  
  .cube-face-front { transform: translateZ(100px); }
  .cube-face-back { transform: rotateY(180deg) translateZ(100px); }
  .cube-face-right { transform: rotateY(90deg) translateZ(100px); }
  .cube-face-left { transform: rotateY(-90deg) translateZ(100px); }
  .cube-face-top { transform: rotateX(90deg) translateZ(100px); }
  .cube-face-bottom { transform: rotateX(-90deg) translateZ(100px); }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .game-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .cube-container {
    width: 150px;
    height: 150px;
  }
  
  .cube-face {
    width: 150px;
    height: 150px;
  }
  
  .cube-face-front { transform: translateZ(75px); }
  .cube-face-back { transform: rotateY(180deg) translateZ(75px); }
  .cube-face-right { transform: rotateY(90deg) translateZ(75px); }
  .cube-face-left { transform: rotateY(-90deg) translateZ(75px); }
  .cube-face-top { transform: rotateX(90deg) translateZ(75px); }
  .cube-face-bottom { transform: rotateX(-90deg) translateZ(75px); }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 25px;
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Login Page --- */
.login-section {
  padding: 80px 0;
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
}

.login-wrapper {
  max-width: 450px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
}

.login-wrapper h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
}

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

/* --- Admin Section --- */
.admin-section {
  padding: 80px 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.admin-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
}

.admin-form-wrapper h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.admin-games-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
}

.admin-games-list h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.admin-games {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-game-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 15px;
}

.admin-game-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-game-emoji {
  font-size: 2rem;
}

.admin-game-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 3px;
}

.admin-game-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.delete-form {
  flex-shrink: 0;
}

.btn-danger {
  background: rgba(255, 50, 50, 0.2);
  color: #ff3232;
  border: 1px solid rgba(255, 50, 50, 0.4);
}

.btn-danger:hover {
  background: #ff3232;
  color: var(--bg-primary);
}

.no-games-admin {
  color: var(--text-muted);
  text-align: center;
  padding: 30px;
}
