/* =====================================================
   Purple Consulting - Global Styles
   ===================================================== */

/* -----------------------------------------------------
   Scrollbar - Dark & Minimal
   ----------------------------------------------------- */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #5b2f91 #1a1a2e;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #5b2f91;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7a3fc2;
}

/* -----------------------------------------------------
   Typography
   ----------------------------------------------------- */
body { 
  font-family: 'Poppins', system-ui, sans-serif; 
}

h1, h2, h3, h4, h5, h6 { 
  font-family: 'Outfit', system-ui, sans-serif; 
}

/* -----------------------------------------------------
   UI Components
   ----------------------------------------------------- */

/* Line Accent - decorative element */
.line-accent {
  width: 48px;
  height: 2px;
  background: #5b2f91;
}

/* -----------------------------------------------------
   Hero Section
   ----------------------------------------------------- */
.hero-gradient {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}

/* Hero Geometric Background Elements */
.hero-geo {
  position: absolute;
  pointer-events: none;
  opacity: 0.04;
}

.hero-geo-circle {
  border: 1px solid white;
  border-radius: 50%;
}

.hero-geo-square {
  border: 1px solid white;
}

.hero-geo-diamond {
  border: 1px solid white;
  transform: rotate(45deg);
}

.hero-geo-line {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  height: 1px;
}

.hero-geo-dots {
  background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-geo-ring {
  border: 1px solid rgba(91, 47, 145, 0.3);
  border-radius: 50%;
}

/* Hero Animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-slower {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-15px) rotate(48deg); }
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  50% { opacity: 0.07; transform: scale(1.02); }
}

.geo-float { animation: float-slow 12s ease-in-out infinite; }
.geo-float-alt { animation: float-slower 15s ease-in-out infinite; }
.geo-pulse { animation: pulse-subtle 8s ease-in-out infinite; }

/* -----------------------------------------------------
   Card Effects
   ----------------------------------------------------- */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.5s ease;
}

.card-shine:hover::before {
  left: 100%;
}

/* Image Overlay - gradient fade */
.img-overlay {
  position: relative;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26,26,46,0.8) 100%);
}

/* -----------------------------------------------------
   Social Media Sidebar
   ----------------------------------------------------- */
.social-sidebar {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-link-instagram {
  background: linear-gradient(45deg, #FFDC80, #F77737, #E1306C, #C13584, #833AB4);
}

.social-link-facebook {
  background-color: #1877F2;
}

.social-link-linkedin {
  background-color: #0A66C2;
}

.social-link-instagram:hover,
.social-link-facebook:hover,
.social-link-linkedin:hover {
  opacity: 0.9;
}

/* -----------------------------------------------------
   Google Review Badge
   ----------------------------------------------------- */
.google-review-badge {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.google-review-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.google-star {
  color: #FBBC04;
}

/* -----------------------------------------------------
   Navigation
   ----------------------------------------------------- */
#navbar {
  transition: all 0.3s ease;
}

/* Mobile Menu Animation handled by GSAP in app.js */

/* -----------------------------------------------------
   Footer
   ----------------------------------------------------- */
footer a {
  transition: color 0.2s ease;
}

/* -----------------------------------------------------
   Forms
   ----------------------------------------------------- */
input:focus, 
select:focus, 
textarea:focus {
  outline: none;
  border-color: #5b2f91;
}

/* -----------------------------------------------------
   Utility Classes
   ----------------------------------------------------- */

/* Prevent horizontal scroll from GSAP animations - Mobile Fix */
html, body {
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

/* Add wrapper styles for overflow containment */
#__wrapper,
.page-wrapper {
  overflow-x: clip;
  max-width: 100vw;
}

/* Ensure all content stays within viewport */
section, main, footer, header, article, aside, nav {
  max-width: 100vw;
  overflow-x: clip;
}

/* Specifically target GSAP animated elements to prevent overflow */
[data-hero-visual],
[data-why-feature],
[data-page-hero-image] {
  max-width: 100%;
}

/* Fix for fixed positioned elements that might cause overflow */
.fixed {
  max-width: 100vw;
}

/* Ensure geometric elements don't cause overflow */
.hero-geo {
  pointer-events: none;
}

/* Mobile Menu - Always on top regardless of scroll */
#mobile-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999 !important;
}

#mobile-menu-panel {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
}

#mobile-menu-backdrop {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}
