/* ========================================
   CSS VARIABLES - OPTIMIZED VERSION
   ======================================== */

:root {
  /* ===== PRIMARY COLORS ===== */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-dark: #1e40af;

  /* ===== SECONDARY COLORS ===== */
  --secondary: #475569;
  --secondary-hover: #334155;
  --secondary-light: #64748b;
  --secondary-dark: #334155;

  /* ===== ACCENT COLORS ===== */
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-light: #d1fae5;
  --accent-dark: #047857;

  /* ===== NEUTRAL COLORS ===== */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* ===== TEXT COLORS ===== */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* ===== BACKGROUND COLORS ===== */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-accent: #dbeafe;

  /* ===== BORDER COLORS ===== */
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  --border-dark: #94a3b8;

  /* ===== SPACING ===== */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 5rem;      /* 80px */
  --space-5xl: 6rem;      /* 96px */

  /* ===== BORDER RADIUS ===== */
  --radius-sm: 0.125rem;  /* 2px */
  --radius: 0.25rem;      /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;  /* Fully rounded */

  /* ===== TYPOGRAPHY ===== */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* ===== FONT SIZES ===== */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  /* ===== FONT WEIGHTS ===== */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* ===== LINE HEIGHTS ===== */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* ===== SHADOWS ===== */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* ===== Z-INDEX ===== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}


/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default margins and paddings */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* HTML and Body base styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Remove default styling */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dd, ol, ul,
figure {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* Form elements */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: var(--leading-normal);
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  border: none;
  cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/* Remove default input styling */
input,
textarea {
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Remove default button styling */
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Utility classes for text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


/* ========================================
   TYPOGRAPHY STYLES
   ======================================== */

/* Base typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}

/* Responsive typography */
@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  h3 {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-6xl);
  }
}

/* Paragraphs */
p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Lists */
ul, ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Nested lists */
ul ul, ol ol, ul ol, ol ul {
  margin-bottom: 0;
  margin-top: var(--space-sm);
}

/* Blockquotes */
blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-tertiary);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
}

blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

blockquote::before {
  content: '"';
  font-size: var(--text-4xl);
  color: var(--primary);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  opacity: 0.3;
  font-family: var(--font-serif);
}

/* Code */
code {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-weight: var(--font-medium);
}

pre {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Text utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-inverse { color: var(--text-inverse); }

.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

/* Special text effects */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shadow {
  text-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
}


/* ========================================
   BUTTON COMPONENTS
   ======================================== */

/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Button focus styles */
.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Button hover effects */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

.btn-xl {
  padding: var(--space-xl) var(--space-3xl);
  font-size: var(--text-xl);
}

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-color: var(--primary-dark);
}

/* Secondary button */
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--white);
  border-color: var(--secondary-dark);
}

/* Accent button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--white);
  border-color: var(--accent-dark);
}

/* Outline buttons */
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-accent:hover {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Ghost buttons */
.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* Button with icons */
.btn-icon {
  gap: var(--space-sm);
}

.btn-icon-only {
  padding: var(--space-md);
  width: auto;
  aspect-ratio: 1;
}

/* Loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  width: 1em;
  height: 1em;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-left: var(--space-sm);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Disabled state */
.btn:disabled,
.btn[disabled] {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

/* Special effects */
.btn-glow {
  box-shadow: 0 0 20px rgb(37 99 235 / 0.3);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgb(37 99 235 / 0.5);
}

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Button groups */
.btn-group {
  display: inline-flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.btn-group .btn {
  border-radius: 0;
  border-right: 1px solid transparent;
}

.btn-group .btn:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border-right: none;
}

.btn-group .btn:only-child {
  border-radius: var(--radius-lg);
  border-right: none;
}

/* Responsive buttons */
@media (max-width: 768px) {
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }

  .btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
  }
}


/* ========================================
   CARD COMPONENTS
   ======================================== */

/* Base card styles */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Card hover effects */
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

/* Card sizes */
.card-sm {
  padding: var(--space-md);
}

.card-lg {
  padding: var(--space-xl);
}

.card-xl {
  padding: var(--space-2xl);
}

/* Card variants */
.card-border {
  border-width: 2px;
}

.card-shadow {
  box-shadow: var(--shadow-lg);
}

.card-shadow-lg {
  box-shadow: var(--shadow-xl);
}

.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Card with gradient */
.card-gradient {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

/* Card with accent border */
.card-accent {
  position: relative;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Card content */
.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  flex: 1;
  margin-bottom: var(--space-lg);
}

.card-footer {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.card-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.card-text:last-child {
  margin-bottom: 0;
}

/* Card with image */
.card-image {
  position: relative;
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-lg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}

.card-image-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-sm);
}

.card-image-text {
  font-size: var(--text-sm);
  opacity: 0.9;
}

