* {
     box-sizing: border-box; margin: 0; padding: 0; 
     /* border: 2px solid red; */
    }
body {
     font-family: Arial, sans-serif; 
    }
/* <----------------------------------------------FIRST-PART-------------------------> */
.main{
    background-image: url(hero-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color:rgb(33, 37, 41);
  color: white;
  border-radius: 0 0 15px 15px;
  position: fixed; /* Fixes the navbar at the top */
  top: 0; /* Positions it at the top of the screen */
  left: 0; /* Ensures it starts from the left edge */
  width: 100%; /* Makes the navbar span the full width of the screen */
  z-index: 1000; 
}
.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  /* border: 1px solid black; */
  margin-left: 10px;
}
.navbar ul {
  list-style: none;
  display: flex;
  /* border: 1px solid black; */
  justify-content: center; /* Centers links horizontally */
  align-items: center; /* Ensures links are vertically aligned */
  gap: 1.0rem; /* Adds spacing between links */
  padding: 0; /* Removes default padding */
  margin: 0; 
}
.navbar ul li {
  padding: 0 1rem; /* Adds space to the left and right of each link */
}
.navbar ul li:last-child {
  margin-right: 2rem; /* Additional space to the right of the 'Contact' link */
}
.navbar ul li a {
  color: white;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    background-color: rgb(33, 37, 41);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    align-items: center;
    /* border: 1px solid red; */
  }
  .navbar ul.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    margin-right: 15px;
    /* border: 1px solid red; */
  }
}
.btn{
    margin-right: 10px;
}
/* -------main-content------------- */
.main-content{
    /* border: 1px solid red; */
    height: 100%;
}
/* <--------------content-box-------------> */
/* Fix .content-box responsiveness */
.content-box {
  width: 55%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2rem; /* Avoid content sticking to the bottom */
}

/* Responsive override for small screens */
@media (max-width: 768px) {
  .content-box {
      width: 100%;
      height: auto;
      justify-content: center;
      align-items: center;
      padding: 2rem 1rem;
      text-align: center;
  }

  .box-text {
      height: auto;
  }

  .box-text .btn {
      width: 80%;
  }
}

/* <-----------box-text-----------> */
.box-text {
  height: 95%;
}

.topic{
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
}
.c1{
        font-family: 'Open Sans', sans-serif;   
        font-size: clamp(1rem, 2.5vw, 1.3rem); /* responsive size */
        line-height: 1.6;
}

/* Responsive button */
.box-text .btn {
  width: clamp(120px, 30%, 200px);
  font-size: 1rem;
  padding: 0.6rem 1rem;
}

/* Optional: Better spacing on smaller screens */
@media (max-width: 576px) {
  .box-text {
      text-align: center;
      padding: 1rem 0.5rem;
  }
  .box-text .btn {
      width: 60%;
      margin: 0 auto;
  }
}
/* <----------------------------------3D carousel --------------------------------------> */
.card {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 1.5rem;
}
/* .card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
} */
.card img {
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  width: 100%;
  height: 180px;
}
.card .container {
  padding: 1rem 1rem 1.2rem 1rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 700;
}
.card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}
.card button {
  margin-top: auto;
  border-radius: 6px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .card img {
    height: 140px;
  }
}
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  .card img {
    height: 120px;
  }
}
@media (max-width: 576px) {
  .card img {
    height: 90px;
  }
  .card .container {
    padding: 0.7rem 0.5rem 1rem 0.5rem;
  }
  .card h4 {
    font-size: 1rem;
  }
  .card p {
    font-size: 0.9rem;
  }
}
 
.swiper {
      width: 90%;
      max-width: 1000px;
      padding-top: 50px;
      padding-bottom: 50px;
      /* border: 1px solid red; */
      margin-top: 10px;
      border-radius: 20px;
    }

    .swiper-slide {
      background-position: center;
      background-size: cover;
      width: 300px;
      height: 400px;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s;
    }

    .swiper-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }


/* <--------------------------------------------heading of second part-------------------> */
.sec{
  text-align: center;
  font-weight: 900;
  font-size: 50px;
  margin-top: 10px;
  font-family:		Clean, modern sans-serif;
}
/* <!--------------------------------------- second-part--------------------------------> */
.second-part{
  height: auto;
}



/* <-----------------------------------------------third-part-------------------------------------> */
.third-part {
  height: 70vh;
  background-image: url(about-img.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
  background-color: rgb(33, 37, 41);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 2rem; /* Add padding for spacing */
}

.third-part-content {
  height: auto;
  width: 50%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: justify;
  gap: 1rem; /* Add spacing between elements */
}

.third-part-content p.h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
}

