/* ─────────────────────────────────────────
   UNIGINIX COMBINED STYLESHEET
   Main site styles + chat widget
───────────────────────────────────────── */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,400;0,600;0,700;1,400&family=Barlow+Condensed:wght@700;900&display=swap');

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────── */

:root {
  --blue:       #1a3fc4;
  --blue-dark:  #1230a0;
  --blue-light: #2a52e8;
  --black:      #0a0a0a;
  --white:      #ffffff;
  --gray:       #f2f4f8;
  --gray-mid:   #8a94a8;
  --gear-gap:   60px;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  background:  var(--white);
  color:       var(--black);
  overflow-x:  hidden;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 90px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--blue);
  overflow: visible;
}

.nav-logo-img {
    height: 65px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.nav-logo-gear {
  width: 38px;
  height: 38px;
}

.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--black);
}

.nav-logo-text span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 22px;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10001;
  background: rgba(26, 63, 196, 0.08);
  border-radius: 8px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Desktop only */
@media (min-width: 769px) {
  .nav-links {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  nav {
    padding: 0 18px;
    height: 85px;
  }

  .nav-logo-img {
    height: 52px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 95px;
    left: 16px;
    right: 16px;
    width: auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 0;
    margin: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
    z-index: 10000;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

    .nav-links .nav-cta {
    display: block;
    width: calc(100% - 24px);
    margin: 12px auto 6px;
    padding: 12px 16px;
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
  }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */

.hero {
  min-height:             100vh;
  display:                grid;
  grid-template-columns:  1fr 1fr;
  align-items:            center;
  padding:                100px 5vw 60px;
  background:             var(--black);
  position:               relative;
  overflow:               hidden;
}

.hero-gif-bg {
  position: absolute;
  inset:    0;
  z-index:  0;
}

.hero-gif-bg img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center;
  display:         block;
}

.hero-overlay {
  position:   absolute;
  inset:      0;
  z-index:    1;
  background:
    linear-gradient(
      to right,
      rgba(8, 8, 18, 0.93)  0%,
      rgba(8, 8, 18, 0.80) 45%,
      rgba(8, 8, 18, 0.55) 70%,
      rgba(8, 8, 18, 0.30) 100%
    ),
    linear-gradient(
      to top,
      rgba(8, 8, 18, 0.7) 0%,
      transparent          40%
    );
}

.hero-bg-pattern {
  position:         absolute;
  inset:            0;
  pointer-events:   none;
  z-index:          2;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent                    59px,
      rgba(26, 63, 196, 0.12)        59px,
      rgba(26, 63, 196, 0.12)        60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent                    59px,
      rgba(26, 63, 196, 0.12)        59px,
      rgba(26, 63, 196, 0.12)        60px
    );
  animation: patternShift 8s ease-in-out infinite alternate;
}

@keyframes patternShift {
  from {
    opacity:   0.6;
    transform: scale(1);
  }
  to {
    opacity:   1;
    transform: scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index:  10;
}

.hero-eyebrow {
  font-family:    'Barlow Condensed', sans-serif;
  font-weight:    700;
  font-size:      0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color:          var(--blue-light);
  margin-bottom:  18px;
}

.hero-title {
  font-family:   'Bebas Neue', sans-serif;
  font-size:     clamp(3.5rem, 7vw, 6.5rem);
  line-height:   0.95;
  color:         var(--white);
  margin-bottom: 24px;
}

.hero-title .accent {
  color:   var(--blue-light);
  display: block;
}

.hero-subtitle {
  font-size:     1.1rem;
  line-height:   1.7;
  color:         rgba(255, 255, 255, 0.65);
  max-width:     480px;
  margin-bottom: 40px;
}

.hero-btns {
  display:   flex;
  gap:       16px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */

.btn-primary {
  display:         inline-block;
  background:      var(--blue);
  color:           var(--white);
  font-family:     'Barlow Condensed', sans-serif;
  font-weight:     700;
  font-size:       1rem;
  letter-spacing:  2px;
  text-transform:  uppercase;
  padding:         14px 36px;
  text-decoration: none;
  clip-path:       polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition:      background 0.2s, transform 0.2s;
}

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

.btn-outline {
  display:         inline-block;
  color:           var(--white);
  border:          2px solid rgba(255, 255, 255, 0.3);
  font-family:     'Barlow Condensed', sans-serif;
  font-weight:     700;
  font-size:       1rem;
  letter-spacing:  2px;
  text-transform:  uppercase;
  padding:         12px 34px;
  text-decoration: none;
  transition:      border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--blue-light);
  color:        var(--blue-light);
  transform:    translateY(-2px);
}

.btn-white {
  display:         inline-block;
  background:      var(--white);
  color:           var(--blue);
  font-family:     'Barlow Condensed', sans-serif;
  font-weight:     700;
  font-size:       1rem;
  letter-spacing:  2px;
  text-transform:  uppercase;
  padding:         16px 48px;
  text-decoration: none;
  clip-path:       polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition:      opacity 0.2s, transform 0.2s;
}

.btn-white:hover {
  opacity:   0.9;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   HERO GEAR VISUAL
───────────────────────────────────────── */

.hero-visual {
  position:        relative;
  z-index:         10;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.hero-gear-wrap {
  position:  relative;
  animation: spin-slow 20s linear infinite;
}

.hero-gear-wrap::before {
  content:       '';
  position:      absolute;
  inset:         -20px;
  border-radius: 50%;
  background:    radial-gradient(circle, rgba(8, 8, 18, 0.65) 40%, transparent 75%);
  z-index:       0;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-gear-svg {
  width:    clamp(260px, 32vw, 440px);
  height:   auto;
  filter:   drop-shadow(0 0 60px rgba(26, 63, 196, 0.5));
  position: relative;
  z-index:  1;
}

.hero-gear-center {
  position:        absolute;
  inset:           0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  z-index:         2;
}

.hero-gear-label {
  animation:  counter-spin 20s linear infinite;
  text-align: center;
}

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.hero-gear-label p {
  font-family:    'Barlow Condensed', sans-serif;
  font-weight:    700;
  font-size:      clamp(1.5rem, 3vw, 2.8rem);
  color:          var(--white);
  letter-spacing: 2px;
  line-height:    1;
}

.hero-gear-label small {
  font-size:      0.7rem;
  letter-spacing: 4px;
  color:          rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   STATS BAR
───────────────────────────────────────── */

.stats-bar {
  background:             var(--blue);
  display:                grid;
  grid-template-columns:  repeat(4, 1fr);
  text-align:             center;
  padding:                0;
}

.stat-item {
  padding:      28px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  position:     relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family:  'Bebas Neue', sans-serif;
  font-size:    2.8rem;
  color:        var(--white);
  line-height:  1;
  display:      block;
}

.stat-label {
  font-size:      0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.65);
  margin-top:     4px;
  display:        block;
}

/* ─────────────────────────────────────────
   GENERAL SECTIONS
───────────────────────────────────────── */

section {
  padding: 100px 5vw;
}

.section-tag {
  display:        inline-block;
  font-family:    'Barlow Condensed', sans-serif;
  font-weight:    700;
  font-size:      0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color:          var(--blue);
  border-left:    3px solid var(--blue);
  padding-left:   12px;
  margin-bottom:  16px;
}

.section-title {
  font-family:   'Bebas Neue', sans-serif;
  font-size:     clamp(2.5rem, 5vw, 4.5rem);
  line-height:   1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size:   1.05rem;
  color:       #555;
  max-width:   560px;
  line-height: 1.7;
}

.section-tag-light {
  border-color: rgba(255, 255, 255, 0.3);
  color:        rgba(255, 255, 255, 0.5);
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */

#services {
  background: var(--gray);
}

.services-header {
  margin-bottom: 60px;
}

.services-grid {
  display:                grid;
  grid-template-columns:  repeat(auto-fit, minmax(280px, 1fr));
  gap:                    2px;
}

.service-card {
  background: var(--white);
  padding:    44px 36px;
  position:   relative;
  overflow:   hidden;
  transition: transform 0.3s;
  cursor:     default;
}

.service-card::before {
  content:          '';
  position:         absolute;
  top:              0;
  left:             0;
  right:            0;
  height:           4px;
  background:       var(--blue);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.35s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width:         52px;
  height:        52px;
  background:    var(--blue);
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin-bottom: 24px;
  clip-path:     polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.service-icon svg {
  width:  26px;
  height: 26px;
  fill:   white;
}

.service-title {
  font-family:    'Barlow Condensed', sans-serif;
  font-weight:    900;
  font-size:      1.35rem;
  letter-spacing: 1px;
  margin-bottom:  12px;
  text-transform: uppercase;
}

.service-desc {
  font-size:   0.95rem;
  line-height: 1.7;
  color:       #555;
}

.service-num {
  position:       absolute;
  bottom:         20px;
  right:          28px;
  font-family:    'Bebas Neue', sans-serif;
  font-size:      5rem;
  color:          rgba(26, 63, 196, 0.06);
  line-height:    1;
  pointer-events: none;
  user-select:    none;
}

/* ─────────────────────────────────────────
   WHY US
───────────────────────────────────────── */

#why {
  display:                grid;
  grid-template-columns:  1fr 1fr;
  gap:                    80px;
  align-items:            center;
  padding:                100px 5vw;
}

.why-visual {
  position: relative;
}

.why-bg-box {
  position:   absolute;
  top:        30px;
  left:       -30px;
  width:      100%;
  height:     100%;
  background: var(--blue);
  z-index:    0;
  opacity:    0.08;
}

.why-inner {
  position:               relative;
  z-index:                1;
  display:                grid;
  grid-template-columns:  1fr 1fr;
  gap:                    16px;
}

.why-card {
  background: var(--black);
  color:      var(--white);
  padding:    28px 24px;
}

.why-card:nth-child(2),
.why-card:nth-child(4) {
  margin-top: 30px;
}

.why-card-icon {
  width:         36px;
  height:        36px;
  margin-bottom: 16px;
  color:         var(--blue-light);
}

.why-card h4 {
  font-family:    'Barlow Condensed', sans-serif;
  font-weight:    900;
  font-size:      1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom:  8px;
  color:          var(--white);
}

.why-card p {
  font-size:   0.85rem;
  color:       rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.why-content .section-subtitle {
  margin-bottom: 36px;
}

.checklist {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            14px;
}

.checklist li {
  display:     flex;
  align-items: flex-start;
  gap:         12px;
  font-size:   0.95rem;
  color:       #333;
  line-height: 1.5;
}

.check-icon {
  width:           20px;
  height:          20px;
  min-width:       20px;
  background:      var(--blue);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-top:      2px;
}

.check-icon svg {
  width:  11px;
  height: 11px;
  stroke: white;
}

/* ─────────────────────────────────────────
   PROCESS
───────────────────────────────────────── */

#process {
  background: var(--black);
}

#process .section-title {
  color: var(--white);
}

#process .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.process-steps {
  display:                grid;
  grid-template-columns:  repeat(auto-fit, minmax(200px, 1fr));
  gap:                    0;
  margin-top:             60px;
  position:               relative;
}

.process-steps::before {
  content:    '';
  position:   absolute;
  top:        40px;
  left:       0;
  right:      0;
  height:     2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
}

.process-step {
  padding:  20px 24px;
  position: relative;
}

.step-dot {
  width:         20px;
  height:        20px;
  background:    var(--blue);
  border:        3px solid var(--black);
  border-radius: 50%;
  margin-bottom: 20px;
  position:      relative;
  z-index:       1;
  box-shadow:    0 0 0 3px var(--blue-light);
}

.step-num {
  font-family:   'Bebas Neue', sans-serif;
  font-size:     3.5rem;
  color:         rgba(26, 63, 196, 0.2);
  line-height:   1;
  margin-bottom: 8px;
}

.step-title {
  font-family:    'Barlow Condensed', sans-serif;
  font-weight:    900;
  font-size:      1.1rem;
  text-transform: uppercase;
  color:          var(--white);
  margin-bottom:  8px;
  letter-spacing: 1px;
}

.step-desc {
  font-size:   0.85rem;
  color:       rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   CTA
───────────────────────────────────────── */

#cta {
  background:  var(--blue);
  text-align:  center;
  padding:     100px 5vw;
}

#cta .section-title {
  color:         var(--white);
  margin-bottom: 20px;
}

#cta p {
  color:         rgba(255, 255, 255, 0.75);
  font-size:     1.1rem;
  max-width:     600px;
  margin:        0 auto 40px;
  line-height:   1.7;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */

footer {
  background: var(--black);
  padding:    60px 5vw 30px;
}

.footer-top {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   40px;
  margin-bottom:         50px;
  padding-bottom:        50px;
  border-bottom:         1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  font-size:   0.9rem;
  color:       rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-top:  16px;
  max-width:   300px;
}

.footer-col h5 {
  font-family:    'Barlow Condensed', sans-serif;
  font-weight:    900;
  font-size:      0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color:          var(--blue-light);
  margin-bottom:  20px;
}

.footer-col a {
  display:         block;
  font-size:       0.9rem;
  color:           rgba(255, 255, 255, 0.45);
  text-decoration: none;
  margin-bottom:   10px;
  transition:      color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  flex-wrap:       wrap;
  gap:             12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color:     rgba(255, 255, 255, 0.25);
}

.footer-tagline {
  font-style: italic;
  color:      rgba(255, 255, 255, 0.2);
  font-size:  0.8rem;
}

.footer-logo-text {
  font-family:    'Barlow Condensed', sans-serif;
  font-weight:    900;
  font-size:      1.8rem;
  color:          var(--white);
  letter-spacing: 2px;
}

.footer-logo-text span {
  color: var(--blue-light);
}

/* ─────────────────────────────────────────
   FADE-IN ANIMATION
───────────────────────────────────────── */

.fade-up {
  opacity:    0;
  transform:  translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-up.visible {
  opacity:   1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   CHAT WIDGET
───────────────────────────────────────── */

#chat-window {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 368px;
  height: 520px;
  background: #0d0d1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  z-index: 9998;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.88) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
  transform-origin: bottom right;
}

#chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

#chat-bubble {
  position:      fixed;
  bottom:        28px;
  right:         28px;
  width:         56px;
  height:        56px;
  background:    var(--blue);
  border-radius: 50%;
  display:       flex;
  align-items:   center;
  justify-content: center;
  cursor:        pointer;
  box-shadow:    0 4px 28px rgba(26, 63, 196, 0.55);
  z-index:       9999;
  transition:    transform 0.2s, box-shadow 0.2s;
  border:        none;
  outline:       none;
}

#chat-bubble:hover {
  transform:  scale(1.1);
  box-shadow: 0 6px 36px rgba(26, 63, 196, 0.7);
}

#chat-bubble svg {
  width:          24px;
  height:         24px;
  color:          #fff;
  stroke:         #fff;
  fill:           none;
  pointer-events: none;
}

