/* ==========================================================================
   CSS Stylesheet for 400Grados (Serviços de Topografia e SIG)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Transition durations */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;

  /* Layout */
  --header-height: 80px;
  --border-radius-sm: 4px;
  --border-radius-md: 10px;
  --border-radius-lg: 20px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.25);
  
  /* Single Light-Theme Brand Colors */
  --color-bg-base: #f8fafc;
  --color-bg-surface: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-alt: #f1f5f9;
  --color-primary: #f3b31c; /* Brand Gold for CTA buttons and highlights */
  --color-primary-rgb: 243, 179, 28;
  --color-secondary: #d99b10; /* Darker Gold for hover state */
  --color-accent: #112656; /* Brand Deep Navy Blue for headings and branding */
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --border-color: rgba(17, 38, 86, 0.08);
  --input-bg: #f1f5f9;
  --input-focus-border: #112656;
  --header-bg: rgba(255, 255, 255, 0.85);
  --glow-opacity: 0.04;
  --logo-color-1: #112656;
  --logo-color-2: #f3b31c;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

p {
  text-align: justify;
  text-justify: inter-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-accent);
}

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

a:hover {
  color: var(--color-secondary);
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grids */
.grid {
  display: grid;
  gap: 30px;
  align-items: stretch;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.grid-4-footer {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-4-footer {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Section Spacing */
.section-padding {
  padding: 40px 0;
}

.bg-alt {
  background-color: var(--color-bg-alt);
}

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

.font-bold {
  font-weight: 700;
}

.text-cyan {
  color: var(--color-primary) !important;
}

.w-full {
  width: 100%;
}

/* Ambient glow orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: var(--glow-opacity);
  transition: opacity var(--transition-normal);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--color-secondary);
  bottom: 20%;
  left: -200px;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  bottom: -50px;
  right: 10%;
}

/* Section Header Styles */
.section-header {
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast) ease;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(243, 179, 28, 0.3);
  color: var(--color-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
  background: rgba(17, 38, 86, 0.05);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 30px;
  font-size: 1.05rem;
  border-radius: var(--border-radius-sm);
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Header & Glassmorphic Navigation */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: background-color var(--transition-normal), height var(--transition-normal);
}

.header-container {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-logo {
  height: 52px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--logo-color-1);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-text-highlight {
  color: var(--logo-color-2);
}

.nav-menu {
  display: none;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    gap: 24px;
  }
  
  .nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 6px 0;
    position: relative;
  }
  
  .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-fast) ease;
  }
  
  .nav-item:hover, .nav-item.active {
    color: var(--color-text);
  }
  
  .nav-item.active::after, .nav-item:hover::after {
    width: 100%;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-nav-cta {
  display: none;
}

@media (min-width: 640px) {
  .btn-nav-cta {
    display: inline-flex;
  }
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast) ease;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--color-bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.mobile-nav-drawer.open {
  right: 0;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-logo {
  height: 48px;
}

.btn-close-drawer {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

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

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-contacts {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.mobile-contacts p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  z-index: 1;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #0f1524 0%, #07090e 100%);
}

body.light-mode .hero-canvas {
  background: radial-gradient(circle at center, #e0f2fe 0%, #f8fafc 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-laser-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--color-accent); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 35px;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
}

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

.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  z-index: 2;
  transition: color var(--transition-fast);
}

.scroll-down-indicator:hover {
  color: var(--color-primary);
}

.mouse-icon {
  width: 26px;
  height: 44px;
  border: 2px solid currentColor;
  border-radius: 20px;
  display: block;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: currentColor;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { top: 8px; opacity: 1; }
  50% { top: 18px; opacity: 0; }
  100% { top: 8px; opacity: 1; }
}

/* Quem Somos (About) Section */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-explanation-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.brand-explanation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
}

.explanation-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.explanation-note {
  margin-top: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

/* Interactive Gon Widget */
.interactive-gon-widget {
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  text-align: center;
}

body.light-mode .interactive-gon-widget {
  background: rgba(0, 0, 0, 0.03);
}

.gon-interaction-text {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Pillars List */
.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.pillar-item {
  display: flex;
  gap: 16px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 50%;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pillar-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.pillar-info p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Serviços (Services) Cards */
.service-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 35px 30px;
  transition: all var(--transition-normal) ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.3);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(79, 172, 254, 0.1) 100%);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #07090e;
}

.service-name {
  font-size: 1.35rem;
  margin-bottom: 12px;
  height: 3.2rem;
  display: flex;
  align-items: center;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  height: 8.5rem;
  overflow: hidden;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 0.88rem;
  height: 9.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
}

/* Tecnologia Slider styling */
.tech-equipment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.eq-item {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.eq-item i {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-top: 4px;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-slider {
  width: 100%;
  height: 380px;
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.slider-image {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: calc(100% - 25px);
  background-size: cover;
  background-position: center;
}

/* Embedding High-Tech SVGs as inline url values in CSS */
/* Real View: Color representation of building */
.image-real {
  background-color: #1e293b;
  background-image: url('assets/slider-real.png');
}

/* LiDAR View: Glowing grid/contour point cloud representation */
.image-lidar {
  background-color: #0b121f;
  background-image: url('assets/slider-lidar.png');
}

.slider-label {
  position: absolute;
  bottom: 20px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  letter-spacing: 0.5px;
  pointer-events: none;
}

.label-left {
  left: 20px;
}

.label-right {
  right: 20px;
}

.slider-handle {
  position: absolute;
  top: 25px;
  left: 50%;
  width: 4px;
  height: calc(100% - 25px);
  background-color: var(--color-primary);
  cursor: ew-resize;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.handle-line {
  width: 2px;
  height: calc(50% - 20px);
  background: var(--color-primary);
}

.handle-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #07090e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  font-size: 0.95rem;
}

/* Setores de Atuação */
.sector-card {
  position: relative;
  background-color: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  overflow: hidden;
  z-index: 1;
}

.sector-bg-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.05;
  transition: all var(--transition-normal);
  z-index: -1;
}

.sector-card:hover .sector-bg-glow {
  width: 150px;
  height: 150px;
  opacity: 0.2;
}

.sector-content i {
  font-size: 2.25rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: inline-block;
}

.sector-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.sector-content p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* FAQ Accordion Section */
.faq-accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-trigger {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.faq-trigger:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal) ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1);
}

.faq-panel p {
  padding-bottom: 24px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Contact & Lead Form styling */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.direct-contacts {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cm-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.12);
  color: var(--color-primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cm-details {
  display: flex;
  flex-direction: column;
}

.cm-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cm-value {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-form-container {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.budget-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-group label .required {
  color: #ff3b30;
}

.form-control {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  width: 100%;
  transition: all var(--transition-fast) ease;
}

.form-control:focus {
  border-color: var(--input-focus-border);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea.form-control {
  resize: vertical;
}

.grid-2-form {
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .grid-2-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

.error-msg {
  color: #ff3b30;
  font-size: 0.8rem;
  display: none;
}

.form-control.invalid {
  border-color: #ff3b30;
}

.form-control.invalid + .error-msg {
  display: block;
}

/* Calculator box in form */
.calculator-estimation {
  background: rgba(0, 242, 254, 0.05);
  border: 1px dashed rgba(0, 242, 254, 0.25);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  animation: slideDown 0.3s ease-out;
}

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

.calc-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 6px 0;
}

.calc-disclaimer {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.btn-submit {
  padding: 14px 20px;
  font-size: 1rem;
}

/* Success State styling */
.form-success-state {
  text-align: center;
  padding: 40px 10px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-icon {
  font-size: 3.5rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.form-success-state h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.form-success-state p {
  color: var(--color-text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Footer styling */
.footer-area {
  background-color: #030406;
  border-top: 1px solid var(--border-color);
  padding-top: 0;
  position: relative;
  z-index: 1;
}

body.light-mode .footer-area {
  background-color: #f1f5f9;
}

.footer-unified-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 24px;
  gap: 12px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  width: 100%;
}

.footer-brand-block .social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 0;
}

.footer-bottom-block {
  width: 100%;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.footer-logo {
  height: 64px;
  width: auto;
  align-self: flex-start;
}

.footer-about-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast) ease;
}

body.light-mode .social-links a {
  background: rgba(0, 0, 0, 0.03);
}

.social-links a:hover {
  background: var(--color-primary);
  color: #07090e;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-contact-details i {
  margin-right: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.legal-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--color-text-muted);
}

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

.group-label {
  display: inline-block;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border-color);
  color: var(--color-text-muted);
  opacity: 0.75;
  vertical-align: middle;
}

.group-label strong {
  font-weight: 600;
  color: var(--color-accent);
  opacity: 1;
}


/* ==========================================================================
   LAYOUT IMPROVEMENTS & PREMIUM LIGHT-MODE AESTHETICS
   ========================================================================== */

/* Topography coordinate grid for sections in light mode */
body.light-mode .about-section,
body.light-mode .sectors-section {
  background-image: radial-gradient(rgba(17, 38, 86, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glass header overrides for light mode scrolled state */
body.light-mode #site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Light mode card shadow transitions */
body.light-mode .service-card,
body.light-mode .sector-card,
body.light-mode .contact-form-container,
body.light-mode .brand-explanation-card {
  background-color: #ffffff;
  border: 1px solid rgba(17, 38, 86, 0.08);
  box-shadow: 0 4px 20px rgba(17, 38, 86, 0.03);
  transition: all var(--transition-normal) ease;
}

body.light-mode .service-card:hover,
body.light-mode .sector-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(17, 38, 86, 0.08);
}

/* Pricing box light mode details */
body.light-mode .calculator-estimation {
  background: rgba(17, 38, 86, 0.03);
  border: 1px dashed rgba(17, 38, 86, 0.15);
}

/* Premium comparison visualizer app frame */
.comparison-slider {
  padding-top: 25px; /* space for the top header */
}

.comparison-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--border-color);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 25" width="50" height="12"><circle cx="15" cy="12.5" r="5" fill="%23ff5f56"/><circle cx="35" cy="12.5" r="5" fill="%23ffbd2e"/><circle cx="55" cy="12.5" r="5" fill="%2327c93f"/></svg>');
  background-repeat: no-repeat;
  background-position: left 10px center;
  z-index: 12;
}


.slider-image {
  top: 25px !important;
  height: calc(100% - 25px) !important;
}

.slider-handle {
  top: 25px !important;
  height: calc(100% - 25px) !important;
}

/* FAQ borders */
.faq-item {
  border-bottom: 1px solid rgba(17, 38, 86, 0.08);
}

/* Projects Section */
.projects-section {
  background-color: var(--color-bg-base);
  position: relative;
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-surface);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(17, 38, 86, 0.03);
  transition: all var(--transition-normal) ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(17, 38, 86, 0.08);
  border-color: var(--color-primary);
}

.project-image-placeholder {
  height: 180px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.project-image-placeholder svg,
.project-card-image {
  transition: transform var(--transition-slow) ease;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .project-image-placeholder svg,
.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-info {
  padding: 24px;
}

.project-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(243, 179, 28, 0.1);
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-accent);
  height: 3.2rem;
  display: flex;
  align-items: center;
}

.project-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-precision {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* Accreditations Section */
.accreditations-section {
  background-color: var(--card-bg);
}

.accreditations-list {
  max-width: 800px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accred-item-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.accred-item-text i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.accreditations-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

.logo-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 160px;
    min-height: 150px;
    padding: 10px;

    background: #fff;
    border: 1px solid rgba(17,38,86,.08);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,.02);

    transition: all .45s ease;
}

.logo-item:hover {
    transform: translateY(-4px);
    border-color: #dca318;
    box-shadow: 0 12px 22px rgba(17,38,86,.08);
}

.accred-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 65px;
    margin-bottom: 10px;

    overflow: visible;
}

.accred-logo-img {
    display: block;

    max-width: 90%;
    max-height: 60px;

    width: auto;
    height: auto;

    object-fit: contain;

    transform: none !important;
    transition: none !important;
}

.logo-caption {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}
/* ==========================================================================
   MOBILE RESPONSIVENESS — max-width: 640px
   ========================================================================== */

@media (max-width: 640px) {

  /* ---- Global ---- */
  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 25px 0;
  }

  .section-title {
    font-size: 1.6rem !important;
  }

  .section-description {
    font-size: 0.95rem;
  }

  /* ---- Header ---- */
  .header-container {
    padding: 0 16px;
    height: 64px;
  }

  .main-logo {
    height: 36px !important;
  }

  /* ---- Hero ---- */
  .hero-section {
    min-height: 100svh;
    padding-top: 80px;
  }

  .glow-orb {
    display: none !important;
  }

  .scroll-down-indicator {
    display: none !important;
  }

  .badge {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

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

  .hero-title {
    font-size: 2rem !important;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
  }

  .stat-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
  }

  .stat-num {
    font-size: 1.5rem !important;
    min-width: 70px;
  }

  /* ---- About Section — stack vertically ---- */
  .about-section .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .about-visual {
    order: 2;
  }

  .about-text {
    order: 1;
  }

  .brand-explanation-card {
    padding: 20px 16px;
  }

  .pillars-list {
    gap: 14px;
  }

  /* ---- Services Cards — single column ---- */
  #services-grid.grid-3 {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-name {
    font-size: 1.15rem;
  }

  /* ---- Technology section ---- */
  .tech-slide {
    grid-template-columns: 1fr !important;
  }

  .slider-controls {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  /* ---- Sectors ---- */
  .sectors-section .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* ---- Projects ---- */
  .projects-section .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* ---- FAQ ---- */
  .faq-question {
    font-size: 0.95rem;
    padding: 16px 14px;
  }

  /* ---- Accreditations ---- */
  .logos-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
  }

  .logo-item {
    padding: 12px 8px;
    min-height: 140px;
  }

  .accred-logo-wrapper {
    height: 40px;
    margin-bottom: 8px;
  }

  .accred-logo-img {
    max-height: 100%;
    width: auto;
    height: auto;
  }

  .logo-caption {
    font-size: 0.6rem;
  }

  /* ---- Contact Section ---- */
  .contact-section .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .contact-info-col {
    order: 2;
  }

  .contact-form-col {
    order: 1;
  }

  .grid-2-form {
    grid-template-columns: 1fr !important;
  }

  /* ---- Footer ---- */
  .footer-brand-block .social-links {
    margin-top: 24px !important;
  }

  .footer-main-content {
    padding: 40px 16px 20px;
  }

  .grid-4-footer {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .footer-about-text {
    font-size: 0.88rem;
  }

  .footer-bottom-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
  }

  .copyright-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
  }

  .group-label {
    display: block;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 2px;
  }

  .legal-links {
    font-size: 0.78rem;
    gap: 8px;
  }

  /* ---- Buttons ---- */
  .btn-large {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  /* ---- Section headers ---- */
  .section-header {
    margin-bottom: 30px;
  }

  /* ---- Interactive Gon Widget ---- */
  .interactive-gon-widget svg {
    height: 130px;
  }

  /* ---- Comparison Slider ---- */
  .comparison-slider {
    height: 280px !important;
  }

  .slider-fullscreen-btn {
    display: none !important;
  }
}

/* Tablet: 641px – 1023px */
@media (min-width: 641px) and (max-width: 1023px) {

  .hero-title {
    font-size: 2.8rem !important;
  }

  .about-section .grid-2 {
    grid-template-columns: 1fr !important;
  }

  #services-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .sectors-section .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .projects-section .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .grid-4-footer {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .logos-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ==========================================================================
   PROJECT LIGHTBOX GALLERY
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1100px;
  height: 85vh;
  max-height: 800px;
  background-color: var(--color-bg-surface);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 10;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-base);
  border: 1px solid var(--border-color);
  color: var(--color-accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast) ease;
}

.lightbox-close:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-body {
  display: flex;
  width: 100%;
  height: 100%;
}

.lightbox-slider-col {
  flex: 1.4;
  background-color: #0b0f19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.lightbox-slider-container {
  position: relative;
  width: 100%;
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  z-index: 15;
}

.lightbox-nav-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.lightbox-counter {
  position: absolute;
  top: 15px;
  left: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 15;
}

.lightbox-dots {
  display: flex;
  gap: 8px;
  padding: 15px;
  justify-content: center;
  z-index: 15;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.lightbox-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.3);
}

.lightbox-info-col {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
}

.lightbox-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.lightbox-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 24px;
  line-height: 1.2;
}

.lightbox-details h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.lightbox-details p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: justify;
}

.lightbox-equip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-equip-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-equip-list li::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-primary);
}

