/* SpellGalaxy.com - Main Stylesheet */

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6e44ff;
  --secondary-color: #ff44e3;
  --accent-color: #44ffb8;
  --dark-bg: #0a0a1a;
  --light-text: #ffffff;
  --card-bg: rgba(16, 16, 42, 0.8);
  --header-font: 'Cinzel', serif;
  --body-font: 'Quicksand', sans-serif;
}

body {
  font-family: var(--body-font);
  background-color: var(--dark-bg);
  color: var(--light-text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Stars */
.spellgalaxy-stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  overflow: hidden;
  z-index: -1;
}

.spellgalaxy-stars-background::before,
.spellgalaxy-stars-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.spellgalaxy-stars-background::before {
  background-image: radial-gradient(white, rgba(255, 255, 255, 0.2) 2px, transparent 3px);
  background-size: 100px 100px;
  background-position: 0 0;
}

.spellgalaxy-stars-background::after {
  background-image: radial-gradient(white, rgba(255, 255, 255, 0.15) 1px, transparent 2px);
  background-size: 50px 50px;
  background-position: 25px 25px;
  animation: twinkle 8s infinite alternate ease-in-out;
}

@keyframes twinkle {
  0%, 100% {
      opacity: 0.5;
  }
  50% {
      opacity: 0.8;
  }
}

/* Header Styles */
.spellgalaxy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s;
  background-color: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(10px);
}

.spellgalaxy-logo {
  display: flex;
  align-items: center;
}

.spellgalaxy-logo h1 {
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 2.2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 15px;
}

.spellgalaxy-logo-orbit {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(110, 68, 255, 0.6);
  border-radius: 50%;
  position: relative;
  animation: orbit 8s linear infinite;
}

.spellgalaxy-logo-planet {
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  position: absolute;
  top: -6px;
  left: calc(50% - 6px);
  box-shadow: 0 0 10px var(--accent-color);
}

@keyframes orbit {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

.spellgalaxy-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.spellgalaxy-nav-link {
  text-decoration: none;
  color: var(--light-text);
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.spellgalaxy-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.spellgalaxy-nav-link:hover {
  color: var(--accent-color);
}

.spellgalaxy-nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.spellgalaxy-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  position: relative;
  overflow: hidden;
}

.spellgalaxy-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(110, 68, 255, 0.2), transparent 70%);
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% {
      opacity: 0.3;
      transform: scale(1);
  }
  100% {
      opacity: 0.7;
      transform: scale(1.1);
  }
}

.spellgalaxy-hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
}

.spellgalaxy-hero-content h2 {
  font-family: var(--header-font);
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spellgalaxy-hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.spellgalaxy-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.spellgalaxy-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.6s;
}

.spellgalaxy-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(110, 68, 255, 0.6);
}

.spellgalaxy-button:hover::before {
  left: 100%;
}

/* Section Styles */
.spellgalaxy-section-title {
  font-family: var(--header-font);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.spellgalaxy-section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Games Section */
.spellgalaxy-games {
  padding: 100px 50px;
}

.spellgalaxy-games-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.spellgalaxy-game-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  width: 320px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.spellgalaxy-game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.spellgalaxy-game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(110, 68, 255, 0.3);
}

.spellgalaxy-game-image {
  height: 180px;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.spellgalaxy-sparkle {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  animation: sparkle 3s infinite alternate;
}

/* Specific background image for Astral Enchantment */
.astro-theme .spellgalaxy-sparkle {
  background-image: url("Slot Astro/icons/icon-512.png");
  background-size: cover;
}

/* Specific background image for Mage's Mystery */
.mage-theme .spellgalaxy-sparkle {
  background-image: url("Slot Mage/icons/icon-512.png");
  background-size: cover;
}

/* Specific background image for Lucky Sevens */
.lucky-theme .spellgalaxy-sparkle {
  background-image: url("777 Slot/icons/icon-512.png");
  background-size: cover;
}




@keyframes sparkle {
  0% {
      opacity: 0.3;
      transform: translateY(0);
  }
  100% {
      opacity: 0.7;
      transform: translateY(-5px);
  }
}

.astro-theme {
  background: linear-gradient(to bottom right, #1a0066, #8800aa);
  box-shadow: 0 0 15px rgba(110, 68, 255, 0.5) inset;
}

.mage-theme {
  background: linear-gradient(to bottom right, #5500aa, #002866);
  box-shadow: 0 0 15px rgba(85, 0, 170, 0.5) inset;
}

.lucky-theme {
  background: linear-gradient(to bottom right, #7700bb, #bb7700);
  box-shadow: 0 0 15px rgba(119, 0, 187, 0.5) inset;
}

.spellgalaxy-game-card h3 {
  font-family: var(--header-font);
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.spellgalaxy-game-card p {
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.spellgalaxy-play-button {
  padding: 10px 25px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.spellgalaxy-play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.5);
}

/* About Section */
.spellgalaxy-about {
  padding: 100px 50px;
  background: rgba(10, 10, 26, 0.5);
  position: relative;
}

.spellgalaxy-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.2)"/></svg>');
  opacity: 0.5;
}

.spellgalaxy-about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.spellgalaxy-about-text {
  flex: 1;
}

.spellgalaxy-about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.spellgalaxy-about-image {
  flex: 1;
  height: 400px;
  position: relative;
}

.spellgalaxy-floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.spellgalaxy-planet-1 {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e44ff, #44a0ff);
  box-shadow: 0 0 30px rgba(110, 68, 255, 0.5);
  top: 50px;
  left: 50px;
  animation: float 10s infinite alternate ease-in-out;
}

.spellgalaxy-planet-2 {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff44e3, #ff9d44);
  box-shadow: 0 0 20px rgba(255, 68, 227, 0.5);
  top: 150px;
  right: 80px;
  animation: float 14s infinite alternate-reverse ease-in-out;
}

.spellgalaxy-comet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 20px white, 0 0 40px white;
  top: 100px;
  right: 120px;
  animation: comet 7s infinite linear;
}

.spellgalaxy-comet::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(to left, white, transparent);
  left: -60px;
  top: 2px;
  border-radius: 2px;
}

@keyframes float {
  0% {
      transform: translateY(0) rotate(0deg);
  }
  100% {
      transform: translateY(30px) rotate(10deg);
  }
}

@keyframes comet {
  0% {
      transform: translate(0, 0);
      opacity: 0;
  }
  10% {
      opacity: 1;
  }
  90% {
      opacity: 1;
  }
  100% {
      transform: translate(-300px, 300px);
      opacity: 0;
  }
}

/* Contact Section */
.spellgalaxy-contact {
  padding: 100px 50px;
}

.spellgalaxy-contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.spellgalaxy-form-group {
  position: relative;
}

.spellgalaxy-contact-form input,
.spellgalaxy-contact-form textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  color: white;
  font-family: var(--body-font);
  font-size: 1rem;
  transition: background 0.3s;
}

