/* ==========================================================================
   KHIDAMI - Modern Landing Page Stylesheet
   Brand Accent: #1a9799 | Dark/Light Mode Support | Cairo Font
   ========================================================================== */

/* --- Font Definitions (Local Cairo Fonts) --- */
@font-face {
  font-family: 'Cairo';
  src: url('../font/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../font/Cairo-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../font/Cairo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../font/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('../font/Cairo-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables / Theming System --- */
:root {
  /* Brand Colors */
  --primary: #1a9799;
  --primary-hover: #157e80;
  --primary-light: rgba(26, 151, 153, 0.08);
  --primary-subtle: rgba(26, 151, 153, 0.15);
  --primary-glow: rgba(26, 151, 153, 0.35);

  /* Light Theme (Default) */
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-popular: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #1a9799;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-border: rgba(226, 232, 240, 0.8);
  
  --shadow-sm: 0 1px 2px 0 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 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 35px -5px rgba(26, 151, 153, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --shadow-popular: 0 20px 40px -10px rgba(26, 151, 153, 0.25);

  --badge-popular-bg: #1a9799;
  --badge-popular-text: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-body: #090e17;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #151f33;
  --bg-card: #111a2e;
  --bg-card-popular: #132238;
  --bg-alt: #0a1120;
  --bg-input: #151f33;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #1a9799;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #090e17;

  --nav-bg: rgba(9, 14, 23, 0.88);
  --nav-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.7);
  --shadow-popular: 0 20px 40px -10px rgba(26, 151, 153, 0.35);

  --primary-light: rgba(26, 151, 153, 0.15);
  --primary-subtle: rgba(26, 151, 153, 0.25);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent transition flash on initial page load / reload */
.preload-no-transition,
.preload-no-transition *,
.preload-no-transition *::before,
.preload-no-transition *::after {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  -ms-transition: none !important;
  transition: none !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Fast tap response & touch optimization */
a, button, input, select, textarea, .filter-btn, .portfolio-card, .btn-primary, .btn-secondary, .btn-ghost, .theme-toggle-btn, .mobile-toggle-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Navigation Header --- */
.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(26, 151, 153, 0.2));
}

.brand-logo.logo-light {
  display: block;
}

.brand-logo.logo-dark {
  display: none;
}

[data-theme="dark"] .brand-logo.logo-light {
  display: none;
}

[data-theme="dark"] .brand-logo.logo-dark {
  display: block;
}

.brand-text {
  color: var(--text-main);
}

.brand-text span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Persistent Active State on Dedicated Pages (e.g. Services page) */
.services-page .nav-link#servicesNavLink,
.services-page .nav-link[href="/services"],
.services-page .nav-link[href="services"] {
  color: var(--primary) !important;
}

.services-page .nav-link#servicesNavLink::after,
.services-page .nav-link[href="/services"]::after,
.services-page .nav-link[href="services"]::after {
  width: 100% !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-fast);
}

/* Sun/Moon visibility */
[data-theme="light"] .icon-sun,
:root:not([data-theme="dark"]) .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon,
:root:not([data-theme="dark"]) .icon-moon {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}
[data-theme="dark"] .icon-sun {
  display: block;
}

/* Mobile Nav Backdrop Overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  z-index: 995;
}

.nav-backdrop.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Nav Toggle */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-toggle-btn:active {
  background: var(--primary-light);
}

.mobile-toggle-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.mobile-toggle-btn[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 6.5rem 0 5rem 0;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 151, 153, 0.18) 0%, rgba(26, 151, 153, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-subtle);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: heroFadeSmooth 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  will-change: opacity, transform;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(26, 151, 153, 0.7);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroFadeSmooth 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
  will-change: opacity, transform;
}

