/* ============================================
   MozTech Industries — Master Stylesheet
   Premium Dark Navy + Cyan Industrial Theme
   ============================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --navy-900: #0B1629;
  --navy-800: #132238;
  --navy-700: #1B2F4A;
  --navy-600: #243D5E;
  --navy-500: #2D4A72;
  --cyan-500: #00B4D8;
  --cyan-400: #22D3EE;
  --cyan-600: #0891B2;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
}

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-50);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-500);
}

/* ---------- TEXT SELECTION ---------- */
::selection {
  background: var(--cyan-500);
  color: var(--white);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
  padding: 0;
}

button {
  font-family: 'Inter', sans-serif;
}

/* ---------- REUSABLE CONTAINER ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   LANGUAGE CHOOSER OVERLAY
   ============================================ */
.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 22, 41, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lang-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lang-overlay-card {
  text-align: center;
  max-width: 520px;
  width: 100%;
  animation: overlayCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.lang-overlay-logo {
  height: 70px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}

.lang-overlay-tagline {
  color: var(--cyan-400);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.lang-overlay-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.lang-overlay-heading span {
  color: var(--gray-400);
  font-size: 0.85em;
  font-weight: 400;
}

.lang-overlay-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 160px;
  font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
  border-color: var(--cyan-500);
  background: rgba(0, 180, 216, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 180, 216, 0.2);
}

.lang-btn-en:hover { border-color: #4A9EFF; background: rgba(74, 158, 255, 0.12); }
.lang-btn-pt:hover { border-color: #25D366; background: rgba(37, 211, 102, 0.12); }

.lang-flag {
  font-size: 2.5rem;
  line-height: 1;
}

.lang-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.lang-sub {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 400;
}

/* ============================================
   0. TOP INFO BAR
   ============================================ */
.top-info-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0;
  display: none;
  z-index: 1001;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 768px) {
  .top-info-bar {
    display: block;
  }
}

.top-info-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.top-info-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-info-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-info-left span {
  color: var(--gray-400);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-info-left span i {
  color: var(--cyan-500);
  font-size: 0.7rem;
}

.top-info-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.top-info-reg {
  color: var(--cyan-400);
  font-size: 0.72rem;
  font-weight: 600;
}

.top-info-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.top-info-hse {
  color: var(--gray-300);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hse-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  animation: hse-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes hse-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================
   1. NAVIGATION (#navbar)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

/* On desktop, offset by top bar height */
@media (min-width: 768px) {
  .navbar {
    top: 34px;
  }
}

.navbar.scrolled {
  background: rgba(11, 22, 41, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0;
  top: 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo img {
  height: 46px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.navbar.scrolled .nav-logo img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-500);
  transition: width 0.3s ease;
}

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

.nav-links li a:hover {
  color: var(--cyan-500);
}

.nav-links li a.active {
  color: var(--cyan-500);
}

.nav-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--cyan-500);
  color: var(--cyan-500);
}

.nav-cta {
  background: var(--cyan-500);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--cyan-400);
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle .hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle .hamburger::before {
  top: -7px;
}

.nav-toggle .hamburger::after {
  top: 7px;
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   2. HERO (#hero)
   ============================================ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11, 22, 41, 0.88) 0%,
    rgba(11, 22, 41, 0.65) 55%,
    rgba(0, 145, 178, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-tag {
  display: inline-block;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--cyan-400);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  display: block;
}

.hero-content h1 .highlight {
  color: var(--cyan-400);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray-300);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--cyan-500);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--cyan-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--cyan-500);
  color: var(--cyan-400);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan-400);
}

.stat-label {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ============================================
   3. SECTION HEADER (reusable)
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(0, 180, 216, 0.1);
  color: var(--cyan-500);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Light section header defaults */
.section-header .section-title {
  color: var(--navy-800);
}

.section-header .section-subtitle {
  color: var(--gray-600);
}

/* Dark section header overrides — applied by parent context */
#services .section-header .section-title,
#industries .section-header .section-title,
#hse .section-header .section-title {
  color: var(--white);
}

#services .section-header .section-subtitle,
#industries .section-header .section-subtitle,
#hse .section-header .section-subtitle {
  color: var(--gray-400);
}

