/* ============================================================
   IT Agency - Premium Website Template
   Version: 1.0.0
   Author: Developer
   Description: Modern IT Agency & SaaS Consulting Template
   ============================================================ */

/* ============================================================
   TABLE OF CONTENTS
   ============================================================
   1. CSS Variables & Theme
   2. Reset & Base Styles
   3. Typography
   4. Utility Classes
   5. Header & Navigation
   6. Hero Section
   7. Clients Logo Slider
   8. About Section
   9. Services Section
   10. Why Choose Us Section
   11. Process / How We Work
   12. Stats Counter
   13. Testimonials
   14. FAQ Accordion
   15. Call to Action
   16. Portfolio
   17. Pricing
   18. Blog
   19. Contact
   20. Footer
   21. 404 Page
   22. Page Headers (Inner Pages)
   23. Back to Top Button
   24. Scroll Reveal Animations
   25. Media Queries
   ============================================================ */

/* ============================================================
   1. CSS Variables & Theme
   ============================================================ */
:root {
  /* Primary Colors */
  --primary: #4F46E5;
  --primary-light: #818CF8;
  --primary-dark: #3730A3;
  --primary-rgb: 79, 70, 229;

  /* Secondary Colors */
  --secondary: #0EA5E9;
  --secondary-light: #38BDF8;
  --secondary-dark: #0284C7;

  /* Accent */
  --accent: #F59E0B;
  --accent-light: #FBBF24;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-dark: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  --gradient-hero: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(14,165,233,0.08) 100%);

  /* Backgrounds */
  --bg-body: #FFFFFF;
  --bg-section: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-footer: #0F172A;
  --bg-glass: rgba(255, 255, 255, 0.7);

  /* Text Colors */
  --text-heading: #0F172A;
  --text-body: #475569;
  --text-muted: #94A3B8;
  --text-white: #FFFFFF;
  --text-on-primary: #FFFFFF;

  /* Borders */
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 8px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.1);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 0 20px;

  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-top: 500;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-body: #0B1121;
  --bg-section: #111827;
  --bg-card: #1E293B;
  --bg-card-hover: #334155;
  --bg-header: rgba(11, 17, 33, 0.95);
  --bg-footer: #030712;
  --bg-glass: rgba(30, 41, 59, 0.8);

  --text-heading: #F1F5F9;
  --text-body: #CBD5E1;
  --text-muted: #64748B;

  --border-color: #1E293B;
  --border-light: #1E293B;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15);
  --shadow-card-hover: 0 4px 8px rgba(0,0,0,0.25), 0 16px 40px rgba(0,0,0,0.2);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);

  --gradient-hero: linear-gradient(135deg, rgba(79,70,229,0.15) 0%, rgba(14,165,233,0.1) 100%);
}

/* ============================================================
   2. Reset & Base Styles
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-body);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

::selection {
  background: var(--primary);
  color: var(--text-white);
}

/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p {
  margin-bottom: 1rem;
  color: var(--text-body);
}

/* ============================================================
   4. Utility Classes
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--bg-section);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.45);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--text-white);
  color: var(--primary);
  border-color: var(--text-white);
}

.btn-white:hover {
  background: transparent;
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--fs-lg);
}

/* Card Base */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* Text Gradient */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ============================================================
   5. Header & Navigation
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-modal);
  transition: var(--transition);
  padding: 20px 0;
}

/* Non-scrolled header on dark-hero pages: force white text over dark page-header backgrounds */
.dark-hero .header:not(.scrolled) .logo {
  color: #fff;
}

.dark-hero .header:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,0.85);
}

.dark-hero .header:not(.scrolled) .nav-links a:hover,
.dark-hero .header:not(.scrolled) .nav-links a.active {
  color: #fff;
}

.dark-hero .header:not(.scrolled) .theme-toggle {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.15);
}

.dark-hero .header:not(.scrolled) .menu-toggle span {
  background: #fff;
}

.dark-hero .header:not(.scrolled) .dropdown-arrow {
  border-color: rgba(255,255,255,0.7);
}

.dark-hero .header:not(.scrolled) .dropdown-menu {
  background: #1a1d2e;
  border-color: rgba(255,255,255,0.1);
}

.dark-hero .header:not(.scrolled) .dropdown-menu a {
  color: rgba(255,255,255,0.75);
}

.dark-hero .header:not(.scrolled) .dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--primary-light);
}

.header.scrolled {
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--text-heading);
}

.logo:hover {
  color: var(--text-heading);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: var(--fs-lg);
}