.spellgalaxy-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.spellgalaxy-contact-form input:focus,
.spellgalaxy-contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
}

.spellgalaxy-input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: width 0.3s;
}

.spellgalaxy-input-border.textarea {
  bottom: 5px;
}

.spellgalaxy-contact-form input:focus + .spellgalaxy-input-border,
.spellgalaxy-contact-form textarea:focus + .spellgalaxy-input-border {
  width: 100%;
}

.spellgalaxy-contact-form button {
  align-self: center;
  margin-top: 15px;
}

/* Footer Styles */
.spellgalaxy-footer {
  background: rgba(10, 10, 26, 0.9);
  padding-top: 60px;
}

.spellgalaxy-footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  gap: 40px;
}

.spellgalaxy-footer-logo h2 {
  font-family: var(--header-font);
  font-size: 1.8rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spellgalaxy-footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.spellgalaxy-footer h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.spellgalaxy-footer-links ul {
  list-style: none;
}

.spellgalaxy-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  line-height: 2;
  transition: color 0.3s;
}

.spellgalaxy-footer-links a:hover {
  color: var(--accent-color);
}

.spellgalaxy-newsletter-form {
  display: flex;
  margin-top: 15px;
}

.spellgalaxy-newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 5px 0 0 5px;
}

.spellgalaxy-newsletter-form input:focus {
  outline: none;
}

.spellgalaxy-newsletter-form button {
  padding: 10px 15px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.spellgalaxy-footer-bottom {
  margin-top: 60px;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .spellgalaxy-about-content {
      flex-direction: column;
  }
  
  .spellgalaxy-about-image {
      height: 300px;
  }
  
  .spellgalaxy-hero-content h2 {
      font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .spellgalaxy-header {
      flex-direction: column;
      padding: 15px 20px;
  }
  
  .spellgalaxy-nav ul {
      gap: 15px;
      margin-top: 15px;
  }
  
  .spellgalaxy-hero-content h2 {
      font-size: 2.2rem;
  }
  
  .spellgalaxy-hero-content p {
      font-size: 1.1rem;
  }
  
  .spellgalaxy-section-title {
      font-size: 2rem;
  }
  
  .spellgalaxy-footer-content {
      flex-direction: column;
      gap: 30px;
  }
}

@media (max-width: 480px) {
  .spellgalaxy-nav ul {
      flex-wrap: wrap;
      justify-content: center;
  }
  
  .spellgalaxy-games-container {
      gap: 30px;
  }
  
  .spellgalaxy-game-card {
      width: 100%;
  }
  
  .spellgalaxy-hero-content h2 {
      font-size: 1.8rem;
  }
}


/* SpellGalaxy - Interactive Magic Effects Styles */

/* Magic Canvas styles */
.spellgalaxy-magic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Magic cursor */
.spellgalaxy-wand-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  pointer-events: none;
  background-image: radial-gradient(circle, white 10%, rgba(110, 68, 255, 0.7) 40%, transparent 70%);
  box-shadow: 0 0 15px rgba(110, 68, 255, 0.5);
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
}

/* Enhanced card hover effects */
.spellgalaxy-game-card {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spellgalaxy-game-card:hover {
  z-index: 2;
}

.spellgalaxy-game-card:hover .spellgalaxy-sparkle {
  animation: enhanced-sparkle 2s infinite alternate;
}

@keyframes enhanced-sparkle {
  0% {
      opacity: 0.3;
      background-position: 0% 0%;
      filter: blur(3px);
  }
  25% {
      opacity: 0.7;
  }
  50% {
      background-position: 100% 100%;
  }
  75% {
      opacity: 0.5;
  }
  100% {
      opacity: 0.8;
      background-position: 0% 100%;
      filter: blur(1px);
  }
}

/* Magic buttons effect */
.spellgalaxy-button {
  position: relative;
  overflow: hidden;
}

.spellgalaxy-button:after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s, opacity 0.5s;
  pointer-events: none;
}

.spellgalaxy-button:hover:after {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced magical elements animation */
.spellgalaxy-comet {
  animation: enhanced-comet 7s infinite linear;
}

@keyframes enhanced-comet {
  0% {
      transform: translate(0, 0) scale(0.8);
      opacity: 0;
  }
  10% {
      opacity: 1;
      transform: translate(-30px, 30px) scale(1);
  }
  90% {
      opacity: 1;
      transform: translate(-270px, 270px) scale(0.9);
  }
  100% {
      transform: translate(-300px, 300px) scale(0.7);
      opacity: 0;
  }
}

/* Magic input effects */
.spellgalaxy-form-group input:focus,
.spellgalaxy-form-group textarea:focus {
  box-shadow: 0 0 15px rgba(110, 68, 255, 0.3);
}

.spellgalaxy-form-group input:focus + .spellgalaxy-input-border,
.spellgalaxy-form-group textarea:focus + .spellgalaxy-input-border {
  animation: border-glow 1.5s infinite alternate;
}

@keyframes border-glow {
  0% {
      box-shadow: 0 3px 5px rgba(110, 68, 255, 0.3);
  }
  100% {
      box-shadow: 0 3px 15px rgba(110, 68, 255, 0.7);
  }
}

/* Enhanced logo animation */
.spellgalaxy-logo:hover .spellgalaxy-logo-orbit {
  animation: orbit 3s linear infinite;
}

.spellgalaxy-logo:hover .spellgalaxy-logo-planet {
  animation: pulse-planet 2s infinite alternate;
}

@keyframes pulse-planet {
  0% {
      transform: scale(1);
      box-shadow: 0 0 10px var(--accent-color);
  }
  100% {
      transform: scale(1.3);
      box-shadow: 0 0 25px var(--accent-color), 0 0 40px rgba(68, 255, 184, 0.4);
  }
}

/* Enhanced section titles */
.spellgalaxy-section-title {
  position: relative;
}

.spellgalaxy-section-title::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 68, 255, 0.2) 0%, transparent 70%);
  top: -20px;
  left: calc(50% - 90px);
  z-index: -1;
  animation: float-title-decoration 7s infinite alternate ease-in-out;
}

