/* 
 * Desquad Theme Main Stylesheet - $50,000+ Awwwards-Grade Agency Design System
 * Primary: #0A0A0A | Alt: #101208 | Card: #14170F | Accent: #C8FF62 | Text: #F5F5F0
 * Includes 100% Full-Width Viewport Stretch & Responsive Mobile Engine
 */

:root {
  --color-bg-primary: #0A0A0A;
  --color-bg-secondary: #101208;
  --color-surface-card: #14170F;
  --color-surface-hover: #1A2012;
  --color-border: #242819;
  --color-border-glow: rgba(200, 255, 98, 0.3);
  --color-accent: #C8FF62;
  --color-accent-glow: rgba(200, 255, 98, 0.4);
  --color-text-primary: #F5F5F0;
  --color-text-secondary: #A9AFA0;
  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   100% FULL-WIDTH VIEWPORT STRETCH RULES (SERVICES & SUB-PAGES FIX)
   ========================================================================== */

body, html {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background-color: #0A0A0A;
  color: #F5F5F0;
  font-family: var(--font-family-base);
}

#primary,
.site-main,
.desquad-page-wrapper,
.entry-content,
.elementor-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force Elementor Full-Width Sections to Stretch Edge-to-Edge */
.elementor-section.elementor-section-full_width {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Glassmorphic Cards & Micro-interactions */
.desquad-glass-card,
.elementor-column-wrap,
.elementor-widget-container {
  transition: var(--transition-smooth);
}

.desquad-glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-glow) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(200, 255, 98, 0.15) !important;
}

/* Gradient Text Highlight */
.text-gradient {
  background: linear-gradient(90deg, #F5F5F0 0%, #C8FF62 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glowing Neon Pulse Badges */
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 255, 98, 0.1);
  border: 1px solid rgba(200, 255, 98, 0.3);
  color: #C8FF62;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C8FF62;
  box-shadow: 0 0 10px #C8FF62;
  animation: pulse-glow 1.8s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #C8FF62; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #C8FF62; }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #C8FF62; }
}

/* Glowing Action Buttons */
.btn-primary,
.elementor-button {
  background: #C8FF62 !important;
  color: #0A0A0A !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(200, 255, 98, 0.25) !important;
  transition: var(--transition-smooth) !important;
}

.btn-primary:hover,
.elementor-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(200, 255, 98, 0.5) !important;
}

/* ==========================================================================
   MEGA MENU DROPDOWN SYSTEM (SERVICES v)
   ========================================================================== */

.has-mega-menu {
  position: relative;
}

.has-mega-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.has-mega-menu:hover > a i {
  transform: rotate(180deg);
  color: #C8FF62;
}

.mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 900px;
  background: linear-gradient(135deg, #14170F 0%, #0A0A0A 100%);
  border: 1px solid rgba(200, 255, 98, 0.3);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(200, 255, 98, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
}

.has-mega-menu:hover .mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 220px;
  gap: 20px;
}

.mega-column-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #C8FF62;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-menu-item {
  color: #A9AFA0;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.mega-menu-item:hover {
  color: #F5F5F0;
  background: rgba(200, 255, 98, 0.1);
  padding-left: 12px;
}

.mega-promo-card {
  background: #0A0A0A;
  border: 1px solid #242819;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mega-promo-card h5 {
  color: #F5F5F0;
  margin: 8px 0 4px 0;
  font-size: 0.95rem;
}

.mega-promo-card p {
  color: #A9AFA0;
  font-size: 0.78rem;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

/* Mobile Devices (< 767px) */
@media (max-width: 767px) {
  .mega-menu-wrapper {
    position: static;
    transform: none !important;
    width: 100% !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 16px;
  }
  .mega-menu-grid {
    grid-template-columns: 1fr !important;
  }
  .elementor-column,
  .elementor-column-wrap,
  .elementor-top-column,
  .elementor-inner-column {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }
  .elementor-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  h1, .elementor-heading-title.elementor-size-h1 {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
  }
  h2, .elementor-heading-title.elementor-size-h2 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }
}
