/* ==========================================================================
   KSR Networks - Swapped Button Styling (Visit Site: Red Gradient | Quote: Transparent Red Outline)
   ========================================================================== */

/* --- Dark Theme (DEFAULT) Variables - Softened Red Palette --- */
:root, [data-theme="dark"] {
  --bg-primary: #080305;
  --bg-secondary: #0f0709;
  --bg-card: #14090c;
  --bg-card-hover: #1c0d12;
  --bg-glass: rgba(8, 3, 5, 0.92);

  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  /* Softened Crimson Red Color */
  --accent-red: #cd284d;
  --accent-red-hover: #e0365c;
  --accent-ruby: #a01235;
  --accent-gold: #fbbf24;
  --accent-cyan: #06b6d4;
  --accent-green: #25d366;

  --gradient-brand: linear-gradient(135deg, #cd284d 0%, #a01235 50%, #850e2b 100%);
  --gradient-hero: radial-gradient(800px circle at 70% 40%, rgba(205, 40, 77, 0.12), transparent 60%);
  --grid-line-color: rgba(205, 40, 77, 0.09);

  --border-color: rgba(205, 40, 77, 0.16);
  --border-accent: rgba(205, 40, 77, 0.45);

  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(205, 40, 77, 0.18);

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

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.35s var(--ease-out-expo);
}

/* --- Light Theme Variables --- */
[data-theme="light"] {
  --bg-primary: #fdf6f7;
  --bg-secondary: #f6ecee;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(253, 246, 247, 0.94);

  --text-main: #111827;
  --text-muted: #374151;
  --text-dim: #6b7280;

  --accent-red: #b01438;
  --accent-red-hover: #cd284d;
  --accent-ruby: #850e2b;
  --accent-gold: #b45309;
  --accent-cyan: #0284c7;

  --gradient-hero: radial-gradient(800px circle at 70% 40%, rgba(176, 20, 56, 0.06), transparent 60%);
  --grid-line-color: rgba(176, 20, 56, 0.08);

  --border-color: #f3d2d9;
  --border-accent: rgba(176, 20, 56, 0.35);

  --shadow-sm: 0 4px 15px rgba(176, 20, 56, 0.08);
  --shadow-card: 0 20px 40px -15px rgba(176, 20, 56, 0.1);
  --shadow-glow: 0 0 25px rgba(176, 20, 56, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background-color var(--transition), color var(--transition);
}

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

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

ul { list-style: none; }

/* --- Container Utilities --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: 5.5rem 0;
}

@media (max-width: 768px) {
  .section-padding { padding: 3.5rem 0; }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  background: rgba(205, 40, 77, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--accent-red);
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .section-title { font-size: 1.9rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(205, 40, 77, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e0365c 0%, #cd284d 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(205, 40, 77, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  color: var(--accent-red);
  transform: translateY(-2px);
}

/* VISIT SITE ↗: DEEP CRIMSON RED / RUBY BRAND GRADIENT + SHADOW GLOW */
.btn-visit-site {
  background: var(--gradient-brand) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 6px 22px rgba(205, 40, 77, 0.45) !important;
  font-weight: 800 !important;
}

.btn-visit-site:hover {
  background: linear-gradient(135deg, #e0365c 0%, #cd284d 100%) !important;
  box-shadow: 0 10px 28px rgba(205, 40, 77, 0.65) !important;
  transform: translateY(-2px);
}

/* GET INSTANT QUOTE: TRANSPARENT BACKGROUND WITH CRIMSON RED / RUBY OUTLINE */
.btn-quote {
  background: transparent !important;
  color: var(--accent-red) !important;
  border: 1.8px solid var(--accent-red) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(205, 40, 77, 0.15) !important;
}

.btn-quote:hover {
  background: rgba(205, 40, 77, 0.12) !important;
  color: #ffffff !important;
  border-color: var(--accent-red-hover) !important;
  box-shadow: 0 6px 20px rgba(205, 40, 77, 0.3) !important;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-green);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.3rem;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp svg {
  fill: #ffffff;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background-color: #1eb956;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-sm {
  padding: 0.48rem 1.15rem;
  font-size: 0.84rem;
}

/* --- Top Contact Bar --- */
.top-bar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
  .top-bar-contact {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition), border-color var(--transition);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-text .brand-top {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.nav-brand-text .brand-bottom {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-red);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 3px;
  background-color: var(--accent-red);
  transition: width var(--transition);
  border-radius: 2px;
}

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

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

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
[data-theme="light"] .theme-toggle-btn .sun-icon { display: block; color: var(--text-main); }
[data-theme="light"] .theme-toggle-btn .moon-icon { display: none; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 1080px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.1rem;
    transform: translateY(-150%);
    transition: transform var(--transition);
    opacity: 0;
    pointer-events: none;
    text-align: center;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle { display: block; }
  .nav-actions .btn-whatsapp { display: none; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem 0;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  background-image: var(--gradient-hero);
  transition: background-color var(--transition);
}

.hero-cyber-grid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 420px;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(400px) rotateX(65deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  animation: grid-scroll 20s linear infinite;
  z-index: 0;
}

@keyframes grid-scroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content { text-align: left; }

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  line-height: 1.68;
}

.hero-subtitle strong {
  color: var(--text-main);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* --- Centered Hero Section Layout --- */
.hero-centered-layout {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 5rem 0;
  text-align: center;
}

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

.hero-centered-content .section-badge {
  margin: 0 auto 1.2rem auto;
  display: inline-block;
}

.hero-centered-content .hero-title {
  text-align: center;
  margin: 0 auto 1.25rem auto;
}

.hero-centered-content .hero-subtitle {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.2rem auto;
}

.hero-centered-content .hero-cta {
  justify-content: center;
  margin: 0 auto 2.8rem auto;
}

.hero-centered-content .hero-stats {
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent-red);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

@media (max-width: 992px) {
  .hero-title { font-size: 2.2rem; }
}

@media (max-width: 576px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- About Us Section --- */
.about-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

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

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition);
}

.feature-box:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.feature-icon {
  width: 38px; height: 38px;
  background: rgba(205, 40, 77, 0.1);
  color: var(--accent-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.feature-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.feature-box p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

.about-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-text { text-align: center !important; }
  .about-image-card { display: none !important; }
}

/* ==========================================================================
   DESKTOP SHOWCASE (MIN-WIDTH: 993PX)
   ========================================================================== */
@media (min-width: 993px) {
  .mobile-brands-container {
    display: none !important;
  }

  .brands-motion-hub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    position: relative;
  }

  .brand-visual-showcase {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transition: transform var(--transition), border-color var(--transition);
    z-index: 10;
    height: fit-content;
  }

  .brand-visual-img-wrap {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #000000;
  }

  .brand-visual-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.5s ease;
  }

  .brand-visual-badge {
    position: absolute;
    top: 1.25rem; left: 1.25rem;
    background: rgba(8, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }

  .brand-visual-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .brand-visual-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
  }

  .brand-visual-subtitle {
    color: var(--accent-gold);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .brand-visual-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .brand-visual-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
  }

  .brand-visual-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-main);
    font-weight: 600;
  }

  .brand-visual-highlight-item svg {
    color: var(--accent-red);
    width: 14px; height: 14px;
    flex-shrink: 0;
  }

  .brand-visual-actions {
    display: flex;
    gap: 0.85rem;
    margin-top: 0.5rem;
  }

  .brand-motion-tabs-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 2rem;
  }

  .brand-motion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.35rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: left;
    scroll-margin-top: 120px;
  }

  .brand-motion-card:hover {
    transform: translateX(6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-sm);
  }

  .brand-motion-card.active {
    background: var(--bg-card-hover);
    border-color: var(--accent-red);
    box-shadow: 0 8px 30px rgba(205, 40, 77, 0.3);
    transform: translateX(10px) scale(1.02);
  }

  .brand-motion-icon {
    width: 46px; height: 46px;
    background: rgba(205, 40, 77, 0.1);
    color: var(--accent-red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition), background-color var(--transition), color var(--transition);
  }

  .brand-motion-card.active .brand-motion-icon {
    background: var(--gradient-brand);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(205, 40, 77, 0.35);
    transform: scale(1.1);
  }

  .brand-motion-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .brand-motion-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
  }

  .brand-motion-desc {
    font-size: 0.83rem;
    color: var(--text-dim);
    line-height: 1.48;
  }

  .brand-motion-dot {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    transition: all var(--transition);
  }

  .brand-motion-card.active .brand-motion-dot {
    background: var(--accent-red);
    box-shadow: 0 0 12px var(--accent-red);
    transform: scale(1.4);
  }
}

