/* Custom Premium CSS for ARAZZ Website */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Core Color Variables */
  --primary: #0A2540;
  --secondary: #2563EB;
  --accent: #00C2A8;
  --bg-light: #F8FAFC;
  --bg-dark-section: #111827;
  --text-light: #1F2937;
  --white: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
.dark ::-webkit-scrollbar-track {
  background: #0B0F19;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Custom Smooth Scroll */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-light);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark {
  background-color: #0B0F19;
  color: #F1F5F9;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Scroll Progress Indicator */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Sticky Navbar Transition */
header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark header.scrolled {
  background-color: rgba(11, 15, 25, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glassmorphism Classes */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dark .glass {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animated Work Process Timeline Line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(226, 232, 240, 0.8);
  transform: translateX(-50%);
  z-index: 1;
}

.dark .timeline-line {
  background: rgba(51, 65, 85, 0.6);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
  transform: translateX(-50%);
  height: 0%;
  z-index: 2;
  transition: height 0.2s ease-out;
}

@media (max-width: 768px) {
  .timeline-line, .timeline-progress {
    left: 20px;
    transform: none;
  }
}

/* Infinite Scrolling Partners Logo Animation */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

/* Custom Grid for Masonry Portfolio Card Animations */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  overflow: hidden;
  position: relative;
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover img {
  transform: scale(1.08) rotate(1deg);
}

.portfolio-overlay {
  background: linear-gradient(to top, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.4) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* Custom Swiper Testimonial Slides */
.swiper-pagination-bullet-active {
  background: var(--secondary) !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* Live Chat Widget Custom Styles */
#chat-widget-container {
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
}

.chat-bubble-bounce {
  animation: float 3s ease-in-out infinite;
}

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

/* Hero animated geometric backgrounds */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.shape-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.25;
  mix-blend-mode: multiply;
  animation: blob-bounce 12s infinite alternate;
}

.dark .shape-blob {
  opacity: 0.15;
  mix-blend-mode: screen;
}

@keyframes blob-bounce {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -60px) scale(1.1);
  }
  100% {
    transform: translate(-40px, 40px) scale(0.9);
  }
}