.hero-title .highlight-text {
  background: linear-gradient(135deg, #1a9799 0%, #2bd0d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: heroFadeSmooth 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
  will-change: opacity, transform;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: heroFadeSmooth 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards;
  will-change: opacity, transform;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px -2px rgba(26, 151, 153, 0.4);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(26, 151, 153, 0.5);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Hero Trust Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  max-width: 650px;
  margin: 0 auto;
  opacity: 0;
  animation: heroFadeSmooth 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  will-change: opacity, transform;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Section Common Styles --- */
.section {
  padding: 2.25rem 0 3.25rem 0;
  position: relative;
  scroll-margin-top: 76px;
}

.section-alt {
  background-color: var(--bg-surface);
  transition: background-color var(--transition-normal);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Pricing & Services Section --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* 4-Column Grid for Services on Main Landing Page (Legacy fallback) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* ==========================================================================
   SERVICES OVERVIEW CHOICES GRID (Main Landing Page)
   ========================================================================== */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}

/* Enforce strictly 6 core services in the overview grid */
.services-overview-grid > .service-overview-card:nth-child(n+7) {
  display: none !important;
}

.service-overview-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.service-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-overview-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0;
}

.service-overview-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.service-overview-icon svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
}

.service-overview-card:hover .service-overview-icon {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.service-overview-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
}

.service-overview-desc {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(0.865rem * 1.45 * 2);
  max-height: calc(0.865rem * 1.45 * 2);
}

.service-overview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.service-overview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0;
}

.service-tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.service-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.service-icon-btn svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  display: block !important;
  margin: 0 auto !important;
  transform: none !important;
}

.service-overview-card:hover .service-icon-btn {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(26, 151, 153, 0.35);
}

.service-overview-card:hover .service-icon-btn svg,
.service-overview-card:focus .service-icon-btn svg,
.service-overview-card:active .service-icon-btn svg,
.service-icon-btn:hover svg,
.service-icon-btn:focus svg,
.service-icon-btn:active svg {
  transform: none !important;
}

@media (max-width: 992px) {
  .services-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-overview-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   SERVICES OVERVIEW ULTRA-SMOOTH ENTRANCE ANIMATION
   ========================================================================== */
@keyframes serviceSectionSmoothIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes serviceCardSmoothIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial Hidden State before In-View */
.services-overview-reveal .section-header {
  opacity: 0;
  transform: translateY(18px);
}

.services-overview-reveal .service-overview-card {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.services-overview-reveal .show-more-services-wrapper {
  opacity: 0;
  transform: translateY(16px);
}

/* Ultra-Smooth Entrance: Natural, gentle wave across the grid */
.services-overview-reveal.is-in-view .section-header {
  animation: serviceSectionSmoothIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.services-overview-reveal.is-in-view .service-overview-card {
  animation: serviceCardSmoothIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Very subtle, harmonious glide (Row 1 then Row 2 or smooth flow) */
.services-overview-reveal.is-in-view .service-overview-card:nth-child(1) { animation-delay: 0.05s; }
.services-overview-reveal.is-in-view .service-overview-card:nth-child(2) { animation-delay: 0.09s; }
.services-overview-reveal.is-in-view .service-overview-card:nth-child(3) { animation-delay: 0.13s; }
.services-overview-reveal.is-in-view .service-overview-card:nth-child(4) { animation-delay: 0.17s; }
.services-overview-reveal.is-in-view .service-overview-card:nth-child(5) { animation-delay: 0.21s; }
.services-overview-reveal.is-in-view .service-overview-card:nth-child(6) { animation-delay: 0.25s; }

.services-overview-reveal.is-in-view .show-more-services-wrapper {
  animation: serviceSectionSmoothIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards;
}

.services-overview-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 28px -6px rgba(26, 151, 153, 0.22), 0 4px 10px rgba(0, 0, 0, 0.04) !important;
  border-color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .services-overview-reveal .section-header,
  .services-overview-reveal .service-overview-card,
  .services-overview-reveal .show-more-services-wrapper {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   INTERACTIVE SERVICES PAGE (7 Categories & 2 Plans Per Category)
   ========================================================================== */
.service-category-nav-wrapper {
  margin: 1.5rem 0 3rem 0;
  width: 100%;
}

.service-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.service-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.service-category-btn svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.service-category-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-category-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(26, 151, 153, 0.4);
}

.service-category-btn.active svg {
  color: #ffffff;
}

/* Category Plan Panels */
.category-plan-panel {
  display: none;
}

.category-plan-panel.active {
  display: block;
  animation: panelFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-header-banner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem auto;
}

.category-header-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.category-header-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Horizontal Swiping Plans Slider & Dynamic Card Sizing
   ========================================================================== */
.plans-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 1 Plan: Centered comfortable width */
.plans-slider-wrapper.plans-count-1 {
  max-width: 480px;
}
.plans-slider-wrapper.plans-count-1 .service-plans-grid {
  justify-content: center;
}
.plans-slider-wrapper.plans-count-1 .pricing-card {
  flex: 0 0 100%;
  max-width: 460px;
}

/* 2 Plans: Optimal 840px width filling the space side-by-side */
.plans-slider-wrapper.plans-count-2 {
  max-width: 840px;
  padding: 0 1rem;
}
.plans-slider-wrapper.plans-count-2 .service-plans-grid {
  justify-content: center;
  gap: 1.5rem;
}
.plans-slider-wrapper.plans-count-2 .pricing-card {
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 300px;
  max-width: 395px;
  padding: 1.85rem 1.5rem;
}

/* 3 Plans: Comfortable 1200px space, all 3 plans displayed side-by-side filling the page */
.plans-slider-wrapper.plans-count-3 {
  max-width: 1200px;
  padding: 0 1.25rem;
  margin: 0 auto;
}
.plans-slider-wrapper.plans-count-3 .service-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.plans-slider-wrapper.plans-count-3 .pricing-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 1.85rem 1.5rem;
}

/* 4+ Plans: First 3 plans normal in 1240px viewport, 4th+ plan reached by swipe/slider */
.plans-slider-wrapper.plans-count-many {
  max-width: 1240px;
  padding: 0 3.25rem;
}
.plans-slider-wrapper.plans-count-many .service-plans-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1.5rem 1.25rem;
}
.plans-slider-wrapper.plans-count-many .pricing-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  width: calc((100% - 3rem) / 3);
  min-width: calc((100% - 3rem) / 3);
  max-width: calc((100% - 3rem) / 3);
  box-sizing: border-box;
  padding: 1.85rem 1.5rem;
}

/* Hide arrows on desktop when 3 or fewer plans */
@media (min-width: 992px) {
  .plans-slider-wrapper.plans-count-1 .plans-slider-btn,
  .plans-slider-wrapper.plans-count-2 .plans-slider-btn,
  .plans-slider-wrapper.plans-count-3 .plans-slider-btn {
    display: none !important;
  }
}

.service-plans-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: stretch;
  padding: 1.5rem 1.25rem;
  margin: 0 auto;
  cursor: grab;
}