/* Navigation */
.header nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::before {
  display: none;
}

.dropdown-arrow {
  border: solid var(--text-body);
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(45deg);
  transition: var(--transition);
  margin-top: -2px;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(-135deg);
  border-color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: var(--fs-sm);
  color: var(--text-body);
}

.dropdown-menu a:hover {
  background: var(--bg-section);
  color: var(--primary);
}

.dropdown-menu a::after {
  display: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}

.theme-toggle:hover {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.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;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   6. Hero Section
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: var(--fs-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.hero-stat h3 {
  font-size: var(--fs-3xl);
  color: var(--primary);
  margin-bottom: 4px;
}

.hero-stat p {
  font-size: var(--fs-sm);
  margin: 0;
}

/* Hero Image */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-main {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Floating cards on hero image */
.hero-float-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-glass);
  animation: float 6s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 15%;
  right: -20px;
  animation-delay: 2s;
}

.hero-float-card .card-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  margin-bottom: 8px;
}

.hero-float-card h4 {
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

.hero-float-card p {
  font-size: var(--fs-xs);
  margin: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ============================================================
   7. Clients Logo Slider
   ============================================================ */
.clients-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-section);
}

.clients-slider {
  overflow: hidden;
  position: relative;
}

.clients-slider::before,
.clients-slider::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 100px;
  z-index: 2;
}

.clients-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-section), transparent);
}

.clients-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-section), transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

.client-logo {
  flex-shrink: 0;
  height: 40px;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: var(--transition);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   8. About Section
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.about-experience {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient-primary);
  color: white;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.about-experience h3 {
  font-size: var(--fs-4xl);
  color: white;
  margin: 0;
  line-height: 1;
}

.about-experience p {
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-sm);
  margin: 0;
}

.about-content .section-label {
  text-align: left;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content > p {
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-heading);
}

.about-feature .check {
  width: 24px;
  height: 24px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
}

/* ============================================================
   9. Services Section
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: white;
}

.service-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-card .card-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card .card-link::after {
  content: '→';
  transition: var(--transition);
}

.service-card:hover .card-link::after {
  transform: translateX(4px);
}

/* ============================================================
   10. Why Choose Us Section
   ============================================================ */
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-choose-content .section-label {
  text-align: left;
}

.why-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.why-feature-item {
  display: flex;
  gap: 20px;
}

.why-feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.why-feature-text h4 {
  margin-bottom: 6px;
}

.why-feature-text p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

.why-choose-image {
  position: relative;
}

.why-choose-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* ============================================================
   11. Process / How We Work
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 24px;
  transition: var(--transition);
  position: relative;
}

.process-step:hover .process-number {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
}