#services .section-header .section-tag,
#industries .section-header .section-tag,
#hse .section-header .section-tag {
  background: rgba(0, 180, 216, 0.15);
}

/* ============================================
   4. ABOUT (#about)
   ============================================ */
#about {
  padding: 7rem 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.about-text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 200px;
  height: 200px;
  border: 3px solid var(--cyan-500);
  border-radius: 16px;
  z-index: -1;
}

/* Vision / Mission Cards */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 5rem;
}

.vm-card {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 2.5rem;
  border-left: 4px solid var(--cyan-500);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.vm-card .vm-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--cyan-500);
}

.vm-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: var(--navy-800);
  margin-bottom: 1rem;
}

.vm-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--gray-50);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: var(--white);
}

.value-card .value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--white);
  font-size: 1.5rem;
}

.value-card h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy-800);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ============================================
   5. SERVICES (#services)
   ============================================ */
#services {
  padding: 7rem 0;
  background: var(--navy-900);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-500), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  border-color: rgba(0, 180, 216, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 55px;
  height: 55px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--cyan-400);
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  color: var(--gray-400);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--cyan-500);
  border-radius: 50%;
}

/* ============================================
   6. WHY CHOOSE US (#why-choose-us)
   ============================================ */
#why-choose-us {
  padding: 7rem 0;
  background: var(--gray-50);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--cyan-500);
}

.why-card .why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--cyan-400);
  font-size: 1.6rem;
}

.why-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================
   7. INDUSTRIES (#industries)
   ============================================ */
#industries {
  padding: 7rem 0;
  background: var(--navy-800);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.industry-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.industry-card:hover {
  background: rgba(0, 180, 216, 0.08);
  border-color: rgba(0, 180, 216, 0.2);
  transform: translateX(5px);
}

.industry-card .industry-icon {
  width: 45px;
  height: 45px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.industry-card span {
  color: var(--gray-200);
  font-weight: 500;
  font-size: 1rem;
}

/* ============================================
   8. TRAINING (#training)
   ============================================ */
#training {
  padding: 7rem 0;
  background: var(--white);
}

.training-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.training-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  color: var(--navy-800);
  margin-bottom: 1rem;
}

.training-text p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.training-list {
  list-style: none;
  padding: 0;
}

.training-item {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.training-item:hover {
  background: var(--gray-50);
}

.training-item .training-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-500);
  flex-shrink: 0;
}

.training-item span {
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 500;
}

.training-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================
   9. HSE (#hse)
   ============================================ */
#hse {
  padding: 7rem 0;
  background: var(--navy-900);
}

.hse-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hse-text h3 {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hse-text p {
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hse-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hse-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
}

.hse-badge .badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 180, 216, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
}

.hse-badge span {
  color: var(--gray-200);
  font-weight: 500;
  font-size: 0.9rem;
}

/* HSE Shield Visual */
.hse-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hse-shield {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  animation: float 4s ease-in-out infinite;
}

.hse-shield svg {
  filter: drop-shadow(0 0 30px rgba(0, 180, 216, 0.2));
}

.hse-shield-text {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hse-zero {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--cyan-400);
  line-height: 1;
}