.service-plans-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.service-plans-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Base Pricing Card in Horizontal Slider */
.service-plans-grid .pricing-card {
  scroll-snap-align: start;
  box-sizing: border-box;
}

.service-plans-grid:has(.pricing-card:only-child) {
  justify-content: center;
}

/* Slider Navigation Buttons (< and >) */
.plans-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  padding: 0;
}

.plans-slider-btn:hover:not(:disabled):not(.disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(26, 151, 153, 0.35);
}

.plans-slider-btn:active:not(:disabled):not(.disabled) {
  transform: translateY(-50%) scale(0.95);
}

.plans-slider-btn:disabled,
.plans-slider-btn.disabled,
.plans-slider-btn.is-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.plans-slider-btn.plans-prev-btn {
  left: 0.35rem;
}

.plans-slider-btn.plans-next-btn {
  right: 0.35rem;
}

/* 1. Large Laptops / Screens (max-width: 1240px) */
@media (max-width: 1240px) {
  .plans-slider-wrapper.plans-count-many {
    padding: 0 2.75rem;
  }
  .plans-slider-wrapper.plans-count-many .service-plans-grid {
    gap: 1.25rem;
    padding: 1.5rem 0.85rem;
  }
  .plans-slider-wrapper.plans-count-many .pricing-card {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    width: calc((100% - 2.5rem) / 3);
    min-width: calc((100% - 2.5rem) / 3);
    max-width: calc((100% - 2.5rem) / 3);
  }
  .plans-slider-btn.plans-prev-btn {
    left: 0.25rem;
  }
  .plans-slider-btn.plans-next-btn {
    right: 0.25rem;
  }
}