/* ==========================================================================
   MOBILE FULL CENTER ALIGNMENT SYSTEM (MAX-WIDTH: 992PX)
   ========================================================================== */
@media (max-width: 992px) {
  .brands-motion-hub {
    display: none !important;
  }

  .mobile-brands-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center !important;
    text-align: center !important;
  }

  .mobile-brand-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.6rem 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
  }

  @media (min-width: 640px) {
    .mobile-brand-tabs {
      justify-content: center;
    }
  }

  .mobile-brand-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-tab-btn {
    flex: 0 0 auto;
    padding: 0.55rem 0.95rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    scroll-snap-align: center;
  }

  .mobile-tab-btn.active {
    background: var(--gradient-brand);
    color: #ffffff !important;
    border-color: var(--accent-red);
    box-shadow: 0 4px 15px rgba(205, 40, 77, 0.35);
  }

  .mobile-brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    text-align: center !important;
  }

  .mobile-brand-img-wrap {
    display: block !important;
    height: 220px;
    position: relative;
    overflow: hidden;
  }

  .mobile-brand-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
  }

  .mobile-brand-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center !important;
    text-align: center !important;
  }

  .mobile-brand-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: center !important;
  }

  .mobile-brand-subtitle {
    color: var(--accent-gold);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center !important;
  }

  .mobile-brand-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.58;
    text-align: center !important;
  }

  .mobile-brand-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }

  .mobile-brand-highlight-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-main);
    font-weight: 600;
    text-align: center !important;
  }

  .mobile-brand-highlight-item svg {
    color: var(--accent-red);
    width: 13px; height: 13px;
    flex-shrink: 0;
  }

  .mobile-brand-actions {
    display: flex;
    justify-content: center !important;
    gap: 0.75rem;
    margin-top: 0.4rem;
    width: 100%;
  }

  .section-header {
    text-align: center !important;
  }

  .feature-box {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
  }

  .contact-info-item {
    text-align: center !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .contact-info-text {
    text-align: center !important;
  }

  .contact-form-card {
    text-align: center !important;
  }

  .calc-info {
    text-align: center !important;
  }

  .calc-estimated-price {
    text-align: center !important;
  }

  .footer-brand {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
  }

  .footer-column {
    text-align: center !important;
  }
}

