/* Main CSS - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

:root {
  /* Color Variables */
  --primary-dark: #0e0b2b;
  --primary-medium: #1a1550;
  --primary-light: #2a216a;
  --accent-glow: #4fd1c5;
  --accent-purple: #9f7aea;
  --accent-pink: #ed64a6;
  --text-light: #f7fafc;
  --text-muted: #cbd5e0;
  --glass-bg: rgba(26, 21, 80, 0.6);
  --glass-border: rgba(79, 209, 197, 0.3);
  
  /* Font Variables */
  --font-fantasy: 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  /* Spacing Variables */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, var(--primary-light) 100%);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Set background particles on all pages */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(79, 209, 197, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 80% 50%, rgba(159, 122, 234, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 40% 80%, rgba(237, 100, 166, 0.1) 0%, transparent 20%);
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-fantasy);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: var(--space-md);
}

a {
  text-decoration: none;
  color: var(--accent-glow);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-pink);
}

/* Glassmorphism Elements */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: var(--space-md);
}

/* Glow Effects */
.glow-text {
  text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow), 0 0 30px var(--accent-purple);
  color: var(--text-light);
}

.glow-border {
  box-shadow: 0 0 10px var(--accent-glow), 0 0 20px rgba(79, 209, 197, 0.3);
}

/* Button Styles */
.cta-button {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-glow) 100%);
  border: none;
  border-radius: 50px;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(79, 209, 197, 0.4);
  color: var(--text-light);
}

.cta-button:hover::before {
  left: 100%;
}

/* Section Styling */
.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-glow));
  border-radius: 3px;
}

/* Header Styling */
#site-header {
  padding: var(--space-md) 0;
  position: relative;
  z-index: 100;
  background: rgba(14, 11, 43, 0.8);
  backdrop-filter: blur(10px);
}

#site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-light);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  font-family: var(--font-fantasy);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-glow), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

nav ul li a {
  color: var(--text-light);
  transition: all 0.3s ease;
  position: relative;
  padding: var(--space-xs) 0;
}

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

nav ul li a:hover {
  color: var(--accent-glow);
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Footer Styling */
#site-footer {
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  background: linear-gradient(to top, rgba(14, 11, 43, 0.9), rgba(14, 11, 43, 0.6));
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-logo span {
  font-family: var(--font-fantasy);
  font-size: 1.2rem;
  background: linear-gradient(to right, var(--accent-glow), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.footer-links ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
}

/* Crystal Decoration */
.crystal-decoration {
  position: relative;
  height: 80px;
  margin: var(--space-md) 0;
}

.crystal-decoration::before,
.crystal-decoration::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent-purple) 100%);
  opacity: 0.3;
  border-radius: 8px 8px 0 8px;
  transform: skew(-20deg, 0);
  animation: crystal-pulse 3s infinite alternate;
}

.crystal-decoration::after {
  left: 30px;
  top: 15px;
  height: 50px;
  width: 40px;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  animation-delay: 1.5s;
}

@keyframes crystal-pulse {
  0% {
    opacity: 0.3;
    transform: skew(-20deg, 0) scale(1);
  }
  100% {
    opacity: 0.6;
    transform: skew(-20deg, 0) scale(1.1);
  }
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 10px var(--accent-glow), 0 0 20px rgba(79, 209, 197, 0.3);
  }
  50% {
    box-shadow: 0 0 15px var(--accent-glow), 0 0 30px rgba(79, 209, 197, 0.5);
  }
  100% {
    box-shadow: 0 0 10px var(--accent-glow), 0 0 20px rgba(79, 209, 197, 0.3);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .footer-links ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(14, 11, 43, 0.95);
    padding: var(--space-md);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
  }
  
  nav.active ul {
    display: flex;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .section-title {
    margin-bottom: var(--space-md);
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}