/* ==========================================================================
   VALUE WORKS GLOBAL SERVICES - Design System & Core Styles
   Palette: Executive Navy (#0D1B2A), Accent Gold (#C59B27), Light Slate (#F4F6F8)
   ========================================================================== */

:root {
  /* Color Tokens */
  --primary-navy: #0D1B2A;
  --primary-navy-light: #1B2D45;
  --primary-navy-dark: #070F18;
  --accent-gold: #C59B27;
  --accent-gold-light: #E5B83B;
  --accent-gold-dark: #A47F1D;
  --accent-gold-glow: rgba(197, 155, 39, 0.25);
  
  --bg-white: #FFFFFF;
  --bg-light: #F4F6F8;
  --bg-card: #FFFFFF;
  --bg-dark-card: rgba(27, 45, 69, 0.7);

  --text-main: #1C2530;
  --text-muted: #5C6B73;
  --text-light: #E0E6ED;
  --text-gold: #D4AF37;

  --border-light: #E2E8F0;
  --border-gold: rgba(197, 155, 39, 0.4);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(13, 27, 42, 0.12);
  --shadow-gold: 0 8px 25px rgba(197, 155, 39, 0.2);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(12px);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Page Separation Structure */
section, .section, .svc-section, .eng-section, .hero, .eng-hero {
  border-bottom: 1px solid var(--border-light);
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
}

p.hero-subtitle, 
.reveal-left p,
.about-content p, 
.service-card p, 
.calc-options p, 
.feature-card p,
.hero-card p,
.eng-hero-sub,
.eng-card p {
  text-align: justify;
}

.text-gold {
  color: var(--accent-gold);
}

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

.container {
  width: 96%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Notification Bar */
.top-bar {
  background: var(--primary-navy-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197, 155, 39, 0.2);
}

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

.top-bar-badge {
  background: rgba(197, 155, 39, 0.15);
  color: var(--accent-gold-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid var(--border-gold);
}

.top-bar-contact {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-contact a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.top-bar-contact a:hover {
  color: var(--accent-gold-light);
}

/* Main Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.96);
}

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

.nav-brand img {
  height: 58px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  list-style: none;
  margin-left: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(16px, 2vw, 32px);
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-fast);
}

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

/* Dropdown Navigation */
.nav-links .dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent-gold);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
  padding: 10px 0;
  z-index: 1100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--primary-navy);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--accent-gold-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.5vw, 12px) clamp(16px, 2.5vw, 26px);
  border-radius: 6px;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  gap: 8px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(197, 155, 39, 0.35);
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

.btn-outline-navy {
  border-color: var(--primary-navy);
  color: var(--primary-navy);
  background: transparent;
}

.btn-outline-navy:hover {
  background: var(--primary-navy);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-outline-gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: var(--primary-navy-dark);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* Hide mobile-only CTA on desktop */
.cta-mobile {
  display: none !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 110px;
    left: -100% !important;
    width: 100%;
    height: calc(100vh - 110px);
    background: var(--bg-white);
    flex-direction: column;
    padding: 40px 20px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0 !important;
  }

  .nav-actions {
    position: absolute;
    top: 0;
    right: 18px;
    gap: 8px;
    display: flex;
    align-items: center;
    z-index: 1200;
    height: 100%;
    min-width: auto;
  }

  .country-selector-wrapper {
    width: auto;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 1200;
  }

  .nav-actions > .btn-gold {
    display: none;
  }

  .cta-mobile {
    display: list-item !important;
    width: 100%;
    margin-top: 16px;
    list-style: none;
  }

  .nav-links .cta-mobile a {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .nav-actions .country-selector-wrapper {
    display: inline-flex;
  }

  .country-selector {
    width: auto;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .country-selector .country-chevron {
    margin-left: 8px;
  }

  .country-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: auto;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
  }

  .mobile-toggle {
    display: block;
  }
}

/* ==========================================================================
   Country Selector (USA / UAE pill)
   ========================================================================== */

/* Wrapper — sits as a regular nav-links <li> */
.country-selector-wrapper {
  position: relative;
  list-style: none;
}

/* Pill button */
.country-selector {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-navy);
  color: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
  height: 36px;
}

.country-selector:hover {
  background: var(--primary-navy-light);
  border-color: var(--accent-gold);
}

.country-selector:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.country-selector .country-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.country-selector .country-label {
  pointer-events: none;
}

.country-selector .country-chevron {
  font-size: 0.6rem;
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.country-selector[aria-expanded="true"] .country-chevron {
  transform: rotate(180deg);
}

/* Dropdown list */
.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 140px;
  background: var(--primary-navy);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  list-style: none;
  padding: 6px 0;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.country-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-dropdown li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
  border-radius: 0;
}

.country-dropdown li:first-child {
  border-radius: 8px 8px 0 0;
}

.country-dropdown li:last-child {
  border-radius: 0 0 8px 8px;
}

.country-dropdown li:hover,
.country-dropdown li.focused {
  background: var(--primary-navy-light);
}

.country-dropdown li:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: -2px;
}

