/*
Theme Name: Atlas Tech
Author: baka azzedine
Description: Custom theme for Atlas Tech business site with enhanced animations.
Version: 1.1
Text Domain: atlas-tech
Tags: business, dark, responsive, animated
*/

/* --- CSS Variables --- */
:root {
  /* Colors from PlayBook Design System - Flipped */
  --primary-black: #000000;
  --primary-purple: #8A00C4;
  --dark-purple: #0D0A14;
  --background-light: #F8F7FF;
  --light-gray: #CCCCCC;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  
  /* Gray Scale */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
}

/* --- Base Styles and Utilities --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--white);
  background: var(--primary-black);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  scroll-margin-top: 80px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}


@keyframes shadowFloat {
  0%, 100% { box-shadow: 0 4px 15px rgba(138, 0, 196, 0.3); }
  50% { box-shadow: 0 8px 25px rgba(138, 0, 196, 0.5); }
}



/* --- Shared Components --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--white);
  text-shadow: 0 4px 12px rgba(138, 0, 196, 0.3);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-purple), var(--info));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(138, 0, 196, 0.3);
  animation: shadowFloat 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--info), var(--primary-purple));
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(138, 0, 196, 0.6);
  animation-play-state: paused;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(138, 0, 196, 0.5);
  box-shadow: 0 2px 8px rgba(138, 0, 196, 0.2);
}

.btn-outline:hover {
  background: rgba(138, 0, 196, 0.1);
  border-color: var(--primary-purple);
  box-shadow: 0 6px 20px rgba(138, 0, 196, 0.4);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-black);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(138, 0, 196, 0.3);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, background, box-shadow;
  box-shadow: 0 4px 20px rgba(138, 0, 196, 0.1);

}

.header.scrolled {
  background: rgba(13, 10, 20, 0.95);
  border-bottom: 1px solid rgba(138, 0, 196, 0.5);
  box-shadow: 0 8px 32px rgba(138, 0, 196, 0.3);
  animation: none;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 10;
  transition: all 0.3s ease;
  position: relative;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(138, 0, 196, 0.4));
}

.tagline-header {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: var(--space-sm);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  font-style: italic;
}

.logo:hover .tagline-header {
  opacity: 1;
  transform: translateX(0);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-purple), var(--info));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 0, 196, 0.3);
  animation: shadowFloat 3s ease-in-out infinite;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, var(--primary-purple), var(--info));
  border-radius: 6px;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

.logo:hover .logo-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(138, 0, 196, 0.6);
  animation-play-state: paused;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links li a {
  color: var(--gray-300);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links li a:hover {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(138, 0, 196, 0.4);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-purple);
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(138, 0, 196, 0.5);
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-purple);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-purple);
  border-radius: 1px;
}

/* --- Hero Section --- */
.hero {
  padding: 140px var(--space-lg) 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-purple) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(138, 0, 196, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(138, 0, 196, 0.1);
  border: 1px solid rgba(138, 0, 196, 0.3);
  border-radius: 50px;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(138, 0, 196, 0.2);
  animation: shadowFloat 4s ease-in-out infinite, slideInFromTop 0.8s ease-out 0.2s both;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem); /* Matching size */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-purple) 50%, var(--info) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both, gradientShift 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(138, 0, 196, 0.3));
}

/* Subtitle - Secondary */
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.9s forwards;
}
.hero-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-decoration span {
  position: absolute;
  display: block;
  background: rgba(138, 0, 196, 0.1);
  border: 1px solid rgba(138, 0, 196, 0.3);
  border-radius: 50%;
  animation: floatDecoration 15s linear infinite;
}