.spellgalaxy-section-title::after {
  width: 60px;
  height: 3px;
  box-shadow: 0 0 15px rgba(255, 68, 227, 0.7);
  animation: glow-line 3s infinite alternate;
}

@keyframes float-title-decoration {
  0% {
      transform: translate(0, 0) scale(1);
  }
  100% {
      transform: translate(20px, -10px) scale(1.2);
  }
}

@keyframes glow-line {
  0% {
      box-shadow: 0 0 5px rgba(255, 68, 227, 0.5);
  }
  100% {
      box-shadow: 0 0 20px rgba(255, 68, 227, 0.8);
  }
}

/* Custom play button effects */
.spellgalaxy-play-button {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.spellgalaxy-play-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
  opacity: 0;
}

.spellgalaxy-play-button:hover::before {
  width: 200px;
  height: 200px;
  opacity: 0.5;
}

/* SpellGalaxy About Games Section Styles */

.spellgalaxy-about-games {
  padding: 120px 50px;
  background: linear-gradient(to bottom, var(--dark-bg), rgba(13, 13, 30, 0.9), var(--dark-bg));
  position: relative;
  overflow: hidden;
}

.spellgalaxy-about-games::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      radial-gradient(circle at 20% 30%, rgba(110, 68, 255, 0.1), transparent 15%),
      radial-gradient(circle at 80% 70%, rgba(255, 68, 227, 0.1), transparent 15%);
  z-index: 0;
}

/* Game Details Container */
.spellgalaxy-game-details {
  display: flex;
  max-width: 1400px;
  margin: 0 auto 120px;
  position: relative;
}

.spellgalaxy-game-details:last-child {
  margin-bottom: 0;
}

.spellgalaxy-game-details.reverse {
  flex-direction: row-reverse;
}

/* Game Showcase with Images */
.spellgalaxy-game-showcase {
  flex: 1;
  display: flex;
  position: relative;
  padding: 30px;
}

/* Orbital Showcase Animation (Astral) */
.spellgalaxy-showcase-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  animation: slow-orbit 60s linear infinite;
}

@keyframes slow-orbit {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

/* Hexagonal Showcase Animation (Mage) */
.spellgalaxy-showcase-hex {
  position: relative;
  width: 100%;
  height: 100%;
}

.spellgalaxy-showcase-hex::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
      linear-gradient(60deg, transparent 25%, rgba(255, 68, 227, 0.1) 25%, rgba(255, 68, 227, 0.1) 75%, transparent 75%),
      linear-gradient(-60deg, transparent 25%, rgba(110, 68, 255, 0.1) 25%, rgba(110, 68, 255, 0.1) 75%, transparent 75%);
  background-size: 60px 60px;
  animation: hex-float 20s infinite alternate ease-in-out;
  border-radius: 10px;
  z-index: -1;
}

@keyframes hex-float {
  0% {
      background-position: 0 0;
  }
  100% {
      background-position: 60px 60px;
  }
}

/* Seven Showcase Animation (Lucky) */
.spellgalaxy-showcase-sevens {
  position: relative;
  width: 100%;
  height: 100%;
}