.country-dropdown li .country-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Gold checkmark for selected option */
.country-dropdown li .country-check {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--accent-gold-light);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.country-dropdown li[aria-selected="true"] .country-check {
  opacity: 1;
}

/* ---- Mobile Country Selector (≤992px) ---- */
@media (max-width: 992px) {
  .country-selector-wrapper {
    width: auto;
    position: relative;
  }

  .country-selector {
    width: auto;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.95rem;
    height: auto;
  }

  .country-selector .country-chevron {
    margin-left: 8px;
  }

  .country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: auto;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
  }

  .country-dropdown li {
    padding: 10px 16px;
    min-height: 44px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 60%, #152A42 100%);
  color: var(--bg-white);
  padding: clamp(30px, 6vw, 55px) 0 clamp(50px, 8vw, 75px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: clamp(30px, 5vw, 50px);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.0rem, 4.5vw, 3.0rem);
  color: var(--bg-white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent-gold-light);
  background: linear-gradient(135deg, #FDFBF7 0%, var(--accent-gold-light) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
}

.stat-item h3 {
  color: var(--accent-gold-light);
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.stat-item p {
  color: var(--text-light);
  font-size: 0.85rem;
}

.hero-card {
  background: var(--bg-dark-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 35px;
}

.hero-card h3 {
  color: var(--bg-white);
  font-size: 1.4rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card h3 i {
  color: var(--accent-gold);
}

.hero-list {
  list-style: none;
  margin-bottom: 25px;
}

.hero-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}

.hero-list li span {
  flex: 1;
}

.hero-list li i {
  color: var(--accent-gold);
}

/* ==========================================================================
   Section Headers & Services
   ========================================================================== */
.section {
  padding: clamp(50px, 8vw, 90px) 0;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}

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

/* Tabs */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-navy);
  color: var(--bg-white);
  border-color: var(--primary-navy);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gold);
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
}

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

.service-icon {
  width: 55px;
  height: 55px;
  background: rgba(197, 155, 39, 0.1);
  color: var(--accent-gold-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Software & ERP Section
   ========================================================================== */
.software-section {
  background: var(--bg-light);
}

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

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-gold);
  color: #FFF;
  border-color: var(--accent-gold);
}

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

.software-card {
  background: var(--bg-white);
  padding: 22px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition-fast);
}

.software-card:hover {
  border-color: var(--accent-gold);
}

.software-card i {
  font-size: 2rem;
  color: var(--primary-navy);
}

.software-card h5 {
  font-size: 1rem;
}

.software-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Estimator & Modal
   ========================================================================== */
.calc-box {
  background: var(--bg-white);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: clamp(25px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(25px, 4vw, 40px);
}

.calc-options h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.calc-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.calc-scope label {
  background: var(--bg-light);
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-result {
  background: var(--primary-navy);
  color: var(--bg-white);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.calc-result h3 {
  color: var(--accent-gold-light);
  font-size: 2.2rem;
  margin: 15px 0 5px;
}

.calc-result p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.75);
  backdrop-filter: var(--glass-blur);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  width: 95%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 24px 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: var(--primary-navy);
}

/* Compact 2-Column Form Grid */
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

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

.form-group {
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 3px;
  color: var(--primary-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(197, 163, 101, 0.2);
}

@media (max-width: 576px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .modal-content {
    padding: 20px 18px;
  }
}

/* Modal Success Confirmation View */
.modal-success-card {
  text-align: center;
  padding: 10px 5px;
}

.modal-success-icon {
  font-size: 2.8rem;
  color: #10b981;
  margin-bottom: 12px;
}

.modal-success-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.modal-success-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.modal-summary-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  font-size: 0.84rem;
  margin-bottom: 18px;
}

.modal-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.modal-summary-item:last-child {
  border-bottom: none;
}

.modal-summary-label {
  font-weight: 600;
  color: var(--text-muted);
}

.modal-summary-value {
  font-weight: 600;
  color: var(--primary-navy);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.modal-action-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Layout Grids (Desktop First)
   ========================================================================== */
.about-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr)); 
  gap: clamp(30px, 6vw, 60px); 
  align-items: start;
}