#chat-bubble .icon-close {
  display: none;
}

#chat-bubble.open .icon-chat {
  display: none;
}

#chat-bubble.open .icon-close {
  display: block;
}

#chat-bubble::after {
  content:       '';
  position:      absolute;
  top:           4px;
  right:         4px;
  width:         10px;
  height:        10px;
  background:    #4eff91;
  border-radius: 50%;
  border:        2px solid var(--white);
  animation:     pulse-dot 2s infinite;
}

#chat-bubble.open::after {
  display: none;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity:   1;
  }
  50% {
    transform: scale(1.25);
    opacity:   0.7;
  }
}

#chatInput:disabled {
  opacity: 0.7;
  cursor:  not-allowed;
}

#chatSend:disabled {
  opacity: 0.5;
  cursor:  not-allowed;
}

.chat-header {
  background: linear-gradient(135deg, #1a3fc4 0%, #1230a0 100%);
  padding:    16px 20px;
  display:    flex;
  align-items: center;
  gap:        12px;
  flex-shrink: 0;
}

.chat-avatar {
  width:           38px;
  height:          38px;
  background:      rgba(255, 255, 255, 0.15);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  font-family:     'Barlow Condensed', sans-serif;
  font-size:       14px;
  font-weight:     700;
  letter-spacing:  0.05em;
  color:           #fff;
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      14px;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          #fff;
  margin:         0;
}

.chat-header-status {
  display:     flex;
  align-items: center;
  gap:         6px;
  margin-top:  3px;
}

.status-dot {
  width:         7px;
  height:        7px;
  background:    #4eff91;
  border-radius: 50%;
  flex-shrink:   0;
}

.chat-header-status span {
  font-size:   11px;
  color:       rgba(255, 255, 255, 0.6);
  font-family: 'Barlow', sans-serif;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 63, 196, 0.25) transparent;
  -webkit-overflow-scrolling: touch;
}
.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background:    rgba(26, 63, 196, 0.3);
  border-radius: 4px;
}