.spellgalaxy-showcase-sevens::before {
  content: "7";
  position: absolute;
  font-size: 200px;
  font-family: var(--header-font);
  font-weight: bold;
  opacity: 0.1;
  color: var(--accent-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse-seven 4s infinite alternate ease-in-out;
}

@keyframes pulse-seven {
  0% {
      opacity: 0.05;
      transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
      opacity: 0.15;
      transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Image Showcase Containers */
.spellgalaxy-showcase-images {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spellgalaxy-showcase-main {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(5deg);
  transition: transform 0.5s ease;
}

.spellgalaxy-showcase-main:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.03);
}

.spellgalaxy-showcase-secondary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  height: 120px;
}

/* Game Images */
.spellgalaxy-game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.spellgalaxy-showcase-main:hover .spellgalaxy-game-img {
  transform: scale(1.05);
}

.spellgalaxy-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.astral-overlay {
  box-shadow: inset 0 0 50px rgba(110, 68, 255, 0.3);
}

.mage-overlay {
  box-shadow: inset 0 0 50px rgba(255, 68, 227, 0.3);
}

.lucky-overlay {
  box-shadow: inset 0 0 50px rgba(68, 255, 184, 0.3);
}

.spellgalaxy-game-img-small {
 
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spellgalaxy-game-img-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Game Info Styles */
.spellgalaxy-game-info {
  flex: 1;
  padding: 30px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spellgalaxy-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.spellgalaxy-game-header h3 {
  font-family: var(--header-font);
  font-size: 2.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

/* Game Stats */
.spellgalaxy-game-stats {
  display: flex;
  gap: 20px;
}

.spellgalaxy-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spellgalaxy-stat-icon {
  font-size: 1.2rem;
}

.astral-icon {
  color: var(--primary-color);
}

.mage-icon {
  color: var(--secondary-color);
}

.lucky-icon {
  color: var(--accent-color);
}

.spellgalaxy-stat-value {
  font-weight: bold;
  font-size: 1.1rem;
}

.spellgalaxy-game-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Feature Grid */
.spellgalaxy-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.spellgalaxy-feature {
  background: rgba(16, 16, 42, 0.6);
  border-radius: 15px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.spellgalaxy-feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  opacity: 0.7;
}

.spellgalaxy-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.astral-feature:hover {
  box-shadow: 0 15px 30px rgba(110, 68, 255, 0.15);
}

.mage-feature:hover {
  box-shadow: 0 15px 30px rgba(255, 68, 227, 0.15);
}

.lucky-feature:hover {
  box-shadow: 0 15px 30px rgba(68, 255, 184, 0.15);
}

.spellgalaxy-feature-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.spellgalaxy-feature h4 {
  font-family: var(--header-font);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.spellgalaxy-feature p {
  font-size: 1rem !important;
  margin-bottom: 0 !important;
  color: rgba(255, 255, 255, 0.8);
}

/* Game Quote */
.spellgalaxy-game-quote {
  background: rgba(16, 16, 42, 0.4);
  border-left: 4px solid;
  padding: 25px;
  margin: 40px 0;
  position: relative;
  border-radius: 0 15px 15px 0;
}

.astral-quote {
  border-left-color: var(--primary-color);
}

.mage-quote {
  border-left-color: var(--secondary-color);
}

.lucky-quote {
  border-left-color: var(--accent-color);
}

.spellgalaxy-game-quote p {
  font-size: 1.1rem !important;
  font-style: italic;
  margin-bottom: 10px !important;
}

.spellgalaxy-game-quote cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Game Buttons */
.spellgalaxy-game-button {
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  z-index: 1;
}

.spellgalaxy-game-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.6s;
  z-index: -1;
}

.spellgalaxy-game-button:hover {
  transform: translateY(-5px);
}

.spellgalaxy-game-button:hover::before {
  left: 100%;
}

.astral-button {
  background: linear-gradient(45deg, #4e2db5, #6e44ff);
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.4);
}

.astral-button:hover {
  box-shadow: 0 8px 25px rgba(110, 68, 255, 0.6);
}

.mage-button {
  background: linear-gradient(45deg, #b32db5, #ff44e3);
  box-shadow: 0 5px 15px rgba(255, 68, 227, 0.4);
}

.mage-button:hover {
  box-shadow: 0 8px 25px rgba(255, 68, 227, 0.6);
}

.lucky-button {
  background: linear-gradient(45deg, #2db592, #44ffb8);
  box-shadow: 0 5px 15px rgba(68, 255, 184, 0.4);
}

.lucky-button:hover {
  box-shadow: 0 8px 25px rgba(68, 255, 184, 0.6);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .spellgalaxy-game-details,
  .spellgalaxy-game-details.reverse {
      flex-direction: column;
  }
  
  .spellgalaxy-showcase-main {
      height: 400px;
  }
  
  .spellgalaxy-game-info {
      padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .spellgalaxy-about-games {
      padding: 80px 30px;
  }
  
  .spellgalaxy-game-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
  }
  
  .spellgalaxy-feature-grid {
      grid-template-columns: 1fr;
  }
  
  .spellgalaxy-showcase-secondary {
      height: 100px;
  }
}

@media (max-width: 480px) {
  .spellgalaxy-game-header h3 {
      font-size: 2rem;
  }
  
  .spellgalaxy-showcase-main {
      height: 250px;
  }
  
  .spellgalaxy-showcase-secondary {
      height: 80px;
  }
}


/* Enhanced SpellGalaxy Footer Styles */

.spellgalaxy-footer {
  position: relative;
  background: linear-gradient(to bottom, rgba(10, 10, 26, 0.8), rgba(5, 5, 15, 0.95));
  padding-top: 80px;
  overflow: hidden;
}

/* Stars background for footer */
.spellgalaxy-footer-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.2;
  z-index: 0;
}

/* Main footer content */
.spellgalaxy-footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px 70px;
  position: relative;
  z-index: 1;
}

/* Branding Section */
.spellgalaxy-footer-branding {
  display: flex;
  flex-direction: column;
}

.spellgalaxy-footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.spellgalaxy-footer-logo h2 {
  font-family: var(--header-font);
  font-size: 2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 15px;
}

.spellgalaxy-footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-style: italic;
}

.spellgalaxy-footer-description {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Social Links */
.spellgalaxy-social-links {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.spellgalaxy-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(110, 68, 255, 0.2), rgba(255, 68, 227, 0.2));
  color: white;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-social-link:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(110, 68, 255, 0.6), rgba(255, 68, 227, 0.6));
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.3);
}

.spellgalaxy-social-link svg {
  width: 18px;
  height: 18px;
}

/* Navigation Section */
.spellgalaxy-footer-navigation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.spellgalaxy-footer-links h3 {
  font-family: var(--header-font);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.spellgalaxy-footer-links h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.spellgalaxy-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spellgalaxy-footer-links li {
  margin-bottom: 12px;
}

.spellgalaxy-footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.spellgalaxy-footer-links a::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  opacity: 0.7;
}

.spellgalaxy-footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

/* Connect Section */
.spellgalaxy-footer-connect {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.spellgalaxy-footer-newsletter h3,
.spellgalaxy-footer-contact h3 {
  font-family: var(--header-font);
  font-size: 1.3rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.spellgalaxy-footer-newsletter h3::after,
.spellgalaxy-footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.spellgalaxy-footer-newsletter p,
.spellgalaxy-footer-contact p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  line-height: 1.6;
}

.spellgalaxy-newsletter-form {
  display: flex;
  height: 45px;
}

.spellgalaxy-newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 5px 0 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.spellgalaxy-newsletter-form button {
  padding: 10px 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spellgalaxy-newsletter-form button:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  box-shadow: 0 0 15px rgba(110, 68, 255, 0.4);
}

.spellgalaxy-footer-contact a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.spellgalaxy-footer-contact a:hover {
  color: white;
  text-decoration: underline;
}

/* Legal Section */
.spellgalaxy-legal-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 50px;
  text-align: center;
  background-color: rgba(5, 5, 15, 0.7);
  position: relative;
  z-index: 1;
}

.spellgalaxy-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.spellgalaxy-legal-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.spellgalaxy-legal-link:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.2);
}

.spellgalaxy-legal-link:hover {
  color: var(--accent-color);
}

.spellgalaxy-footer-bottom {
  margin-top: 20px;
}

.spellgalaxy-footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .spellgalaxy-footer-content {
      grid-template-columns: 1fr 1fr;
      gap: 40px;
  }
  
  .spellgalaxy-footer-branding {
      grid-column: 1 / 3;
  }
}

