/* ===================================
   Prytso Salon Software - Enhanced Styles
   =================================== */

/* CSS Variables */
:root {
  --bg1: #0f1226;
  --bg2: #1b1f3a;
  --acc1: #7c3aed;
  --acc2: #06b6d4;
  --acc3: #22c55e;
  --card: #14172b;
  --muted: #a5b4fc;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,.35), transparent 60%),
              radial-gradient(1000px 500px at 10% 10%, rgba(6,182,212,.25), transparent 60%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body {
  min-height: 100%;
  background: transparent;
  color: #e5e7eb;
  overflow-x: hidden;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
}

/* 3D Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Glass Effect */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--acc1), var(--acc2));
  color: white;
  box-shadow: 0 10px 30px rgba(124,58,237,.4);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.15);
  box-shadow: 0 15px 40px rgba(124,58,237,.6);
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e5e7eb;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-weight: 600;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost:active {
  transform: translateY(0);
}

/* Tags & Badges */
.tag {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(6,182,212,.2));
  border: 1px solid rgba(124,58,237,.4);
  color: #d1d5db;
  font-weight: 600;
}

.badge {
  background: rgba(34,197,94,.2);
  color: #86efac;
  border: 1px solid rgba(34,197,94,.4);
  font-weight: 700;
}

/* Shine Effect */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: "";
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,.15), transparent 30%, rgba(255,255,255,.15) 60%, transparent 90%);
  animation: spin 15s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Pulse Dot */
.pulse-dot {
  position: relative;
}

.pulse-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(124,58,237,.5), transparent 60%);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(.9);
    opacity: .7;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Revenue Bar Charts */
.revenue-bar {
  background: linear-gradient(to top, rgba(124,58,237,.8), rgba(6,182,212,.8));
  border-radius: 4px 4px 0 0;
  height: var(--height);
  align-self: flex-end;
  animation: growBar 1.2s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  box-shadow: 0 4px 12px rgba(124,58,237,.3);
  transition: all 0.3s ease;
}

.revenue-bar:hover {
  filter: brightness(1.3);
  transform: scaleY(1.1);
}

@keyframes growBar {
  from {
    height: 0;
    opacity: 0;
  }
}

/* Satisfaction Ring */
.satisfaction-ring {
  position: relative;
  display: inline-block;
}

.satisfaction-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-linecap: round;
  animation: fillCircle 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.satisfaction-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
}

@keyframes fillCircle {
  from {
    stroke-dasharray: 0, 100;
  }
}

/* Activity Items */
.activity-item {
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.activity-item:nth-child(1) {
  animation-delay: 0.1s;
}

.activity-item:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 40%, #99f6e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(15deg);
  }
}

/* Card Hover Effects */
.shadow-soft {
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.card-hover {
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 70px rgba(0,0,0,.5);
  border-color: rgba(124,58,237,.5);
}

/* Feature Cards */
.feature-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
  transform: translateY(-10px) rotateX(3deg) scale(1.02);
}

