body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8fafc; /* slate-50 */
  color: #334155; /* slate-700 */
}

html {
  scroll-behavior: smooth;
}
/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1e293b; /* slate-800 */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

#preloader .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #0284c7; /* sky-600 */
}
/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9; /* slate-100 */
}

::-webkit-scrollbar-thumb {
  background: #94a3b8; /* slate-400 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b; /* slate-500 */
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
}

.navbar.bg-white {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 40px;
  width: auto;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate; /* Creates new stacking context */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9); /* 50% opacity black */
  z-index: -1; /* Places behind content */
}

.hero .container {
  position: relative;
  z-index: 1; /* Ensures text stays above overlay */
}
/* Projects Section */
.card-img-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  transition: background 0.3s ease;
}

.card:hover .card-img-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Contact Section */
.bg-dark {
  background-color: #1e293b !important; /* slate-800 */
}

.form-control {
  background-color: #334155; /* slate-700 */
  border-color: #475569; /* slate-600 */
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: #334155;
  border-color: #0284c7; /* sky-600 */
  box-shadow: 0 0 0 0.2rem rgba(2, 132, 199, 0.25);
}

.form-control::placeholder {
  color: #94a3b8; /* slate-400 */
}

/* Animations */
[data-aos] {
  transition-duration: 0.8s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .navbar-brand span {
    font-size: 1.2rem;
  }
}

/* Safety Section */
#safety .text-muted {
  color: #cbd5e1 !important; /* slate-300 - lighter gray */
}

#safety h5 {
  color: #ffffff !important; /* pure white */
}

/* Logo Animation */
.navbar-brand {
  transition: all 0.5s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand span {
  color: #0284c7; /* sky-600 */
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.navbar-brand:hover span {
  color: #0ea5e9; /* sky-500 */
  text-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}

.logo {
  transition: all 0.5s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-brand:hover .logo {
  transform: rotate(-5deg) scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(2, 132, 199, 0.3));
}

/* Add to your existing transition settings */
.navbar-brand {
  will-change: transform, filter;
}

.logo {
  will-change: transform, filter;
}