@media (max-width: 900px) {
  .spellgalaxy-footer-navigation {
      grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .spellgalaxy-footer-content {
      grid-template-columns: 1fr;
      padding: 0 30px 50px;
  }
  
  .spellgalaxy-footer-branding {
      grid-column: auto;
  }
  
  .spellgalaxy-legal-section {
      padding: 30px 20px;
  }
  
  .spellgalaxy-legal-links {
      gap: 20px;
  }
  
  .spellgalaxy-legal-link:not(:last-child)::after {
      display: none;
  }
}

@media (max-width: 480px) {
  .spellgalaxy-footer-navigation {
      grid-template-columns: 1fr;
  }
  
  .spellgalaxy-social-links {
      justify-content: center;
  }
  
  .spellgalaxy-legal-links {
      flex-direction: column;
      gap: 15px;
  }
}




.spellgalaxy-legal-page {
  max-width: 900px;
  margin: 100px auto;
  padding: 40px;
  background: rgba(16, 16, 42, 0.8);
  border-radius: 20px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-legal-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-legal-header h1 {
  font-family: var(--header-font);
  font-size: 2.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.spellgalaxy-legal-header p {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.spellgalaxy-legal-content {
  font-size: 1rem;
  line-height: 1.7;
}

.spellgalaxy-legal-section {
  margin-bottom: 40px;
}

.spellgalaxy-legal-section h2 {
  font-family: var(--header-font);
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.spellgalaxy-legal-subsection {
  margin: 20px 0;
  padding-left: 20px;
}

.spellgalaxy-legal-subsection h3 {
  font-family: var(--header-font);
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: white;
}

.spellgalaxy-legal-list {
  list-style-type: disc;
  padding-left: 30px;
  margin: 15px 0;
}

.spellgalaxy-legal-list li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.spellgalaxy-legal-link {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

.spellgalaxy-legal-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .spellgalaxy-legal-page {
      padding: 30px 20px;
      margin: 80px auto;
  }
  
  .spellgalaxy-legal-header h1 {
      font-size: 2rem;
  }
}



/* About Page Styles for SpellGalaxy */

/* Base Styles */
.spellgalaxy-about-page {
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

/* Hero Section */
.spellgalaxy-about-hero {
  height: 60vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 80px;
  background: linear-gradient(135deg, rgba(110, 68, 255, 0.2), rgba(255, 68, 227, 0.2));
  border-radius: 0 0 50% 50% / 15%;
}

.spellgalaxy-cosmic-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: drift 60s linear infinite;
  opacity: 0.6;
}

@keyframes drift {
  from {
      background-position: 0 0;
  }
  to {
      background-position: 200px 200px;
  }
}

.spellgalaxy-about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 30%, rgba(110, 68, 255, 0.4), transparent 30%),
      radial-gradient(circle at 80% 70%, rgba(255, 68, 227, 0.4), transparent 30%);
  animation: pulse-light 8s infinite alternate;
}

@keyframes pulse-light {
  0% {
      opacity: 0.5;
      transform: scale(1);
  }
  100% {
      opacity: 0.8;
      transform: scale(1.1);
  }
}

.spellgalaxy-about-hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

.spellgalaxy-about-hero h1 {
  font-family: var(--header-font);
  font-size: 4.5rem;
  margin-bottom: 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: gradient-shift 8s ease infinite alternate;
}

@keyframes gradient-shift {
  0% {
      background-position: 0% 50%;
  }
  100% {
      background-position: 100% 50%;
  }
}

.spellgalaxy-about-hero p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 80%;
  margin: 0 auto;
}

/* Section Styles */
.spellgalaxy-about-section {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 50px;
}

.spellgalaxy-about-section-title {
  font-family: var(--header-font);
  font-size: 2.8rem;
  margin-bottom: 50px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-align: center;
}

.spellgalaxy-about-section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
      box-shadow: 0 0 5px rgba(110, 68, 255, 0.5);
  }
  to {
      box-shadow: 0 0 15px rgba(110, 68, 255, 0.8), 0 0 20px rgba(255, 68, 227, 0.5);
  }
}

/* Vision and Values */
.spellgalaxy-vision-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.spellgalaxy-vision,
.spellgalaxy-values {
  background: rgba(16, 16, 42, 0.6);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spellgalaxy-vision:hover,
.spellgalaxy-values:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(110, 68, 255, 0.2);
}

.spellgalaxy-vision::before,
.spellgalaxy-values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.spellgalaxy-vision::after {
  content: "★";
  font-size: 200px;
  position: absolute;
  bottom: -50px;
  right: -50px;
  opacity: 0.03;
  color: var(--accent-color);
}

.spellgalaxy-values::after {
  content: "✦";
  font-size: 200px;
  position: absolute;
  bottom: -50px;
  right: -50px;
  opacity: 0.03;
  color: var(--primary-color);
}

.spellgalaxy-vision h3,
.spellgalaxy-values h3 {
  font-family: var(--header-font);
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
  position: relative;
  display: inline-block;
}

.spellgalaxy-vision h3::after,
.spellgalaxy-values h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.spellgalaxy-vision p,
.spellgalaxy-values p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Core Values Grid */
.spellgalaxy-core-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.spellgalaxy-value-card {
  background: rgba(16, 16, 42, 0.4);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spellgalaxy-value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(110, 68, 255, 0.15);
  background: rgba(16, 16, 42, 0.6);
}

.spellgalaxy-value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.spellgalaxy-value-icon::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(110, 68, 255, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse-icon 3s infinite alternate;
}

@keyframes pulse-icon {
  0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.5;
  }
  100% {
      transform: translate(-50%, -50%) scale(1.2);
      opacity: 0.8;
  }
}

.spellgalaxy-value-card h4 {
  font-family: var(--header-font);
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: white;
}

.spellgalaxy-value-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

/* Journey Section */
.spellgalaxy-journey {
  position: relative;
  padding: 60px;
  background: rgba(16, 16, 42, 0.4);
  border-radius: 20px;
  margin-bottom: 80px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.spellgalaxy-journey::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 10% 20%, rgba(110, 68, 255, 0.2), transparent 30%),
      radial-gradient(circle at 90% 80%, rgba(255, 68, 227, 0.2), transparent 30%);
  z-index: -1;
}

.spellgalaxy-journey-intro {
  text-align: center;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 50px;
}

.spellgalaxy-journey-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 50px;
}

.spellgalaxy-journey-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  z-index: 0;
  border-radius: 2px;
}

.spellgalaxy-journey-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 15px;
}

.spellgalaxy-step-marker {
  position: relative;
  margin-bottom: 20px;
}

.spellgalaxy-step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 10px;
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.4);
  position: relative;
  z-index: 1;
}