.process-step h3 {
  font-size: var(--fs-lg);
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ============================================================
   12. Stats Counter
   ============================================================ */
.stats-section {
  background: var(--gradient-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-icon {
  font-size: 36px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.stat-number {
  font-size: var(--fs-5xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   13. Testimonials
   ============================================================ */
.testimonials-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-item {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 120px;
  font-family: Georgia, serif;
  color: rgba(var(--primary-rgb), 0.08);
  position: absolute;
  top: -10px;
  left: 30px;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 18px;
}

.testimonial-text {
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: var(--fs-base);
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}

/* Testimonial Controls */
.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-heading);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

/* ============================================================
   14. FAQ Accordion
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.faq-content .section-label {
  text-align: left;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-heading);
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   15. Call to Action
   ============================================================ */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: white;
  font-size: var(--fs-4xl);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-lg);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   16. Portfolio
   ============================================================ */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-body);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay h3 {
  color: white;
  font-size: var(--fs-xl);
  margin-bottom: 4px;
}

.portfolio-overlay span {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
}

.portfolio-item.hidden {
  display: none;
}

/* ============================================================
   17. Pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 6px 24px;
  border-radius: 50px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
}

.pricing-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card .price span {
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .price-desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: var(--fs-sm);
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li .check-icon {
  color: #10B981;
  font-size: 16px;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}

/* ============================================================
   18. Blog
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.blog-card-content {
  padding: 28px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-content h3 {
  font-size: var(--fs-lg);
  margin-bottom: 12px;
  line-height: 1.5;
}

.blog-card-content h3 a {
  color: var(--text-heading);
}

.blog-card-content h3 a:hover {
  color: var(--primary);
}

.blog-card-content p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 20px;
}

.read-more {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more::after {
  content: '→';
  transition: var(--transition);
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* Blog Details */
.blog-details-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-details-content .blog-featured-image {
  width: 100%;
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
  max-height: 450px;
  object-fit: cover;
}

.blog-details-content .blog-meta {
  margin-bottom: 24px;
}

.blog-details-content h2 {
  margin-bottom: 16px;
}

.blog-details-content p {
  font-size: var(--fs-lg);
  line-height: 1.9;
  margin-bottom: 20px;
}

.blog-details-content blockquote {
  background: var(--bg-section);
  border-left: 4px solid var(--primary);
  padding: 24px 32px;
  margin: 32px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--text-heading);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.blog-tag {
  padding: 6px 16px;
  background: var(--bg-section);
  border-radius: 50px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
}

.blog-tag:hover {
  background: var(--primary);
  color: white;
}

/* Blog Sidebar */
.blog-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: var(--fs-lg);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-search {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-section);
  color: var(--text-heading);
  transition: var(--transition);
}

.sidebar-search input:focus {
  border-color: var(--primary);
}

.sidebar-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-categories li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-categories li:last-child {
  border-bottom: none;
}

.sidebar-categories a {
  color: var(--text-body);
  font-size: var(--fs-sm);
}

.sidebar-categories a:hover {
  color: var(--primary);
}

.sidebar-categories span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.sidebar-recent-post {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-recent-post:last-child {
  border-bottom: none;
}

.sidebar-recent-post img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sidebar-recent-post h4 {
  font-size: var(--fs-sm);
  margin-bottom: 4px;
  line-height: 1.4;
}

.sidebar-recent-post h4 a {
  color: var(--text-heading);
}

.sidebar-recent-post h4 a:hover {
  color: var(--primary);
}

.sidebar-recent-post span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   19. Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: var(--fs-base);
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

.contact-info-text a {
  color: var(--text-muted);
}

.contact-info-text a:hover {
  color: var(--primary);
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-body);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  color: var(--text-heading);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #EF4444;
  font-size: var(--fs-xs);
  margin-top: 6px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #EF4444;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  background: #10B981;
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 16px;
  display: none;
}

.form-success.show {
  display: block;
}

/* Map */
.contact-map {
  margin-top: 60px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ============================================================
   20. Footer
   ============================================================ */
.footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .logo {
  color: white;
  margin-bottom: 20px;
}

.footer-about .logo-icon {
  background: var(--gradient-primary);
}

.footer-about p {
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
  margin-bottom: 24px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer h4 {
  color: white;
  font-size: var(--fs-lg);
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

/* Footer Newsletter */
.footer-newsletter p {
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: white;
  font-size: var(--fs-sm);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.3);
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form button {
  padding: 14px 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.footer-contact-info span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
}

/* Footer Bottom */
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-sm);
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================================
   21. 404 Page
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  text-align: center;
}

.error-content h1 {
  font-size: 150px;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h2 {
  font-size: var(--fs-3xl);
  margin-bottom: 16px;
}

.error-content p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ============================================================
   22. Page Headers (Inner Pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, #1a1145 0%, #0c1222 40%, #111d3a 70%, #0f172a 100%);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.15);
}

/* Grid pattern overlay */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* Gradient glow - top right */
.page-header::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0.05) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Additional glow - bottom left */
.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header-decor {
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Floating shapes */
.page-header-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-header-shapes span {
  position: absolute;
  display: block;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 4px;
}

.page-header-shapes span:nth-child(1) {
  width: 60px;
  height: 60px;
  top: 25%;
  left: 8%;
  transform: rotate(25deg);
  animation: float-shape 8s ease-in-out infinite;
}

.page-header-shapes span:nth-child(2) {
  width: 30px;
  height: 30px;
  top: 55%;
  right: 12%;
  transform: rotate(-15deg);
  border-radius: 50%;
  animation: float-shape 6s ease-in-out infinite 1s;
}

.page-header-shapes span:nth-child(3) {
  width: 45px;
  height: 45px;
  bottom: 20%;
  left: 20%;
  transform: rotate(45deg);
  animation: float-shape 10s ease-in-out infinite 2s;
}

.page-header-shapes span:nth-child(4) {
  width: 20px;
  height: 20px;
  top: 35%;
  right: 25%;
  transform: rotate(10deg);
  border-radius: 50%;
  border-color: rgba(124, 58, 237, 0.15);
  animation: float-shape 7s ease-in-out infinite 0.5s;
}

@keyframes float-shape {
  0%, 100% { transform: translateY(0) rotate(25deg); opacity: 0.5; }
  50% { transform: translateY(-15px) rotate(40deg); opacity: 1; }
}

/* Glowing line at bottom */
.page-header-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  z-index: 1;
}

.page-header h1 {
  color: white;
  font-size: var(--fs-5xl);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.05);
  display: inline-flex;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.page-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  color: rgba(255,255,255,0.3);
  font-size: 10px;
}

/* ============================================================
   23. Back to Top Button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
}

/* ============================================================
   24. Scroll Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-group.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-group.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-group.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-group.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-group.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-group.revealed > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-group.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Service Details */
.service-details-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

.service-details-content img {
  width: 100%;
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
}

.service-details-content h2 {
  margin-bottom: 16px;
}

.service-details-content p {
  font-size: var(--fs-lg);
  line-height: 1.9;
  margin-bottom: 20px;
}

.service-details-content ul {
  margin: 20px 0;
  padding-left: 0;
}

.service-details-content ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: var(--fs-base);
  color: var(--text-body);
}

.service-details-content ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

/* Service Sidebar */
.service-sidebar .sidebar-widget {
  margin-bottom: 24px;
}

.service-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  color: var(--text-body);
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.service-list li a:hover,
.service-list li a.active {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}

.service-list li a::after {
  content: '→';
}

/* Project Details */
.project-details-hero img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
}

