/* ===== Base ===== */

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0b0f;
  color: #eaeaea;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding-top: 76px;
}

/* ===== Age Verification Modal ===== */

.age-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: ageFadeIn 0.5s ease forwards;
}

.age-modal-overlay.hidden {
  display: none;
}

.age-modal-card {
  max-width: 480px;
  width: 92%;
  margin: 1rem;
  background: linear-gradient(145deg, #15151c 0%, #1c1c26 100%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 0 60px rgba(220, 53, 69, 0.15), 0 0 120px rgba(220, 53, 69, 0.08), 0 0 0 1px rgba(220, 53, 69, 0.12);
  animation: ageScaleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.age-modal-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), transparent 40%, rgba(220, 53, 69, 0.1));
  z-index: -1;
  animation: ageGlowPulse 3s ease-in-out infinite;
}

.age-modal-inner {
  position: relative;
  z-index: 1;
}

.age-modal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.age-modal-logo-icon {
  font-size: 2rem;
  color: #dc3545;
  animation: ageLogoPulse 2s ease-in-out infinite;
}

.age-modal-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #eaeaea;
}

.age-modal-logo-text .text-danger {
  color: #dc3545;
  text-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
}

.age-modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.age-modal-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.age-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.age-btn-yes {
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

.age-btn-yes:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px rgba(220, 53, 69, 0.5);
}

.age-btn-no {
  transition: all 0.3s ease;
}

.age-btn-no:hover {
  transform: scale(1.03);
}

.age-modal-disclaimer {
  font-size: 0.8rem;
}

.age-modal-disclaimer a {
  text-decoration: underline;
  font-weight: 600;
}

@keyframes ageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ageScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes ageLogoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(220, 53, 69, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(220, 53, 69, 0.8));
  }
}

/* ===== Navbar ===== */

.navbar {
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #dc3545;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link:focus::after {
  width: 70%;
}

/* ===== Hero ===== */

/* Hero base background fallback (hero-anim.css handles the full styling) */

.hero-title {
  background: linear-gradient(135deg, #eaeaea 0%, #dc3545 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Section Padding ===== */

.section-padding {
  padding: 5rem 0;
}

/* ===== Candy AI Logo Wrapper ===== */

.candy-img-wrapper {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #131313;
  position: relative;
  overflow: hidden;
}

.candy-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(231, 82, 117, 0.2) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(231, 82, 117, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.candy-logo-svg {
  height: 60px;
  width: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(231, 82, 117, 0.3));
  transition: filter 0.4s ease;
}

.game-card:hover .candy-logo-svg {
  filter: drop-shadow(0 0 35px rgba(231, 82, 117, 0.6));
}

/* ===== 5-Column Feature Grid ===== */

.col-lg-2-4 {
  position: relative;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* ===== CelebMaker AI Hero ===== */

.celebmaker-hero {
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 80, 80, 0.1) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(200, 50, 50, 0.08) 0%, transparent 50%), linear-gradient(180deg, #120808 0%, #0b0b0f 100%);
}

.celebmaker-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 80, 80, 0.12), 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 80, 80, 0.1);
}

.celebmaker-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Lovescape Hero ===== */

.lovescape-hero {
  background: radial-gradient(ellipse at 30% 20%, rgba(7, 240, 255, 0.1) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(207, 122, 255, 0.08) 0%, transparent 50%), linear-gradient(180deg, #0a0f12 0%, #0b0b0f 100%);
}

.lovescape-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(7, 240, 255, 0.12), 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(7, 240, 255, 0.1);
}

.lovescape-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Horny Villa Hero ===== */