.spellgalaxy-step-year {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.spellgalaxy-journey-step h4 {
  font-family: var(--header-font);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: white;
}

.spellgalaxy-journey-step p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* Innovations Section */
.spellgalaxy-innovations {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.spellgalaxy-innovation-card {
  background: rgba(16, 16, 42, 0.5);
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.spellgalaxy-innovation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.spellgalaxy-innovation-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(110, 68, 255, 0.2);
}

.spellgalaxy-innovation-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(16, 16, 42, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(110, 68, 255, 0.3);
  position: relative;
}

.spellgalaxy-innovation-symbol {
  font-size: 2.5rem;
}

.spellgalaxy-innovation-content h3 {
  font-family: var(--header-font);
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: white;
}

.spellgalaxy-innovation-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Team Highlights */
.spellgalaxy-team-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.spellgalaxy-team-stat {
  background: rgba(16, 16, 42, 0.5);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-team-stat:hover {
  transform: translateY(-10px);
}

.spellgalaxy-stat-number {
  font-family: var(--header-font);
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spellgalaxy-stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
}

.spellgalaxy-team-expertise {
  margin-top: 40px;
}

.spellgalaxy-expertise {
  margin-bottom: 20px;
}

.spellgalaxy-expertise h4 {
  font-family: var(--header-font);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spellgalaxy-expertise h4::after {
  content: attr(data-percent);
  color: var(--accent-color);
}

.spellgalaxy-expertise-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.spellgalaxy-expertise-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 5px;
  transition: width 1.5s ease-in-out;
}

/* Join Us Section */
.spellgalaxy-join-us {
  text-align: center;
  padding: 80px;
  background: rgba(16, 16, 42, 0.5);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.spellgalaxy-cosmic-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(110, 68, 255, 0.2), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-glow 5s infinite alternate;
}

@keyframes pulse-glow {
  0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.5;
  }
  100% {
      transform: translate(-50%, -50%) scale(1.2);
      opacity: 0.7;
  }
}

.spellgalaxy-join-us h2 {
  font-family: var(--header-font);
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.spellgalaxy-join-us p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.spellgalaxy-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.spellgalaxy-cta-button {
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.spellgalaxy-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.6s;
  z-index: 0;
}

.spellgalaxy-cta-button:hover::before {
  left: 100%;
}

.spellgalaxy-cta-button.primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.4);
}

.spellgalaxy-cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--accent-color);
}

.spellgalaxy-cta-button:hover {
  transform: translateY(-5px);
}

.spellgalaxy-cta-button.primary:hover {
  box-shadow: 0 10px 20px rgba(110, 68, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .spellgalaxy-team-highlights {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
  }
}

@media (max-width: 992px) {
  .spellgalaxy-about-hero h1 {
      font-size: 3.5rem;
  }
  
  .spellgalaxy-vision-values {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .spellgalaxy-core-values {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .spellgalaxy-journey-steps {
      flex-wrap: wrap;
      gap: 40px;
  }
  
  .spellgalaxy-journey-steps::before {
      display: none;
  }
  
  .spellgalaxy-journey-step {
      flex: 0 0 45%;
  }
  
  .spellgalaxy-innovation-card {
      flex-direction: column;
      text-align: center;
  }
  
  .spellgalaxy-innovation-icon {
      margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .spellgalaxy-about-section {
      padding: 0 30px;
  }
  
  .spellgalaxy-about-hero {
      height: auto;
      padding: 80px 0;
  }
  
  .spellgalaxy-about-hero h1 {
      font-size: 2.8rem;
  }
  
  .spellgalaxy-about-hero p {
      font-size: 1.1rem;
  }
  
  .spellgalaxy-core-values {
      grid-template-columns: 1fr;
  }
  
  .spellgalaxy-team-highlights {
      grid-template-columns: 1fr;
  }
  
  .spellgalaxy-journey-step {
      flex: 0 0 100%;
  }
  
  .spellgalaxy-cta-buttons {
      flex-direction: column;
      align-items: center;
  }
  
  .spellgalaxy-join-us {
      padding: 50px 30px;
  }
  
  .spellgalaxy-join-us h2 {
      font-size: 2.5rem;
  }
}


/* Contact Page Styles for SpellGalaxy */

/* Base Styles */
.spellgalaxy-contact-page {
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

/* Hero Section */
.spellgalaxy-contact-hero {
  height: 40vh;
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 80px;
  background: linear-gradient(135deg, rgba(110, 68, 255, 0.2), rgba(255, 68, 227, 0.2));
  border-radius: 0 0 50% 50% / 15%;
}

.spellgalaxy-cosmic-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: drift 60s linear infinite;
  opacity: 0.6;
}

@keyframes drift {
  from {
      background-position: 0 0;
  }
  to {
      background-position: 200px 200px;
  }
}

.spellgalaxy-contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 30%, rgba(110, 68, 255, 0.4), transparent 30%),
      radial-gradient(circle at 80% 70%, rgba(255, 68, 227, 0.4), transparent 30%);
  animation: pulse-light 8s infinite alternate;
}

@keyframes pulse-light {
  0% {
      opacity: 0.5;
      transform: scale(1);
  }
  100% {
      opacity: 0.8;
      transform: scale(1.1);
  }
}

.spellgalaxy-contact-hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

.spellgalaxy-contact-hero h1 {
  font-family: var(--header-font);
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.spellgalaxy-contact-hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 80%;
  margin: 0 auto;
}

/* Contact Content Section */
.spellgalaxy-contact-content {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 50px;
}

.spellgalaxy-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* Contact Form */
.spellgalaxy-contact-form-container {
  background: rgba(16, 16, 42, 0.5);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-contact-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  z-index: 1;
}

.spellgalaxy-contact-form-container h2 {
  font-family: var(--header-font);
  font-size: 2rem;
  margin-bottom: 30px;
  color: white;
  position: relative;
  display: inline-block;
}

.spellgalaxy-contact-form-container h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

.spellgalaxy-contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.spellgalaxy-form-group {
  position: relative;
}

.spellgalaxy-form-group label {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.spellgalaxy-contact-form input,
.spellgalaxy-contact-form select,
.spellgalaxy-contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: var(--body-font);
  font-size: 1rem;
  transition: background 0.3s, box-shadow 0.3s;
}

.spellgalaxy-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.spellgalaxy-contact-form input:focus,
.spellgalaxy-contact-form select:focus,
.spellgalaxy-contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(110, 68, 255, 0.3);
}

.spellgalaxy-input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: width 0.3s;
}

.spellgalaxy-contact-form input:focus + .spellgalaxy-input-border,
.spellgalaxy-contact-form select:focus + .spellgalaxy-input-border,
.spellgalaxy-contact-form textarea:focus + .spellgalaxy-input-border {
  width: 100%;
  animation: border-glow 1.5s infinite alternate;
}

@keyframes border-glow {
  0% {
      box-shadow: 0 1px 5px rgba(110, 68, 255, 0.3);
  }
  100% {
      box-shadow: 0 1px 15px rgba(110, 68, 255, 0.7);
  }
}

.spellgalaxy-contact-form button {
  align-self: flex-start;
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.spellgalaxy-contact-form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.6s;
  z-index: 0;
}

.spellgalaxy-contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(110, 68, 255, 0.3);
}

.spellgalaxy-contact-form button:hover::before {
  left: 100%;
}

/* Contact Information */
.spellgalaxy-contact-info {
  align-self: stretch;
}

.spellgalaxy-contact-card {
  background: rgba(16, 16, 42, 0.5);
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  z-index: 1;
}

