/*
 * CrescentSoft - Main Stylesheet
 * Version: 2.0
 * Premium Web Development Agency
 */

/* ===================================
   CSS Variables - Brand System
   =================================== */
:root {
  /* Brand Colors */
  --primary: #00D4FF;
  --secondary: #7C3AED;
  --primary-cyan: #00D4FF;
  --primary-purple: #9C27B0;
  --primary-gradient: linear-gradient(135deg, #00D4FF 0%, #9C27B0 100%);
  --primary-gradient-hover: linear-gradient(135deg, #00B8E6 0%, #8E24AA 100%);


  /* Background Colors */
  --bg-dark: #0A0A1A;
  --bg-dark-secondary: #121225;
  --bg-light: #F8F9FC;
  --bg-white: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.95);

  /* Text Colors */
  --text-dark: #1A1A2E;
  --text-body: #4A4A68;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --text-white: #FFFFFF;

  /* Border Colors */
  --border-light: #E5E7EB;
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --container-max: 1280px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
}

/* ===================================
   Dark Mode Theme
   =================================== */
[data-theme="dark"] {
  /* Background Colors - Dark Mode */
  --bg-light: #0f0f1a;
  --bg-white: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.95);

  /* Text Colors - Dark Mode */
  --text-dark: #F8F9FC;
  --text-body: #B8B8D0;
  --text-muted: #8B8BA3;
  --text-light: #6B6B83;

  /* Border Colors - Dark Mode */
  --border-light: rgba(255, 255, 255, 0.1);

  /* Shadows - Dark Mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-right: 12px;
}

.theme-toggle:hover {
  background: var(--bg-light);
  border-color: var(--primary-cyan);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-body);
  transition: all var(--transition-normal);
}

.theme-toggle:hover svg {
  color: var(--primary-cyan);
}

/* Hide/show icons based on theme */
.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Dark mode specific overrides */
[data-theme="dark"] .navbar:not(.navbar-transparent) {
  background: rgba(10, 10, 26, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .navbar-transparent {
  background: transparent;
  border-bottom-color: transparent;
}

[data-theme="dark"] .navbar.scrolled,
[data-theme="dark"] .navbar-transparent.scrolled {
  background: rgba(10, 10, 26, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .navbar-toggle span {
  background: var(--text-white);
}

[data-theme="dark"] .navbar-dropdown-menu {
  background: #1a1a2e;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .value-card,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .contact-form-container {
  background: #1a1a2e;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .section-badge {
  background: rgba(0, 212, 255, 0.15);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #0f0f1a;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-muted);
}

/* Logo switching for dark mode */
.logo-light {
  display: none;
}

.logo-dark {
  display: block;
}

[data-theme="dark"] .logo-light {
  display: block;
}

[data-theme="dark"] .logo-dark {
  display: none;
}

/* ===================================
   Reset & Base Styles
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--primary-cyan);
  color: var(--text-white);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   Layout & Container
   =================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 40px;
  }
}

.section {
  padding: var(--section-padding) 0;
}

.section-sm {
  padding: 40px 0;
}

.section-lg {
  padding: 120px 0;
}

/* ===================================
   Navigation (FINAL FIX)
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: transparent !important;
  /* ✅ fully transparent */
  backdrop-filter: none;
  /* ❌ remove blur */
  -webkit-backdrop-filter: none;

  border-bottom: none;
  /* ❌ remove line */

  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.9);
  /* ✅ only on scroll */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

/* Transparent Dark Header — for pages with dark hero sections */
.navbar-transparent {
  background: transparent;
  border-bottom-color: transparent;
}

.navbar-transparent .navbar-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-transparent .navbar-link:hover,
.navbar-transparent .navbar-link.active {
  color: #fff;
}

.navbar-transparent .navbar-toggle span {
  background: #fff;
}

/* Show light logo, hide dark logo on transparent navbar */
.navbar-transparent .logo-dark {
  display: none;
}

.navbar-transparent .logo-light {
  display: block;
}

/* When scrolled — solid dark background */
.navbar-transparent.scrolled {
  background: rgba(10, 10, 26, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar-transparent.scrolled .navbar-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-transparent.scrolled .navbar-link:hover,
.navbar-transparent.scrolled .navbar-link.active {
  color: #fff;
}

/* Keep light logo when scrolled too */
.navbar-transparent.scrolled .logo-dark {
  display: none;
}

.navbar-transparent.scrolled .logo-light {
  display: block;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.navbar-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary-purple);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-normal);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.navbar-dropdown {
  position: relative;
}

.navbar-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
}

.navbar-dropdown:hover .navbar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.navbar-dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.navbar-dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-purple);
}

/* Mobile Menu */
.navbar-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition-normal);
}