/* 2. Tablets (max-width: 991px): 2 plans side-by-side, smooth swipe */
@media (max-width: 991px) {
  .plans-slider-wrapper,
  .plans-slider-wrapper.plans-count-3,
  .plans-slider-wrapper.plans-count-many {
    max-width: 860px;
    padding: 0 2.5rem;
  }
  .service-plans-grid,
  .plans-slider-wrapper.plans-count-3 .service-plans-grid,
  .plans-slider-wrapper.plans-count-many .service-plans-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0.75rem;
  }
  .service-plans-grid .pricing-card,
  .plans-slider-wrapper.plans-count-3 .pricing-card,
  .plans-slider-wrapper.plans-count-many .pricing-card {
    flex: 0 0 calc((100% - 1.25rem) / 2);
    width: calc((100% - 1.25rem) / 2);
    min-width: calc((100% - 1.25rem) / 2);
    max-width: calc((100% - 1.25rem) / 2);
    padding: 1.65rem 1.35rem;
  }
  .plans-slider-btn {
    width: 40px;
    height: 40px;
  }
  .plans-slider-btn.plans-prev-btn {
    left: 2px;
  }
  .plans-slider-btn.plans-next-btn {
    right: 2px;
  }
}

/* 3. Mobile Screens (max-width: 680px): 1 plan full width, clean padding and swipe */
@media (max-width: 680px) {
  .plans-slider-wrapper,
  .plans-slider-wrapper.plans-count-2,
  .plans-slider-wrapper.plans-count-3,
  .plans-slider-wrapper.plans-count-many {
    max-width: 480px;
    padding: 0 1.25rem;
  }
  .service-plans-grid,
  .plans-slider-wrapper.plans-count-3 .service-plans-grid,
  .plans-slider-wrapper.plans-count-many .service-plans-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  .service-plans-grid .pricing-card,
  .plans-slider-wrapper.plans-count-3 .pricing-card,
  .plans-slider-wrapper.plans-count-many .pricing-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin: 0 auto;
    scroll-snap-align: center;
    padding: 1.5rem 1.25rem;
  }
  .plans-slider-btn {
    width: 36px;
    height: 36px;
  }
  .plans-slider-btn svg {
    width: 16px;
    height: 16px;
  }
  .plans-slider-btn.plans-prev-btn {
    left: 2px;
  }
  .plans-slider-btn.plans-next-btn {
    right: 2px;
  }
}

/* 4. Small Mobile (max-width: 420px) */
@media (max-width: 420px) {
  .plans-slider-wrapper,
  .plans-slider-wrapper.plans-count-2,
  .plans-slider-wrapper.plans-count-3,
  .plans-slider-wrapper.plans-count-many {
    padding: 0 0.75rem;
  }
  .service-plans-grid .pricing-card,
  .plans-slider-wrapper.plans-count-3 .pricing-card,
  .plans-slider-wrapper.plans-count-many .pricing-card {
    padding: 1.35rem 1rem;
  }
}

.plans-section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.plans-section-title {
  display: block;
  width: 100%;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  text-align: center;
  color: var(--text-main);
  margin: 0 auto 0.45rem auto;
  letter-spacing: -0.01em;
}

.plans-section-subtitle {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.5;
}

/* Other / Related Projects Section (Under Plans) */
.other-projects-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.other-projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.other-projects-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
}

.other-projects-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.view-all-projects-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap 0.2s, color 0.2s;
}

.view-all-projects-link:hover {
  gap: 10px;
  color: var(--primary-hover);
}

.other-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 960px) {
  .other-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .other-projects-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Multi-Column Flexible Grid for /services Page */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Show More Services Button */
.show-more-services-wrapper {
  text-align: center;
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.btn-show-more-services {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--primary);
  box-shadow: 0 6px 20px -2px rgba(26, 151, 153, 0.4);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-show-more-services:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(26, 151, 153, 0.5);
  color: #ffffff !important;
}

.btn-show-more-services svg {
  transition: transform var(--transition-fast);
}

.btn-show-more-services:hover svg {
  transform: translateX(5px);
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(26, 151, 153, 0.4);
}

/* Highlighted / Most Popular Card */
.pricing-card.popular {
  background: var(--bg-card-popular);
  border: 2px solid var(--primary);
  box-shadow: 0 10px 28px rgba(26, 151, 153, 0.18);
  transform: translateY(-6px);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1a9799 0%, #2bd0d3 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(26, 151, 153, 0.4);
  white-space: nowrap;
}

.card-header {
  margin-bottom: 1.25rem;
  text-align: left;
}

.plan-name {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  line-height: 1.28;
}

.plan-description {
  font-size: 0.895rem;
  color: var(--text-muted);
  min-height: 40px;
  line-height: 1.45;
  margin: 0;
}

.card-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.35rem;
}

