/* ================================
   ROOT VARIABLES
================================ */
:root {
  --bg-primary: #0b0f17;
  --bg-secondary: #111827;
  --bg-card: rgba(255, 255, 255, 0.03);

  --text-primary: #ffffff;
  --text-secondary: #b3b8c5;
  --text-muted: #8a90a2;

  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.15);
  --accent-gradient: linear-gradient(135deg, #4f8cff, #7aa7ff);

  --border: rgba(255, 255, 255, 0.08);

  --radius-lg: 18px;
  --radius-md: 12px; 

  --transition: all 0.35s ease;
}

/* ================================
   GLOBAL RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: var(--text-primary);
  line-height: 1.6;
}

section {
  position: relative;
  isolation: isolate; /* VERY important */
  background: var(--bg-primary);
}
section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.85;
  pointer-events: none;
  display: none;
}

/* ================================
   NAVBAR
================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1.2rem 6%;
  background: rgba(5, 8, 20, 0.6);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
}

/* ================================
   LOGO
================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Logo image */
.logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* HighValue */
.logo .brand-primary {
  color: #ffffff;
}

/* Solutions */
.logo .brand-accent {
  color: var(--accent); /* blue */
}

/* ================================
   NAV LINKS
================================ */
.navbar nav a {
  margin-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.navbar nav a:hover {
  color: var(--text-primary);
}

/* CTA Button */
.navbar .btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #ffffff;
}

/* ================================
   MOBILE REFINEMENT
================================ */
@media (max-width: 768px) {
  .logo {
    font-size: 1rem;
  }

  .logo img {
    height: 30px;
  }
}

/* ================================
   APP BOOT ANIMATION
================================ */
body {
  animation: appBoot 0.6s ease;
}

@keyframes appBoot {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ================================
   SITE SEARCH
================================ */
.search-container {
  position: relative;
  margin-left: 2rem;
}

.search-container input {
  width: 220px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.search-container input::placeholder {
  color: var(--text-muted);
}

.search-container input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
}

/* Results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: none;
  z-index: 200;
}

.search-results.active {
  display: block;
}

.search-results a {
  display: block;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.search-results a:last-child {
  border-bottom: none;
}

.search-results a:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}

/* Mobile: hide search in top nav (can move to tab bar later) */
@media (max-width: 768px) {
  .search-container {
    display: none;
  }
}

/* ================================
   HERO
================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 6% 5rem;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at center, rgba(79,140,255,0.18), transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(79,140,255,0.18), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(122,167,255,0.12), transparent 40%),
    var(--bg-primary);
}

.hero {
  background-blend-mode: screen;
  background-size: 120% 120%;
}

.hero-content {
  max-width: 780px;
  animation: fadeUp 1s ease forwards;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(5rem + env(safe-area-inset-top));
    padding-bottom: 7rem;
  }
}

main {
  scroll-margin-top: 80px; /* navbar height */
}

/* ================================
   BUTTONS
================================ */
.cta {
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.cta.primary {
  background: var(--accent-gradient);
  color: #fff;
}

.cta.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(79,140,255,0.35);
}

.cta.secondary {
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.cta.secondary:hover {
  background: var(--bg-card);
}

.cta {
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta:hover::after {
  opacity: 1;
}


/* ===============================
   VISITOR META BAR
================================ */
.visitor-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 6px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);

  font-size: 0.75rem;
}

/* Location text */
.visitor-location {
  color: var(--text-primary);
  white-space: nowrap;
}

.visitor-location span {
  color: var(--accent);
  font-weight: 400;
}

/* Language switcher container */
.lang-switcher {
  position: relative;
  font-size: 0.75rem;
}

/* Button */
.lang-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Dropdown menu */
.lang-menu {
  position: absolute;
  right: 0;
  top: 120%;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 6px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  min-width: 140px;
  display: none;
  z-index: 999;
}

.lang-menu li {
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-primary);
}

.lang-menu li:hover {
  background: rgba(255,255,255,0.06);
}

/* Hide Google UI completely */
#google_translate_element {
  display: none !important;
}

