/* ===== CSS RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #e31e24;
  --primary-blue: #0080c7;
  --dark-navy: #1a2238;
  --light-navy: #2e3750;
  --light-gray: #f5f5f5;
  --text-dark: #333;
  --text-light: #666;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.1rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-red);
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}
.highlight {
  color: var(--primary-red);
}
.emergency {
  color: var(--primary-red);
  font-weight: bold;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--dark-navy);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info span {
  margin-right: 1.5rem;
}

nav {
  padding: 1rem 0;
  background: var(--white);
}

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

.logo {
  display: flex;
  align-items: center;
  color: var(--text-dark);
  font-weight: bold;
}

.logo:hover {
  color: var(--text-dark);
}

.logo-icon {
  width: 60px;
  height: 40px;
  margin-right: 10px;
  position: relative;
}

.logo-m {
  color: var(--primary-red);
  font-size: 2.5rem;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.logo-te {
  color: var(--primary-blue);
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  right: 0;
  top: 8px;
}

.logo-text {
  font-size: 1.2rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark-navy);
  margin: 5px 0;
  transition: var(--transition);
}

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

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-red);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(
    135deg,
    var(--dark-navy) 0%,
    var(--light-navy) 100%
  );
  color: var(--white);
  padding: 4rem 0;
  min-height: 500px;
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-image {
  background: var(--white);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.trust-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.badge {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background: #c91a20;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--white);
  color: var(--dark-navy);
}

.btn-white {
  background: var(--white);
  color: var(--primary-red);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===== SERVICES ===== */
.services-overview {
  background: var(--light-gray);
}

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

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--primary-blue) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  filter: brightness(0) invert(1);
}

.service-card h3 {
  color: var(--dark-navy);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.learn-more {
  color: var(--primary-red);
  font-weight: 600;
}

.learn-more:hover {
  text-decoration: underline;
}

/* ===== STATS SECTION ===== */
.stats {
  background: var(--dark-navy);
  color: var(--white);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.stat-number::after {
  content: "+";
}

/* ===== PROJECTS ===== */
.recent-projects {
  padding: 4rem 0;
}

.projects-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h4 {
  padding: 1rem 1rem 0;
  color: var(--dark-navy);
}

.project-value {
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0 1rem;
}

.project-scope {
  color: var(--text-light);
  padding: 0 1rem 1rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-red) 0%, #c91a20 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-navy);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-red);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.footer-section a {
  color: #ccc;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #888;
}

/* ===== FORMS ===== */
.form-container {
  max-width: 1600px;
  min-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group label .required {
  color: var(--primary-red);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 128, 199, 0.1);
}

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

.form-submit {
  text-align: center;
}

/* ===== ABOUT PAGE SPECIFIC ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.certifications {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cert-badge {
  width: 100px;
  height: 100px;
  background: var(--light-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--dark-navy);
  box-shadow: var(--shadow-sm);
}

/* ===== SERVICE DETAIL ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) .service-info {
  direction: ltr;
}

.service-features {
  list-style: none;
  margin-top: 1rem;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
}

/* ===== PROJECT GALLERY ===== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: var(--light-gray);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-red);
  color: var(--white);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ===== TABLE STYLES ===== */
.data-table {
  width: 100%;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table thead {
  background: var(--dark-navy);
  color: var(--white);
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
}

.data-table tbody tr {
  border-bottom: 1px solid #eee;
}

.data-table tbody tr:hover {
  background: var(--light-gray);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }

  .header-top .container {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    margin-bottom: 0.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

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

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

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

  .hero-image {
    display: none;
  }

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

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

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

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

  .service-detail {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-badges {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 2rem 0;
  }

  .logo-text {
    font-size: 0.9rem;
  }
}