.hornyvilla-hero {
  background: radial-gradient(ellipse at 20% 30%, rgba(118, 71, 163, 0.12) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(255, 100, 150, 0.1) 0%, transparent 50%), linear-gradient(180deg, #120a15 0%, #0b0b0f 100%);
}

.hornyvilla-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(118, 71, 163, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(118, 71, 163, 0.1);
}

.hornyvilla-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Lust Goddess Hero ===== */

.lustgoddess-hero {
  background: radial-gradient(ellipse at 20% 30%, rgba(118, 71, 163, 0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(200, 100, 255, 0.1) 0%, transparent 50%), linear-gradient(180deg, #0f0a15 0%, #0b0b0f 100%);
}

.lustgoddess-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(118, 71, 163, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(118, 71, 163, 0.1);
}

.lustgoddess-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Booty Heroes Hero ===== */

.booty-hero {
  background: radial-gradient(ellipse at 20% 30%, rgba(189, 51, 118, 0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(220, 53, 69, 0.1) 0%, transparent 50%), linear-gradient(180deg, #120a10 0%, #0b0b0f 100%);
}

.booty-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(189, 51, 118, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(189, 51, 118, 0.1);
}

.booty-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Everlusting Life Hero ===== */

.everlusting-hero {
  background: radial-gradient(ellipse at 20% 30%, rgba(220, 53, 69, 0.12) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(255, 100, 150, 0.08) 0%, transparent 50%), linear-gradient(180deg, #0d0a12 0%, #0b0b0f 100%);
}

.everlusting-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(220, 53, 69, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(220, 53, 69, 0.1);
}

.everlusting-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Game Page Styles ===== */

.game-page-hero {
  min-height: 60vh;
  padding: 6rem 0 3rem;
  background: radial-gradient(ellipse at 20% 30%, rgba(0, 200, 255, 0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(0, 255, 200, 0.06) 0%, transparent 50%), linear-gradient(180deg, #040b1a 0%, #0b0b0f 100%);
}

.smutstone-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 200, 255, 0.1);
}

.smutstone-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.character-card {
  background: #15151c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.15);
}

.feature-card {
  background: #15151c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 53, 69, 0.2);
}

.game-screenshot {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ===== SmutStone Image Styling ===== */

.smutstone-img-wrapper {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #040b1a 0%, #0a1a33 30%, #061525 60%, #040b1a 100%);
  position: relative;
  overflow: hidden;
}

.smutstone-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 25%, rgba(0, 200, 255, 0.12) 0%, transparent 50%), radial-gradient(ellipse at 70% 75%, rgba(0, 255, 200, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.smutstone-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.4rem 0.6rem;
  position: relative;
  z-index: 0;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.15));
}

.game-card:hover .smutstone-img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.35));
}

/* ===== Game Cards ===== */

.game-card {
  background: #15151c;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15), 0 0 0 1px rgba(220, 53, 69, 0.15);
}

.game-card .card-img-top {
  height: 200px;
  object-fit: contain;
  background: #111118;
  padding: 0.5rem;
}

.game-card .card-body {
  padding: 1rem 1rem;
}

.game-card .card-title {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.game-card .btn {
  transition: all 0.25s ease;
  font-size: 0.8rem;
}

/* ===== CelebMaker Image Styling ===== */

.celebmaker-img-wrapper {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0a0a 30%, #4a1515 100%);
  position: relative;
  overflow: hidden;
}

.celebmaker-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(255, 100, 100, 0.3));
  transition: all 0.4s ease;
}

.celebmaker-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(45, 10, 10, 0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

.game-card:hover .celebmaker-img {
  filter: drop-shadow(0 0 22px rgba(255, 100, 100, 0.6));
  transform: scale(1.05);
}

/* ===== AI Section Animated Background ===== */

.ai-section {
  position: relative;
  overflow: hidden;
}

.ai-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ai-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  background: rgba(13, 202, 240, 0.35);
  border-radius: 50%;
  animation: aiFloat var(--dr, 8s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  box-shadow: 0 0 6px rgba(13, 202, 240, 0.2), 0 0 12px rgba(13, 202, 240, 0.1);
}

.ai-particle::after {
  content: '';
  position: absolute;
  inset: -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 202, 240, 0.15) 0%, transparent 70%);
  animation: aiPulse var(--dr, 8s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

@keyframes aiFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translate(20px, -25px) scale(1.5);
    opacity: 0.2;
  }
}

@keyframes aiPulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ===== Tool Cards ===== */

.tool-card {
  background: #15151c;
  border-radius: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(13, 202, 240, 0.12), 0 0 0 1px rgba(13, 202, 240, 0.12);
}

.tool-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 202, 240, 0.08);
  border-radius: 50%;
}

.tool-card .btn {
  transition: all 0.25s ease;
}

/* ===== Category Cards ===== */

.category-card {
  background: #15151c;
  color: #eaeaea;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.category-card:hover {
  background: #1c1c26;
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.3);
  transform: scale(1.04);
}

.category-card i {
  transition: color 0.3s ease;
}

.category-card:hover i {
  color: #dc3545;
}

/* ===== Stats ===== */

.text-danger {
  --bs-text-opacity: 1;
}

/* ===== Footer ===== */

.logo-xxx-footer {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.logo-xxx-footer i.bi-joystick {
  color: #dc3545;
  margin-right: 0.3rem;
  font-size: 1.1rem;
}

footer {
  background: rgba(11, 11, 15, 0.95);
}

footer a:hover {
  color: #dc3545 !important;
  transition: color 0.2s ease;
}

/* ===== Responsive tweaks ===== */

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2.2rem;
  }
}

@media (max-width: 767.98px) {
  .display-5 {
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }
}

@media (max-width: 767.98px) {
  .game-card .card-img-top {
    height: 180px;
    padding: 0.4rem;
  }
}

@media (max-width: 767.98px) {
  .candy-img-wrapper {
    height: 130px;
  }
}

/* ===== Custom scrollbar ===== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0b0f;
}

::-webkit-scrollbar-thumb {
  background: #2a2a35;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #dc3545;
}

