/* ======== CSS Services Page - OptiPlay (NEW) ======== */

/* Variables CSS */
:root {
  --primary-color: #0038ff;
  --primary-dark: #001c99;
  --secondary-color: #00d4ff;
  --accent-color: #ff0080;
  --success-color: #00ff88;
  --bg-dark: #0a0a0f;
  --bg-darker: #070709;
  --bg-card: #141419;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666666;
  --gradient-primary: linear-gradient(135deg, #0038ff, #00d4ff);
  --gradient-secondary: linear-gradient(135deg, #ff0080, #ff4081);
  --shadow-primary: 0 10px 40px rgba(0, 56, 255, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --border-radius: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ======== Header ======== */
header {
  background: rgba(7, 7, 9, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 56, 255, 0.2);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 56, 255, 0.4);
}

.logo-text {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 56, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 0.9rem;
}

/* ======== Page Hero ======== */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(0, 56, 255, 0.1) 0%, transparent 70%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

.page-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.page-title i {
  color: var(--primary-color);
  margin-right: 15px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ======== Services Section ======== */
.services-section {
  padding: 80px 0 100px;
  background: var(--bg-dark);
}

.services-section .container {
  display: block;
}

.service-category {
  margin-bottom: 100px;
}

.service-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 56, 255, 0.3);
}

.category-title i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  align-items: stretch;
}

/* ======== Product Cards ======== */
.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 56, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 340px;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 56, 255, 0.05), rgba(0, 212, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius);
  z-index: 0;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 56, 255, 0.25);
  border-color: var(--primary-color);
}

.product-card.available {
  border: 2px solid var(--secondary-color);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), var(--bg-card));
}

.product-card.available::before {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 212, 255, 0.03));
}

.product-icon {
  width: 85px;
  height: 85px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 56, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.product-icon.featured {
  background: var(--gradient-secondary);
  box-shadow: 0 8px 25px rgba(255, 0, 128, 0.35);
}

.product-card:hover .product-icon {
  transform: scale(1.1) rotate(5deg);
}

.product-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  position: relative;
  z-index: 1;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.coming-soon {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--secondary-color);
  border-radius: 20px;
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid var(--success-color);
  border-radius: 20px;
  color: var(--success-color);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.btn-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-secondary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 0, 128, 0.3);
  position: relative;
  z-index: 1;
}

.btn-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 128, 0.45);
}

/* ======== CTA Section ======== */
.cta-section {
  padding: 100px 0;
  background: 
    linear-gradient(135deg, rgba(0, 56, 255, 0.1), rgba(255, 0, 128, 0.1)),
    var(--bg-darker);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(0, 56, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 0, 128, 0.2) 0%, transparent 50%);
  animation: float 8s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-content h2 {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 56, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-item span {
  color: var(--text-secondary);
  font-weight: 500;
}

.discord-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.discord-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  justify-content: center;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(0, 56, 255, 0.4);
}

.btn-discord {
  background: #5865f2;
  color: white;
  border: 2px solid #5865f2;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

/* ======== Footer ======== */
footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(0, 56, 255, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 60px 0;
}

.footer-section h4 {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.discord-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.discord-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(0, 56, 255, 0.1);
  border: 1px solid rgba(0, 56, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
}

/* ======== Responsive ======== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 40px;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
