/* Base Reset and Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9fbfd;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.8s ease-in-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007bff;
}

.btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,123,255,0.4);
}

.btn-secondary {
  background: #f2f2f2;
  color: #333;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  margin-left: 10px;
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background: #ddd;
}

/* Hero Section */
#hero {
  padding: 120px 40px;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
  animation: fadeInHero 1.5s ease-in-out;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Section Base */
section {
  padding: 70px 20px;
  max-width: 1200px;
  margin: auto;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  font-size: 2.2rem;
  color: #007bff;
  margin-bottom: 1rem;
  border-left: 5px solid #007bff;
  padding-left: 12px;
}

section img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.services-grid img {
  width: 100%;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.services-grid img:hover {
  transform: scale(1.05);
}

#services ul {
  padding-left: 20px;
  line-height: 1.8;
}

/* Why Choose Us */
#why ul {
  padding-left: 20px;
  list-style-type: square;
  line-height: 1.8;
}

/* Testimonials */
#testimonials {
  background: #fefefe;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

#testimonials blockquote {
  background: #f4faff;
  padding: 20px;
  max-width: 700px;
  margin: 20px auto;
  border-left: 5px solid #007bff;
  font-style: italic;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#testimonials img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  margin-top: 20px;
}

/* Contact */
#contact p {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: #002744;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95rem;
  margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  #hero p {
    font-size: 1rem;
  }
}

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

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