.project-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.project-info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-info-item h4 {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.project-info-item p {
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.project-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  height: 300px;
  object-fit: cover;
}

/* About Page Extra */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--border-color);
}

.team-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 4px;
}

.team-card p {
  color: var(--primary);
  font-size: var(--fs-sm);
  margin-bottom: 16px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-card);
  transition: var(--transition);
}

.pagination a:hover,
.pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================================
   25. Media Queries
   ============================================================ */

/* Large screens */
@media (max-width: 1280px) {
  .container {
    max-width: 1100px;
  }
}

/* Laptop */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }

  .hero h1 {
    font-size: var(--fs-4xl);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
    z-index: var(--z-modal);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    overflow-y: auto;
    align-items: flex-start;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: var(--fs-base);
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 16px;
    display: none;
    min-width: auto;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-dropdown .dropdown-arrow {
    border-color: var(--text-body);
    margin-left: auto;
    transition: var(--transition);
  }

  .nav-dropdown.open > a .dropdown-arrow {
    transform: rotate(-135deg);
    border-color: var(--primary);
  }

  .nav-dropdown > a {
    width: 100%;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  /* Reset dark-hero dropdown styles for mobile panel (panel has its own bg) */
  .dark-hero .header:not(.scrolled) .nav-links .dropdown-menu {
    background: transparent;
    border-color: transparent;
  }

  .dark-hero .header:not(.scrolled) .nav-links .dropdown-menu a {
    color: var(--text-body);
  }

  .dark-hero .header:not(.scrolled) .nav-links .dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
  }

  /* Reset dark-hero forced white for mobile slide-out panel */
  .dark-hero .header:not(.scrolled) .nav-links a {
    color: var(--text-body);
  }

  .dark-hero .header:not(.scrolled) .nav-links a:hover,
  .dark-hero .header:not(.scrolled) .nav-links a.active {
    color: var(--primary);
  }

  .dark-hero .header:not(.scrolled) .nav-links .dropdown-arrow {
    border-color: var(--text-body);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .about-grid,
  .why-choose-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid,
  .blog-grid,
  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .service-details-grid,
  .blog-with-sidebar {
    grid-template-columns: 1fr;
  }

  .project-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --fs-5xl: 2.5rem;
    --fs-6xl: 3rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.5rem;
  }

  .header-cta {
    display: none;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-experience {
    position: static;
    display: inline-block;
    margin-top: 20px;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .testimonial-card {
    padding: 32px 24px;
  }

  .cta-content h2 {
    font-size: var(--fs-3xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .page-header {
    padding: 140px 0 60px;
  }

  .page-header h1 {
    font-size: var(--fs-3xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .blog-with-sidebar {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-info-list {
    grid-template-columns: 1fr;
  }

  .error-content h1 {
    font-size: 100px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --fs-5xl: 2rem;
    --fs-6xl: 2.25rem;
    --fs-4xl: 1.75rem;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 40px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .services-grid,
  .blog-grid,
  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .portfolio-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: var(--fs-xs);
  }

  .error-content h1 {
    font-size: 80px;
  }

  .testimonial-card::before {
    font-size: 80px;
  }
}

/* Print styles */
@media print {
  .header,
  .back-to-top,
  .footer { display: none; }
  
  body { color: #000; background: #fff; }
  
  .section { padding: 20px 0; }
}