@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  padding-top: 80px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  height: calc(100vh - 80px);
  overflow-y: auto;
  padding-bottom: 4rem;
}

.mobile-menu-link {
  display: block;
  width: 100%;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu-link:hover {
  color: var(--primary-cyan);
  padding-left: 10px;
}

/* Mobile Menu CTA Button */
.mobile-menu-content .btn.btn-primary {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* Mobile Menu Services Dropdown */
.mobile-menu-dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-menu-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
}

.mobile-menu-dropdown-toggle:hover {
  color: var(--primary-cyan);
}

.mobile-menu-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.mobile-menu-dropdown.active .mobile-menu-dropdown-toggle svg {
  transform: rotate(180deg);
}

.mobile-menu-dropdown-content {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.mobile-menu-dropdown.active .mobile-menu-dropdown-content {
  max-height: 500px;
}

.mobile-menu-dropdown-content .mobile-menu-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-dropdown-content .mobile-menu-link:last-child {
  border-bottom: none;
}

/* Mobile Menu Toggle Animation */
.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
body.mobile-menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 2px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 26, 0.6),
    rgba(10, 10, 26, 0)
  );
  pointer-events: none;
  z-index: 1;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #0A0A1A 0%, #1A1A3A 50%, #2A1A4A 100%);
}

/* Animated Gradient Overlay */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(156, 39, 176, 0.15) 0%, transparent 50%);
  animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Subtle Floating Shape */
.hero-shape {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: floatShape 20s ease-in-out infinite;
  z-index: -1;
}

.hero-shape-1 {
  top: 10%;
  right: 5%;
  opacity: 0.5;
}

.hero-shape-2 {
  bottom: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  border-color: rgba(156, 39, 176, 0.2);
  animation-delay: -5s;
  animation-direction: reverse;
}

@keyframes floatShape {

  0%,
  100% {
    transform: rotate(0deg) translate(0, 0);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    transform: rotate(90deg) translate(10px, 10px);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }

  50% {
    transform: rotate(180deg) translate(0, 20px);
    border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
  }

  75% {
    transform: rotate(270deg) translate(-10px, 10px);
    border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-cyan);
}

.hero-title {
  color: var(--text-white);
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-title-highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

@media (min-width: 1024px) {
  .hero-description {
    margin-left: 0;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.hero-stat {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-stat {
    text-align: left;
  }
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-white);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Hero Image / Visual */
.hero-visual {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* Glassmorphism Card Overlay */
.hero-glass-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-glass-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glass-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text-white);
}

.hero-glass-text {
  color: var(--text-white);
}

.hero-glass-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-glass-label {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===================================
   Trusted By / Logos Section
   =================================== */
.trusted-section {
  padding: 60px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trusted-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--transition-normal);
}

.trusted-logos:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.trusted-logo {
  height: 32px;
  width: auto;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(156, 39, 176, 0.1);
  color: var(--primary-purple);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-normal);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--primary-gradient);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-purple);
  transition: color var(--transition-normal);
}

.service-card:hover .service-icon svg {
  color: var(--text-white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-description {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-purple);
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-section {
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.why-content h2 {
  margin-bottom: 16px;
}

.why-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.why-features {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .why-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-feature {
  display: flex;
  gap: 16px;
}

.why-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text-white);
}

.why-feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.why-feature-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===================================
   Process Section
   =================================== */
.process-section {
  background: var(--bg-white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  position: relative;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
  }
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 80px;
  height: 80px;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.process-step:hover .process-number {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
  box-shadow: var(--shadow-glow);
}

.process-step.active .process-number {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--text-white);
}

.process-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===================================
   Portfolio Section
   =================================== */
.portfolio-section {
  background: var(--bg-light);
}

.portfolio-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-gradient);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  width: fit-content;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-section {
  background: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.testimonial-quote {
  margin-bottom: 24px;
}

.testimonial-quote svg {
  width: 32px;
  height: 32px;
  color: var(--primary-purple);
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(156, 39, 176, 0.15) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 36px;
}

.footer-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-purple);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.footer-social-link:hover {
  background: var(--primary-gradient);
  color: var(--text-white);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal-link {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-legal-link:hover {
  color: var(--primary-purple);
}

/* ===================================
   Scroll Animations
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay for children */
.stagger-children>*:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger-children>*:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger-children>*:nth-child(5) {
  transition-delay: 0.4s;
}

.stagger-children>*:nth-child(6) {
  transition-delay: 0.5s;
}

/* ===================================
   Utilities
   =================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}

.gap-lg {
  gap: 24px;
}

@media (max-width: 639px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ===================================
   Mobile Menu Overlay
   =================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 26, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.mobile-menu.active .mobile-menu-content {
  transform: translateY(0);
}

.mobile-menu-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--primary-cyan);
}

/* Mobile Toggle Animation */
.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}

/* ===================================
   Notification Toast
   =================================== */
.notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  opacity: 0;
  transition: all var(--transition-normal);
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notification-success {
  border-left: 4px solid #10B981;
}

.notification-error {
  border-left: 4px solid #EF4444;
}

.notification-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.notification-close:hover {
  color: var(--text-white);
}

/* ===================================
   Loading Spinner
   =================================== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   Animated Success Modal
   =================================== */
.success-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.success-modal {
  position: relative;
  background: var(--bg-white);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  transform: scale(0.8) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

[data-theme="dark"] .success-modal {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-dark);
}

.success-modal-overlay.show .success-modal {
  transform: scale(1) translateY(0);
}

/* Confetti Container */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -20px;
  left: var(--x);
  animation: confetti-fall var(--duration) var(--delay) ease-out forwards;
  opacity: 0;
}

.confetti.circle {
  border-radius: 50%;
}

.confetti.square {
  border-radius: 2px;
}

.confetti.triangle {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid currentColor;
  background: transparent !important;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(400px) rotate(var(--rotation));
  }
}

