@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f0f0f0;
}

header {
  color: white;
  background-image: url('Images/GULSHAN E KAREEM MPCSL GATE.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  overflow: hidden;
  background-color: #000; /* Fallback color */
}

/* Ensures image looks right on iPhones and other devices */
@media screen and (max-width: 600px) {
  header {
    background-attachment: scroll;
    background-position: top center;
  }
}

nav {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

ul li a:hover {
  color: #ffd700;
  transform: scale(1.1);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
}

.hamburger i {
  display: block;
  font-size: 40px;
  transition: transform 0.3s ease;
}

.cross {
  display: none;
}

@media screen and (max-width: 800px) {
  .hamburger {
    display: block;
  }

  .cross {
    display: block;
    position: absolute;
    top: 13px;
    right: 24px;
    font-size: 30px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    padding: 20px;
  }

  .nav-links.show {
    display: flex;
    animation: slide-in 0.3s ease;
    animation-fill-mode: forwards;
    overflow-y: auto;
    justify-content: start;
    align-items: start;
  }

  .nav-links li {
    margin-bottom: 20px;
  }
}

.grid-column {
  color: black;
  background-color: #f0f0f0;
}

.grid-column h2 {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 30px;
}

.grid-column .grid1 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 20px 70px;
  padding: 20px;
  background-color: #f0f0f0;
}

.grid1 div {
  padding: 30px;
  font-size: 14px;
  background-color: white;
  border-radius: 5px;
  margin: 20px;
}

@media screen and (max-width: 800px) {
  .grid-column .grid1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .grid1 div{
    min-width: 45vh;
  }
}
   

.hero {
  margin-top: 100px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.3rem;
  color: white;
  background-color: #007bff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background-color: #ffd700;
  transform: scale(1.05);
}

main {
  padding: 50px;
  text-align: center;
}

.contact-query button a {
  text-decoration: none;
  color: white;
}

/* Contact Query Section */
.contact-query {
  margin-bottom: 50px;
  text-align: center;
  padding: 40px;
  border-radius: 10px;
}

.contact-query h1 {
  font-size: 2.2rem;
  color: #333;
  /* Dark grey for text */
  margin-bottom: 20px;
}

.contact-query button {
  padding: 12px 30px;
  font-size: 1.1rem;
  background-color: #007bff;
  /* Primary button color */
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-query button a {
  text-decoration: none;
  color: white;
}

.contact-query button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  /* Slight scale on hover */
}

/* Why Choose Us Section */
.why-choose {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px;
  background-color: #007bff;
  /* Primary background color */
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.why-choose h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.why-choose h5 {
  font-size: 1.3rem;
  font-weight: normal;
  margin-bottom: 20px;
  color: #e6e6e6;
  /* Light grey for subtitle */
}

.contact-query button {
  padding: 10px 20px;
  font-size: 1.2rem;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-query button:hover {
  background-color: #ffd700;
  transform: scale(1.05);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

.grid-item {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-10px);
}

.grid-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.grid-item p {
  color: #555;
}

.icon {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 10px;
}

.icon:hover {
  color: #ffd700;
}
h1 span{
  color: #007bff;
}

@media screen and (max-width: 700px) {
  .grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .grid .grid-item{
    min-width: 42vh;
  }
  h1 span{
    color: #ffffff;
  }
  .contact-query h1{
    font-size: 1.3rem;
  }
  .why-choose h3{
    font-size: 1.5rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Styling */
footer {
  background-color: #333;
  color: white;
  padding: 60px 20px;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

@media screen and (max-width: 500px) {
  footer {
    max-width: 100%;
  }

  .links {
    display: none;

  }
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ffcc00;
}

.footer-section p,
.footer-section ul {
  color: #ddd;
  font-size: 1rem;
}

.footer-section ul {
  list-style-type: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ddd;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ffcc00;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icons a {
  font-size: 1.5rem;
  color: #ddd;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #ffcc00;
  transform: scale(1.2);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
}

.footer-bottom p {
  color: #bbb;
  font-size: 0.9rem;
}

/* Animations */
.footer-section p,
.footer-section ul li {
  animation: fadeInUp 0.7s ease-out;
}

.social-icons a {
  animation: bounce 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}
