/* ======================== */
/* 1. IMPORTS & GLOBAL STYLES */
/* ======================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  /* text-align: center; */
  background-color: #ffffff;
  color: #333;
}
/* ======================== */
/* 2. HEADER & NAVIGATION */
/* ======================== */
/* Header Styles */
header {
  background-color: #ffffff;
  width: 100%;
  position: fixed;
  z-index: 200; 
  border-bottom: 1px solid #dbdbdb;
}

.nav-bar {
  padding: 1rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  width: 4rem;
  height: 3rem;
  transition: 0.3s;
}

.nav-logo:hover {
  transform: scale(1.2);
}

nav ul {
  display: flex;
  gap: 5rem;
}

nav ul li {
  list-style: none;
}

nav a {
  position: relative;
  text-decoration: none;
  color: rgb(0, 0, 0);
  transition: color 0.3s;
  display: inline-block;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -0.3rem;
  left: 0;
  width: 100%;
  height: 0.15rem;
  background-color: #d14827;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-in-out;
}

nav a:hover::after {
  transform: scaleX(1);
}

/* Dropdown Styles */
.dropdown-container {
  position: relative;
}

.dropdown {
  color: rgb(0, 0, 0);
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  width: 16rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(139, 139, 139, 0.3);
  display: none;
  text-align: center;
  justify-content: center;
}

.dropdown-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin: 0;
  padding: 1rem 0;
}

.dropdown-container.active .dropdown-menu {
  display: block;
}

/* Hamburger icon */
.icon {
  display: none;
  font-size: 1.8rem;
  color: rgb(0, 0, 0);
  cursor: pointer;
}

@media screen and (min-width: 768px) and (max-width: 1024px){
  nav ul {
    display: flex;
    gap: 4rem;
  }

  .nav-bar {
    padding: 2rem 2.5rem;  
  }
}