/* Card hover cursor and elements */
.project-card {
  cursor: pointer;
}

.project-view-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 16px;
  transition: all var(--transition-fast) ease;
}

.project-card:hover .project-view-more {
  color: var(--color-secondary);
  transform: translateX(4px);
}

/* Responsive lightbox styles */
@media (max-width: 850px) {
  .lightbox-content {
    height: 90vh;
    max-height: none;
    width: 95%;
  }
  
  .lightbox-body {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .lightbox-slider-col {
    flex: none;
    height: 350px;
  }
  
  .lightbox-info-col {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 24px;
  }
  
  .lightbox-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .lightbox-slider-col {
    height: 250px;
  }
}

/* Fullscreen Comparison Slider Mode (Within the window) */
.slider-fullscreen-btn {
  position: absolute;
  top: 4px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  z-index: 20;
  font-size: 0.85rem;
  padding: 2px 6px;
  transition: all var(--transition-fast) ease;
}

.slider-fullscreen-btn:hover {
  color: var(--color-primary);
  transform: scale(1.15);
}

.comparison-slider.fullscreen-active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  border-radius: 0;
  border: none;
  padding-top: 35px;
}

.comparison-slider.fullscreen-active::before {
  height: 35px;
  background-position: left 15px center;
  z-index: 12;
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.comparison-slider.fullscreen-active .slider-image {
  top: 35px !important;
  height: calc(100% - 35px) !important;
}

.comparison-slider.fullscreen-active .slider-handle {
  top: 35px !important;
  height: calc(100% - 35px) !important;
}

.comparison-slider.fullscreen-active .slider-fullscreen-btn {
  top: 8px;
  right: 18px;
  font-size: 1rem;
}

body.slider-fs-open {
  overflow: hidden !important;
}

/* Force justify text globally */
p, .tech-text p, .service-desc, .lightbox-details p {
  text-align: justify !important;
  text-justify: inter-word !important;
}