/* --- Instant Price Calculator --- */
.calculator-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calculator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  box-shadow: var(--shadow-card);
}

.calc-info h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.calc-info p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(205, 40, 77, 0.2);
}

.calc-output-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-summary-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-red);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
}

.calc-details-list { margin-bottom: 1.25rem; }

.calc-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.calc-detail-item span:last-child {
  color: var(--text-main);
  font-weight: 700;
}

.calc-estimated-price {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 1.15rem;
  text-align: right;
}

@media (max-width: 992px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.why-icon {
  width: 48px; height: 48px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 18px rgba(205, 40, 77, 0.35);
}

.why-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.why-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

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

@media (max-width: 576px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* --- Testimonials Slider --- */
.testimonials-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonial-container {
  max-width: 850px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stars {
  color: var(--accent-gold);
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff !important;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(205, 40, 77, 0.35);
}

.author-info { text-align: left; }
.author-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}
.author-location {
  font-size: 0.78rem;
  color: var(--accent-red);
  font-weight: 600;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.nav-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: all var(--transition);
}

.nav-dot.active {
  background: var(--accent-red);
  width: 26px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   DESKTOP: 3 PER ROW (2 ROWS) | MOBILE: EXACTLY 2 PER ROW (EXACTLY 2 ROWS / 4 CARDS)
   ========================================================================== */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop: 3 cards per row */
  gap: 1.75rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.blog-img {
  height: 180px;
  overflow: hidden;
}

.blog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.blog-category { color: var(--accent-red); }

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.38;
  margin-bottom: 0.65rem;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

/* MOBILE: EXACTLY 2 CARDS PER ROW x 2 ROWS (TOTAL 4 CARDS) */
@media (max-width: 992px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 cards per row (half half) */
    gap: 1rem !important;
  }

  /* Show only 4 cards (2 rows of 2) on mobile as requested */
  .blog-card:nth-child(n+5) {
    display: none !important;
  }

  .blog-content { text-align: center !important; align-items: center !important; padding: 1rem; }
  .blog-title { font-size: 0.92rem; }
  .blog-excerpt { font-size: 0.8rem; }
  .blog-card .btn { align-self: center !important; }
}

@media (max-width: 576px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .blog-img { height: 130px; }
}

/* --- Contact Us Section --- */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition);
}

.contact-info-item:hover {
  transform: translateX(5px);
  border-color: var(--border-accent);
}

.contact-icon {
  width: 40px; height: 40px;
  background: rgba(205, 40, 77, 0.1);
  color: var(--accent-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-info-text p, .contact-info-text a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-info-text a:hover {
  color: var(--accent-red);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  color: var(--text-dim);
  max-width: 310px;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-red); }

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* --- Floating WhatsApp & Back to Top --- */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 54px; height: 54px;
  background: var(--accent-green);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform var(--transition);
}

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