/* Animated Checkmark */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.checkmark-svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
  stroke: #10B981;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: checkmark-circle 0.6s ease-in-out forwards;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmark-check 0.4s 0.4s ease-in-out forwards;
}

@keyframes checkmark-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkmark-check {
  to {
    stroke-dashoffset: 0;
  }
}

/* Modal Content */
.success-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #10B981, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-message {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.success-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.success-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.success-close-btn:active {
  transform: translateY(0);
}

/* Pulse ring effect behind checkmark */
.success-checkmark::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ===================================
   Scroll Reveal Animations
   =================================== */

/* Base reveal state - hidden */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  transition: opacity 0.8s ease,
    filter 0.8s ease,
    transform 0.8s ease;
}

.reveal-blur.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Stagger children animations */
.stagger-children>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.revealed>*:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-children.revealed>*:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-children.revealed>*:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-children.revealed>*:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-children.revealed>*:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-children.revealed>*:nth-child(6) {
  transition-delay: 0.6s;
}

.stagger-children.revealed>*:nth-child(7) {
  transition-delay: 0.7s;
}

.stagger-children.revealed>*:nth-child(8) {
  transition-delay: 0.8s;
}

.stagger-children.revealed>*:nth-child(9) {
  transition-delay: 0.9s;
}

.stagger-children.revealed>* {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Counter Animation
   =================================== */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.counter-wrapper {
  position: relative;
  overflow: hidden;
}

/* ===================================
   Enhanced Card Hover Effects
   =================================== */
.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(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 212, 255, 0.1);
}

[data-theme="dark"] .card-hover:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 212, 255, 0.15);
}

/* Card with modern border + elevation hover (2025 style) */
.card-glow {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  background-clip: padding-box;
}

/* Gradient border on hover using pseudo-element */
.card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Light mode hover */
.card-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card-glow:hover::before {
  opacity: 1;
}

/* Icon brightens on hover */
.card-glow:hover .service-icon {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Dark mode hover */
[data-theme="dark"] .card-glow:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(0, 212, 255, 0.08);
}

/* 3D Tilt effect (Enhanced on hover) */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-tilt:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

/* ===================================
   Enhanced Button Effects
   =================================== */
.btn-magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.btn-shimmer:hover::after {
  left: 100%;
}

/* Ripple effect on click */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===================================
   Image Hover Effects
   =================================== */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom:hover img {
  transform: scale(1.1);
}

.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal.revealed::after {
  transform: translateX(100%);
}

/* ===================================
   Link Underline Animation
   =================================== */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* ===================================
   Accessibility: Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-blur,
  .stagger-children>*,
  .card-hover,
  .card-glow,
  .card-tilt,
  .btn-magnetic,
  .btn-shimmer::after,
  .img-zoom img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* ===================================
   Phase 2: Parallax Effects
   =================================== */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.parallax-slow {
  --parallax-speed: 0.3;
}

.parallax-medium {
  --parallax-speed: 0.5;
}

.parallax-fast {
  --parallax-speed: 0.7;
}

/* ===================================
   Floating Elements Animation
   =================================== */
.float {
  animation: float 6s ease-in-out infinite;
}

.float-slow {
  animation: float 8s ease-in-out infinite;
}

.float-fast {
  animation: float 4s ease-in-out infinite;
}

.float-delay-1 {
  animation-delay: -2s;
}

.float-delay-2 {
  animation-delay: -4s;
}

.float-delay-3 {
  animation-delay: -6s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}

/* Horizontal float */
.float-x {
  animation: float-horizontal 10s ease-in-out infinite;
}