/* Service cards */
.service-card {
  text-align: center;
}

.service-card .card-icon {
  font-size: var(--text-4xl);
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.service-card .card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.service-card .service-description {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.service-card .service-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-lg);
}

.service-card .service-features li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.service-card .service-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  margin-right: var(--space-sm);
}

.service-card .service-price {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  text-align: center;
}

.service-card .price-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.service-card .price-value {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--primary);
}

/* Feature cards */
.feature-card {
  text-align: center;
  padding: var(--space-xl);
}

.feature-card .card-icon {
  font-size: var(--text-5xl);
  color: var(--primary);
  margin-bottom: var(--space-lg);
  display: inline-block;
  padding: var(--space-lg);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.feature-card .card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.feature-card .card-text {
  font-size: var(--text-base);
  color: var(--text-muted);
}

/* Stats cards */
.stat-card {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
}

.stat-card .stat-number {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: var(--white);
  margin-bottom: var(--space-md);
  display: block;
}

.stat-card .stat-label {
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Testimonial cards */
.testimonial-card {
  padding: var(--space-xl);
  text-align: left;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: var(--text-5xl);
  color: var(--primary);
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-card .testimonial-content {
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
}

.testimonial-card .testimonial-content p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card .author-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--primary);
  flex-shrink: 0;
}

.testimonial-card .author-info h4 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.testimonial-card .author-position {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.testimonial-card .testimonial-rating {
  color: #fbbf24;
  font-size: var(--text-xl);
  margin-top: var(--space-md);
}

/* Process cards */
.process-card {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
}

.process-card .step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.process-card .card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.process-card .card-text {
  color: var(--text-muted);
  font-size: var(--text-base);
}

/* Team cards */
.team-card {
  text-align: center;
  padding: var(--space-xl);
}

.team-card .team-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--bg-tertiary), var(--primary-light));
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  color: var(--primary);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.team-card .card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.team-card .team-position {
  color: var(--primary);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
}

.team-card .card-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Portfolio cards */
.portfolio-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.portfolio-card .portfolio-image {
  width: 100%;
  height: 250px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--primary);
}

.portfolio-card .portfolio-content {
  padding: var(--space-lg);
}

.portfolio-card .card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.portfolio-card .portfolio-category {
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-md);
}

.portfolio-card .card-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Pricing cards */
.pricing-card {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.pricing-card .pricing-header {
  margin-bottom: var(--space-xl);
}

.pricing-card .card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.pricing-card .price {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.pricing-card .price-period {
  color: var(--text-muted);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}

.pricing-card .pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
  text-align: left;
}

.pricing-card .pricing-features li {
  padding: var(--space-md) 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
  border-bottom: 1px solid var(--border-light);
}

.pricing-card .pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  margin-right: var(--space-md);
}

.pricing-card .pricing-features li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Interactive card states */
.card-interactive {
  cursor: pointer;
  transition: all var(--transition-normal);
}

.card-interactive:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Card animations */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-animated {
  animation: cardFadeIn 0.6s ease-out forwards;
}

/* Responsive cards */
@media (max-width: 768px) {
  .card {
    padding: var(--space-md);
  }

  .card-lg {
    padding: var(--space-lg);
  }

  .feature-card .card-icon {
    font-size: var(--text-4xl);
    padding: var(--space-md);
  }

  .team-card .team-avatar {
    width: 100px;
    height: 100px;
    font-size: var(--text-3xl);
  }

  .process-card .step-number {
    width: 60px;
    height: 60px;
    font-size: var(--text-lg);
  }

  .stat-card .stat-number {
    font-size: var(--text-4xl);
  }

  .pricing-card.featured {
    transform: none;
    margin: var(--space-md) 0;
  }
}


/* ========================================
   OPTIMIZED STYLE.CSS - MODULAR VERSION
   ======================================== */

/* Import all modules */
@import url('./core/variables.css');
@import url('./core/reset.css');
@import url('./core/typography.css');
@import url('./components/buttons.css');
@import url('./components/cards.css');

/* ========================================
   LAYOUT STYLES
   ======================================== */