.hse-harm {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ============================================
   10. COMMITMENT (#commitment)
   ============================================ */
#commitment {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--cyan-600), var(--cyan-500), var(--navy-700));
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture overlay */
#commitment::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 0;
}

#commitment .container,
.commitment-content {
  position: relative;
  z-index: 1;
}

.commitment-content h2 {
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.commitment-tagline {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.commitment-tagline span {
  font-weight: 600;
}

.commitment-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ============================================
   11. CONTACT (#contact)
   ============================================ */
#contact {
  padding: 7rem 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
  display: block;
  color: var(--navy-800);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
  box-sizing: border-box;
  background: var(--white);
  color: var(--navy-800);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan-500);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  background: var(--cyan-500);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.form-submit:hover {
  background: var(--cyan-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
}

.contact-info {
  padding-top: 1rem;
}

.contact-info h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy-800);
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.contact-item .contact-icon {
  width: 45px;
  height: 45px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-500);
  flex-shrink: 0;
}

.contact-item-text h4 {
  color: var(--navy-800);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-item-text p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.contact-item-text p a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item-text p a:hover {
  color: var(--cyan-500);
}

.map-container {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 250px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   12. FOOTER (#footer)
   ============================================ */
#footer {
  padding: 4rem 0 0;
  background: var(--navy-900);
}

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

.footer-logo {
  height: 48px;
  margin-bottom: 1rem;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-tagline {
  color: var(--cyan-400) !important;
  font-style: italic;
  font-weight: 500;
  margin-top: 0.5rem;
}

.footer-col ul li {
  color: var(--gray-400);
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--cyan-500);
  color: var(--white);
}

/* ============================================
   13. ANIMATIONS
   ============================================ */

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* Float keyframes (decorative elements) */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Pulse keyframes (icon hover) */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Optional: apply float to decorative items */
.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* Optional: apply pulse on icon hover */
.service-icon:hover,
.why-icon:hover,
.value-icon:hover {
  animation: pulse 0.6s ease-in-out;
}

/* Stagger children — give them the same initial state as reveal */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--cyan-500);
  color: var(--white);
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 180, 216, 0.3);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--cyan-400);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

/* ============================================
   TOAST CONTAINER
   ============================================ */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  pointer-events: none;
}

/* ============================================
   14. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .training-content {
    grid-template-columns: 1fr;
  }

  .training-image {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .hse-content {
    grid-template-columns: 1fr;
  }

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

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

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   14. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy-900);
    padding: 2rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    font-size: 1.05rem;
    padding: 0.5rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  /* Disable parallax on mobile (iOS bug fix) */
  .hero-bg {
    background-attachment: scroll;
    transform: scale(1);
  }

  .nav-right {
    gap: 0.5rem;
  }

  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Hero */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why Choose Us */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Industries */
  .industries-grid {
    grid-template-columns: 1fr;
  }

  /* Vision/Mission */
  .vision-mission {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* General spacing reductions */
  #about,
  #services,
  #why-choose-us,
  #industries,
  #training,
  #hse,
  #contact {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .container {
    padding: 0 1.2rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ============================================
   14. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

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

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

  .commitment-content h2 {
    font-size: 1.5rem;
  }

  .commitment-tagline {
    font-size: 1rem;
    letter-spacing: 1.5px;
  }

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

  .training-text h3,
  .hse-text h3 {
    font-size: 1.4rem;
  }
}

/* ============================================
   TOP INFO BAR — Link styles
   ============================================ */
.top-info-left a {
  color: var(--gray-400);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.top-info-left a:hover { color: var(--cyan-400); }
.top-info-left a i { color: var(--cyan-500); font-size: 0.7rem; }

/* ============================================
   FLOATING CONTACT SPEED-DIAL
   ============================================ */
.speed-dial {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.speed-dial-main {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.speed-dial-main:hover {
  background: #1ebe5d;
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
.speed-dial.open .speed-dial-main {
  background: var(--navy-700);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.speed-dial.open .speed-dial-main i {
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}

.speed-dial-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.speed-dial.open .speed-dial-options {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.speed-dial-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border-radius: 50px;
  padding: 0.55rem 1.1rem 0.55rem 0.8rem;
  color: var(--white);
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.speed-dial-option:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.sd-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sd-whatsapp { background: #25D366; }
.sd-whatsapp:hover { background: #1ebe5d; }
.sd-phone    { background: var(--cyan-600); }
.sd-phone:hover { background: var(--cyan-500); }
.sd-email    { background: var(--navy-600); }
.sd-email:hover { background: var(--navy-500); }