.chat-day-divider {
  text-align:     center;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.2);
  display:        flex;
  align-items:    center;
  gap:            10px;
  flex-shrink:    0;
}

.chat-day-divider::before,
.chat-day-divider::after {
  content:    '';
  flex:       1;
  height:     1px;
  background: rgba(255, 255, 255, 0.06);
}

.chat-bubble-wrap {
  display:        flex;
  flex-direction: column;
  gap:            3px;
}

.chat-bubble-wrap.user {
  align-items: flex-end;
}

.chat-bubble-wrap.bot {
  align-items: flex-start;
}

.chat-msg {
  max-width:   85%;
  padding:     10px 14px;
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-size:   13px;
  line-height: 1.55;
}

.chat-msg.bot {
  background:           rgba(255, 255, 255, 0.05);
  border:               1px solid rgba(255, 255, 255, 0.07);
  color:                rgba(255, 255, 255, 0.85);
  border-bottom-left-radius: 1px;
}

.chat-msg.user {
  background:            var(--blue);
  color:                 #fff;
  border-bottom-right-radius: 1px;
}

.chat-msg-time {
  font-size:   10px;
  color:       rgba(255, 255, 255, 0.2);
  font-family: 'Barlow', sans-serif;
  padding:     0 2px;
}

.typing-indicator {
  display:       flex;
  align-items:   center;
  gap:           4px;
  padding:       12px 16px;
  background:    rgba(255, 255, 255, 0.05);
  border:        1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  border-bottom-left-radius: 1px;
  width:         fit-content;
}

.typing-dot {
  width:         6px;
  height:        6px;
  background:    rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation:     typing-bounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity:   0.3;
  }
  30% {
    transform: translateY(-5px);
    opacity:   1;
  }
}

.quick-replies {
  display:     flex;
  flex-wrap:   wrap;
  gap:         7px;
  padding:     12px 16px;
  flex-shrink: 0;
  border-top:  1px solid rgba(255, 255, 255, 0.04);
}

.quick-reply {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.5);
  border:         1px solid rgba(255, 255, 255, 0.1);
  background:     rgba(255, 255, 255, 0.03);
  padding:        6px 12px;
  border-radius:  3px;
  cursor:         pointer;
  transition:     all 0.18s;
  white-space:    nowrap;
}

.quick-reply:hover {
  color:        #fff;
  border-color: rgba(26, 63, 196, 0.5);
  background:   rgba(26, 63, 196, 0.1);
}

.chat-input-row {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

#chatInput {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 16px;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
}

#chatInput::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

#chatSend {
  padding:         0 18px;
  background:      transparent;
  border:          none;
  border-left:     1px solid rgba(255, 255, 255, 0.06);
  color:           var(--blue);
  cursor:          pointer;
  transition:      color 0.2s, background 0.2s;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

#chatSend:hover {
  color:      #fff;
  background: rgba(26, 63, 196, 0.2);
}

#chatSend svg {
  width:  18px;
  height: 18px;
  stroke: currentColor;
  fill:   none;
}

/* ─────────────────────────────────────────
   PROJECTS PAGE
───────────────────────────────────────── */

.projects-page {
  background: #050508;
  color:      var(--white);
}

.projects-page nav {
  background:   #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.projects-page .nav-logo-img {
  height: 65px;
}

.projects-page nav .nav-links a {
  color: #0a0a0a;
}

.projects-page nav .nav-links a:hover,
.projects-page nav .nav-links a.active {
  color: #1a3fc4;
}

.projects-page .nav-links a::after {
  background: var(--blue);
}

.projects-page .nav-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.projects-page .nav-toggle {
  background: rgba(26, 63, 196, 0.08);
}

.projects-page .nav-toggle span {
  background: var(--blue);
}

/* ─── Projects Hero ─── */

.projects-hero {
  position:   relative;
  overflow:   hidden;
  padding:    160px 48px 80px;
  text-align: center;
  background: #050508;
}