/* Container - Full Width */
.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* Enhanced Grid system */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* New grid layouts */
.grid-1-2 { grid-template-columns: 1fr 2fr; }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-1-2 { grid-template-columns: 1fr 1fr 2fr; }
.grid-2-1-1 { grid-template-columns: 2fr 1fr 1fr; }
.grid-auto-fit { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-auto-fill { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Grid with different row sizes */
.grid-masonry {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 150px;
}

.grid-masonry > * {
  grid-row-end: span 1;
}

.grid-masonry > *:nth-child(3n+1) {
  grid-row-end: span 2;
}

/* Responsive grid */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-1-2,
  .grid-2-1,
  .grid-1-1-2,
  .grid-2-1-1 {
    grid-template-columns: 1fr;
  }

  .grid-masonry {
    grid-auto-rows: 200px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3,
  .grid-4,
  .grid-1-1-2,
  .grid-2-1-1 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mr-0 { margin-right: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mx-0 { margin-left: 0; margin-right: 0; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.m-auto { margin: auto; }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* Display utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.inline-grid { display: inline-grid; }
.hidden { display: none; }

/* Flex utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

/* Position utilities */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-1 { top: var(--space-xs); }
.right-1 { right: var(--space-xs); }
.bottom-1 { bottom: var(--space-xs); }
.left-1 { left: var(--space-xs); }

/* Width and height utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.w-screen { width: 100vw; }
.h-screen { height: 100vh; }

/* Background utilities */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-accent { background-color: var(--bg-accent); }
.bg-white { background-color: var(--white); }
.bg-transparent { background-color: transparent; }

/* Border utilities */
.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-0 { border: none; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }

.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow utilities */
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* ========================================
   COMPONENT OVERRIDES
   ======================================== */

/* Form elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
  background-color: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Hero section */
.hero {
  padding: var(--space-5xl) 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-6xl);
  }
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

/* Section styles */
.section {
  padding: var(--space-5xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-4xl);
  }
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  text-align: center;
  padding: var(--space-4xl);
  border-radius: var(--radius-2xl);
  margin: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.cta-section * {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
}

/* Header styles */
header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.logo {
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu a {
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* Footer styles */
footer {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-4xl) 0 var(--space-xl);
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
}

.footer-section p {
  color: var(--gray-400);
  margin-bottom: var(--space-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-400);
  margin-bottom: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: var(--space-4xl) 0;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .cta-section {
    padding: var(--space-3xl);
    margin: var(--space-4xl) 0;
  }

  nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-2xl);
  }

  .hero {
    padding: var(--space-5xl) 0;
  }

  .section {
    padding: var(--space-5xl) 0;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger animation for cards */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #000000;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --border-color: #000000;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .hero,
  .cta-section,
  footer,
  .btn,
  nav {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  a {
    color: black !important;
    text-decoration: underline !important;
  }
}

/* ========================================
   THEME SUPPORT
   ======================================== */

/* Modern theme (default) */
.modern-template,
.classic-template,
.creative-template,
.professional-template {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
  border: none;
  overflow: hidden;
}

/* Additional theme-specific styles can be added here or in separate theme files */

/* ========================================
   UTILITY CLASSES FOR LAYOUT
   ======================================== */

/* Sidebar layouts */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.has-left-sidebar {
  grid-template-columns: 300px 1fr;
}

.has-right-sidebar {
  grid-template-columns: 1fr 300px;
}

.has-sidebars {
  grid-template-columns: 250px 1fr 250px;
}

.main-content-area {
  min-width: 0;
}

.sidebar {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  .has-left-sidebar,
  .has-right-sidebar,
  .has-sidebars {
    grid-template-columns: 1fr;
  }
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-md);
  z-index: 1000;
  display: none;
}

.cookie-notice.show {
  display: block;
}

.cookie-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ========================================
   ENHANCED LAYOUT COMPONENTS
   ======================================== */

/* Content blocks with different layouts */
.content-block {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-block .content-text {
  flex: 1;
}

.content-block .content-media {
  flex: 1;
  max-width: 500px;
}

.content-block .content-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Feature grid with icons */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-4xl) 0;
}

.feature-item {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-primary);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Stats counter */
.stats-counter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

/* Testimonial carousel */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.testimonial-card {
  padding: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  position: relative;
}

.testimonial-content {
  margin-bottom: var(--space-lg);
}

.testimonial-content p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: var(--text-6xl);
  color: var(--primary);
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.author-info h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0;
}

.author-position,
.author-company {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.testimonial-rating {
  margin-top: var(--space-md);
}

/* Service cards */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-4xl) 0;
}

.service-card {
  padding: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.service-features li {
  padding: var(--space-sm) 0;
  position: relative;
  padding-left: var(--space-lg);
}

.service-features li::before {
  content: '✓';
  color: var(--success, #10b981);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-price {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.price-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.price-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--primary);
}

.service-action {
  margin-top: var(--space-lg);
}

.service-action .btn {
  width: 100%;
  justify-content: center;
}

/* Image gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-4xl) 0;
}

.image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition-fast);
}

.image-card:hover {
  transform: scale(1.02);
}

.image-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: var(--space-xl);
  color: white;
}

.image-overlay h4 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
}

/* Content sections */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  margin: var(--space-4xl) 0;
}

.content-text {
  order: 1;
}

.content-image {
  order: 2;
}

.content-with-image.reverse .content-text {
  order: 2;
}

.content-with-image.reverse .content-image {
  order: 1;
}

.content-with-image .content-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.content-text h2,
.content-text h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.content-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* CTA buttons */
.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-xl);
}