.goog-logo-link,
.goog-te-gadget,
.goog-te-gadget span {
  display: none !important;
}

body {
  top: 0 !important;
}


/* ================================
   CONTEXT
================================ */
.context {
  padding: 3rem 6%;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ================================
   SOLUTIONS
================================ */
.solutions {
  padding: 6rem 6%;
}

.solutions h2,
.philosophy h2,
.industries h2,
.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(79,140,255,0.12), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,140,255,0.4);
}

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

.card h3 {
  margin-bottom: 0.6rem;
}

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



/* ================================
   PHILOSOPHY
================================ */
.philosophy {
  padding: 6rem 6%;
}

.philosophy-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

/* Headings */
.philosophy h2 {
  font-size: 2.2rem;
  margin-bottom: 1.4rem;
}

.philosophy-subtitle {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

/* Intro text */
.philosophy-intro {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}


/* ================================
   STEPS
================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: left;
}

/* Step titles */
.step h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

/* Step text */
.step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .philosophy {
    padding: 4rem 1.4rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .philosophy h2 {
    font-size: 1.9rem;
  }
}

/* ================================
   INDUSTRIES
================================ */
.industries {
  padding: 5rem 6%;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.industry-list span {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.industry-list span:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===================================
   COMPANY PAGE — FOOTER SAFE SPACE (MOBILE)
=================================== */
@media (max-width: 480px) {
  body.company-page footer {
    padding-bottom: 6.5rem; /* clears fixed bottom tab bar */
  }
}


/* Slightly reduce hero height on company page */
.hero.inner-hero {
  min-height: 70vh;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

/* Improve hero text hierarchy */
.hero.inner-hero h1 {
  max-width: 820px;
  letter-spacing: -0.5px;
}

.hero.inner-hero p {
  font-size: 1.1rem;
  max-width: 700px;
}

/* ===================================
   CONTENT SECTIONS — READABILITY
=================================== */

.content {
  max-width: 920px;
  margin: 0 auto;
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 780px;
}

/* Add visual breathing room between sections */
section + section {
  padding-top: 2.5rem;
}

/* ===================================
   MISSION / VISION SPLIT
=================================== */

.split {
  max-width: 920px;
  margin: 0 auto;
}

.split > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.split h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.split p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.content,
.split,
.metrics {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.philosophy::before,
.solutions::before,
.industries::before,
.cta-section::before {
  display: none !important;
}

/* ===================================
   VALUES LIST (HOW WE WORK)
=================================== */

.values {
  list-style: none;
  margin-top: 1.5rem;
}

.values li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
}

.values li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

/* ===================================
   METRICS — TRUST NOT HYPE
=================================== */

.metrics {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics div {
  background: transparent;
}

.metrics h3 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.metrics p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
/* ===================================
   METRICS — HORIZONTAL ALIGNMENT
=================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: center;
}

/* Tablet */
@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile (stack neatly, still readable) */
@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem; /* ← SPACE BETWEEN MISSION & VISION */
}
@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===================================
   LEADERSHIP SECTION — AUTHORITY
=================================== */

.content .card {
  max-width: 780px;
  margin-top: 1.5rem;
  padding: 2.5rem;
}

.content .card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.content .card p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Remove hover exaggeration for leadership (more serious) */
.content .card:hover {
  transform: none;
  border-color: var(--border);
}

/* ===================================
   CTA SECTION — CONFIDENT, NOT SALESY
=================================== */

.cta-section h2 {
  font-size: 2.3rem;
}

.cta-section p {
  font-size: 1.05rem;
}

/* ===================================
   MOBILE COMPANY PAGE TUNING
=================================== */

@media (max-width: 768px) {

  .hero.inner-hero {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .hero.inner-hero h1 {
    font-size: 2.1rem;
  }

  .content p {
    font-size: 0.95rem;
  }

  .split {
    gap: 1.2rem;
  }

  .split > div {
    padding: 1.8rem;
  }

  .metrics {
    padding: 3rem 0;
  }

  .metrics h3 {
    font-size: 2rem;
  }
}

/* ================================
   CTA SECTION
================================ */
.cta-section {
  padding: 6rem 6%;
  text-align: center;
  background: radial-gradient(circle at center, rgba(79,140,255,0.18), transparent 60%);
}

.cta-section::before {
  background:
    radial-gradient(circle at center, rgba(79,140,255,0.22), transparent 60%);
}
.cta-section p {
  color: var(--text-secondary);
  margin: 1rem auto 2rem;
  max-width: 520px;
}

/* ================================
   FOOTER
================================ */
footer {
  padding: 2rem 6%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .navbar nav a {
    margin-left: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
} 

/* ===================================
   APP-LIKE MOBILE EXPERIENCE
=================================== */
@media (max-width: 768px) {

  body {
    background: linear-gradient(180deg, #020617, #0b0f17);
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* ---------- NAVBAR ---------- */
  .navbar {
    padding: 1rem 1.2rem;
  }

  .navbar nav {
    display: none; /* mobile app-style: clean top bar */
  }

  /* ---------- HERO ---------- */
  .hero {
    padding: 4.5rem 1.4rem 3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cta {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  /* ---------- SECTIONS AS PANELS ---------- */
  section {
    padding-left: 1.4rem !important;
    padding-right: 1.4rem !important;
  }

   section {
     background: var(--bg-primary);
   }


  /* ---------- CARD GRID ---------- */
  .grid {
    gap: 1.2rem;
  }

  .card {
    padding: 1.6rem;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    transform: translateZ(0);
  }

  /* Tap feedback (app feel) */
  .card:active {
    transform: scale(0.97);
  }

  /* ---------- SOLUTION TITLES ---------- */
  .card h3 {
    font-size: 1.05rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  /* ---------- INDUSTRY TAGS ---------- */
  .industry-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .industry-list span {
    white-space: nowrap;
    font-size: 0.8rem;
  }

  /* ---------- CTA SECTION ---------- */
  .cta-section {
    padding: 4rem 1.4rem;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
  }

  .cta-section {
     background:
       radial-gradient(circle at center, rgba(79,140,255,0.18), transparent 60%),
       var(--bg-primary);
   }

  /* ---------- FOOTER ---------- */
  footer {
    padding-bottom: 5rem;
  }
} 

/* ===================================
   TOUCH MICRO-INTERACTIONS
=================================== */
a, button {
  touch-action: manipulation;
}

a:active,
button:active {
  transform: scale(0.96);
  transition: transform 0.15s ease;
}

@media (max-width: 768px) {
  main {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
  }

  section {
    scroll-snap-align: start;
  }
}


/* Hide tab bar by default (desktop + tablets) */
.tab-bar {
  display: none;
}
.tab-bar {
  justify-content: space-around;
  background: #0b0f1a;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  color: #9aa4bf;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.tab i {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.tab.active {
  color: #ffffff;
}

.tab.active i {
  color: #6ee7ff; /* HighValue accent */
}

.tab.whatsapp {
  color: #25D366;
}


/* ===================================
   BOTTOM TAB BAR (MOBILE PHONES ONLY)
=================================== */
@media (max-width: 480px) {
  .tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
  }

  .tab {
    flex: 1;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
  }

  .tab i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 2px;
  }

  .tab.active,
  .tab:hover {
    color: var(--accent);
  }

  .tab.whatsapp i {
    color: #25D366;
  }
}

/* ===================================
   MOBILE SEARCH OVERLAY
=================================== */
.mobile-search {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.96);
  backdrop-filter: blur(18px);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 1.2rem;
}

.mobile-search.active {
  display: flex;
}

/* Search header */
.search-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.search-header input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.search-header button {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
}

/* Results */
.mobile-search .search-results {
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  margin-top: 0.8rem;
}

.mobile-search .search-results a {
  display: block;
  padding: 1rem 0.4rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-search .search-results a:hover {
  color: var(--accent);
}

/* Prevent background scroll */
body.search-open {
  overflow: hidden;
}