.price-current {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.currency {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 0.2rem;
}

.price-original {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 1.8px;
  margin-left: 0.4rem;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.4;
}

.feature-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--primary);
  margin-top: 2px;
}

.card-action {
  margin-top: auto;
}

.card-action .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.card-action .btn-outline {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-subtle);
}

.card-action .btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.card-action .btn-popular {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(26, 151, 153, 0.4);
}

.card-action .btn-popular:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 151, 153, 0.5);
}

/* --- Portfolio Section --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(26, 151, 153, 0.35);
}

.portfolio-preview {
  position: relative;
  width: 100%;
  height: 230px;
  background: var(--bg-surface-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Rich SVG Mockup Canvas */
.portfolio-canvas {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-canvas,
.portfolio-card:hover .portfolio-preview img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 24, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.portfolio-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(26, 151, 153, 0.4);
}

.portfolio-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-height: 26px;
  align-items: center;
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
}

.portfolio-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
  min-height: 4.65em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-cta {
  text-align: center;
}

.btn-watch-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.btn-watch-more:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-watch-more svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn-watch-more:hover svg {
  transform: translateX(4px);
}

/* --- Contact Us Section --- */
#contact.section {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  scroll-margin-top: 24px;
}

.contact-wrapper {
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.contact-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.direct-email-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.direct-email-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 151, 153, 0.18);
}

.email-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-icon-box svg {
  width: 24px;
  height: 24px;
}

.email-content-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.email-content-address {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.contact-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(26, 151, 153, 0.4);
  transition: all var(--transition-fast);
}

.form-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 151, 153, 0.5);
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem 0;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 360px;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link.whatsapp-social-link {
  color: var(--primary);
  border-color: rgba(26, 151, 153, 0.4);
  background: var(--primary-light);
}

.social-link.whatsapp-social-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(26, 151, 153, 0.45);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* --- Keyframe Animations --- */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 151, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(26, 151, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 151, 153, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeSmooth {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .services-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-6px);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }
}

@media (max-width: 820px) {
  .hero-title {
    font-size: 2.35rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .services-overview-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .service-plans-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 100%;
    margin: 0 auto;
  }
  .service-category-nav-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .service-category-nav-wrapper::-webkit-scrollbar {
    display: none;
  }
  .service-category-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0.25rem 0.5rem;
    width: max-content;
  }
  .services-page-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.25rem;
  }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    gap: 0.75rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-toggle-btn {
    display: inline-flex;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .portfolio-filter-wrapper {
    margin: 1.25rem 0 1rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
  }
  .portfolio-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.5rem !important;
    padding: 0.35rem 0.5rem 0.65rem 0.5rem !important;
    justify-content: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .portfolio-filter-bar::-webkit-scrollbar {
    display: none !important;
  }
  .filter-btn {
    flex-shrink: 0 !important;
    min-width: auto !important;
    padding: 0.55rem 1.1rem !important;
    font-size: 0.85rem !important;
    min-height: 40px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .nav-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .section-description {
    font-size: 0.95rem;
  }
  .section-header {
    margin: 0 auto 2.5rem auto;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  .pricing-card {
    padding: 1.25rem 1rem;
  }
  .price-current {
    font-size: 1.85rem;
  }
  .portfolio-preview {
    height: 200px;
  }
  .portfolio-info {
    padding: 1.25rem;
  }
  .contact-wrapper {
    padding: 1.5rem 1.25rem;
  }
  .email-content-address {
    word-break: break-all;
    font-size: 0.95rem;
  }
  .brand-text {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (Bottom-Right Stack: WhatsApp on top of Go Up)
   ========================================================================== */

/* 1. Floating Back To Top Button (Bottom-most) */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 151, 153, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(26, 151, 153, 0.55);
}

.back-to-top-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

/* 2. Floating WhatsApp Contact Button (Smooth slide-up above Back-To-Top button on scroll) */
.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  left: auto;
  z-index: 995;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 151, 153, 0.45);
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-float-btn.has-back-to-top {
  bottom: 90px !important;
}

.whatsapp-float-btn.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
}

.whatsapp-float-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(26, 151, 153, 0.55);
  color: #ffffff;
}

