@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-primary: #1E3A8A; /* Robust Navy Blue */
  --color-primary-light: #2563EB;
  --color-primary-dark: #1e293b;
  --color-secondary: #F97316; /* Safety Orange */
  --color-secondary-hover: #EA580C;
  --color-text-main: #334155;
  --color-text-muted: #64748B;
  --color-bg-light: #F8FAFC;
  --color-bg-white: #FFFFFF;
  --color-bg-dark: #0f172a; /* Slate 900 */
  --color-accent: #38BDF8;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

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

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.2;
}

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

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-xl) 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }

.section-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary-light);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

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

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

.btn-outline {
  background-color: transparent;
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--color-primary-dark);
}

/* Animations (Animate on Scroll) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 1. Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all var(--transition-fast);
  padding: 1.5rem 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.header.scrolled .nav-link {
  color: var(--color-primary-dark);
}

.header.scrolled .logo-text {
  color: var(--color-primary-dark);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon i {
  font-size: 2rem;
  color: var(--color-secondary);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  transition: color var(--transition-fast);
}

.logo-text span {
  color: var(--color-secondary);
}

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

.nav-link {
  color: white;
  font-weight: 500;
  position: relative;
  font-size: 1rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-fast);
}

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

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}
.header.scrolled .mobile-toggle { color: var(--color-primary-dark); }

/* Pages: Non-index header needs dark text */
body:not(.home-page) .header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}
body:not(.home-page) .nav-link, 
body:not(.home-page) .logo-text, 
body:not(.home-page) .mobile-toggle { cursor: pointer; color: var(--color-primary-dark); }


/* 2. Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%),
    url('https://images.unsplash.com/photo-1586528116311-ad8ed7c15637?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: white;
}

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

.hero-tag {
  display: inline-block;
  background: rgba(249, 115, 22, 0.2);
  color: var(--color-secondary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-transform: capitalize;
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* 3. Features Banner */
.features-banner {
  background-color: var(--color-bg-white);
  padding: 3rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  border-radius: 1rem;
}

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

.feature-item {
  padding: 1rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(30, 58, 138, 0.05);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-fast);
}

.feature-item:hover .feature-icon {
  background: var(--color-primary);
  color: white;
  transform: rotate(5deg) scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

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

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

.about-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-exp {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  background: var(--color-secondary);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 4px solid var(--color-bg-light);
}

.about-exp-num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.about-exp-text {
  font-weight: 500;
  font-size: 0.9rem;
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { color: var(--color-text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }
.about-list {
  list-style: none;
  margin-bottom: 2rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}
.about-list i {
  color: var(--color-secondary);
}

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

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

.service-card {
  background: var(--color-bg-light);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--color-primary);
  z-index: -1;
  transition: all var(--transition-smooth);
}

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

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

.service-icon {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

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

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: color var(--transition-smooth);
}

.service-card:hover .service-title { color: white; }

.service-desc {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  transition: color var(--transition-smooth);
}

.service-card:hover .service-desc { color: rgba(255,255,255,0.8); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition-smooth);
}

.service-card:hover .service-link { color: var(--color-secondary); }

/* 6. Stats Section */
.stats {
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
              url('https://images.unsplash.com/photo-1563810006764-baca2dfec7bf?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
  color: white;
  padding: 5rem 0;
}

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

.stat-item i {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.stat-num {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  color: white;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 7. Industries We Serve */
.industries {
  background-color: var(--color-bg-light);
}

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

.industry-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.industry-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.industry-img {
  height: 200px;
  overflow: hidden;
}

.industry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.industry-card:hover .industry-img img { transform: scale(1.1); }

.industry-content {
  padding: 2rem;
}

.industry-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.industry-desc {
  color: var(--color-text-muted);
}

/* 8. Why Us / Mission */
.mission {
  background-color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.mission-content {
  padding: 4rem 2rem 4rem 10%;
}
.mission-video {
  height: 100%;
  min-height: 500px;
  background: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1920&q=80') center/cover;
}

/* 9. CTA */
.cta-section {
  background: var(--color-primary-dark);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(15,23,42,0) 70%);
  z-index: 1;
}
.cta-content { position: relative; z-index: 2; }
.cta-section h2 { color: white; font-size: 3rem; margin-bottom: 1.5rem; }

/* 10. Footer */
.footer {
  background: #0B1120;
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 2rem;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo i { color: var(--color-secondary); }

.footer-text { margin-bottom: 1.5rem; line-height: 1.8; }

.footer-title {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--color-secondary); padding-left: 5px; }

.footer-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-contact i { color: var(--color-secondary); margin-top: 5px; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* Headers for Internal Pages */
.page-header {
  height: 400px;
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
              url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}
.page-title {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 0.5rem;
}
.breadcrumb { color: rgba(255,255,255,0.7); font-weight: 500;}
.breadcrumb span { margin: 0 0.5rem; }

/* Contact Forms */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}
.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.contact-card-icon {
  width: 60px; height: 60px;
  background: rgba(249,115,22,0.1);
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
textarea.form-control { resize: vertical; min-height: 150px; }

/* Responsive */
@media (max-width: 992px) {
  .about-grid, .mission, .contact-container { grid-template-columns: 1fr; gap: 2rem; }
  .about-exp { right: 0; bottom: 0; }
  .mission-content { padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 250px;
    background: white;
    flex-direction: column;
    padding: 6rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
  }
  .nav-links.nav-active { right: 0; }
  .nav-link { color: var(--color-primary-dark); font-size: 1.25rem; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
}