.cta-buttons .btn {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .content-with-image {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .content-with-image.reverse .content-text,
  .content-with-image.reverse .content-image {
    order: unset;
  }

  .content-block {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .content-block.reverse {
    flex-direction: column;
  }

  .feature-grid,
  .services-container,
  .testimonials-container,
  .image-gallery,
  .stats-counter {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .content-with-image {
    gap: var(--space-2xl);
  }

  .feature-grid,
  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-container,
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   FINAL OPTIMIZATIONS
   ======================================== */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Optimize for performance */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus improvements for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


/* Modern Theme - Clean and Professional */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent-color: #10b981;
  --accent-dark: #059669;
  --accent-light: #d1fae5;

  /* Modern color palette */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-border: #cbd5e1;
  --color-border-light: #e2e8f0;

  /* Modern spacing and sizing */
  --modern-spacing-xs: 0.5rem;
  --modern-spacing-sm: 1rem;
  --modern-spacing-md: 1.5rem;
  --modern-spacing-lg: 2rem;
  --modern-spacing-xl: 3rem;
  --modern-spacing-xxl: 4rem;

  /* Modern typography */
  --modern-font-size-sm: 0.875rem;
  --modern-font-size-base: 1rem;
  --modern-font-size-lg: 1.125rem;
  --modern-font-size-xl: 1.25rem;
  --modern-font-size-2xl: 1.5rem;
  --modern-font-size-3xl: 1.875rem;
  --modern-font-size-4xl: 2.25rem;

  /* Modern effects */
  --modern-radius-sm: 0.25rem;
  --modern-radius-md: 0.5rem;
  --modern-radius-lg: 0.75rem;
  --modern-radius-xl: 1rem;
  --modern-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --modern-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --modern-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --modern-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Modern Theme Base Styles */
.modern-template {
  --primary-color: #2563eb;
  --accent-color: #10b981;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --border-radius: 12px;
}

/* Modern Hero Section */
.modern-template .hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  padding: var(--modern-spacing-xxl) 0;
}

.modern-template .hero .container {
  clip-path: none;
  transform: none;
}

/* Modern Cards */
.modern-template .card {
  border: none;
  box-shadow: var(--modern-shadow-md);
  border-radius: var(--modern-radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, var(--color-bg-primary), var(--color-bg-secondary));
}

.modern-template .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--modern-shadow-xl);
  border-color: var(--primary-color);
}

/* Modern Buttons */
.modern-template .btn {
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  color: white;
  box-shadow: var(--modern-shadow-lg);
  transition: all 0.3s ease;
}

.modern-template .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Modern Features */
.modern-template .feature-card {
  background: var(--color-bg-primary);
  border-radius: var(--modern-radius-xl);
  padding: var(--modern-spacing-xl);
  box-shadow: var(--modern-shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
}

.modern-template .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--modern-shadow-lg);
  border-color: var(--primary-color);
}

/* Modern Typography */
.modern-template h1,
.modern-template h2,
.modern-template h3 {
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
}

.modern-template h1::after,
.modern-template h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.modern-template h2::after {
  width: 40px;
  height: 3px;
}

/* Modern Services */
.modern-template .service-card {
  background: var(--color-bg-primary);
  border-radius: var(--modern-radius-xl);
  padding: var(--modern-spacing-xl);
  box-shadow: var(--modern-shadow-sm);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-template .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-template .service-card:hover::before {
  opacity: 1;
}

.modern-template .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--modern-shadow-lg);
  border-color: var(--color-border);
}

/* Modern Testimonials */
.modern-template .testimonial-card {
  background: var(--color-bg-primary);
  border-radius: var(--modern-radius-xl);
  padding: var(--modern-spacing-xl);
  box-shadow: var(--modern-shadow-sm);
  border: 1px solid var(--color-border-light);
  position: relative;
}

.modern-template .testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--modern-spacing-md);
  left: var(--modern-spacing-md);
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: serif;
}

/* Modern CTA */
.modern-template .cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  position: relative;
  overflow: hidden;
}

.modern-template .cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.modern-template .cta-section .btn {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
}

.modern-template .cta-section .btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Modern Animations */
@keyframes modern-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.modern-template .animate-float {
  animation: modern-float 6s ease-in-out infinite;
}

/* Modern Responsive */
@media (max-width: 768px) {
  .modern-template .hero {
    clip-path: none;
    transform: none;
    padding: var(--modern-spacing-xl) 0;
  }

  .modern-template .feature-card,
  .modern-template .service-card {
    padding: var(--modern-spacing-lg);
  }

  .modern-template .btn {
    padding: 10px 24px;
    font-size: var(--modern-font-size-sm);
  }
}