.stats-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); 
  gap: 20px; 
  margin-bottom: 36px;
}

.footer-grid {
  display: flex; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  gap: clamp(30px, 5vw, 40px); 
  margin-bottom: clamp(20px, 4vw, 40px);
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */

@media (max-width: 1100px) {
  .hide-on-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .top-bar .container,
  .top-bar-contact {
    justify-content: center;
    text-align: center;
  }
  
  .hero-grid {
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  
  .calc-scope {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SCROLL ANIMATIONS & VISUAL VARIETY
   ========================================================================== */

/* ----- Scroll Reveal (auto-applied by JS via IntersectionObserver) ----- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal[data-anim="scale"] {
  transform: scale(0.92);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Manual directional reveals */
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance — above fold, plays on page load via keyframes */
.hero-entrance {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-entrance-right {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Feature Cards (Why Us section — visually distinct from service cards) ----- */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 44px 32px 36px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 0 0 4px 4px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover::before {
  width: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
}

.feature-icon {
  width: 74px;
  height: 74px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
  color: var(--accent-gold-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(13, 27, 42, 0.2);
}

.feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-navy);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----- Dark Service Cards — gradient border glow on hover ----- */
#services-tabs .service-card::before {
  display: none;
}

#services-tabs .service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 155, 39, 0.3);
}

/* ----- Software Cards — ring glow hover (visually distinct) ----- */
.software-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow), var(--shadow-md);
  transform: translateY(-2px);
}

/* ----- Estimator — decorative glow on result panel ----- */
.calc-result {
  position: relative;
  overflow: hidden;
}

.calc-result::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ----- About Section — decorative circle ----- */
#about {
  position: relative;
}

#about::after {
  content: '';
  position: absolute;
  top: 30px;
  right: 50px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(197, 155, 39, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

/* ----- Pre-Footer CTA Band ----- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 50%, #152A42 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(197, 155, 39, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band .cta-inner {
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-band .cta-desc {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----- Accessibility: Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-entrance,
  .hero-entrance-right {
    animation: none;
  }
}

/* ==========================================================================
   Technology Rolling Slider (Left to Right)
   ========================================================================== */
.tech-slider-container {
  width: 100%;
  overflow: hidden;
  background: rgba(7, 15, 24, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  margin-top: 40px;
  position: relative;
}

.tech-slider-container::before,
.tech-slider-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.tech-slider-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--primary-navy-dark) 0%, transparent 100%);
}

.tech-slider-container::after {
  right: 0;
  background: linear-gradient(-90deg, var(--primary-navy-dark) 0%, transparent 100%);
}

.tech-slider-title {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold-light);
  margin-bottom: 16px;
  font-weight: 700;
  opacity: 0.85;
}

.tech-slider-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.tech-slider-track {
  display: flex;
  width: max-content;
  animation: scroll-left-to-right 30s linear infinite;
  gap: 30px;
}

.tech-slider-track:hover {
  animation-play-state: paused;
}

.tech-slider-list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  min-width: 100%;
}

.tech-slider-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 26px;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.tech-slider-item:hover {
  background: rgba(197, 155, 39, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.15);
}

.tech-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border-radius: 6px;
  flex-shrink: 0;
  padding: 5px;
  transition: all var(--transition-fast);
}

.tech-slider-item:hover .tech-logo-wrapper {
  transform: scale(1.05);
}

.tech-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.95;
  transition: all var(--transition-fast);
}

.tech-slider-item:hover .tech-logo {
  opacity: 1;
}

@keyframes scroll-left-to-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-slider-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
    justify-content: center;
  }
}

