/* =====================
   CSS Variables & Reset
===================== */
:root {
  --primary: #0a5cd8;
  --primary-dark: #084ab0;
  --secondary: #6366f1;
  --accent: #1da1f2;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text-muted: #94a3b8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   Global Page Setup
===================== */
body {
  font-family: "Inter", "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0a1931 0%, #1e3c72 50%, #2a5298 100%);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =====================
   Enhanced Hero Section
===================== */
.page-hero.webdev {
  text-align: center;
  padding: 160px 20px 120px;
  position: relative;
  background:
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15), transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120, 219, 226, 0.15), transparent 50%),
    linear-gradient(135deg, #0a5cd8 0%, #0e2a75 100%);
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.page-hero.webdev::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.02) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.02) 50%, transparent 52%);
  background-size: 60px 60px;
  animation: mesh 20s linear infinite;
  opacity: 0.7;
}

@keyframes mesh {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

.page-hero.webdev::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  height: 220%;
  width: 220%;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .04), rgba(255, 255, 255, .04) 2px, transparent 2px, transparent 14px),
    repeating-linear-gradient(to right, rgba(255, 255, 255, .03), rgba(255, 255, 255, .03) 2px, transparent 2px, transparent 16px);
  mix-blend-mode: overlay;
  opacity: .25;
  z-index: 0;
  pointer-events: none;
  animation: drift 40s linear infinite;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(-10%, -6%) rotate(1deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b87ff;
  font-weight: 700;
  margin: 0 0 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e3e9ff;
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}

/* =====================
   Enhanced Buttons
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 25px rgba(10, 92, 216, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #5855d6);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(10, 92, 216, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 12px;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Tech badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.badge {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 500;
  font-size: .9rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =====================
   Enhanced Projects Section
===================== */
.projects {
  padding: 120px 0;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0b1026;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-thumb img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.project-meta {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.project-meta h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.project-meta p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.tag {
  background: #eef2ff;
  color: #243189;
  border: 1px solid #dbe1ff;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

/* =====================
   Portfolio Showcase
===================== */
.section {
  padding: 100px 0;
}

.section.compact {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head .muted {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.filter-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* =====================
   Before / After Slider
===================== */
.before-after {
  background: linear-gradient(135deg, #0a5cd8 0%, #0e2a75 100%);
  border-radius: 20px;
  padding: 60px 40px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.before-after::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(-30px, -30px) rotate(360deg);
  }
}

.ba-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 2;
}

.ba-viewport {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ba-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-viewport .after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.2s ease;
}

.ba-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.ba-label.right {
  left: auto;
  right: 16px;
}

.ba-slider {
  width: 100%;
  margin-top: 20px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.ba-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* =====================
   Process / Pricing / FAQ
===================== */
.process,
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.step,
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step::before,
.plan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step:hover::before,
.plan:hover::before {
  opacity: 1;
}

.step:hover,
.plan:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.3);
}

.step .ico {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.step h3,
.plan h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.step p,
.plan p {
  color: var(--text-muted);
  line-height: 1.6;
}

.plan.popular {
  border: 2px solid var(--primary);
  position: relative;
  transform: scale(1.05);
}

.plan.popular::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 16px 0 20px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.plan ul li {
  padding: 8px 0;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
}

.plan ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* FAQ Enhancement */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 16px 0;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-q {
  padding: 24px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-toggle {
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 24px 24px;
}

.faq-a p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* =====================
   CTA + Footer
===================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  padding: 80px 40px;
  text-align: center;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s linear infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 16px;
  font-weight: 800;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  backdrop-filter: blur(20px);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img.small {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 0;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-icons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.contact-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 92, 216, 0.3);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  padding-top: 30px;
  border-top: 1px solid var(--border);
  margin: 0;
  font-size: 0.9rem;
}

.page-hero.webdev {
  padding: 120px 20px 80px;
  min-height: 80vh;
}

.hero-actions {
  flex-direction: column;
  align-items: center;
}

.btn {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.projects-container {
  grid-template-columns: 1fr;
}

.process,
.pricing {
  grid-template-columns: 1fr;
}

.filter-controls {
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.ba-viewport {
  aspect-ratio: 4/3;
}

.cta-banner {
  padding: 60px 20px;
  margin: 60px 0;
}

.cta-actions {
  flex-direction: column;
  align-items: center;
}

.footer-content {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 30px;
}

.contact-icons {
  justify-content: center;
}

.section {
  padding: 80px 0;
}

.projects {
  padding: 80px 0;
}
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .project-meta {
    padding: 20px;
  }

  .step,
  .plan {
    padding: 24px 20px;
  }

  .ba-slider {
    height: 4px;
  }

  .ba-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }
}

/* =====================
   Animation Utilities
===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Loading states */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   Enhanced Before/After Slider Styles
===================== */

.before-after {
  background: linear-gradient(135deg, #0a5cd8 0%, #0e2a75 100%);
  border-radius: 20px;
  padding: 60px 40px;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}

.before-after::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s linear infinite;
  z-index: 1;
}

.ba-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
}

.ba-container {
  position: relative;
  width: 100%;
}

.ba-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  cursor: col-resize;
  user-select: none;
}

/* Before Image - Always visible */
.before-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* After Image - Clipped based on slider position */
.after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s ease-out;
}

/* Labels */
.ba-label {
  position: absolute;
  top: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  z-index: 5;
  pointer-events: none;
}

.before-label {
  left: 20px;
}

.after-label {
  right: 20px;
  background: rgba(10, 92, 216, 0.9);
}

/* Divider Line */
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: left 0.1s ease-out;
}