.third-part-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem); /* Responsive font size */
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .third-part {
    flex-direction: column; /* Stack content vertically */
    background-position: top; /* Adjust background position */
    padding: 1rem; /* Reduce padding */

    /* ✅ Center text content on mobile */
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .third-part-content {
    width: 100%; /* Full width for smaller screens */
    align-items: center; /* Center align content */
    text-align: center; /* Center align text */
  }

  .third-part-content p.h1 {
    font-size: 2rem; /* Adjust heading size */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  .third-part-content p {
    font-size: 1rem; /* Adjust paragraph size */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
}

@media (max-width: 480px) {
  .third-part {
    padding: 0.5rem; /* Further reduce padding */

    /* ✅ Keep text centered on very small screens */
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .third-part-content p.h1 {
    font-size: 3rem; /* Further adjust heading size */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  .third-part-content p {
    font-size: 0.9rem; /* Further adjust paragraph size */
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.8);
  }
}

/* -----------------------------------------------------button -------------------------------*/
/* From Uiverse.io by cssbuttons-io */ 
.but1{
  align-items: center;
  background-image: linear-gradient(144deg, #af40ff, #5b42f3 50%, #00ddeb);
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #ffffff;
  display: flex;
  font-size: 18px;
  justify-content: center;
  line-height: 1em;
  max-width: 100%;
  min-width: 140px;
  padding: 3px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

button:active,
button:hover {
  outline: 0;
}

button span {
  background-color: rgb(5, 6, 45);
  padding: 16px 24px;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

button:hover span {
  background: none;
}

button:active {
  transform: scale(0.9);
}

/*------------------------------------------ fourth-part------------------------------------ */
.fourth-part{
  min-height: 100vh;
  font-family: 'Dancing Script', cursive;
  font-weight: 900;
  font-size:larger;
  /* background-color: #e964d3; */
  color: black;
}
.fourth-part h1{
  font-size: 60px;
  text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.8);
}
.parent {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  min-height: 100vh; /* Allow the grid to grow naturally */
  gap: 0;
}

/* .parent > div {
  width: 100%;
  height: 100%;
  overflow: hidden;
} */

.parent img {
  width: 100%;
  height: 100%;
  /* aspect-ratio: 16/9; */
  object-fit: cover;
  display: block;
}

.div2 {
  grid-row: span 3;
  grid-column-start: 1;
  grid-row-start: 2;
  
}

.div3 {
  grid-column: span 2;
  grid-column-start: 1;
  grid-row-start: 5;
  /* border: 5px solid red; */
  /* width: 100%; */
}

.div4 {
  grid-row: span 3;
  grid-column-start: 2;
  grid-row-start: 1;
}

.div5 {
  grid-column-start: 2;
  grid-row-start: 4;
}

.div6 {
  grid-column-start: 3;
  grid-row-start: 3;
}

.div7 {
  grid-row: span 2;
  grid-column-start: 3;
  grid-row-start: 4;
}

.div8 {
  grid-row: span 2;
  grid-column-start: 3;
  grid-row-start: 1;
}

.div9 {
  grid-column-start: 4;
  grid-row-start: 1;
}

.div10 {
  grid-row: span 2;
  grid-column-start: 4;
  grid-row-start: 2;
}

.div11 {
  grid-column: span 2;
  grid-row: span 2;
  grid-column-start: 4;
  grid-row-start: 4;
}

.div12 {
  grid-row: span 3;
  grid-column-start: 5;
  grid-row-start: 1;
}
/* Tablet */
@media (max-width: 992px) {
  .parent {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  .parent > div {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .parent {
    grid-template-columns: repeat(1, 1fr);
  }

  .parent > div {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Adjust grid layout for desktop screens */
@media (min-width: 992px) {
  .parent {
    grid-template-columns: repeat(4, 1fr); /* Change to 4 columns */
    grid-template-rows: auto; /* Let rows adjust automatically */
    gap: 1rem; /* Add spacing between grid items */
  }

  .parent > div {
    grid-column: auto; /* Reset column span */
    grid-row: auto; /* Reset row span */
  }
}
/* -----------------------------------------------------footer-section------------------------------------------ */
.footer-section {
  background: linear-gradient(135deg, #a1ffce, #faffd1);
  position: relative;
  padding-top: 150px;
  color: #222;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Wave */
.custom-shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: rotate(180deg);
}

.custom-shape-divider-top svg {
  width: 100%;
  height: 150px;
  transform: rotateY(180deg);
}

.custom-shape-divider-top .shape-fill {
  fill: #fff;
}

/* Content Layout */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Brand */
.footer-brand {
  flex: 1 1 250px;
  text-align: center;
}

.footer-brand h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  max-width: 350px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Social */
.footer-social {
  flex: 1 1 200px;
  text-align: center;
}

.footer-social h3,
.footer-contact h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-4px);
}

/* Contact */
.footer-contact {
  flex: 1 1 220px;
  text-align: center;
}

.footer-contact p {
  margin: 0.4rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.footer-contact img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

/* Bottom */
.footer-bottom {
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 1rem 0;
  margin-top: 1rem;
  font-size: 0.85rem;
  backdrop-filter: blur(5px);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-content {
    justify-content: center;
    text-align: center;
  }

  .footer-brand h2 {
    font-size: 1.8rem;
  }

  .footer-social h3,
  .footer-contact h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-brand p {
    max-width: 280px;
    font-size: 0.9rem;
  }

  .footer-social,
  .footer-contact {
    width: 100%;
  }

  .footer-contact p {
    font-size: 0.85rem;
    flex-wrap: wrap;
  }
}