.back-to-top {
  position: fixed;
  bottom: 2rem; right: 6rem;
  width: 42px; height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-red);
  color: #ffffff !important;
  border-color: var(--accent-red);
}

/* --- Scroll Reveal Animations --- */
.reveal, .reveal-left, .reveal-right, .reveal-zoom {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal { transform: translateY(35px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom { transform: scale(0.92); }

.reveal.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   BLOG PAGINATION STYLES
   ========================================================================== */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
}

.page-num:hover, .page-num.active {
  background: var(--accent-red);
  color: #ffffff !important;
  border-color: var(--accent-red);
}

.page-dots {
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 0.4rem;
  font-size: 1.1rem;
}

.pagination-btn-next {
  background: #1e40af; /* Rich blue matching screenshot or red brand theme */
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff !important;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pagination-btn-next:hover {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.5);
}

/* ==========================================================================
   FULL HOME SCREEN TRAVELING GLASS BUBBLES ANIMATION
   ========================================================================== */
.hero-traveling-bubbles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.travel-bubble {
  position: absolute;
  pointer-events: auto;
  z-index: 1;
}

.bubble-glass {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.5) 58%, rgba(205, 40, 77, 0.2));
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 16px 38px rgba(205, 40, 77, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.95),
    inset -8px -8px 16px rgba(205, 40, 77, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

[data-theme="dark"] .bubble-glass {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(20, 9, 12, 0.75) 70%, rgba(205, 40, 77, 0.4));
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.bubble-glass img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

/* Individual Floating Starting Points & Traveling Motion Path Keyframes */
.travel-bubble.bubble-1 {
  top: 10%;
  left: 6%;
  animation: travel-motion-1 18s ease-in-out infinite alternate;
}

.travel-bubble.bubble-2 {
  top: 16%;
  right: 8%;
  animation: travel-motion-2 22s ease-in-out infinite alternate 1s;
}

.travel-bubble.bubble-3 {
  bottom: 18%;
  left: 10%;
  animation: travel-motion-3 20s ease-in-out infinite alternate 2s;
}

.travel-bubble.bubble-4 {
  bottom: 12%;
  right: 12%;
  animation: travel-motion-4 24s ease-in-out infinite alternate 0.5s;
}

.travel-bubble.bubble-5 {
  top: 48%;
  left: 4%;
  animation: travel-motion-5 19s ease-in-out infinite alternate 1.5s;
}

/* Traveling Physics Keyframe Motion Paths */
@keyframes travel-motion-1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(140px, 90px) scale(1.12) rotate(15deg); }
  50% { transform: translate(260px, -50px) scale(0.9) rotate(-20deg); }
  75% { transform: translate(70px, 160px) scale(1.08) rotate(10deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes travel-motion-2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(-160px, 110px) scale(0.88) rotate(-15deg); }
  50% { transform: translate(-290px, -40px) scale(1.14) rotate(25deg); }
  75% { transform: translate(-110px, -120px) scale(1.02) rotate(-10deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes travel-motion-3 {
  0% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(180px, -140px) scale(1.15); }
  60% { transform: translate(320px, 40px) scale(0.86); }
  85% { transform: translate(100px, -70px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes travel-motion-4 {
  0% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-180px, -150px) scale(1.08); }
  55% { transform: translate(-310px, 70px) scale(0.9); }
  80% { transform: translate(-90px, -90px) scale(1.14); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes travel-motion-5 {
  0% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(180px, -190px) scale(1.15); }
  70% { transform: translate(310px, 90px) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Hover Interaction on Traveling Bubbles */
.travel-bubble:hover {
  z-index: 100;
}

.travel-bubble:hover .bubble-glass {
  transform: scale(1.3);
  border-color: var(--accent-red);
  box-shadow: 
    0 18px 40px rgba(205, 40, 77, 0.5),
    0 0 25px rgba(205, 40, 77, 0.45),
    inset 0 0 20px rgba(255, 255, 255, 0.95);
}

.travel-bubble:hover .bubble-glass img {
  transform: scale(1.12);
}

@media (max-width: 768px) {
  .bubble-glass {
    width: 74px;
    height: 74px;
    padding: 0.7rem;
  }
  .travel-bubble.bubble-1 { top: 6%; left: 3%; }
  .travel-bubble.bubble-2 { top: 8%; right: 3%; }
  .travel-bubble.bubble-3 { bottom: 8%; left: 3%; }
  .travel-bubble.bubble-4 { bottom: 6%; right: 3%; }
  .travel-bubble.bubble-5 { top: 48%; left: 2%; }
}
