/* Basic Reset and Global Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f9;
  color: #2d2828;
}

/*  Loader Styles */
.loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #2f2a2a;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top: 5px solid #ef8787;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header & Navigation */
.header {
  background-color: #353232;
  color: rgb(234, 212, 212);
  padding: 1em 0;
  text-align: center;
}

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

.logo { margin: 0; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

/*  Navbar hover underline animation */
.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0;
  height: 2px;
  background: #ef8787;
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  /*   animated gradient background */
  background: linear-gradient(-45deg, #5a7d9a, #ef8787, #6a5acd, #ffa07a);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: white;
  text-align: center;
  padding: 4em 0;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ✅  Hero text fade-in + slide animation */
.hero h2, .hero p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.animate-text { animation-delay: 0.3s; }
.animate-text-delay { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*  Button hover animation */
.contact{
  background-color: #ef8787;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: inline-block;
}

.contact:hover {
  background-color: #d96d6d;
  transform: scale(1.05);
}

/* Features Section */
.features {
  padding: 4em 0;
  text-align: center;
}

.features-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/*  Hover animation on feature cards */
.feature-item {
  flex: 1;
  background-color: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Call-to-Action Section */
.cta-section {
  background-color: #2f2a2a;
  color: white;
  text-align: center;
  padding: 4em 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1em 0;
  background-color: #2f2a2a;
  color: #bbb;
}
/* Basic Responsiveness */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
  }

  .nav ul {
    justify-content: center;
    padding-top: 10px;
  }
}