@keyframes floatDecoration {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}
/* Create multiple decoration elements */
.hero-decoration span:nth-child(1) {
  left: 20%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.hero-decoration span:nth-child(2) {
  left: 40%;
  width: 30px;
  height: 30px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.hero-decoration span:nth-child(3) {
  left: 65%;
  width: 50px;
  height: 50px;
  animation-delay: 4s;
  animation-duration: 15s;
}

.hero-decoration span:nth-child(4) {
  left: 80%;
  width: 60px;
  height: 60px;
  animation-delay: 1s;
  animation-duration: 20s;
}

/* Tagline - Main Emphasis */
.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.5rem); /* More moderate sizing */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  display: inline-block;
  background: linear-gradient(135deg, 
    var(--white) 0%, 
    var(--primary-purple) 50%, 
    var(--info) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: 
    taglineSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) both,
    gradientShift 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(138, 0, 196, 0.3));
  white-space: nowrap; /* Ensures text stays on one line */
}
@keyframes taglineSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.hero-tagline::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-purple), var(--info));
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineExpand 1s ease-out 0.8s forwards;
}

@keyframes underlineExpand {
  to { transform: scaleX(1); }
}
/* --- About Section --- */
.about {
  padding: 80px 0;
  background: var(--dark-purple);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-purple), var(--info));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-text {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease-out 0.2s forwards;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.about-text p {
  font-size: 1.125rem;
  color: var(--gray-300);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(138, 0, 196, 0.1);
  border: 1px solid rgba(138, 0, 196, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  box-shadow: 0 4px 15px rgba(138, 0, 196, 0.1);
  animation-delay: calc(var(1) * 0.5s);
}

.feature-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(138, 0, 196, 0.4);
  border-color: var(--primary-purple);
  background: rgba(138, 0, 196, 0.15);
  animation-play-state: paused;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-purple), var(--info));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(138, 0, 196, 0.3);
  animation: shadowFloat 3s ease-in-out infinite;
}

.feature-item span {
  color: var(--white);
  font-weight: 500;
}

.about-visual {
  position: relative;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease-out 0.4s forwards;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.visual-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(138, 0, 196, 0.3);
  padding: var(--space-xl);
  border-radius: 16px;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(138, 0, 196, 0.1);
  animation: rotateAnimation 8s ease-in-out infinite;
  animation-delay: calc(var(--card-index) * 0.8s);
}

.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-purple), var(--info));
}

.visual-card:hover {
  transform: translateY(-12px) scale(1.05) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(138, 0, 196, 0.4);
  animation-play-state: paused;
}

.visual-card:nth-child(even):hover {
  transform: translateY(-12px) scale(1.05) rotateX(-5deg);
}

.visual-card h4 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-purple), var(--info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 2px 8px rgba(138, 0, 196, 0.3));
}

.visual-card:hover h4 {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(138, 0, 196, 0.5));
}

.visual-card p {
  color: var(--gray-300);
  font-weight: 500;
}

/* --- Services Section --- */
.services {
  padding: 80px 0;
  background: var(--primary-black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(138, 0, 196, 0.3);
  border-radius: 16px;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, box-shadow, opacity;
  box-shadow: 0 8px 25px rgba(138, 0, 196, 0.1);
  animation: rotateAnimation 6s ease-in-out infinite;
  animation-delay: calc(var(--card-index) * 0.3s);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-purple), var(--info));
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
  animation: scaleIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02) rotateX(-2deg);
  box-shadow: 0 25px 50px rgba(138, 0, 196, 0.3);
  border-color: var(--primary-purple);
  background: rgba(138, 0, 196, 0.1);
  animation-play-state: paused;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-purple), var(--info));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: var(--space-md);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(138, 0, 196, 0.3);
  animation: shadowFloat 5s ease-in-out infinite;
  font-size: 24px;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 15px 35px rgba(138, 0, 196, 0.6);
  animation-play-state: paused;
}

.service-card:hover .service-icon::before {
  transform: translateX(100%);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--white);
  transition: all 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--primary-purple);
  transform: translateX(4px);
}

.service-description {
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.service-features {
  list-style-type: disc ;
  padding-left:  1.5rem  
}


.service-feature {

  align-items: center;
  gap: var(--space-sm);
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.service-feature::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* --- Portfolio Section --- */
.portfolio {
  padding: 80px 0;
  background: var(--dark-purple);
  color: white;
}

.portfolio .section-title {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid rgba(138, 0, 196, 0.3);
  background: transparent;
  color: var(--gray-300);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-purple), var(--info));
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary-purple);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 0, 196, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
}

