/* Custom CSS for Come4Play VIP System */

/* Custom font import */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* Base styles */
:root {
  --primary-color: #e53e3e;
  --secondary-color: #0d1117;
  --accent-color: #f56565;
  --text-color: #e2e8f0;
  --light-color: #a0aec0;
  --dark-color: #090c10;
  --card-bg: #121820;
  --card-dark-bg: #0d1117;
}

body {
  font-family: 'Rajdhani', sans-serif;
  scroll-behavior: smooth;
  background-color: #090c10;
  color: var(--text-color);
}

h1, h2, h3, .logo-text {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

/* Fancy underline for headings */
.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Hero section custom styles */
.hero-section {
  position: relative;
  min-height: 600px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
  z-index: 1;
}

.hero-section > div {
  position: relative;
  z-index: 2;
}

/* Glowing effect for important buttons */
.glow-button {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.glow-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  transition: transform 0.6s;
  opacity: 0;
}

.glow-button:hover::after {
  transform: rotate(30deg) translate(80%, -100%);
  opacity: 1;
}

/* Custom card hover effects */
.feature-card {
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(229, 62, 62, 0.15);
  border: 1px solid rgba(229, 62, 62, 0.2);
}

/* Animated icon pulse */
.icon-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* CS Theme Card Styles */
.cs-card {
  position: relative;
  overflow: hidden;
  background: var(--card-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Updated pricing card styles with background image */
.cs-pricing-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: rgba(13, 17, 23, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pricing.png');
  background-position: center;
  background-size: cover;
  opacity: 0.25;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.cs-pricing-card:hover::before {
  opacity: 0.35;
}

.cs-pricing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(9, 12, 16, 0.7), rgba(9, 12, 16, 0.85));
  z-index: 1;
}

.cs-card-content {
  position: relative;
  z-index: 2;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

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

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(45deg, var(--primary-color), #f6ad55);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

/* Custom navbar with glass effect */
.glass-nav {
  background: rgba(9, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pricing card hover effect */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 0 30px rgba(229, 62, 62, 0.2);
  border: 1px solid rgba(229, 62, 62, 0.2);
}

/* Custom badge styles */
.custom-badge {
  position: absolute;
  top: 13px;
  right: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-bottom-left-radius: 0.5rem;
  transform: translateY(-50%);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

/* Footer custom styling */
.footer-link {
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Type writer effect */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--primary-color);
  white-space: nowrap;
  margin: 0 auto;
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-color) }
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Neon glow effect */
.neon-text {
  text-shadow: 0 0 5px rgba(229, 62, 62, 0.5),
               0 0 10px rgba(229, 62, 62, 0.3),
               0 0 15px rgba(229, 62, 62, 0.1);
}

.neon-box {
  box-shadow: 0 0 5px rgba(229, 62, 62, 0.5),
              0 0 10px rgba(229, 62, 62, 0.3),
              0 0 15px rgba(229, 62, 62, 0.1);
}

/* Simple border effect - replacing pulse-border */
.simple-border {
  position: relative;
  border: 1px solid rgba(229, 62, 62, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.simple-border:hover {
  border-color: rgba(229, 62, 62, 0.5);
  box-shadow: 0 0 20px rgba(229, 62, 62, 0.2);
}

/* Remove the pulsing border effect */
.pulse-border {
  position: relative;
}

.pulse-border::before {
  display: none; /* Hiding the animated border that was covering the background */
}

.pulse-border:hover::before {
  display: none;
}

@keyframes borderGlow {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* Custom media queries for better responsiveness */
@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
  }
  
  .section-heading::after {
    width: 40px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 400px;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Feature and Pricing section backgrounds */
.features-section {
  background-color: #0d1117;
  position: relative;
  padding-bottom: 60px; /* Space for the divider */
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e53e3e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 0;
}

.pricing-section {
  background-color: #090c10;
  position: relative;
  padding-top: 60px; /* Space for the divider */
}

.pricing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e53e3e' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.15;
  z-index: 0;
}

/* Modern section divider */
.section-divider {
  position: relative;
  height: 60px;
  background-color: #0d1117; /* Same as features-section */
  margin-bottom: -60px; /* Pull up the next section to connect with the divider */
  z-index: 1;
}

.section-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(229, 62, 62, 0) 0%, rgba(229, 62, 62, 0.7) 50%, rgba(229, 62, 62, 0) 100%);
  box-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

/* Add an optional zigzag pattern to the divider for more visual interest */
.zigzag-divider {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 12px;
  background: 
    linear-gradient(45deg, transparent 33.333%, #0d1117 33.333%, #0d1117 66.667%, transparent 66.667%),
    linear-gradient(-45deg, transparent 33.333%, #0d1117 33.333%, #0d1117 66.667%, transparent 66.667%);
  background-size: 16px 32px;
  background-position: 0 -16px;
}

/* Remove fade elements */
.fade-connector {
  display: none;
}

.section-transition {
  display: none;
}

/* Make sure content is above the patterns */
.features-section > .container,
.pricing-section > .container {
  position: relative;
  z-index: 2;
} 