@keyframes float-horizontal {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(20px);
  }
}

/* Pulse float - combines scale and movement */
.float-pulse {
  animation: float-pulse 4s ease-in-out infinite;
}

@keyframes float-pulse {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-15px) scale(1.05);
    opacity: 1;
  }
}

/* Rotating float */
.float-rotate {
  animation: float-rotate 20s linear infinite;
}

@keyframes float-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   Decorative Shapes for Parallax
   =================================== */
.shape-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.1;
  filter: blur(40px);
}

.shape-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.shape-mesh {
  position: absolute;
  background:
    radial-gradient(at 40% 20%, rgba(0, 212, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(156, 39, 176, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(0, 212, 255, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(156, 39, 176, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(0, 212, 255, 0.1) 0px, transparent 50%);
  pointer-events: none;
}

/* ===================================
   Hero Enhanced Floating Shapes
   =================================== */
.hero-shape {
  animation: float 8s ease-in-out infinite;
}

.hero-shape-1 {
  animation-delay: 0s;
}

.hero-shape-2 {
  animation-delay: -4s;
}

/* Gradient orb */
.gradient-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 60%);
  filter: blur(60px);
  animation: orb-float 12s ease-in-out infinite;
  pointer-events: none;
}

.gradient-orb-purple {
  background: radial-gradient(circle, rgba(156, 39, 176, 0.2) 0%, transparent 60%);
  animation-delay: -6s;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -20px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 30px) scale(1.05);
  }
}

/* ===================================
   Section Background Animations
   =================================== */
.bg-animated {
  position: relative;
}

.bg-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(156, 39, 176, 0.08) 0%, transparent 50%);
  animation: bg-shift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes bg-shift {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* ===================================
   Phase 3: Text Split Animation
   =================================== */
.text-split {
  display: inline-block;
}

.text-split .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: char-reveal 0.6s forwards;
}

@keyframes char-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Text gradient wave animation */
.text-gradient-wave {
  background: linear-gradient(90deg,
      var(--primary-cyan),
      var(--primary-purple),
      var(--primary-cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-wave 3s ease infinite;
}

@keyframes gradient-wave {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

/* Typing cursor effect */
.text-typing::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--primary-cyan);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ===================================
   3D Card Tilt (Dynamic)
   =================================== */
.card-tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  will-change: transform;
}

.card-tilt-3d>* {
  transform: translateZ(20px);
}

/* ===================================
   Magnetic Button Enhancement
   =================================== */
.btn-magnetic {
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ===================================
   Glitch Text Effect (Optional)
   =================================== */
.text-glitch {
  position: relative;
}

.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.text-glitch::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: var(--primary-cyan);
  z-index: -1;
}

.text-glitch::after {
  animation: glitch-2 3s infinite linear alternate-reverse;
  color: var(--primary-purple);
  z-index: -2;
}

@keyframes glitch-1 {

  0%,
  100% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-2 {

  0%,
  100% {
    transform: translate(0);
  }

  25% {
    transform: translate(2px, -2px);
  }

  50% {
    transform: translate(-2px, 2px);
  }

  75% {
    transform: translate(-2px, -2px);
  }
}

/* ===================================
   Phase 4: Loading Preloader
   =================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  animation: preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--primary-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preloader-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes preloader-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ===================================
   Smooth Scroll Enhancement
   =================================== */
html {
  scroll-behavior: smooth;
}

html.smooth-scroll {
  scroll-behavior: smooth;
}

/* Scroll snap for full-page sections (optional) */
.scroll-snap-container {
  scroll-snap-type: y proximity;
}

.scroll-snap-section {
  scroll-snap-align: start;
}

/* ===================================
   Image Lazy Load with Blur
   =================================== */
.lazy-image {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.02);
  transition: opacity 0.6s ease,
    filter 0.6s ease,
    transform 0.6s ease;
}

.lazy-image.loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Skeleton loading placeholder */
.skeleton {
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.06) 25%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.06) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.06) 25%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===================================
   Scroll Progress Indicator
   =================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===================================
   Back to Top Button (Enhanced)
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* ===================================
   FIX: Optimize Portfolio Image Rendering
   =================================== */
.portfolio-item img {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  /* Chrome/Edge */
  image-rendering: crispedges;
  /* Firefox */
}

/* Ensure images don't get blurry during scale */
.portfolio-item:hover img {
  transform: scale(1.05) translateZ(0);
}

/* ===================================
   Fix: Footer Alignment (Mobile & Desktop)
   =================================== */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding-bottom: 24px;
  }

  .footer-legal {
    justify-content: center;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
  }
}

/* Hide Navbar on Scroll Down */
.navbar.nav-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease-in-out !important;
}