:root {
  --primary: #1769e0;
  --primary-dark: #0f4bb0;
  --primary-light: #eef5ff;
  --accent-yellow: #ffd21f;
  --whatsapp-green: #25d366;
  --whatsapp-dark: #1da851;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
  --radius: 14px;
  --transition: all 0.25s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* ================= SVG ICON HELPER ================= */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: -0.2em;
}

/* ================= HEADER ================= */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 5%;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.header-inner {
  max-width: 1250px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-yellow);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(255, 210, 31, 0.4);
  flex-shrink: 0;
}

.brand-logo svg {
  width: 24px;
  height: 24px;
  fill: #1e293b;
}

.brand h1 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

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

nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav.desktop-nav a {
  text-decoration: none;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

nav.desktop-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-header-call:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: var(--primary);
  color: white;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ================= SIDEBAR NAVIGATION DRAWER ================= */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  z-index: 2001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.sidebar-drawer.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

.close-sidebar {
  background: var(--bg-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.close-sidebar:hover {
  background: #fee2e2;
  color: #ef4444;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.sidebar-links a {
  text-decoration: none;
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sidebar-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.sidebar-btn-call {
  background: var(--primary);
  color: white;
}

.sidebar-btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
}

/* ================= HERO ================= */
.hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 60px 20px;
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.75) 0%,
      rgba(15, 23, 42, 0.85) 100%
    ),
    url("../images/hero_bg.jpg")
    center/cover no-repeat;
}

.hero-content {
  max-width: 860px;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 210, 31, 0.2);
  border: 1px solid rgba(255, 210, 31, 0.4);
  color: var(--accent-yellow);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  max-width: 100%;
}

.hero h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 30px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-call {
  background: white;
  color: var(--primary);
}

.btn-call:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(23, 105, 224, 0.4);
}

/* ================= SECTION COMMON ================= */
section {
  padding: 70px 5%;
}

.container {
  max-width: 1250px;
  margin: auto;
  width: 100%;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  color: var(--primary);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 650px;
  margin: auto;
}

/* ================= ABOUT ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.about-text h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #0f172a;
  line-height: 1.25;
}

.about-text p {
  color: #475569;
  font-size: 16px;
  margin-bottom: 18px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 26px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
}

.feature-item svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* ================= SERVICES CATEGORY TABS ================= */
.services-section {
  background: #f1f5f9;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.tab-btn {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(23, 105, 224, 0.25);
}

/* ================= SERVICES GRID ================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #e2e8f0;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.service-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.service-info h3 {
  color: #0f172a;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.service-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.arrow-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .arrow-icon {
  background: var(--primary);
  color: white;
}

/* ================= RIGHT SLIDE-OVER SERVICE PANEL ================= */
.panel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.panel-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.slide-panel {
  position: fixed;
  top: 0;
  right: -500px;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 3001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.slide-panel.active {
  right: 0;
}

.panel-header-img {
  position: relative;
  width: 100%;
  height: 240px;
  background: #0f172a;
  flex-shrink: 0;
}

.panel-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.panel-close-btn:hover {
  background: #ef4444;
}

.panel-category-badge {
  position: absolute;
  bottom: 14px;
  left: 18px;
  background: var(--primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.panel-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.panel-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.25;
}

.panel-body p {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 24px;
}

.panel-contact-box {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.panel-contact-box h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.panel-contact-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.panel-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================= TESTIMONIALS ================= */
.testimonials {
  background: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--bg-light);
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #f59e0b;
  font-size: 17px;
  margin-bottom: 12px;
  display: flex;
  gap: 2px;
}

.testimonial p {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  font-style: italic;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.client-details h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.client-details span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ================= CONTACT ================= */
.contact-section {
  background: var(--primary-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: white;
  padding: 28px 20px;
  text-align: center;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon-wrapper {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card.whatsapp-card .contact-icon-wrapper {
  background: #dcfce7;
  color: var(--whatsapp-green);
}

.contact-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.contact-card h3 {
  color: #0f172a;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ================= LOCATION ================= */
.location-section {
  background: #0f172a;
  color: white;
  text-align: center;
}

.location-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.location-section p {
  color: #94a3b8;
  font-size: 17px;
  margin-bottom: 22px;
}

/* ================= FOOTER ================= */
footer {
  background: #020617;
  color: #64748b;
  text-align: center;
  padding: 22px 16px;
  font-size: 14px;
  border-top: 1px solid #1e293b;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 10px;
}

.footer-contact a,
.footer-contact span {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  color: var(--accent-yellow);
}

/* Keyboard focus outline for service cards */
.service-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ================= FLOATING WHATSAPP ================= */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  background: var(--whatsapp-dark);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ================= COMPREHENSIVE MOBILE RESPONSIVE MEDIA QUERIES ================= */

/* Tablet & Mobile (max-width: 992px) */
@media screen and (max-width: 992px) {
  nav.desktop-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  section {
    padding: 55px 4%;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero p {
    font-size: 17px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image {
    height: 320px;
  }

  .service-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .testimonial-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
  header {
    padding: 12px 14px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-logo svg {
    width: 20px;
    height: 20px;
  }

  .hero {
    min-height: 420px;
    padding: 50px 16px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  /* Single-line Horizontally Scrollable Category Tabs on Mobile */
  .filter-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 10px;
    margin-bottom: 25px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 13px;
    padding: 8px 16px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .section-heading p {
    font-size: 15px;
  }

  /* Full Screen Slide-Over Panel on Mobile */
  .slide-panel {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }

  .panel-header-img {
    height: 200px;
  }

  .panel-body {
    padding: 20px 16px;
  }

  .panel-body h2 {
    font-size: 22px;
  }

  .panel-body p {
    font-size: 14px;
  }
}

/* Small Smartphone Screen (max-width: 640px) */
@media screen and (max-width: 640px) {
  .btn-header-call span {
    display: none !important;
  }

  .btn-header-call {
    padding: 10px !important;
    border-radius: 10px !important;
  }
}

/* Very Small Smartphone Screen (max-width: 480px) */
@media screen and (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .card-img-wrapper {
    height: 180px;
  }

  .service-info {
    padding: 16px;
  }

  .service-info h3 {
    font-size: 18px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .location-section h2 {
    font-size: 26px;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}
