/* =========================
   GLOBAL RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
  color: #0b1c2d;
  padding-top: 75px; /* Fix for fixed navbar */
  overflow-x: hidden;
  transition: filter 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

/* =========================
   SCROLL ANIMATION CLASSES
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.fade-in-delay.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.rotate-in {
  opacity: 0;
  transform: rotateY(90deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rotate-in.visible {
  opacity: 1;
  transform: rotateY(0);
}

/* =========================
   NAVBAR - RESPONSIVE
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0b1c2d; /* Dark Navy */
  color: white;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  position: relative;
}

.navbar.scrolled {
  background: rgba(11, 28, 45, 0.95);
  backdrop-filter: blur(10px);
}

.logo {
  height: 40px;
  width: 160px;
  background-color: white;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  z-index: 1002;
}

.logo:hover {
  transform: scale(1.05);
}

/* DESKTOP NAVIGATION */
.desktop-nav {
  display: flex;
  gap: 25px;
}

.desktop-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.desktop-nav a:hover {
  color: #f97316; /* Safety Orange */
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #f97316;
  transition: width 0.3s ease;
}

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

.desktop-nav a.active {
  color: #f97316;
}

.desktop-nav a.active::after {
  width: 100%;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
  z-index: 1002;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-toggle .fa-times {
  display: none;
}

.menu-open .menu-toggle .fa-bars {
  display: none;
}

.menu-open .menu-toggle .fa-times {
  display: inline-block;
  color: #f97316;
}

.menu-toggle:hover {
  color: #f97316;
  transform: scale(1.1);
}

/* MOBILE NAVIGATION */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #0b1c2d;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: 80px;
}

.menu-open .mobile-nav {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #d1d5db;
  text-decoration: none;
  padding: 18px 30px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.mobile-nav-link:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border-left-color: #f97316;
  padding-left: 40px;
}

.mobile-nav-link i {
  width: 24px;
  text-align: center;
  font-size: 1.2rem;
}

.mobile-contact-info {
  padding: 25px 30px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d1d5db;
}

.mobile-contact-info a {
  color: #f97316;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-contact-info a:hover {
  color: #ea580c;
  text-decoration: underline;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-open .mobile-overlay {
  opacity: 1;
  visibility: visible;
}

/* Hide logo and blur background when menu is open on mobile */
@media (max-width: 768px) {
  .menu-open .logo {
    filter: blur(2px);
    opacity: 0.5;
  }
  
  .menu-open .nav-container {
    background: rgba(11, 28, 45, 0.9);
  }
}

/* =========================
   HERO SECTION
========================= */
.hero {
  height: 100vh;
  background: url("./closeup-red-fire-extinguishers\ \ c.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  background: rgba(11, 28, 45, 0.85);
  color: white;
  padding: 60px;
  text-align: center;
  max-width: 720px;
  border-radius: 8px;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.hero:hover .hero-overlay {
  transform: translateY(-10px);
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  margin-top: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  opacity: 0.7;
  animation: pulse 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* =========================
   BUTTONS & LINKS
========================= */
.primary-btn {
  margin-top: 25px;
  padding: 12px 30px;
  background: #f97316;
  border: none;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: #ea580c;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

/* Anchor styled as button */
.primary-link {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 30px;
  background-color: #f97316;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.primary-link:hover {
  background-color: #ea580c;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.primary-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.primary-link:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.primary-link:visited,
.primary-link:active {
  color: white;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 120px 60px 80px;
  background: #0b1c2d;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  transform: translateX(-100%);
  transition: transform 1s ease;
}

.section.in-view::before {
  transform: translateX(0);
}

.section.light {
  background: #f1f5f9;
  color: #0b1c2d;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #f97316;
  transition: width 0.5s ease;
}

.section-title:hover::after {
  width: 120px;
}

.section-text {
  max-width: 750px;
  margin: 20px auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

/* =========================
   CARDS
========================= */
.cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.card {
  background: white;
  color: #0b1c2d;
  padding: 30px;
  width: 280px;
  border-radius: 6px;
  text-align: left;
  border-left: 5px solid #f97316;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
  transition: left 0.7s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-left-color: #ea580c;
}

.card h3 {
  margin-bottom: 12px;
  color: #0b1c2d;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: #f97316;
}

/* List inside cards */
.card ul {
  padding-left: 18px;
}

.card ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  position: relative;
  padding-left: 5px;
  transition: transform 0.3s ease;
}

.card ul li:hover {
  transform: translateX(5px);
}

.card ul li::before {
  content: '•';
  color: #f97316;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

/* =========================
   LINKS INSIDE CARDS
========================= */
.card a {
  color: #f97316;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
}

.card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #f97316;
  transition: width 0.3s ease;
}

.card a:hover {
  color: #ea580c;
}

.card a:hover::after {
  width: 100%;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #020617;
  color: #cbd5e1;
  text-align: center;
  padding: 25px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #ea580c, #f97316);
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1024px) {
  .nav-container {
    padding: 15px 40px;
  }
  
  .desktop-nav {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 15px 25px;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .hero-overlay {
    padding: 40px 25px;
  }
  
  .section {
    padding: 100px 25px 60px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .cards {
    gap: 20px;
  }
  
  .card {
    width: 100%;
    max-width: 340px;
  }
  
  .scroll-indicator {
    font-size: 1.2rem;
  }
  
  .mobile-nav {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 12px 20px;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero-overlay {
    padding: 30px 20px;
  }
  
  .section {
    padding: 80px 20px 50px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .primary-link {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
  
  .card {
    padding: 25px 20px;
  }
  
  .mobile-nav {
    max-width: 280px;
  }
  
  .mobile-nav-link {
    padding: 16px 25px;
    font-size: 1rem;
  }
  
  .mobile-nav-link:hover {
    padding-left: 35px;
  }
}