.portfolio-item {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(138, 0, 196, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: scale(0.9) rotateY(10deg);
  animation: rotateAnimation 8s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(138, 0, 196, 0.1);
  will-change: transform, box-shadow;
}

.portfolio-item:hover {
  transform: translateY(-15px) scale(1.03) rotateY(5deg);
  box-shadow: 0 30px 60px rgba(138, 0, 196, 0.4);
  border-color: var(--primary-purple);
  animation-play-state: paused;
}

.portfolio-item:nth-child(even):hover {
  transform: translateY(-15px) scale(1.03) rotateY(-5deg);
}

.portfolio-image {
  height: 250px;
  background: linear-gradient(135deg, var(--primary-purple), var(--info));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(138, 0, 196, 0.3), rgba(59, 130, 246, 0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-image::before {
  opacity: 1;
}

.portfolio-image svg {
  width: 80px;
  height: 80px;
  color: white;
  z-index: 2;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}



.portfolio-item:hover .portfolio-image svg {
  transform: scale(1.3) rotate(10deg);
  animation-play-state: paused;
}

.portfolio-content {
  padding: var(--space-xl);
  position: relative;
}

.portfolio-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-xl);
  right: var(--space-xl);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-content::before {
  opacity: 1;
}

.portfolio-category {
  color: var(--primary-purple);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: white;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-content h3 {
  transform: translateX(5px);
  color: var(--primary-purple);
}

.portfolio-content p {
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tech-tag {
  background: rgba(138, 0, 196, 0.1);
  color: var(--primary-purple);
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(138, 0, 196, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--info));
  transition: left 0.3s ease;
  z-index: -1;
}

.portfolio-item:hover .tech-tag::before {
  left: 0;
}

.portfolio-item:hover .tech-tag {
  color: white;
  border-color: var(--primary-purple);
  transform: translateY(-2px);
}

/* --- Stats Section --- */
.stats {
  padding: 80px 0;
  background: var(--primary-black);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  background: rgba(138, 0, 196, 0.1);
  padding: var(--space-xl);
  border-radius: 16px;
  border: 1px solid rgba(138, 0, 196, 0.3);
  opacity: 0;
  transform: scale(0.8) rotateY(10deg);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 25px rgba(138, 0, 196, 0.1);
  animation: shadowFloat 5s ease-in-out infinite, rotateAnimation 8s ease-in-out infinite;
}

.stat-item.animate-in {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
  animation: scaleIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-purple), var(--info));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 2px 8px rgba(138, 0, 196, 0.3));
}

.stat-item:hover .stat-number {
  transform: scale(1.15) rotateX(5deg);
  filter: drop-shadow(0 4px 12px rgba(138, 0, 196, 0.5));
}

.stat-label {
  color: var(--gray-300);
  font-weight: 500;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
  color: var(--white);
  transform: translateY(-2px);
}

/* --- CTA Section --- */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-black), var(--dark-purple), var(--primary-purple));
  background-size: 300% 300%;
  animation: gradientShift 8s ease-in-out infinite;
  color: var(--white);
  text-align: center;
  box-shadow: inset 0 0 100px rgba(138, 0, 196, 0.1);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 12px rgba(138, 0, 196, 0.4);
  animation: fadeInUp 0.8s ease-out;
}

.cta-subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* --- Footer --- */
.footer {
  background: var(--primary-black);
  color: var(--gray-300);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  border-top: 1px solid rgba(138, 0, 196, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-sm);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(138, 0, 196, 0.4);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(138, 0, 196, 0.3);
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--gray-500);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
.hero {
    padding: 120px var(--space-md) 60px;
    min-height: 90vh;
  }
  
  .hero-tagline {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin-bottom: var(--space-lg);
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .services {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    padding: 60px 0;
  }

  .cta {
    padding: 60px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    flex-direction: column;
    align-items: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    min-width: auto;
  }

  .nav.is-active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary-black);
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(138, 0, 196, 0.3);
    animation: fadeInUp 0.3s ease-out;
  }

  .nav.is-active .nav-actions {
    display: none;
  }
}