@media screen and (max-width: 768px) {
  .nav-bar {
    justify-content: space-between;
    align-items: center;
    padding-left: 1rem;
    background-color: white;
    padding-right: 1.5rem;
  }

  .nav-logo {
    height: 3rem;
    width: auto;
  }

  .icon {
    display: block;
    cursor: pointer;
    color: #000;
  }

  nav {
    position: fixed;
    top: 4rem; 
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 998;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem;
    margin-top: 0.5rem; 
    gap: 0;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    padding: 0.75rem 0;
    width: 100%;
    text-align: left;
    line-height: 0.2;
    gap: 1rem;
  }

  .dropdown-container {
    width: 100%;
  }

  .dropdown-menu {
    display: none;
    flex-direction: column;
    padding: 1.5rem 1.5rem;
    width: 100%;
    margin-top: 0.5rem; 
    position: static;  
    transform: none; 
    background-color: transparent;
    box-shadow: #a7a7a7;
}

  .dropdown-container.active .dropdown-menu {
    display: flex;
  }
}



   .poster {
  height: 70vh;
  background-image: url(https://images.unsplash.com/photo-1635405050330-b0824eb1bf26?q=80&w=1169&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
   background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed; /* Parallax effect (desktop only) */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.poster h1 {
  color: #ffffff;
  font-size: 3rem;
  
}

/* Tablet view */
@media (max-width: 991px) {
  .poster {
    height: 500px;
    background-attachment: scroll; /* smoother on tablets */
  }

  .poster h1 {
    font-size: 2.5rem;
  }
}

/* Mobile view */
@media (max-width: 600px) {
  .poster {
    height: 350px;
    background-attachment: scroll;
    padding-top: 40px;
  }

  .poster h1 {
    font-size: 2rem;
    padding: 8px 16px;
  }
}

 
  /* styling class heading having h1 */
  .heading h1 {
    color: #0249fd;
    font-size: 40px;
    text-align: center;
  }
  
  .about-section {
    display: flex;
    align-items: center; /* Centers text vertically with image */
    justify-content: space-between; /* Even spacing */
    text-align: left;
    padding: 50px;
    padding-right: 20px;
    overflow: hidden;
    gap: 30px; /* Ensures spacing between text and image */
  }
  
  /* Default: Desktop Layout (Text and Image Side-by-Side) */
  .text-container {
    flex: 1;
  }
  
  .about-section img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    flex: 1;
    height: auto;
    opacity: 0;
    transform: translateX(-100px); /* Image slides in from left */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  }
  
  .about-section h1,
  .about-section p {
    opacity: 0;
    transform: translateX(-100px); /* Text slides in from left */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  }
  
  .about-section h1 {
    font-size: 1.8rem;
    font-weight: bold;
    padding-left: 20px;
    padding-right: 20px;

  }
  
  .show {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }

  
  /* Improves text readability */
  .about-section p {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: regular;
    padding-right: 20px;
    padding-left: 20px;
  }

      h2{
    color: #353535;
    font-size: 2rem;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* ======================== */
  /* RESPONSIVE FIXES */
  /* ======================== */
  
  /* Tablets (Stack text on top of image) */
  @media (max-width: 1024px) {
    .about-section {
      flex-direction: column; /* Stack text and image vertically */
      text-align: left;
    }
  
    .text-container {
      order: 1; /* Ensures text appears first */
    }
  
    .about-section img {
      display: none; /* Make image take full width */
    }
  }
  
  /* Mobile Devices */
  @media (max-width: 768px) {
    .about-section {
      align-items: left;
      text-align: left;
      padding: 10px;
      text-align: left;
    }
    
    .about-section img {
      display: none;
    }
  
    .about-section h1 {
      font-size: 1.5rem;
      margin-top: 20px;

    }
  
    .about-section p {
      font-size: 1rem;
    }
  }
  
  /* Small Mobile Screens */
  @media (max-width: 480px) {
    .about-section {
      flex-direction: column;
      text-align: left;
    }
  
    .text-container {
      order: 1;
    }
  
    .about-section img {
      display: none;
    }
  
    .about-section h1 {
      margin-top: 20px;
      font-size: 1.5rem;
    }
  
    .about-section p {
      font-size: 1rem;
    }

    h2{
        font-size: 1.5rem;
        text-align: center;
  }
  }


 .services {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 30px;
      padding: 60px 40px;
      max-width: 1200px;
      margin: auto;
    }

    .card {
      position: relative;
      width: 350px;
      height: 250px;
      background: white;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }

    .card:hover {
      transform: translateY(-8px);
    }

    .card .front, .card .back {
      position: absolute;
      width: 100%;
      height: 100%;
      padding: 25px;
      box-sizing: border-box;
      transition: all 0.4s ease;
    }

    .card .front {
      background: #fff;
      z-index: 2;
    }

    .card:hover .front {
      transform: translateY(-100%);
    }

    .card .back {
      background: rgb(255, 227, 227);
      top: 100%;
      z-index: 1;
    }

    .card:hover .back {
      top: 0;
    }

    .card i {
      font-size: 30px;
      color: #d14827;
      margin-bottom: 15px;
    }

    .card h3 {
      margin: 10px 0;
      color: #d14827;
      font-size: 20px;
    }

    .card ul {
      padding-left: 20px;
    }

    .card ul li {
      margin-bottom: 6px;
      font-size: 15px;
      list-style: disc;
    }

/* Starting of footer tag */
/* Class footer-container for creating footer */
.footer-container {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  padding: 0 20px;
}

/* Class row for row of footer */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Class footer for the inside of footer */
.footer {
  background-color: #666666;
  padding: 20px 0;
  width: 100%;
  display: block;
}

/* Class footer-col for each column of footer */
.footer-col {
  width: 25%;
  padding: 10px;
}

/* Class footer-col for each column of footer having h4 */
.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

/* Class footer-col for each column of footer h4 original */
.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: #d14827;
  height: 2px;
  width: 50px;
}

/* Class footer-col for each column of footer unordered list */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

/* Footer-col list for anchor tag */
.footer-col ul li a {
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
  display: block;
  transition: all 0.3s ease;
}

/* Footer-col list for anchor tag when user hovers */
.footer-col ul li a:hover {
  color: #d5d5d5;
  padding-left: 5px;
}

/* Class social links anchor tag styling */
.social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background-color: rgba(255,255,255,0.2);
  margin: 0 10px 10px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.5s ease;
}

/* Class social link anchor tag when user hovers */
.social-links a:hover {
  color: #24262b;
  background-color: #ffffff;
}

/* Class footer-bottom for including copyright info */
.footer-bottom {
  color: #bbbbbb;
  text-align: left;
  padding-top: 10px;
}

/* Styling logo-pic for footer */
.logo-pic {
  width: 200px;
  height: 150px;
  display: inline-flex;
  margin-top: 40px;
  padding-left: 0;
}

/* Responsive Design */

/* Tablets: 2 columns layout */
@media screen and (max-width: 768px) {
  .footer-col {
      width: 50%;
      text-align: left;
  }

  /* Styling logo-pic for footer */
.logo-pic {
  width: 200px;
  height: 160px;
  display: inline-flex;
  margin-top: 60px;
  padding-left: 0;
}
}

/* Mobile: 1 column layout */
@media screen and (max-width: 480px) {
  .footer-col {
      width: 100%;
      text-align: center;

  }

  /* Styling logo-pic for footer */
  .logo-pic {
    width: 120px;
    height: 100px;
    display: inline-flex;
    margin-top: 30px;
    padding-left: 0;
  }

  /* Class footer-col for each column of footer h4 original */
  .footer-col h4::before {
    left: 45%;
  }

  .footer-bottom {
    color: #bbbbbb;
    text-align: left;
    padding-top: 10px;
    font-size: 0.8rem;
}
}
