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

/* CSS Variables */
:root {
  /* Colors - Sweet Candy Theme */
  --primary: #E91E63;
  --secondary: #FF5722;
  --accent: #FFC107;
  --success: #4CAF50;
  --info: #00BCD4;
  --warning: #FF9800;
  --danger: #F44336;
  
  /* Candy Gradients */
  --gradient-main: linear-gradient(135deg, #E91E63 0%, #FF5722 50%, #FFC107 100%);
  --gradient-soft: linear-gradient(135deg, #FCE4EC 0%, #FFF3E0 100%);
  --gradient-candy: linear-gradient(45deg, #FFB3E6 0%, #FFCCBC 50%, #FFF9C4 100%);
  --gradient-hero: linear-gradient(135deg, #F8BBD9 0%, #FFAB91 100%);
  
  /* Typography */
  --font-heading: 'Comfortaa', cursive;
  --font-body: 'Nunito', sans-serif;
  
  /* Colors */
  --white: #FFFFFF;
  --light: #FDF2F8;
  --dark: #2D1B69;
  --medium-gray: #6B7280;
  --border-light: #F3E8FF;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 2rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 50px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(233, 30, 99, 0.08);
  --shadow-md: 0 8px 25px rgba(233, 30, 99, 0.15);
  --shadow-lg: 0 15px 40px rgba(233, 30, 99, 0.2);
  --shadow-candy: 0 10px 30px rgba(255, 193, 7, 0.3);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--medium-gray);
}

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

a:hover {
  color: var(--secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-main);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

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

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

.btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

/* Utility Classes */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.candy-text {
  color: var(--primary);
  font-weight: 700;
}

/* Age Verification Popup */
.age-verification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 27, 105, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: var(--transition);
}

.age-verification.hidden {
  opacity: 0;
  visibility: hidden;
}

.age-verification-content {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 500px;
  margin: 2rem;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.age-verification-content::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--gradient-main);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.age-verification h2 {
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.age-verification p {
  color: var(--medium-gray);
  margin-bottom: 1rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Navigation */
.navbar {
  background: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--primary);
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dark);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white);
  background: var(--gradient-main);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-hero);
  padding: 8rem 0 6rem;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="8" fill="%23fff" opacity="0.1"/><circle cx="80" cy="30" r="6" fill="%23fff" opacity="0.15"/><circle cx="30" cy="70" r="10" fill="%23fff" opacity="0.08"/><circle cx="70" cy="80" r="7" fill="%23fff" opacity="0.12"/></svg>');
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: var(--gradient-candy);
  border-radius: 50%;
  opacity: 0.2;
  transform: rotate(-15deg);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 4px rgba(45, 27, 105, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(45, 27, 105, 0.2);
}

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

/* Games Section */
.games-section {
  padding: var(--section-padding);
  background: var(--white);
}

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

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border: 3px solid transparent;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-xl);
  z-index: -1;
}

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

.game-card:hover::before {
  opacity: 0.05;
}

.game-frame {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--light);
}

.game-info {
  padding: 2rem;
  text-align: center;
}

.game-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

.game-description {
  color: var(--medium-gray);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.game-tags {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.game-tag {
  background: var(--gradient-main);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* About Section */
.about-section {
  padding: var(--section-padding);
  background: var(--gradient-soft);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-image {
  text-align: center;
}

.about-placeholder {
  width: 100%;
  max-width: 400px;
  height: 300px;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.about-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="30,10 70,30 60,70 40,60" fill="%23fff" opacity="0.1"/><polygon points="10,40 30,20 50,50 20,80" fill="%23fff" opacity="0.08"/></svg>');
}

/* Features Section */
.features-section {
  padding: var(--section-padding);
  background: var(--white);
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--light);
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-xl);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-item:hover::before {
  opacity: 0.03;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--white);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
  position: relative;
  z-index: 2;
}

.feature-description {
  color: var(--medium-gray);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
}

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

.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.footer-links ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

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

.footer-disclaimer {
  background: rgba(233, 30, 99, 0.1);
  border: 1px solid rgba(233, 30, 99, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Contact Form */
.contact-section {
  padding: var(--section-padding);
  background: var(--gradient-soft);
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-main);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.1;
}

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

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

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

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

/* Animations */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(45, 27, 105, 0.3);
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(45, 27, 105, 0.2);
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .game-frame {
    height: 400px;
  }
  
  .age-verification-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .age-buttons {
    flex-direction: column;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(45, 27, 105, 0.3);
  }
  
  .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(45, 27, 105, 0.2);
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .game-frame {
    height: 350px;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .feature-item {
    padding: 2rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}