/* Stat Cards */
.stat-card {
  transform: scale(1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: scale(1.08) translateY(-8px);
  box-shadow: 0 35px 80px rgba(0,0,0,.6);
}

/* CTA Glow */
.cta-glow {
  box-shadow: 0 0 0 6px rgba(124,58,237,.2), 0 20px 60px rgba(6,182,212,.3);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(124,58,237,.2), 0 20px 60px rgba(6,182,212,.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(124,58,237,.3), 0 25px 70px rgba(6,182,212,.4);
  }
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}

/* Video Styles */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(6,182,212,.2));
  border-radius: 16px;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,18,38,.0), rgba(15,18,38,.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.video-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 90px;
  height: 90px;
  background: rgba(124,58,237,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 40px rgba(124,58,237,0.5);
}

.play-icon:hover {
  transform: scale(1.15);
  background: rgba(124,58,237,1);
  box-shadow: 0 20px 50px rgba(124,58,237,0.7);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid rgba(255,255,255,0.12);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 2.5rem 2rem;
  box-shadow: -15px 0 40px rgba(0,0,0,0.6);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(6px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s ease;
  background: transparent;
  border: none;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* Device Mockups */
.laptop-mockup {
  perspective: 1800px;
  animation: float 7s ease-in-out infinite;
}

.laptop-screen {
  background: #1a1a1a;
  border-radius: 12px 12px 0 0;
  border: 10px solid #2a2a2a;
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
  transform: rotateX(0deg);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.laptop-mockup:hover .laptop-screen {
  transform: rotateX(-7deg) scale(1.03);
}

.laptop-base {
  height: 24px;
  background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.phone-mockup {
  width: 290px;
  height: 500px;
  background: #1a1a1a;
  border-radius: 45px;
  padding: 14px;
  box-shadow: 0 35px 100px rgba(0,0,0,0.7);
  border: 3px solid #2a2a2a;
  position: relative;
  animation: float 7s ease-in-out infinite 1.5s;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-mockup:hover {
  transform: scale(1.08) rotateY(8deg);
  box-shadow: 0 45px 120px rgba(0,0,0,0.8);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 35px;
  overflow: hidden;
}

.phone-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 32px;
  background: #1a1a1a;
  border-radius: 0 0 24px 24px;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-25px);
  }
}

/* Floating Animation */
.floating {
  animation: float 5s ease-in-out infinite;
}

/* Contact Icons */
.contact-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-icon:hover {
  transform: translateY(-4px) scale(1.2) rotate(8deg);
}

/* Social Icons */
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px) scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(124,58,237,0.4);
}

/* Form Styles */
.form-success, .form-error {
  padding: 1.25rem;
  border-radius: 12px;
  display: none;
  animation: slideIn 0.4s ease;
  font-size: 0.9rem;
}

.form-success {
  background: rgba(34,197,94,.2);
  border: 1px solid rgba(34,197,94,.5);
  color: #86efac;
}

.form-success.show {
  display: block;
}

.form-error {
  background: rgba(239,68,68,.2);
  border: 1px solid rgba(239,68,68,.5);
  color: #fca5a5;
}

.form-error.show {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus Styles */
input:focus, textarea:focus, button:focus {
  outline: 2px solid rgba(124,58,237,.6);
  outline-offset: 2px;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin-loader 0.7s linear infinite;
}

@keyframes spin-loader {
  to {
    transform: rotate(360deg);
  }
}

/* Hero Content Animation */
.hero-content {
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard 3D Animation */
.dashboard-3d {
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
  transform-style: preserve-3d;
}

/* Testimonial Dots */
.testimonial-dot {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-dot:hover {
  background: rgba(255, 255, 255, 0.7) !important;
  transform: scale(1.3);
}

/* Particle Effect */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 5s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-120px) translateX(60px);
    opacity: 0.9;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--acc1), var(--acc2));
  border-radius: 6px;
  border: 2px solid var(--bg1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--acc1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .phone-mockup {
    width: 250px;
    height: 520px;
  }
  
  .laptop-screen {
    border-width: 8px;
  }
}

@media (max-width: 768px) {
  .play-icon {
    width: 70px;
    height: 70px;
  }
  
  .phone-mockup {
    width: 220px;
    height: 460px;
  }
  
  .video-overlay {
    padding: 1.5rem;
  }
  
  .satisfaction-ring svg {
    width: 40px;
    height: 40px;
  }
  
  .revenue-bar {
    border-radius: 3px 3px 0 0;
  }
}

@media (max-width: 640px) {
  .hero-content {
    text-align: left;
  }
  
  .phone-mockup {
    width: 200px;
    height: 420px;
  }
  
  .laptop-screen {
    border-width: 6px;
  }
  
  .laptop-base {
    height: 18px;
  }
  
  .mobile-menu {
    width: 90%;
    max-width: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .mobile-menu,
  .mobile-menu-overlay,
  #bg-canvas,
  .cta-glow,
  .floating {
    display: none !important;
  }
}