/* --- Performance and Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes calendly-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes calendly-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Calendar Section Base --- */
.calendar-section {
    padding: 40px 0 80px;
    background: var(--dark-purple, #0D0A14);
    position: relative;
    margin: 0;
}

.calendar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-purple, #8A00C4), var(--info, #3B82F6));
}

/* --- Calendar Wrapper --- */
.calendar-wrapper {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(138, 0, 196, 0.3);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(138, 0, 196, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple, #8A00C4), var(--info, #3B82F6));
    z-index: 1;
}

/* --- Loading State --- */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    color: var(--gray-300, #D1D5DB);
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(138, 0, 196, 0.3);
    border-top: 4px solid var(--primary-purple, #8A00C4);
    border-radius: 50%;
    animation: calendly-spin 1s linear infinite;
    margin-bottom: 24px;
}

.loading-text {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--white, #FFFFFF);
    text-align: center;
}

.loading-subtext {
    font-size: 0.9rem;
    color: var(--gray-400, #9CA3AF);
    text-align: center;
    max-width: 300px;
    line-height: 1.5;
}

/* --- Calendly Widget Styles --- */
.calendly-inline-widget {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100% !important;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.calendly-inline-widget.loaded {
    opacity: 1;
    animation: calendly-fadeIn 0.6s ease-out;
}

/* --- WordPress Specific Overrides --- */
.main-content .calendar-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.main-content .calendar-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Reset any WordPress theme interference */
.calendar-section * {
    box-sizing: border-box;
}

.calendar-section p {
    margin: 0;
}

.calendar-section div {
    position: relative;
}

/* --- Container Adjustments for WordPress --- */
.calendar-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .calendar-section {
        padding: 30px 0 60px;
    }
    
    .calendar-section .container {
        padding: 0 16px;
    }
    
    .loading-container {
        min-height: 600px;
        padding: 20px;
    }
    
    .calendly-inline-widget {
        min-width: 300px !important;
        height: 600px !important;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-subtext {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .calendar-section .container {
        padding: 0 12px;
    }
    
    .calendar-wrapper {
        border-radius: 12px;
    }
    
    .calendly-inline-widget {
        min-width: 280px !important;
        height: 550px !important;
        border-radius: 0 0 12px 12px;
    }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
        border: 4px solid var(--primary-purple, #8A00C4);
    }
    
    .calendly-inline-widget,
    .loading-container {
        transition: none;
    }
}

/* --- Dark Mode Support (if your theme supports it) --- */
@media (prefers-color-scheme: dark) {
    .calendar-section {
        background: var(--dark-purple, #0D0A14);
    }
    
    .calendar-wrapper {
        background: rgba(0, 0, 0, 0.8);
        border-color: rgba(138, 0, 196, 0.4);
    }
}

/* --- High Contrast Mode Support --- */
@media (prefers-contrast: high) {
    .calendar-wrapper {
        border: 2px solid var(--primary-purple, #8A00C4);
        box-shadow: 0 0 0 2px rgba(138, 0, 196, 0.3);
    }
    
    .loading-spinner {
        border-width: 6px;
        border-top-color: var(--white, #FFFFFF);
    }
}

/* --- WordPress Theme Compatibility --- */
/* Override common WordPress theme styles that might interfere */
.calendar-section,
.calendar-section * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Ensure no theme margins interfere */
.calendar-section .container,
.calendar-wrapper,
.calendly-inline-widget {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Fix potential z-index issues */
.calendar-wrapper {
    z-index: 1;
}

.calendar-wrapper::before {
    z-index: 2;
}

/* --- Print Styles --- */
@media print {
    .calendar-section {
        display: none;
    }
}
