﻿/* Base Hero Styles */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  overflow: hidden; /* ensures animations stay contained */
}

.hero-content {
  max-width: 800px;
  opacity: 0;              /* start invisible */
  transform: translateY(40px); /* start slightly lower */
  animation: fadeUp 1.2s ease-out forwards; /* trigger animation */
}

/* Headings and Paragraphs */
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #0056b3;
  animation: slideIn 1s ease-out forwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #555;
  animation: fadeIn 1.5s ease-out forwards;
}

/* Button with Hover Animation */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ff7f32;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  background: #e96a1f;
  transform: scale(1.05); /* subtle zoom */
}

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Subtle background variations for each section */
.contact {
  background: linear-gradient(to right, #ffffffed, #f0f4f8ed),url('../Images/4.jpeg');
}

.whyus {
  background: linear-gradient(to right, #ffffff, #eaf3ff);
}

.about {
  background-image: linear-gradient(to right, #ffffffed, #fff5efed),url('../Images/4.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}


