/* Zonix IT Company — Main Styles */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --accent: #7c3aed;
  --surface: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text-muted: #94a3b8;
  --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #1e3a8a 100%);
  --shadow-soft: 0 4px 24px rgba(79, 70, 229, 0.12);
  --shadow-glow: 0 0 60px rgba(79, 70, 229, 0.25);
}

* {
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 88px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background: #fafbff;
}

.font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.blob-1 { width: 400px; height: 400px; background: #818cf8; top: -10%; left: -5%; animation-delay: 0s; }
.blob-2 { width: 350px; height: 350px; background: #a78bfa; top: 20%; right: -10%; animation-delay: 2s; }
.blob-3 { width: 300px; height: 300px; background: #6366f1; bottom: 10%; left: 30%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(79, 70, 229, 0.3); }
  50% { box-shadow: 0 0 40px rgba(79, 70, 229, 0.5); }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  border: 2px solid #4f46e5;
  color: #4f46e5;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: transform 0.5s;
}

.btn-ripple:active::after {
  transform: translate(-50%, -50%) scale(2);
  transition: transform 0s;
}

/* Cards */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

/* Section spacing */
.section-padding {
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 7rem 2rem;
  }
}

/* Hero grid pattern */
.hero-grid {
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Animated counter */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* FAQ accordion */
.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-top: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Testimonial slider */
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Portfolio filter */
.portfolio-item.hidden {
  display: none;
}

/* Booking calendar */
.time-slot.selected {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.time-slot:not(.selected):hover {
  border-color: #818cf8;
  background: #eef2ff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #818cf8;
  border-radius: 4px;
}

/* Focus accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 404 page */
.error-glow {
  text-shadow: 0 0 80px rgba(79, 70, 229, 0.4);
}

/* Service page timeline */
.timeline-line::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #4f46e5, #a78bfa);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