/* Slider Handle */
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  transition: left 0.1s ease-out;
}

.ba-handle-circle {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #0a5cd8;
  font-size: 16px;
  font-weight: bold;
}

/* Range Slider */
.ba-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin-top: 30px;
  -webkit-appearance: none;
  appearance: none;
}

.ba-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.ba-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.ba-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  border: none;
  transition: transform 0.2s ease;
}

.ba-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Active state */
.ba-viewport.dragging {
  cursor: col-resize;
}

.ba-viewport.dragging .ba-handle-circle {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .before-after {
    padding: 40px 20px;
  }

  .ba-viewport {
    aspect-ratio: 4/3;
  }

  .ba-handle-circle {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .ba-label {
    font-size: 0.8rem;
    padding: 6px 12px;
    top: 15px;
  }

  .before-label {
    left: 15px;
  }

  .after-label {
    right: 15px;
  }

  .ba-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }

  .ba-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .ba-viewport {
    border-radius: 12px;
  }

  .ba-handle-circle {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }
}

.before-after {
  padding: 60px 0;
  background: linear-gradient(180deg, #0a1931, #0f2345);
}

.ba-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* keeps a nice, responsive box */
  border-radius: 12px;
  overflow: hidden;
}

.ba-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-viewport img.after {
  /* start at 50% visible (your input has value=50) */
  clip-path: inset(0 0 0 50%);
  transition: clip-path .15s ease-out;
}

.ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: .85rem;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-radius: 6px;
}

.ba-label.right {
  left: auto;
  right: 12px;
}

.ba-slider {
  width: 100%;
  margin-top: 16px;
}

.faq .faq-item {
  border-bottom: 1px solid #e6eaf2;
  padding: 14px 0;
}

.faq .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq .faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease;
}

.faq .faq-item.open .faq-a {
  max-height: 400px;
  /* large enough for your longest answer */
  opacity: 1;
}

.ba-container {
  position: relative;
  width: 800px;
  max-width: 100%;
  overflow: hidden;
  margin: 2rem auto;
  /* centers it */
}

.ba-viewport {
  position: relative;
}

.ba-viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.after-img {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 50% 0 0);
  /* Show half */
  transition: clip-path 0.1s;
}

.ba-slider {
  width: 100%;
  margin-top: 10px;
}

.footer {
  background: #0b1026;
  color: #dbe1ff;
  margin-top: 32px
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 28px 0
}

.footer a {
  color: #ffdd00;
  text-decoration: none
}

.footer a:hover {
  text-decoration: underline
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px
}

.contact-form {
  background: var(--surface);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius)
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  color: var(--text);
  font: inherit
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(10, 92, 216, 0.2);
  border-color: var(--primary)
}

.form-status {
  min-height: 1em;
  color: var(--muted);
  margin-top: 8px
}

/* Social icons */
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px
}

.contact-icons a {
  font-size: 22px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #222;
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-icons a:hover {
  transform: scale(1.1)
}

.contact-icons a[aria-label="WhatsApp"] {
  background: #25D366
}

.contact-icons a[aria-label="Facebook"] {
  background: #1877F2
}

.contact-icons a[aria-label="Instagram"] {
  background: linear-gradient(45deg, #feda75, #d62976, #4f5bd5)
}

.contact-icons a[aria-label="Email"] {
  background: #EA4335
}

.contact-icons a[aria-label="Phone"] {
  background: #34B7F1
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}

.logo-img {
  height: 35px;
  margin-right: 8px;
}



/* Contact button */
.btn-primary {
  padding: 0.5rem 1rem;
  background: #ffd32a;
  color: #0a3d62;
  border-radius: 8px;
  font-weight: bold;
}