.whatsapp-float-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.whatsapp-float-btn:hover svg {
  transform: scale(1.1);
}

/* Tablet Spacing & Padding Adjustments */
@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }
  .back-to-top-btn svg {
    width: 20px;
    height: 20px;
  }
  .whatsapp-float-btn {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    left: auto;
    width: 44px;
    height: 44px;
  }
  .whatsapp-float-btn.has-back-to-top {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .whatsapp-float-btn svg {
    width: 22px;
    height: 22px;
  }
  /* Prevent iOS Safari from auto-zooming on focus */
  input, select, textarea, .form-input, .form-textarea {
    font-size: 16px !important;
  }
}

/* Mobile Spacing & Padding Adjustments */
@media (max-width: 480px) {
  .back-to-top-btn {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: 42px;
    height: 42px;
  }
  .back-to-top-btn svg {
    width: 18px;
    height: 18px;
  }
  .whatsapp-float-btn {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    left: auto;
    width: 42px;
    height: 42px;
  }
  .whatsapp-float-btn.has-back-to-top {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .whatsapp-float-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   PORTFOLIO PAGE STYLES (Interactive Filtering & Showcase)
   ========================================================================== */

.portfolio-hero {
  padding: 2.75rem 0 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 76px;
}

.portfolio-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.portfolio-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.portfolio-breadcrumb a:hover {
  text-decoration: underline;
}

/* Filter Controls Bar */
.portfolio-filter-wrapper {
  margin: 2.5rem 0 3.5rem 0;
}

.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  min-height: 42px;
  min-width: 130px;
}

.filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(26, 151, 153, 0.4);
}

.filter-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.filter-btn:hover svg {
  transform: scale(1.12);
}

.filter-badge {
  display: none !important;
}

.filter-btn.active .filter-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Filter Card Transitions */
.portfolio-card.is-hidden {
  display: none !important;
}

.portfolio-card.is-visible {
  animation: cardFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card Inquiry Action */
.btn-card-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-subtle);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-card-inquiry:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 151, 153, 0.35);
  transform: translateY(-1px);
}

.btn-card-inquiry svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Category Specific Mockup Highlights */
.mockup-voice {
  background: linear-gradient(135deg, #0b1322 0%, #112238 100%);
}

.mockup-web {
  background: linear-gradient(135deg, #09101d 0%, #13243a 100%);
}

.mockup-motion {
  background: linear-gradient(135deg, #08121f 0%, #15273e 100%);
}

/* Empty filter results state */
.portfolio-empty-state {
  display: none;
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.portfolio-empty-state.show {
  display: block;
}

.portfolio-empty-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   MOBILE & MULTI-DEVICE OPTIMIZATIONS (Smartphones & Tablets)
   ========================================================================== */

@media (max-width: 680px) {
  .portfolio-filter-wrapper {
    margin: 1.5rem 0 1.25rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .portfolio-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem 0.75rem 1.25rem;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
  }

  .portfolio-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    min-width: auto;
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
    min-height: 40px;
    white-space: nowrap;
    touch-action: manipulation;
  }

  /* Smooth performance on mobile devices */
  .portfolio-card {
    content-visibility: auto;
    contain-intrinsic-size: 0 420px;
  }
}

/* ==========================================================================
   LEGAL PAGES (Privacy Policy & Terms of Service)
   ========================================================================== */
.legal-wrapper {
  padding: 3rem 0 5rem 0;
  min-height: 80vh;
}

.legal-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.75rem auto;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.legal-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.legal-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
}

.legal-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-nav-pill {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.legal-nav-pill:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.legal-article h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  scroll-margin-top: 90px;
}

.legal-article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 1.15rem;
}

.legal-article ul, .legal-article ol {
  margin: 0.75rem 0 1.5rem 1.5rem;
  line-height: 1.75;
  color: var(--text-main);
}

.legal-article li {
  margin-bottom: 0.5rem;
}

.legal-article strong {
  color: var(--text-main);
}

.legal-highlight-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.legal-highlight-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.legal-contact-box {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legal-contact-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.legal-contact-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .legal-title {
    font-size: 2rem;
  }
  .legal-card {
    padding: 2rem 1.25rem;
  }
  .legal-article h2 {
    font-size: 1.3rem;
  }
  .legal-contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