.spellgalaxy-contact-card h2 {
  font-family: var(--header-font);
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
  position: relative;
  display: inline-block;
}

.spellgalaxy-contact-card h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

.spellgalaxy-contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.spellgalaxy-contact-icon {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.3);
}

.spellgalaxy-contact-icon svg {
  color: white;
  width: 24px;
  height: 24px;
}

.spellgalaxy-contact-detail h3 {
  font-family: var(--header-font);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: white;
}

.spellgalaxy-contact-detail p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 5px;
}

.spellgalaxy-contact-detail a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

.spellgalaxy-contact-detail a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.spellgalaxy-social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.spellgalaxy-social-icon {
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-social-icon:hover {
  transform: translateY(-5px);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.spellgalaxy-social-icon svg {
  color: white;
  width: 20px;
  height: 20px;
}

/* FAQ Section */
.spellgalaxy-faq-section {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 60px 50px;
  background: rgba(16, 16, 42, 0.4);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.spellgalaxy-cosmic-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 10% 20%, rgba(110, 68, 255, 0.2), transparent 20%),
      radial-gradient(circle at 90% 80%, rgba(255, 68, 227, 0.2), transparent 20%);
  z-index: -1;
}

.spellgalaxy-faq-section h2 {
  font-family: var(--header-font);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.spellgalaxy-faq-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.spellgalaxy-faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.spellgalaxy-faq-item {
  background: rgba(16, 16, 42, 0.6);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-faq-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.2);
}

.spellgalaxy-faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spellgalaxy-faq-question h3 {
  font-family: var(--body-font);
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
  margin: 0;
}

.spellgalaxy-faq-toggle {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transition: transform 0.3s;
}

.spellgalaxy-faq-item.active .spellgalaxy-faq-toggle {
  transform: rotate(45deg);
}

.spellgalaxy-faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.spellgalaxy-faq-item.active .spellgalaxy-faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.spellgalaxy-faq-answer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* Map Section */
.spellgalaxy-map-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 50px;
}

.spellgalaxy-map-section h2 {
  font-family: var(--header-font);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.spellgalaxy-map-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.spellgalaxy-map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}

.spellgalaxy-cosmic-map {
  background: rgba(16, 16, 42, 0.4);
  border-radius: 15px;
  overflow: hidden;
  height: 400px;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.spellgalaxy-map-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
      linear-gradient(135deg, rgba(16, 16, 42, 0.7), rgba(16, 16, 42, 0.9)),
      url('cosmic-map-bg.jpg') center/cover no-repeat;
  position: relative;
}

.spellgalaxy-map-marker {
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  animation: marker-bounce 1s infinite alternate ease-in-out;
  box-shadow: 0 0 20px rgba(110, 68, 255, 0.6);
}

@keyframes marker-bounce {
  0% {
      transform: rotate(-45deg) translateY(0);
  }
  100% {
      transform: rotate(-45deg) translateY(-10px);
  }
}

.spellgalaxy-map-ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% {
      width: 0;
      height: 0;
      opacity: 1;
  }
  100% {
      width: 100px;
      height: 100px;
      opacity: 0;
  }
}

.spellgalaxy-map-info {
  background: rgba(16, 16, 42, 0.5);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-map-info h3 {
  font-family: var(--header-font);
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: white;
}

.spellgalaxy-map-info p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 15px;
}

.spellgalaxy-map-info .spellgalaxy-button {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 10px;
}

.spellgalaxy-map-info .spellgalaxy-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(110, 68, 255, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .spellgalaxy-contact-grid {
      grid-template-columns: 1fr;
      gap: 40px;
  }
  
  .spellgalaxy-map-container {
      grid-template-columns: 1fr;
  }
  
  .spellgalaxy-cosmic-map {
      height: 300px;
  }
}

@media (max-width: 768px) {
  .spellgalaxy-contact-hero h1 {
      font-size: 3rem;
  }
  
  .spellgalaxy-contact-hero p {
      font-size: 1.1rem;
  }
  
  .spellgalaxy-contact-content {
      padding: 0 30px;
  }
  
  .spellgalaxy-faq-section {
      padding: 40px 30px;
  }
  
  .spellgalaxy-map-section {
      padding: 0 30px;
  }
}

@media (max-width: 576px) {
  .spellgalaxy-contact-hero h1 {
      font-size: 2.5rem;
  }
  
  .spellgalaxy-contact-hero p {
      font-size: 1rem;
      max-width: 100%;
  }
  
  .spellgalaxy-contact-form-container,
  .spellgalaxy-contact-card {
      padding: 30px 20px;
  }
  
  .spellgalaxy-contact-method {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  
  .spellgalaxy-social-icons {
      justify-content: center;
  }
}


/* SpellGalaxy Legal Pages - Shared Styles */

.spellgalaxy-legal-page {
  padding-top: 100px;
  min-height: calc(100vh - 100px);
  position: relative;
}

/* Hero Banner */
.spellgalaxy-legal-banner {
  height: 200px;
  background: linear-gradient(135deg, rgba(110, 68, 255, 0.2), rgba(255, 68, 227, 0.2));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 60px;
}

.spellgalaxy-legal-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 30%, rgba(110, 68, 255, 0.4), transparent 30%),
      radial-gradient(circle at 80% 70%, rgba(255, 68, 227, 0.4), transparent 30%);
  z-index: 0;
}

.spellgalaxy-legal-banner-text {
  position: relative;
  z-index: 1;
  text-align: center;
}

.spellgalaxy-legal-banner h1 {
  font-family: var(--header-font);
  font-size: 3rem;
  color: white;
  margin-bottom: 10px;
}

.spellgalaxy-legal-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
}

/* Legal Content Container */
.spellgalaxy-legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px 80px;
}

.spellgalaxy-legal-content {
  background: rgba(16, 16, 42, 0.6);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-legal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 20px 20px 0 0;
}

