:root {
  /* Colors */
  --primary: #00244d;
  --primary-mid: #003a7a;
  --secondary: #0099d4;
  --accent: #00c4f0;
  --bg-light: #FFFFFF;
  --bg-off-white: #F0F4F8;
  --text-dark: #1e293b;
  --text-light: #64748B;
  --border-color: #dde4ed;

  /* Typography */
  --font-primary: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* Shadows & Effects */
  --shadow: 0 2px 12px rgba(0,36,77,0.07);
  --shadow-md: 0 8px 24px rgba(0,36,77,0.12);
  --shadow-hover: 0 16px 40px rgba(0,36,77,0.18);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: rgba(0, 86, 179, 0.15);
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

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

section {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 60px; /* increased margin for whitespace */
  position: relative;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px; /* Moved down slightly */
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-shadow: 0 6px 20px rgba(0,36,77,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-mid) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,36,77,0.38);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 0;
  letter-spacing: 0.3px;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.top-bar-content span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-content i {
  font-size: 0.75rem;
  color: var(--secondary);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 16px rgba(0,36,77,0.07);
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo img {
  height: 56px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.company-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.company-tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

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

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

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
}

/* Nav CTA Button */
.nav-cta {
  background-color: var(--primary) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.2);
}

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

.nav-cta:hover {
  background-color: #004494 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Balanced Team Row */
.team-row-balanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-person-card {
    background: rgba(255,255,255,0.08);
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(4px);
}

.person-info h3 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.person-info p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

.person-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.btn-action {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 0.3px;
}

.btn-action.whatsapp {
    background: rgba(37,211,102,0.25);
    border-color: rgba(37,211,102,0.4);
}

.btn-action:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
    color: #fff;
}

.btn-action.whatsapp:hover {
    background: rgba(37,211,102,0.5);
}

/* Footer Section */
/* Hero Section */
.hero {
  height: calc(100vh - 115px); /* Subtract navbar + top bar height */
  min-height: 600px;
  background-image: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), url('hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}

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

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.hero h1 {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF; /* White stands out better on the blue hero background */
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Add shadow for legibility */
}

.stat-label {
  font-size: 1rem;
  color: #E0E0E0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about {
  background-color: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.about-details {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-box {
  background-color: var(--bg-off-white);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
}

.detail-box h4 {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.detail-box p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Services Section */
.services {
  background-color: var(--bg-off-white);
}

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

.service-card {
  background-color: var(--bg-light);
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: height 0.35s ease;
  z-index: -1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-mid) 100%);
  transition: height 0.35s ease;
  z-index: -2;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card:hover::after {
  height: 100%;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover ul li {
  color: rgba(255,255,255,0.92);
}

.service-card:hover .service-icon {
  color: var(--accent);
}

.service-icon {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 18px;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  transition: var(--transition);
}

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

/* Why Choose Us (Safety & Quality) */
.why-choose-us {
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  background-color: rgba(0, 168, 232, 0.08);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.feature-text p {
  color: var(--text-light);
}

/* Clients Section */
.clients {
  background-color: var(--bg-off-white);
  text-align: center;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.client-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-bottom: 3px solid var(--secondary);
}

.client-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.client-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Team Section */
.team {
  background-color: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-content: center;
}

.team-card {
  text-align: center;
  background-color: var(--bg-light);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 120px;
  height: 120px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: 4px solid var(--secondary);
}

.team-card h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.team-card p.role {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 15px;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-light);
}

.team-contact i {
  color: var(--primary);
  margin-right: 10px;
}

/* Workforce Section */
.workforce {
  background-color: var(--bg-off-white);
  padding: 100px 0; /* UX padding */
}

.workforce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.workforce-card {
  background-color: var(--bg-light);
  padding: 30px 20px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.workforce-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-bottom: 3px solid var(--secondary);
}

.workforce-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  display: block;
  margin-bottom: 5px;
}

.workforce-label {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
}

.workforce-note {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
  color: var(--text-light);
  font-style: italic;
}

/* Equipment Section */
.equipment {
  background-color: var(--bg-light);
  padding: 100px 0; /* UX padding */
}

.table-container {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.table-scrollable {
  max-height: 500px;
  overflow-y: auto;
}

.table-scrollable::-webkit-scrollbar {
  width: 8px;
}

.table-scrollable::-webkit-scrollbar-track {
  background: var(--bg-off-white);
}

.table-scrollable::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.table-scrollable::-webkit-scrollbar-thumb:hover {
  background: #004494;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-light);
  text-align: left;
}

.modern-table th,
.modern-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modern-table th {
  background-color: var(--primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table tr:nth-child(even) {
  background-color: var(--bg-off-white);
}

.modern-table tr:hover td {
  background-color: rgba(0, 168, 232, 0.05); /* very light cyan secondary */
}

.modern-table td:last-child {
  font-weight: 600;
  color: var(--primary);
}

/* Contact Section */
.contact {
  background-color: var(--bg-off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-mid) 60%, #005599 100%);
  color: #fff;
  padding: 48px 44px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-info h3 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 28px;
  line-height: 1.3;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-text h4 {
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-text p,
.contact-text a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--accent);
}

.contact-form {
  background-color: var(--bg-light);
  padding: 48px 44px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 0.97rem;
  color: var(--text-dark);
  background-color: var(--bg-off-white);
  transition: var(--transition);
  outline: none;
}

.form-control::placeholder {
  color: #b0bec5;
}

.form-control:focus {
  border-color: var(--secondary);
  background-color: var(--bg-light);
  box-shadow: 0 0 0 3px rgba(0,153,212,0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Submit Button — premium full-width */
.submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0,36,77,0.25);
  margin-top: 8px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,36,77,0.35);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,36,77,0.2);
}

.submit-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(4px);
}

.form-status {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.map-container {
  margin-top: 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0D1B2A 0%, #111A2E 100%);
  color: #fff;
  padding: 80px 0 30px;
}

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

.footer-about img {
  height: 60px;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 5px;
  border-radius: 5px;
}

.footer-about p {
  color: #A0AABF;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #A0AABF;
}

.footer-links ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact p {
  color: #A0AABF;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #A0AABF;
  font-size: 0.9rem;
  font-weight: 300;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: #004494;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

/* Responsive Overhaul */
@media (max-width: 992px) {
  section { padding: 60px 0; }
  .section-title { font-size: 2.2rem; margin-bottom: 40px; }
  .hero h1 { font-size: 3.2rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --font-heading: 'Montserrat', sans-serif; }
  
  .top-bar { display: none; } /* Hide top bar on mobile for cleaner look */
  
  .navbar .container { height: 70px; }
  .logo img { height: 48px; }
  .company-name, .company-tagline { font-size: 0.95rem; }
  
  .hero { height: auto; padding: 100px 0 60px; min-height: 500px; text-align: center; }
  .hero h1 { font-size: 2.6rem; margin-bottom: 15px; }
  .hero p { font-size: 1.1rem; }
  .hero-stats { flex-direction: column; gap: 30px; margin-top: 40px; align-items: center; }
  .stat-number { font-size: 2.5rem; }
  
  .section-title { font-size: 1.8rem; margin-bottom: 30px; }
  
  .team-row-balanced { grid-template-columns: 1fr; }
  
  .about-details { grid-template-columns: 1fr; }
  .about-text h3 { font-size: 1.5rem; }
  
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { text-align: center; flex-direction: column; align-items: center; }
  
  .contact-info, .contact-form { padding: 30px 20px; }
  .contact-info h3 { font-size: 1.5rem; }
  
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links h4::after, .footer-contact h4::after { left: 50%; transform: translateX(-50%); }
  .footer-contact p { justify-content: center; }
  .social-links { justify-content: center; }
  
  .mobile-menu-btn { display: block; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    flex-direction: column;
    padding: 40px 0;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    z-index: 999;
  }
  
  .nav-links.active { transform: translateX(0); }
  .nav-links li a { font-size: 1.2rem; font-weight: 600; padding: 10px; border: none; }
  
  .modern-table { font-size: 0.8rem; }
  .modern-table th, .modern-table td { padding: 10px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .btn-primary { padding: 12px 28px; font-size: 0.8rem; width: 100%; justify-content: center; }
  
  .company-tagline { display: none; } /* Extra space on very small screens */
  
  .person-actions { flex-direction: column; }
  .btn-action { width: 100%; }
}