.projects-hero-grid {
  position:         absolute;
  inset:            0;
  pointer-events:   none;
  background-image:
    linear-gradient(rgba(26, 63, 196, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 63, 196, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.projects-hero-glow {
  position:         absolute;
  top:              -120px;
  left:             50%;
  transform:        translateX(-50%);
  width:            700px;
  height:           500px;
  pointer-events:   none;
  background:       radial-gradient(ellipse, rgba(26, 63, 196, 0.2) 0%, transparent 68%);
}

.projects-hero-inner {
  position: relative;
  z-index:  1;
}

.projects-title {
  color:         var(--white);
  margin-bottom: 20px;
}

.projects-title span {
  color: var(--blue);
}

.projects-title-outline {
  -webkit-text-stroke: 2px rgba(180, 200, 255, 0.55);
  color:               transparent !important;
}

.projects-subtitle {
  color:     rgba(255, 255, 255, 0.4);
  max-width: 500px;
  margin:    0 auto 48px;
}

/* ─── Projects Stats ─── */

.projects-stats {
  position:        relative;
  z-index:         1;
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             48px;
  flex-wrap:       wrap;
  padding:         20px 48px;
  background:      rgba(255, 255, 255, 0.026);
  border:          1px solid rgba(255, 255, 255, 0.07);
  border-radius:   6px;
}

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

.projects-stat-number {
  font-family:    'Bebas Neue', sans-serif;
  font-size:      36px;
  color:          var(--white);
  letter-spacing: 0.04em;
  line-height:    1;
}

.projects-stat-number span {
  color: var(--blue);
}

.projects-stat-label {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      9px;
  font-weight:    700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.4);
  margin-top:     3px;
}

.projects-stat-divider {
  width:      1px;
  height:     36px;
  background: rgba(255, 255, 255, 0.07);
}

/* ─── Filter Bar ─── */

.projects-filter-wrap {
  padding:         0 48px 48px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  flex-wrap:       wrap;
}

.filter-btn {
  font-family:     'Barlow Condensed', sans-serif;
  font-size:       11px;
  font-weight:     700;
  letter-spacing:  0.14em;
  text-transform:  uppercase;
  color:           rgba(255, 255, 255, 0.4);
  border:          1px solid rgba(255, 255, 255, 0.07);
  background:      transparent;
  padding:         8px 18px;
  border-radius:   3px;
  cursor:          pointer;
  text-decoration: none;
  transition:      all 0.18s;
}

.filter-btn:hover {
  color:        var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background:   var(--blue);
  color:        var(--white);
  border-color: var(--blue);
}

/* ─── Featured Projects ─── */

.projects-featured {
  padding: 0 48px 72px;
}

.projects-featured .section-tag,
.projects-section .section-tag {
  color:            var(--blue);
  border-left-color: var(--blue);
}

.featured-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   20px;
}

.featured-card {
  background:    rgba(255, 255, 255, 0.026);
  border:        1px solid rgba(26, 63, 196, 0.2);
  border-radius: 8px;
  overflow:      hidden;
  cursor:        pointer;
  transition:    transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position:      relative;
}

.featured-card::before {
  content:    '';
  position:   absolute;
  top:        0;
  left:       0;
  right:      0;
  height:     2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.featured-card:hover {
  transform:    translateY(-5px);
  box-shadow:   0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(26, 63, 196, 0.4);
}

.featured-img {
  width:            100%;
  aspect-ratio:     16 / 9;
  object-fit:       cover;
  object-position:  top center;  
  display:          block;
  background:       rgba(26, 63, 196, 0.08);
}

.featured-img-placeholder {
  width:           100%;
  aspect-ratio:    16 / 9;
  background:      linear-gradient(135deg, rgba(26, 63, 196, 0.1), rgba(26, 63, 196, 0.03));
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-bottom:   1px solid rgba(255, 255, 255, 0.07);
}

.featured-img-placeholder svg {
  width:  48px;
  height: 48px;
  color:  rgba(26, 63, 196, 0.3);
}

.featured-body {
  padding: 28px 32px 32px;
}

/* ─── Project Cards ─── */

.projects-section {
  padding:    0 48px 100px;
  background: #050508;
}

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

.project-card {
  background:    rgba(255, 255, 255, 0.026);
  border:        1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow:      hidden;
  cursor:        pointer;
  transition:    transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position:      relative;
}

.project-card::before {
  content:    '';
  position:   absolute;
  top:        0;
  left:       0;
  right:      0;
  height:     2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity:    0;
  transition: opacity 0.22s;
}

.project-card:hover {
  transform:    translateY(-4px);
  box-shadow:   0 16px 48px rgba(0, 0, 0, 0.45);
  border-color: rgba(26, 63, 196, 0.3);
}

.project-card:hover::before {
  opacity: 1;
}

.card-img {
  width:            100%;
  aspect-ratio:     16 / 9;
  object-fit:       cover;
  object-position:  top center;  
  display:          block;
}

.card-img-placeholder {
  width:           100%;
  aspect-ratio:    16 / 9;
  background:      linear-gradient(135deg, rgba(26, 63, 196, 0.08), rgba(26, 63, 196, 0.02));
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-bottom:   1px solid rgba(255, 255, 255, 0.07);
}

.card-img-placeholder svg {
  width:  36px;
  height: 36px;
  color:  rgba(26, 63, 196, 0.25);
}

.card-body {
  padding: 22px 24px 24px;
}

.project-cat-badge {
  display:        inline-block;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      9px;
  font-weight:    700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--blue);
  border:         1px solid rgba(26, 63, 196, 0.35);
  padding:        3px 10px;
  border-radius:  2px;
  margin-bottom:  14px;
}

.project-name,
.card-name {
  font-family:    'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  color:          var(--white);
  line-height:    1;
}

.project-name {
  font-size:     28px;
  margin-bottom: 10px;
}

.card-name {
  font-size:     22px;
  margin-top:    10px;
  margin-bottom: 8px;
}

.project-short-desc,
.card-desc {
  color:       rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.project-short-desc {
  font-size:     13px;
  margin-bottom: 20px;
}

.card-desc {
  font-size:     12px;
  margin-bottom: 16px;
}

.project-tech {
  display:       flex;
  flex-wrap:     wrap;
  gap:           6px;
  margin-bottom: 20px;
}

.project-tech-tight {
  margin-bottom: 16px;
}

.tech-tag {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.35);
  background:     rgba(255, 255, 255, 0.04);
  border:         1px solid rgba(255, 255, 255, 0.07);
  padding:        4px 10px;
  border-radius:  2px;
}

.project-card-footer,
.card-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

.project-card-footer {
  padding-top: 16px;
  border-top:  1px solid rgba(255, 255, 255, 0.07);
}

.project-remark-preview {
  font-size:     12px;
  color:         rgba(255, 255, 255, 0.25);
  font-style:    italic;
  max-width:     300px;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.project-review-flag {
  font-size: 11px;
  color:     rgba(255, 255, 255, 0.2);
}

.btn-view-project {
  display:         inline-flex;
  align-items:     center;
  gap:             7px;
  font-family:     'Barlow Condensed', sans-serif;
  font-size:       11px;
  font-weight:     700;
  letter-spacing:  0.16em;
  text-transform:  uppercase;
  color:           var(--blue);
  background:      transparent;
  border:          none;
  cursor:          pointer;
  padding:         0;
  transition:      gap 0.2s, color 0.2s;
}

.btn-view-project:hover {
  color: var(--white);
  gap:   10px;
}

.btn-view-project svg {
  width:  14px;
  height: 14px;
}

/* ─── Empty State ─── */

.empty-state {
  grid-column: 1 / -1;
  text-align:  center;
  padding:     80px 24px;
}

.empty-state p {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.15);
}

/* ─────────────────────────────────────────
   MODAL
───────────────────────────────────────── */

.modal-overlay {
  position:        fixed;
  inset:           0;
  background:      rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index:         99999;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         20px;
  opacity:         0;
  pointer-events:  none;
  transition:      opacity 0.25s ease;
}

.modal-overlay.open {
  opacity:        1;
  pointer-events: all;
}

.modal {
  background:    linear-gradient(180deg, #101326 0%, #090b16 100%);
  border:        1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  width:         min(1160px, 96vw);
  height:        min(700px, 90vh);
  position:      relative;
  transform:     scale(0.96) translateY(16px);
  transition:    transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow:    0 28px 80px rgba(0, 0, 0, 0.55);
  overflow:      hidden;
  display:               grid;
  grid-template-columns: 1fr 1fr;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

/* ── Left panel: image gallery (sticky, never scrolls) */
.modal-gallery {
  position:       relative;
  background:     #060812;
  border-right:   1px solid rgba(255, 255, 255, 0.07);
  display:        flex;
  flex-direction: column;
  height:         100%;
  overflow:       hidden;
}

.gallery-main {
  width:            100%;
  flex:             1;
  min-height:       0;
  object-fit:       cover;
  object-position:  center top;
  display:          block;
  background:       #070710;
}

.gallery-main-placeholder {
  flex:            1;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      linear-gradient(135deg, rgba(26, 63, 196, 0.14), rgba(26, 63, 196, 0.04));
}

.gallery-main-placeholder svg {
  width:  56px;
  height: 56px;
  color:  rgba(26, 63, 196, 0.25);
}

.gallery-thumbs {
  display:        flex;
  gap:            8px;
  padding:        12px 14px;
  background:     rgba(0, 0, 0, 0.35);
  border-top:     1px solid rgba(255, 255, 255, 0.06);
  overflow-x:     auto;
  flex-shrink:    0;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  width:         80px;
  height:        52px;
  object-fit:    cover;
  border-radius: 6px;
  border:        2px solid transparent;
  cursor:        pointer;
  opacity:       0.55;
  transition:    0.2s ease;
  flex-shrink:   0;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity:      1;
  border-color: var(--blue);
  transform:    translateY(-2px);
}

/* ── Right panel: scrollable details */
.modal-body {
  overflow-y:     auto;
  height:         100%;
  padding:        36px 36px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 63, 196, 0.4) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background:    rgba(26, 63, 196, 0.4);
  border-radius: 4px;
}

.modal-header {
  margin-bottom: 22px;
}

.modal-cat-row {
  margin-bottom: 10px;
}

.modal-title {
  font-family:    'Bebas Neue', sans-serif;
  font-size:      clamp(2rem, 3vw, 3rem);
  letter-spacing: 0.04em;
  color:          var(--white);
  line-height:    0.95;
  margin:         0 0 14px;
}

.modal-short-desc {
  font-size:   14px;
  line-height: 1.8;
  color:       rgba(255, 255, 255, 0.65);
}

.modal-divider {
  border:     none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin:     24px 0;
}

.modal-section-title {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.3);
  margin-bottom:  12px;
}

.modal-details {
  font-size:    14px;
  color:        rgba(255, 255, 255, 0.82);
  line-height:  1.85;
  white-space:  pre-line;
}

/* Customer remark block */
.remark-block {
  background:    rgba(255, 255, 255, 0.03);
  border:        1px solid rgba(255, 255, 255, 0.07);
  border-left:   3px solid var(--blue);
  border-radius: 6px;
  padding:       18px 20px;
}

.remark-quote {
  font-size:    13px;
  color:        rgba(255, 255, 255, 0.7);
  line-height:  1.75;
  font-style:   italic;
  margin-bottom: 14px;
}

.remark-author {
  display:     flex;
  align-items: center;
  gap:         10px;
}

.remark-avatar {
  width:            32px;
  height:           32px;
  background:       var(--blue);
  border-radius:    50%;
  display:          flex;
  align-items:      center;
  justify-content:  center;
  font-family:      'Barlow Condensed', sans-serif;
  font-weight:      700;
  font-size:        13px;
  color:            #fff;
  flex-shrink:      0;
}

.remark-name {
  font-family:  'Barlow Condensed', sans-serif;
  font-size:    13px;
  font-weight:  700;
  color:        rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

.remark-role {
  font-size:  11px;
  color:      rgba(255, 255, 255, 0.35);
  margin-top: 1px;
}

/* Live link button */
.modal-live-link-wrap {
  margin-top: 20px;
}

.modal-live-link {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  background:      rgba(26, 63, 196, 0.15);
  border:          1px solid rgba(26, 63, 196, 0.4);
  color:           var(--blue-light);
  font-family:     'Barlow Condensed', sans-serif;
  font-size:       12px;
  font-weight:     700;
  letter-spacing:  0.14em;
  text-transform:  uppercase;
  text-decoration: none;
  padding:         10px 20px;
  border-radius:   4px;
  transition:      background 0.2s, color 0.2s, transform 0.15s;
}

.modal-live-link:hover {
  background: rgba(26, 63, 196, 0.3);
  color:      #fff;
  transform:  translateY(-1px);
}

.modal-live-link svg {
  width:  15px;
  height: 15px;
}

/* Close button */
.modal-close {
  position:        absolute;
  top:             14px;
  right:           14px;
  width:           40px;
  height:          40px;
  background:      rgba(8, 10, 20, 0.88);
  border:          1px solid rgba(255, 255, 255, 0.14);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  z-index:         30;
  transition:      0.2s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(26, 63, 196, 0.35);
  transform:  scale(1.06);
}

.modal-close svg {
  width:  16px;
  height: 16px;
  color:  rgba(255, 255, 255, 0.9);
  stroke: rgba(255, 255, 255, 0.9);
}

/* ─── Modal responsive ─── */

@media (max-width: 900px) {
  .modal {
    grid-template-columns: 1fr;
    grid-template-rows:    auto 1fr;
    height:                min(88vh, 680px);
    width:                 min(96vw, 640px);
  }

  .modal-gallery {
    height:    auto;
    flex:      none;
    border-right:   none;
    border-bottom:  1px solid rgba(255, 255, 255, 0.07);
  }

  .gallery-main {
    width:      100%;
    height:     260px;
    flex:       none;
    object-fit: cover;
  }

  .modal-body {
    padding: 26px 24px 32px;
  }
}

@media (max-width: 600px) {
  .modal-overlay {
    padding:     0;
    align-items: flex-end;
  }

  .modal {
    width:         100%;
    max-width:     100%;
    height:        min(92vh, 100dvh - 12px);
    border-radius: 16px 16px 0 0;
  }

  .gallery-main {
    height: 220px;
  }

  .modal-body {
    padding: 20px 18px 32px;
  }

  .modal-title {
    font-size: 26px;
  }

  .modal-short-desc {
    font-size: 13px;
  }
}

/* ─────────────────────────────────────────
   PROJECTS FOOTER OVERRIDES
───────────────────────────────────────── */

.projects-page footer {
  background: #050508;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.projects-page .footer-brand p,
.projects-page .footer-col a {
  color: rgba(255, 255, 255, 0.4);
}

.projects-page .footer-col h5 {
  color: rgba(255, 255, 255, 0.25);
}

.projects-page .footer-col a:hover {
  color: var(--white);
}

.projects-page .footer-bottom p {
  color: rgba(255, 255, 255, 0.2);
}

.projects-page .footer-tagline {
  color: rgba(255, 255, 255, 0.15);
}

/* ─────────────────────────────────────────
   QUOTE FORM PAGE
───────────────────────────────────────── */

.quote-page {
  min-height: 100vh;
  background: #050508;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  overflow-x: hidden;
}

.quote-page::before {
  content:          '';
  position:         fixed;
  inset:            0;
  background-image:
    linear-gradient(rgba(26, 63, 196, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 63, 196, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events:  none;
  z-index:         0;
}

.quote-glow {
  position:       fixed;
  top:            -200px;
  left:           50%;
  transform:      translateX(-50%);
  width:          700px;
  height:         500px;
  background:     radial-gradient(ellipse, rgba(26, 63, 196, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index:        0;
}

.quote-wrapper {
  position:  relative;
  z-index:   1;
  max-width: 820px;
  margin:    0 auto;
  padding:   0 24px;
}

.quote-header {
  text-align:    center;
  margin-bottom: 52px;
}

.quote-eyebrow {
  display:        inline-block;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          #1a3fc4;
  border:         1px solid rgba(26, 63, 196, 0.4);
  padding:        5px 16px;
  border-radius:  2px;
  margin-bottom:  20px;
}

.quote-title {
  font-family:   'Bebas Neue', cursive;
  font-size:     clamp(42px, 7vw, 72px);
  letter-spacing: 0.04em;
  line-height:   1;
  color:         #fff;
  margin-bottom: 14px;
}

.quote-title span {
  color: #1a3fc4;
}

.quote-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size:   15px;
  color:       rgba(255, 255, 255, 0.45);
  max-width:   480px;
  margin:      0 auto;
  line-height: 1.6;
}

.quote-card {
  background:      rgba(255, 255, 255, 0.026);
  border:          1px solid rgba(255, 255, 255, 0.07);
  border-radius:   6px;
  padding:         48px 52px;
  backdrop-filter: blur(8px);
  position:        relative;
}

.quote-card::before {
  content:       '';
  position:      absolute;
  top:           0;
  left:          0;
  right:         0;
  height:        2px;
  background:    linear-gradient(90deg, transparent, #1a3fc4, transparent);
  border-radius: 6px 6px 0 0;
}

.currency-toggle-wrap {
  display:       flex;
  align-items:   center;
  justify-content: flex-end;
  gap:           12px;
  margin-bottom: 36px;
}

.currency-label {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.35);
}

.currency-pills {
  display:       flex;
  background:    rgba(255, 255, 255, 0.05);
  border:        1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow:      hidden;
}

.currency-pill {
  padding:        7px 16px;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      12px;
  font-weight:    700;
  letter-spacing: 0.1em;
  color:          rgba(255, 255, 255, 0.35);
  cursor:         pointer;
  border:         none;
  background:     transparent;
  transition:     background 0.18s, color 0.18s;
  user-select:    none;
}

.currency-pill:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.currency-pill.active {
  background: #1a3fc4;
  color:      #fff;
}

.type-toggle {
  display:       flex;
  background:    rgba(255, 255, 255, 0.05);
  border:        1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow:      hidden;
}

.type-pill {
  flex:           1;
  padding:        10px 16px;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      12px;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.35);
  cursor:         pointer;
  border:         none;
  background:     transparent;
  transition:     background 0.18s, color 0.18s;
  user-select:    none;
  text-align:     center;
}

.type-pill:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.type-pill.active {
  background: #1a3fc4;
  color:      #fff;
}

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

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.5);
}

.form-label .required {
  color:       #1a3fc4;
  margin-left: 2px;
}

.form-input,
.form-select {
  width:          100%;
  background:     rgba(255, 255, 255, 0.04);
  border:         1px solid rgba(255, 255, 255, 0.09);
  border-radius:  4px;
  padding:        13px 16px;
  color:          #fff;
  font-family:    'Barlow', sans-serif;
  font-size:      14px;
  outline:        none;
  transition:     border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance:     none;
  box-sizing:     border-box;
}

.form-input:focus,
.form-select:focus {
  border-color: #1a3fc4;
  background:   rgba(26, 63, 196, 0.06);
  box-shadow:   0 0 0 3px rgba(26, 63, 196, 0.15);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content:        '';
  position:       absolute;
  right:          16px;
  top:            50%;
  transform:      translateY(-50%);
  width:          0;
  height:         0;
  border-left:    5px solid transparent;
  border-right:   5px solid transparent;
  border-top:     6px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.form-select option {
  background: #0d0d18;
  color:      #fff;
}

.pages-row {
  display:     flex;
  align-items: center;
  gap:         14px;
}

.pages-row .form-input {
  max-width:  100px;
  text-align: center;
}

.page-hint {
  font-family: 'Barlow', sans-serif;
  font-size:   12px;
  color:       rgba(255, 255, 255, 0.25);
  flex:        1;
}

.addons-stack {
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.price-preview {
  margin-top:  28px;
  padding:     20px 24px;
  background:  rgba(26, 63, 196, 0.08);
  border:      1px solid rgba(26, 63, 196, 0.2);
  border-radius: 4px;
  display:     flex;
  align-items: center;
  justify-content: space-between;
  gap:         16px;
}

.price-preview-label {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.4);
}

.price-preview-amount {
  font-family:    'Bebas Neue', sans-serif;
  font-size:      36px;
  letter-spacing: 0.06em;
  color:          #fff;
  line-height:    1;
}

.price-preview-amount .currency-sym {
  font-size:      20px;
  color:          #1a3fc4;
  vertical-align: top;
  margin-top:     5px;
  display:        inline-block;
  margin-right:   2px;
}

.price-breakdown {
  font-family: 'Barlow', sans-serif;
  font-size:   12px;
  color:       rgba(255, 255, 255, 0.3);
  text-align:  right;
  line-height: 1.7;
}

.form-submit-row {
  margin-top:  32px;
  display:     flex;
  align-items: center;
  gap:         20px;
}

.btn-submit {
  display:        inline-flex;
  align-items:    center;
  gap:            10px;
  background:     #1a3fc4;
  color:          #fff;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      13px;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding:        15px 36px;
  border:         none;
  border-radius:  3px;
  cursor:         pointer;
  transition:     background 0.2s, transform 0.15s, box-shadow 0.2s;
  position:       relative;
  overflow:       hidden;
}

.btn-submit::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  opacity:    0;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  background: #2249d6;
  box-shadow: 0 8px 30px rgba(26, 63, 196, 0.45);
  transform:  translateY(-1px);
}

.btn-submit:hover::before {
  opacity: 1;
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit svg {
  width:      16px;
  height:     16px;
  transition: transform 0.2s;
}

.btn-submit:hover svg {
  transform: translateX(3px);
}

.submit-note {
  font-family: 'Barlow', sans-serif;
  font-size:   12px;
  color:       rgba(255, 255, 255, 0.25);
  line-height: 1.5;
}

.errorlist {
  list-style: none;
  padding:    0;
  margin:     4px 0 0;
}

.errorlist li {
  font-family: 'Barlow', sans-serif;
  font-size:   12px;
  color:       #ff4f4f;
}

.form-divider {
  grid-column: 1 / -1;
  border:      none;
  border-top:  1px solid rgba(255, 255, 255, 0.06);
  margin:      4px 0;
}

.form-section-label {
  grid-column:    1 / -1;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
}

/* ─────────────────────────────────────────
   QUOTE PREVIEW PAGE
───────────────────────────────────────── */

.preview-page {
  min-height:     100vh;
  background:     #050508;
  padding-top:    100px;
  padding-bottom: 80px;
  position:       relative;
}

.preview-page::before {
  content:          '';
  position:         fixed;
  inset:            0;
  background-image:
    linear-gradient(rgba(26, 63, 196, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 63, 196, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events:  none;
  z-index:         0;
}

.preview-wrapper {
  position:  relative;
  z-index:   1;
  max-width: 700px;
  margin:    0 auto;
  padding:   0 24px;
}

.preview-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          #22c55e;
  border:         1px solid rgba(34, 197, 94, 0.3);
  padding:        5px 14px;
  border-radius:  2px;
  margin-bottom:  24px;
}

.preview-badge::before {
  content:       '';
  width:         7px;
  height:        7px;
  border-radius: 50%;
  background:    #22c55e;
  box-shadow:    0 0 6px #22c55e;
}

.preview-title {
  font-family:    'Bebas Neue', cursive;
  font-size:      clamp(38px, 6vw, 60px);
  letter-spacing: 0.04em;
  color:          #fff;
  line-height:    1;
  margin-bottom:  8px;
}

.preview-qnum {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      13px;
  font-weight:    700;
  letter-spacing: 0.15em;
  color:          rgba(255, 255, 255, 0.3);
  margin-bottom:  40px;
}

.preview-card {
  background:    rgba(255, 255, 255, 0.026);
  border:        1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow:      hidden;
  position:      relative;
}

.preview-card::before {
  content:    '';
  position:   absolute;
  top:        0;
  left:       0;
  right:      0;
  height:     2px;
  background: linear-gradient(90deg, transparent, #1a3fc4, transparent);
}

.preview-section {
  padding:      28px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-section:last-child {
  border-bottom: none;
}

.preview-section-title {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.25);
  margin-bottom:  16px;
}

.preview-rows {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   14px 28px;
}

.preview-row {
  display:        flex;
  flex-direction: column;
  gap:            3px;
}

.preview-row-label {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.25);
}

.preview-row-value {
  font-family: 'Barlow', sans-serif;
  font-size:   14px;
  color:       rgba(255, 255, 255, 0.85);
}

.preview-notes-block {
  margin-top: 16px;
}

.preview-notes-label {
  margin-bottom: 6px;
}

.preview-price-section {
  padding:         32px 36px;
  background:      rgba(26, 63, 196, 0.07);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

.preview-price-label {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.4);
  margin-bottom:  4px;
}

.preview-price-value {
  font-family:    'Bebas Neue', cursive;
  font-size:      52px;
  letter-spacing: 0.04em;
  color:          #fff;
  line-height:    1;
}

.preview-price-value span {
  font-size:      28px;
  color:          #1a3fc4;
  vertical-align: top;
  margin-top:     8px;
  display:        inline-block;
}

.preview-price-currency {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      12px;
  font-weight:    700;
  letter-spacing: 0.1em;
  color:          rgba(255, 255, 255, 0.25);
}

.preview-price-usd {
  color:     rgba(255, 255, 255, 0.15);
  font-size: 10px;
}

.preview-actions {
  display:   flex;
  gap:       14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-primary-sm {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  background:      #1a3fc4;
  color:           #fff;
  font-family:     'Barlow Condensed', sans-serif;
  font-size:       12px;
  font-weight:     700;
  letter-spacing:  0.16em;
  text-transform:  uppercase;
  padding:         13px 28px;
  border-radius:   3px;
  text-decoration: none;
  transition:      background 0.2s, transform 0.15s;
}

.btn-primary-sm:hover {
  background: #2249d6;
  transform:  translateY(-1px);
}

.btn-ghost-sm {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  background:      transparent;
  color:           rgba(255, 255, 255, 0.5);
  font-family:     'Barlow Condensed', sans-serif;
  font-size:       12px;
  font-weight:     700;
  letter-spacing:  0.16em;
  text-transform:  uppercase;
  padding:         13px 28px;
  border:          1px solid rgba(255, 255, 255, 0.1);
  border-radius:   3px;
  text-decoration: none;
  transition:      border-color 0.2s, color 0.2s;
}

.btn-ghost-sm:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color:        #fff;
}

.notes-text {
  font-family: 'Barlow', sans-serif;
  font-size:   13px;
  color:       rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  font-style:  italic;
}

/* ─────────────────────────────────────────
   QUOTE FORM — PROJECT TYPE TABS
───────────────────────────────────────── */

.project-type-tabs {
  display:       flex;
  gap:           0;
  background:    rgba(255, 255, 255, 0.04);
  border:        1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding:       4px;
  width:         100%;
}

.project-tab {
  flex:           1;
  padding:        10px 6px;
  border:         none;
  background:     transparent;
  color:          rgba(255, 255, 255, 0.45);
  font-family:    'Barlow', sans-serif;
  font-size:      0.82rem;
  font-weight:    600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius:  9px;
  cursor:         pointer;
  transition:     all 0.22s ease;
  white-space:    nowrap;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            5px;
  line-height:    1.2;
}

.project-tab svg {
  width:        18px;
  height:       18px;
  stroke:       currentColor;
  fill:         none;
  stroke-width: 1.8;
  flex-shrink:  0;
}

.project-tab:hover {
  color:      rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
}

.project-tab.active {
  background: linear-gradient(135deg, #1d6cf0 0%, #0f4cd4 100%);
  color:      #fff;
  box-shadow: 0 4px 16px rgba(29, 108, 240, 0.35);
}

/* ─────────────────────────────────────────
   QUOTE FORM — PACKAGE CARDS
───────────────────────────────────────── */

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

.package-card {
  position:       relative;
  background:     rgba(255, 255, 255, 0.035);
  border:         1.5px solid rgba(255, 255, 255, 0.08);
  border-radius:  14px;
  padding:        20px 16px 18px;
  cursor:         pointer;
  transition:     all 0.22s ease;
  display:        flex;
  flex-direction: column;
  gap:            6px;
  overflow:       hidden;
}

.package-card::before {
  content:       '';
  position:      absolute;
  inset:         0;
  border-radius: 14px;
  background:    linear-gradient(135deg, rgba(29, 108, 240, 0.07) 0%, transparent 60%);
  opacity:       0;
  transition:    opacity 0.22s;
}

.package-card:hover {
  border-color: rgba(29, 108, 240, 0.4);
  transform:    translateY(-2px);
  box-shadow:   0 8px 24px rgba(0, 0, 0, 0.25);
}

.package-card:hover::before {
  opacity: 1;
}

.package-card.selected {
  border-color: #1d6cf0;
  background:   rgba(29, 108, 240, 0.1);
  box-shadow:   0 0 0 1px rgba(29, 108, 240, 0.3), 0 8px 28px rgba(29, 108, 240, 0.2);
}

.package-card.selected::before {
  opacity: 1;
}

.package-card input[type="radio"] {
  display: none;
}

.package-badge {
  position:       absolute;
  top:            10px;
  right:          10px;
  background:     linear-gradient(90deg, #f0931d, #e0610f);
  color:          #fff;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      0.65rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding:        3px 8px;
  border-radius:  20px;
}

.package-tier {
  font-family:    'Barlow', sans-serif;
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          #1d6cf0;
  margin-bottom:  2px;
}

.package-name {
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      1.15rem;
  font-weight:    700;
  color:          #fff;
  letter-spacing: 0.02em;
}

.package-price {
  font-family:    'Bebas Neue', sans-serif;
  font-size:      2rem;
  color:          #fff;
  letter-spacing: 0.02em;
  line-height:    1;
  margin:         4px 0;
}

.package-price-note {
  font-size:   0.7rem;
  color:       rgba(255, 255, 255, 0.4);
  font-family: 'Barlow', sans-serif;
  margin-top:  -4px;
}

.package-divider {
  height:     1px;
  background: rgba(255, 255, 255, 0.07);
  margin:     8px 0;
}

.package-features {
  list-style:     none;
  padding:        0;
  margin:         0;
  display:        flex;
  flex-direction: column;
  gap:            5px;
}

.package-features li {
  font-family:  'Barlow', sans-serif;
  font-size:    0.75rem;
  color:        rgba(255, 255, 255, 0.6);
  display:      flex;
  align-items:  flex-start;
  gap:          6px;
  line-height:  1.3;
}

.package-features li::before {
  content:     '✓';
  color:       #1d6cf0;
  font-weight: 700;
  font-size:   0.75rem;
  flex-shrink: 0;
  margin-top:  0.5px;
}

.package-card.selected .package-features li {
  color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────
   QUOTE FORM — ADD-ONS
───────────────────────────────────────── */

.checkbox-wrap {
  display:       flex;
  align-items:   center;
  gap:           12px;
  background:    rgba(255, 255, 255, 0.035);
  border:        1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding:       12px 14px;
  cursor:        pointer;
  transition:    all 0.18s ease;
}

.checkbox-wrap:hover {
  border-color: rgba(29, 108, 240, 0.35);
  background:   rgba(29, 108, 240, 0.05);
}

.checkbox-wrap input[type="checkbox"] {
  appearance:         none;
  -webkit-appearance: none;
  width:              18px;
  height:             18px;
  border:             2px solid rgba(255, 255, 255, 0.2);
  border-radius:      5px;
  background:         transparent;
  cursor:             pointer;
  flex-shrink:        0;
  position:           relative;
  transition:         all 0.18s;
}

.checkbox-wrap input[type="checkbox"]:checked {
  background:   #1d6cf0;
  border-color: #1d6cf0;
}

.checkbox-wrap input[type="checkbox"]:checked::after {
  content:     '';
  position:    absolute;
  left:        4px;
  top:         1px;
  width:       6px;
  height:      10px;
  border:      2px solid #fff;
  border-top:  none;
  border-left: none;
  transform:   rotate(45deg);
}

.checkbox-wrap:has(input:checked) {
  border-color: rgba(29, 108, 240, 0.5);
  background:   rgba(29, 108, 240, 0.08);
}

.checkbox-text {
  flex:           1;
  display:        flex;
  flex-direction: column;
  gap:            2px;
}

.checkbox-text strong {
  font-family: 'Barlow', sans-serif;
  font-size:   0.85rem;
  font-weight: 700;
  color:       #fff;
}

.checkbox-text span.addon-desc {
  font-family: 'Barlow', sans-serif;
  font-size:   0.72rem;
  color:       rgba(255, 255, 255, 0.45);
}

.checkbox-badge {
  font-family:  'Barlow Condensed', sans-serif;
  font-size:    0.85rem;
  font-weight:  700;
  color:        #1d6cf0;
  white-space:  nowrap;
  flex-shrink:  0;
}

/* ─────────────────────────────────────────
   QUOTE FORM — PRICE PREVIEW (enhanced)
───────────────────────────────────────── */

.price-preview {
  background:    linear-gradient(135deg, rgba(29, 108, 240, 0.12) 0%, rgba(29, 108, 240, 0.04) 100%);
  border:        1.5px solid rgba(29, 108, 240, 0.3);
  border-radius: 14px;
  padding:       20px 24px;
  display:       flex;
  align-items:   center;
  justify-content: space-between;
  gap:           16px;
  margin-top:    8px;
}

.price-preview-label {
  font-family:    'Barlow', sans-serif;
  font-size:      0.75rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.5);
  margin-bottom:  4px;
}

.price-preview-amount {
  font-family:    'Bebas Neue', sans-serif;
  font-size:      2.8rem;
  color:          #fff;
  letter-spacing: 0.02em;
  line-height:    1;
}

.price-breakdown {
  font-family: 'Barlow', sans-serif;
  font-size:   0.8rem;
  color:       rgba(255, 255, 255, 0.5);
  text-align:  right;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   QUOTE FORM — SECTION LABELS (enhanced)
───────────────────────────────────────── */

.form-section-label {
  grid-column:    1 / -1;
  font-family:    'Barlow Condensed', sans-serif;
  font-size:      0.7rem;
  font-weight:    700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.35);
  padding-top:    8px;
  border-top:     1px solid rgba(255, 255, 255, 0.05);
  margin-top:     4px;
}

.form-section-label:first-child {
  border-top:  none;
  padding-top: 0;
  margin-top:  0;
}

/* ─────────────────────────────────────────
   QUOTE FORM — IOT PROJECT SECTION
───────────────────────────────────────── */

/* Company field hidden by default; shown when customer type = company */
#companyField {
  display: none;
}

/* Timeline select cursor */
#iot_timeline {
  cursor: pointer;
}

/* IOT section divider top spacing */
.iot-divider {
  margin-top: 8px;
}

/* Visibility toggles */
#iotSection {
  display: none;
}

#iotSection.visible {
  display: contents;
}

/* Info banner */
.iot-banner {
  grid-column:    1 / -1;
  background:     linear-gradient(135deg, rgba(0, 200, 150, 0.08) 0%, rgba(0, 150, 255, 0.08) 100%);
  border:         1px solid rgba(0, 200, 150, 0.25);
  border-radius:  12px;
  padding:        20px 24px;
  display:        flex;
  align-items:    flex-start;
  gap:            16px;
  margin-bottom:  4px;
}

.iot-banner-icon {
  flex-shrink:     0;
  width:           40px;
  height:          40px;
  background:      linear-gradient(135deg, #00c896, #0096ff);
  border-radius:   10px;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.iot-banner-icon svg {
  width:        20px;
  height:       20px;
  stroke:       #fff;
  fill:         none;
  stroke-width: 2;
}

.iot-banner-text h4 {
  margin:         0 0 4px;
  font-size:      1rem;
  font-weight:    700;
  color:          #00c896;
  letter-spacing: 0.02em;
}

.iot-banner-text p {
  margin:      0;
  font-size:   0.85rem;
  color:       rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* IOT fields two-column sub-grid */
.iot-fields {
  grid-column:           1 / -1;
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   20px;
}

.iot-fields .form-group.full {
  grid-column: 1 / -1;
}

/* =========================
   QUOTE FORM / PREVIEW FOOTER FIX
========================= */

.quote-page,
.preview-page {
  padding-bottom: 0;
}

.quote-wrapper,
.preview-wrapper {
  margin-bottom: 72px;
}

/* keep footer normal on these pages */
.quote-page footer,
.preview-page footer {
  margin-top: 0;
}

/* mobile spacing */
@media (max-width: 768px) {
  .quote-wrapper,
  .preview-wrapper {
    margin-bottom: 48px;
  }
}

@media (max-width: 600px) {
  .iot-fields {
    grid-template-columns: 1fr;
  }
}

/* IOT category checkbox chips */
.iot-type-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap:                   10px;
  margin-top:            6px;
}

.iot-type-chip {
  display:        flex;
  align-items:    center;
  gap:            10px;
  padding:        10px 14px;
  border:         1px solid rgba(255, 255, 255, 0.12);
  border-radius:  8px;
  cursor:         pointer;
  transition:     border-color 0.2s, background 0.2s;
  font-size:      0.85rem;
  color:          rgba(255, 255, 255, 0.75);
}

.iot-type-chip:has(input:checked) {
  border-color: #00c896;
  background:   rgba(0, 200, 150, 0.08);
  color:        #fff;
}

.iot-type-chip input {
  accent-color: #00c896;
}

/* Budget range slider */
.budget-wrap {
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.budget-display {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
}

.budget-value {
  font-size:   1.1rem;
  font-weight: 700;
  color:       #00c896;
}

.budget-label-small {
  font-size: 0.78rem;
  color:     rgba(255, 255, 255, 0.45);
}

input[type="range"].budget-slider {
  width:             100%;
  -webkit-appearance: none;
  height:            4px;
  border-radius:     2px;
  background:        linear-gradient(to right, #00c896 0%, #00c896 var(--val, 30%), rgba(255, 255, 255, 0.15) var(--val, 30%), rgba(255, 255, 255, 0.15) 100%);
  outline:           none;
  border:            none;
  padding:           0;
}

input[type="range"].budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width:              18px;
  height:             18px;
  border-radius:      50%;
  background:         #00c896;
  cursor:             pointer;
  box-shadow:         0 0 0 4px rgba(0, 200, 150, 0.2);
}

input[type="range"].budget-slider::-moz-range-thumb {
  width:        18px;
  height:       18px;
  border-radius: 50%;
  background:   #00c896;
  cursor:       pointer;
  border:       none;
  box-shadow:   0 0 0 4px rgba(0, 200, 150, 0.2);
}

/* IOT send email button */
.btn-iot-email {
  display:         inline-flex;
  align-items:     center;
  gap:             10px;
  padding:         14px 32px;
  background:      linear-gradient(135deg, #00c896 0%, #0096ff 100%);
  color:           #fff;
  font-family:     'Barlow Condensed', sans-serif;
  font-size:       1.1rem;
  font-weight:     700;
  letter-spacing:  0.08em;
  text-transform:  uppercase;
  border:          none;
  border-radius:   8px;
  cursor:          pointer;
  transition:      opacity 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-iot-email:hover {
  opacity:   0.9;
  transform: translateY(-1px);
}

.btn-iot-email svg {
  width:        18px;
  height:       18px;
  stroke:       currentColor;
  fill:         none;
  stroke-width: 2.5;
  flex-shrink:  0;
}

.iot-submit-note {
  font-size:   0.8rem;
  color:       rgba(255, 255, 255, 0.4);
  margin-top:  8px;
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* ≤ 900px */
@media (max-width: 900px) {

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .hero-overlay {
    background: rgba(8, 8, 18, 0.78);
  }

  /* Why */
  #why {
    grid-template-columns: 1fr;
  }

  .why-visual {
    display: none;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  /* Projects */
  .projects-page nav {
    padding: 0 24px;
  }

  .projects-hero {
    padding: 130px 24px 60px;
  }

  .projects-filter-wrap,
  .projects-featured,
  .projects-section {
    padding-left: 24px;
    padding-right: 24px;
  }

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

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

  .modal-body {
    padding: 24px 24px 28px;
  }
}

/* ≤ 768px */
@media (max-width: 768px) {
  nav {
    padding: 0 18px;
    height: 85px;
  }

  .nav-logo-img {
    height: 52px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 95px;
    left: 16px;
    right: 16px;
    width: auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 0;
    margin: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
    z-index: 10000;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

   .nav-links .nav-cta {
    display: block;
    width: calc(100% - 24px);
    margin: 12px auto 6px;
    padding: 12px 16px;
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
  }

   .projects-page .nav-links {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }

  .projects-page .nav-links a {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff !important;
  }

  .projects-page .nav-links a.active {
    color: var(--blue-light) !important;
  }

  .projects-page .nav-links a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
  }

  .projects-page .nav-links .nav-cta {
    color: #ffffff !important;
    background: var(--blue) !important;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.2rem;
  }

  .project-card {
    width: 100%;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.2rem;
  }

  .featured-card {
    width: 100%;
  }

  .projects-section,
  .projects-featured {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ≤ 640px */
@media (max-width: 640px) {
  .quote-card {
    padding: 32px 24px;
  }

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

  .form-group.full {
    grid-column: 1;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-breakdown {
    text-align: left;
  }

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

  .project-type-tabs {
    flex-wrap: wrap;
  }

  .project-tab {
    flex-direction: row;
    padding: 10px 12px;
  }

  .iot-fields {
    grid-template-columns: 1fr;
  }

  .iot-type-grid {
    grid-template-columns: 1fr 1fr;
  }

  .btn-iot-email {
    width: 100%;
    justify-content: center;
  }
}

/* 600px */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    height: min(92vh, 100dvh - 12px);
    max-height: min(92vh, 100dvh - 12px);
    border-radius: 16px 16px 0 0;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    z-index: 30;
  }

  .modal-body {
    padding: 20px 18px 32px;
  }

  .modal-title {
    font-size: 28px;
  }

  .modal-short-desc {
    font-size: 13px;
  }

  .gallery-main {
    aspect-ratio: 16 / 9;
    object-position: top center;
  }

  .gallery-thumbs {
    padding: 8px 10px;
    gap: 6px;
  }

  .gallery-thumb {
    width: 60px;
    height: 40px;
  }

  .remark-block {
    padding: 16px 18px;
  }

  .modal-live-link {
    width: 100%;
    justify-content: center;
  }
}

/* ≤ 540px */
@media (max-width: 540px) {
  .preview-section {
    padding: 22px 20px;
  }

  .preview-rows {
    grid-template-columns: 1fr;
  }

  .preview-price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px 20px;
  }
}

/* =========================
   FINAL MOBILE CHAT FIX
========================= */
@media (max-width: 768px) {
  #chat-window {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 96px !important;
    bottom: 88px !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 16px !important;
    transform-origin: bottom center !important;
  }

  .chat-header {
    flex-shrink: 0;
  }

  .chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 12px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .quick-replies {
    flex-shrink: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 10px 12px;
    scrollbar-width: none;
  }

  .quick-replies::-webkit-scrollbar {
    display: none;
  }

  .quick-reply {
    flex: 0 0 auto;
  }

  .chat-input-row {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #0d0d1a;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  #chatInput {
    font-size: 16px;
  }

  #chat-bubble {
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    z-index: 10000;
  }
}

@media (max-width: 480px) {
  #chat-window {
    top: 90px !important;
    bottom: 84px !important;
    left: 8px !important;
    right: 8px !important;
    border-radius: 14px !important;
  }

  .chat-header {
    padding: 14px 14px;
  }

  .chat-messages {
    padding: 12px 10px 8px;
  }

  .quick-replies {
    padding: 8px 10px;
  }

  .chat-input-row {
    min-height: 54px;
  }

  #chatInput {
    padding: 12px 14px;
  }

  #chatSend {
    padding: 0 14px;
  }
}