/* Content Styles */
.spellgalaxy-legal-content h2 {
  font-family: var(--header-font);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 30px;
  color: white;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spellgalaxy-legal-content h3 {
  font-family: var(--header-font);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: white;
}

.spellgalaxy-legal-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.spellgalaxy-legal-content a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

.spellgalaxy-legal-content a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.spellgalaxy-legal-content ul, 
.spellgalaxy-legal-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.spellgalaxy-legal-content li {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Contact Box */
.spellgalaxy-legal-contact {
  margin-top: 40px;
  padding: 25px;
  background: rgba(16, 16, 42, 0.4);
  border-radius: 10px;
  border-left: 4px solid var(--accent-color);
}

.spellgalaxy-legal-contact h4 {
  font-family: var(--header-font);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 15px;
  color: white;
}

.spellgalaxy-legal-contact p {
  margin-bottom: 10px;
}

.spellgalaxy-legal-contact p:last-child {
  margin-bottom: 0;
}

/* Last Updated */
.spellgalaxy-legal-updated {
  text-align: right;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .spellgalaxy-legal-banner h1 {
      font-size: 2.5rem;
  }
  
  .spellgalaxy-legal-content {
      padding: 30px;
  }
}

@media (max-width: 576px) {
  .spellgalaxy-legal-banner {
      height: auto;
      padding: 40px 20px;
  }
  
  .spellgalaxy-legal-banner h1 {
      font-size: 2rem;
  }
  
  .spellgalaxy-legal-content {
      padding: 25px 20px;
  }
  
  .spellgalaxy-legal-content h2 {
      font-size: 1.6rem;
  }
  
  .spellgalaxy-legal-content h3 {
      font-size: 1.3rem;
  }
}


/* Age Verification Modal Styles */

#age-verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: La1;
  }
}

.age-verification-modal {
  width: 100%;
  max-width: 550px;
  background: linear-gradient(135deg, rgba(20, 20, 50, 0.9), rgba(40, 20, 70, 0.9));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(110, 68, 255, 0.5), 0 0 100px rgba(255, 68, 227, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: modalAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
  from {
      transform: scale(0.8);
      opacity: 0;
  }
  to {
      transform: scale(1);
      opacity: 1;
  }
}

.age-verification-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 30%, rgba(110, 68, 255, 0.2), transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(255, 68, 227, 0.2), transparent 40%);
  pointer-events: none;
}

.age-verification-content {
  position: relative;
  z-index: 1;
}

.age-verification-header {
  text-align: center;
  padding: 30px 20px 20px;
  position: relative;
}

.age-verification-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.age-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.age-logo-orbit {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(110, 68, 255, 0.6);
  border-radius: 50%;
  position: relative;
  animation: orbit 8s linear infinite;
}

.age-logo-planet {
  width: 12px;
  height: 12px;
  background: #44ffb8;
  border-radius: 50%;
  position: absolute;
  top: -6px;
  left: calc(50% - 6px);
  box-shadow: 0 0 10px #44ffb8;
}

@keyframes orbit {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

.age-logo h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2rem;
  background: linear-gradient(45deg, #6e44ff, #ff44e3, #44ffb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 15px;
}

.age-verification-header h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: white;
  margin: 0;
  position: relative;
  display: inline-block;
}

.age-verification-header h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #6e44ff, #ff44e3);
}

.age-verification-body {
  padding: 30px;
  text-align: center;
}

.age-verification-body p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.age-verification-disclaimer {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.age-verification-disclaimer p {
  font-weight: 600;
  margin-bottom: 10px;
}

.age-verification-disclaimer ul {
  list-style-type: none;
  padding-left: 5px;
}

.age-verification-disclaimer li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.age-verification-disclaimer li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: #44ffb8;
}

.age-verification-disclaimer a {
  color: #44ffb8;
  text-decoration: none;
  transition: color 0.3s;
}

.age-verification-disclaimer a:hover {
  color: #ff44e3;
  text-decoration: underline;
}

.age-verification-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.age-verify-btn {
  padding: 14px 30px;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  position: relative;
  overflow: hidden;
}

.age-verify-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.6s;
  z-index: 1;
}

.age-verify-btn:hover::before {
  left: 100%;
}

.age-verify-btn.primary {
  background: linear-gradient(45deg, #6e44ff, #ff44e3);
  color: white;
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.4);
}

.age-verify-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(110, 68, 255, 0.6);
}

.age-verify-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.age-verify-btn.secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.age-verification-footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  text-align: center;
}

.age-verification-footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

/* Stars Animation Background */
.age-verification-modal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
      radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.2;
  animation: starsDrift 60s linear infinite;
  pointer-events: none;
}

@keyframes starsDrift {
  from {
      background-position: 0 0;
  }
  to {
      background-position: 200px 200px;
  }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .age-verification-modal {
      width: 90%;
      max-width: none;
  }
  
  .age-verification-header h1 {
      font-size: 1.8rem;
  }
  
  .age-verification-body {
      padding: 20px;
  }
  
  .age-verification-buttons {
      flex-direction: column;
      gap: 15px;
  }
  
  .age-verify-btn {
      width: 100%;
  }
}


/* Stop the showcase orbit rotation */
.spellgalaxy-showcase-orbit,
.spellgalaxy-showcase-hex,
.spellgalaxy-showcase-sevens {
  animation: none !important;
  transform: rotate(0deg) !important;
}

/* Adjust main showcase image dimensions */
.spellgalaxy-showcase-main {
  height: 400px !important; /* Reduce height */
  max-height: 400px !important;
  width: 100% !important; /* Ensure full width */
  aspect-ratio: 4/3; /* Create wider aspect ratio */
}

/* Ensure the image fills the container properly */
.spellgalaxy-game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Make the overall game showcase wider */
.spellgalaxy-game-showcase {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Adjust secondary images to be smaller and in a single row */
.spellgalaxy-showcase-secondary {
  height: 80px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.spellgalaxy-game-img-small {
  height: 100%;
  
  object-fit: cover;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .spellgalaxy-showcase-main {
    height: 300px !important;
  }
  
  .spellgalaxy-showcase-secondary {
    height: 60px;
  }
}

/* Add this to your CSS file or in a <style> tag in your HTML */

/* Stop the showcase orbit rotation */
.spellgalaxy-showcase-orbit {
  animation: none !important;
  transform: rotate(0deg) !important;
}

/* Similarly for other showcase containers if needed */
.spellgalaxy-showcase-hex,
.spellgalaxy-showcase-sevens {
  animation: none !important;
  transform: rotate(0deg) !important;
}


.spellgalaxy-showcase-hex::before {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* Remove Lucky Sevens "7" background */
.spellgalaxy-showcase-sevens::before {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* Ensure the main showcase has a clean background */
.spellgalaxy-showcase-main {
  background-color: transparent !important;
}

/* Optional: Add a clean background to the containing elements */
.spellgalaxy-game-showcase,
.mage-theme,
.lucky-theme {
  background: rgba(16, 16, 42, 0.6) !important;
}

/* Fix overlay colors if needed */
.mage-overlay,
.lucky-overlay {
  box-shadow: none !important;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.5)) !important;
}