@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

section {
  margin: 0;
  padding: 0;
  gap: 0;
}

html,
body {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  position: relative;
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  color: white;
  font-size: 1.5rem;
  text-align: center;
  opacity: 0;
  transition: top 0.8s ease, opacity 0.8s ease, transform 0.8s ease;
}

.slide.active .caption {
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
}

.caption p {
  width: 500px;
  font-weight: 300;
  letter-spacing: 1px;
  visibility: visible;
  font-size: 40px;
  margin-bottom: 10px;
}
.caption a {
  text-decoration: none;
  background-color: rgb(34, 34, 34);
  color: white;
  padding: 10px 14px;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 800;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.185);
  color: white;
  border: none;
  padding: 40px;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: background-color 0.3s;
}

.slider-btn:hover {
  background-color: white;
  color: gray;
}

.prev {
  left: 0;
  font-size: 20px;
}

.next {
  right: 0;
  font-size: 20px;
}

.prev-img,
.next-img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: 110px;
  height: 110px;
  display: none;
  z-index: 1;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: fadeIn 0.5s ease forwards; /* New animation */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.prev-img {
  left: 100px;
}

.next-img {
  right: 100px;
}

.slider-btn:hover + .prev-img {
  display: block;
  transform: translateY(-50%) translateX(-50px);
  opacity: 1;
}

.slider-btn:hover + .next-img {
  display: block;
  transform: translateY(-50%) translateX(50px);
  opacity: 1;
}

.slide.active .caption {
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
}
@media only screen and (max-width: 1024px) {
  .slider-container {
    height: 450px;
  }

  .caption p {
    font-size: 2rem;
    width: 80%;
    margin: 10px auto;
  }

  .slider-btn {
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
  }

  .slider-btn.prev,
  .slider-btn.next {
    font-size: 18px;
    padding: 12px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .prev-img,
  .next-img {
    width: 90px;
    height: 90px;
  }

  .caption a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .slider-btn {
    padding: 15px;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .caption {
    visibility: hidden;
  }

  .slide.active .caption {
    visibility: visible;
  }
}

@media only screen and (max-width: 768px) {
  .slider-container {
    height: 350px;
  }

  .caption p {
    font-size: 1.5rem;
    width: 90%;
    margin: 10px auto;
  }

  .slider-btn {
    padding: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
  }

  .slider-btn.prev,
  .slider-btn.next {
    font-size: 16px;
    padding: 10px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .prev-img,
  .next-img {
    width: 70px;
    height: 70px;
  }

  .caption a {
    font-size: 12px;
    padding: 6px 10px;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .caption {
    visibility: hidden;
  }

  .slide.active .caption {
    visibility: visible;
  }
}

@media only screen and (max-width: 480px) {
  .slider-container {
    height: 300px;
  }

  .caption p {
    font-size: 1rem;
    width: 300px;
    font-weight: 300;
  }

  .caption a {
    font-size: 2px;
  }

  .slider-btn {
    padding: 12px;
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
  }

  .slider-btn.prev,
  .slider-btn.next {
    font-size: 14px;
    padding: 8px;
  }

  .slider-btn.prev {
    left: 5px;
  }

  .slider-btn.next {
    right: 5px;
  }

  .prev-img,
  .next-img {
    width: 60px;
    height: 60px;
  }

  .caption a {
    font-size: 10px;
    padding: 5px 8px;
  }

  .slider-btn {
    padding: 8px;
  }
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(34, 34, 34);
  height: 80px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-heading {
  padding-left: 30px;
  color: white;
  font-weight: 900;
  font-size: 16px;
}

.logo-heading h1 {
  font-weight: 500;
  font-size: 22px;
}

.nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 5rem;
}

.nav-bar a {
  text-decoration: none;
  margin: 20px;
  color: rgb(76, 85, 67);
  font-size: 14px;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 25px;
  width: 30px;
  margin-right: 20px;
  background: transparent;
  border: none;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: white;
}

.nav-bar a:hover,
.nav-bar a.active {
  color: white;
}

@media (max-width: 768px) {
  .nav-bar {
    display: none;
    width: 100%;
    position: absolute;
    top: 80px;
    left: 0;
    background-color: rgb(34, 34, 34);
    flex-direction: column;
    align-items: center;
  }

  .nav-bar a {
    margin: 10px;
    font-size: 18px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-bar.active {
    display: flex;
  }
}

.back-image {
  width: 100%;
  height: 300px;
  background-image: url("assets/imagebg.jpg");
  filter: grayscale(100%);
}

.back-image p {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px;
  font-size: 55px;
  font-weight: 900;
  color: white;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .back-image {
    height: 150px;
    background-size: cover;
  }

  .back-image p {
    font-size: 40px;
    padding-top: 40px;
  }
}

@media (max-width: 480px) {
  .back-image {
    height: 120px;
    background-size: cover;
  }

  .back-image p {
    font-size: 28px;
    padding-top: 30px;
    text-align: center;
  }
}

.project1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.heading-project {
  color: white;
  width: 250px;
  text-align: center;
}
.heading-project h2 {
  background-color: rgb(34, 34, 34);
  font-weight: 200;
  font-size: 30px;
  letter-spacing: 1px;
  padding: 5px 0px 5px 0px;
}

.option-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px;
}

.option-btn a {
  background-color: rgb(242, 242, 242);
  margin: 20px;
  text-decoration: none;
  color: rgb(76, 85, 67);
  padding: 10px 15px;
  position: relative;
}

.option-btn a:hover {
  background-color: rgb(34, 34, 34);
  color: white;
}
.option-btn a.active {
  background-color: rgb(34, 34, 34);
  color: white;
}

.hover-box {
  display: none;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 10;
}

.btn:hover .hover-box {
  display: block;
}

.row {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  justify-content: center;
}

.column {
  flex: 25%;
  padding: 0 8px;
  position: relative;
}

.c-card1 {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.c-card1 img {
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.c-card1:hover img {
  transform: scale(1.1);
}

.c-card1 .overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(100%);
  border-radius: 15px;
}

.c-card1:hover .overlay {
  bottom: 0;
  opacity: 1;
  transform: translateY(0);
}

.overlay h3 {
  color: #fff;
  font-size: 18px;
  margin: 5px 0;
}

.overlay p {
  color: #ccc;
  font-size: 20px;
  margin: 5px 0;
}


@media (max-width: 768px) {
  .project1 {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .heading-project {
    width: 100%;
  }

  .heading-project h2 {
    font-size: 24px;
    padding: 5px;
  }

  .option-btn {
    flex-wrap: wrap;
    margin: 20px;
  }

  .option-btn a {
    margin: 10px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .hover-box {
    font-size: 12px;
    top: -25px;
  }
}

@media (max-width: 480px) {
  .heading-project h2 {
    font-size: 20px;
  }

  .option-btn a {
    margin: 5px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .hover-box {
    font-size: 10px;
    top: -20px;
  }
}


/* General Footer Styling */
footer {
  background-color: rgb(42, 42, 42);
  color: white;
  padding: 20px 0;
}

.footer-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1200px;
}

.footer-card2 {
  margin-left: 40px;
}
.footer-card1,
.footer-card2 {
  width: 300px;
  padding: 20px;
  margin-top: 30px;
  box-sizing: border-box;
}

.n1 {
  background-color: white;
  height: 4px;
  margin-left: 0px;
  margin-top: 10px;
  margin-bottom: 20px;
  width: 80px;
}
.n2 {
  background-color: white;
  height: 4px;
  margin-left: 100px;
  margin-top: 10px;
  margin-bottom: 20px;
  width: 80px;
}
.footer-card3 {
  width: 400px;
  padding: 20px;
  margin-top: 25px;
  margin-left: 50px;
  box-sizing: border-box;
}

/* Heading Styling */
.footer-card1 .heading h2,
.footer-card2 .heading h2,
.footer-card3 .heading h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
}

.footer-card2 .heading h2 {
  text-align: center;
}

/* Social Icon Styling */
.social-icon {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.footer-card1 a {
  text-decoration: none;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-card1 a i {
  color: white;
  padding: 10px;
  font-size: 20px;
}

.footer-card2 .links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-card2 .links a {
  text-decoration: none;
  text-align: left;
  margin-left: 100px;
  color: white;
  font-size: 16px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}
.footer-card1 .social-icon a:hover {
  background-color: white;
}

.footer-card1 .social-icon a i:hover {
  color: black;
}

.footer-card2 .links a:hover {
  color: rgb(116, 118, 128);
}

/* Contact Info Section */
.footer-card3 .footer-contact-info {
  margin-bottom: 20px;
}

.footer-card3 .footer-contact-info .address,
.footer-card3 .footer-contact-info .contact {
  display: flex;
  align-items: center;
}

.footer-card3 .footer-contact-info h2 {
  margin: 0;
  font-size: 16px;
  color: rgb(248, 245, 245);
}

.footer-card3 .address-main,
.footer-card3 .contact-main,
.footer-card3 .email-main {
  padding-top: 10px;
  font-size: 16px;
  color: #adadad;
  margin-left: 30px;
}

.footer-card3 .address-main a,
.footer-card3 .contact-main a,
.footer-card3 .email-main a {
  text-decoration: none;
  font-size: 16px;
  color: white;
  padding-top: 0;
  transition: color 0.3s ease;
}

.footer-card3 .address-main a:hover,
.footer-card3 .contact-main a:hover,
.footer-card3 .email-main a:hover {
  color: rgb(73, 76, 92);
}

/* Tablet Devices (768px and below) */
@media (max-width: 768px) {
  .footer-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
  }

  .footer-card1,
  .footer-card2,
  .footer-card3 {
    width: 100%;
    margin: 0;
    padding: 20px 10px;
    text-align: center; /* Central alignment for tablet devices */
  }

  .footer-card2 .links a {
    margin-left: 10px;
    font-size: 14px;
    text-align: center;
  }

  .footer-card3 .address-main,
  .footer-card3 .contact-main,
  .footer-card3 .email-main {
    margin-left: 0;
    padding-top: 5px;
    text-align: left;
    font-size: 14px;
  }

  .footer-card1 a i {
    font-size: 16px;
    padding: 8px;
  }

  .footer-card3 .footer-contact-info h2 {
    font-size: 14px;
  }

  .n1,
  .n2 {
    width: 50px;
    margin-top: 10px;
    margin-left: 0;
  }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
  .footer-cards {
    gap: 10px;
  }

  .footer-card1,
  .footer-card2,
  .footer-card3 {
    padding: 10px;
    text-align: center;
  }

  .footer-card1 a i {
    font-size: 14px;
    padding: 6px;
  }

  .footer-card1 .heading h2,
  .footer-card2 .heading h2,
  .footer-card3 .heading h2 {
    text-align: center;
    padding: 15px;
  }

  .footer-card2 .links a {
    margin-left: 0;
    text-align: center;
    font-size: 12px;
  }

  .social-icon {
    justify-content: center;
    gap: 15px;
  }

  .footer-card3 .footer-contact-info h2 {
    font-size: 12px;
  }

  .footer-card3 .address-main,
  .footer-card3 .contact-main,
  .footer-card3 .email-main {
    font-size: 12px;
  }

  .footer-contact {
    margin-left: 20px;
  }

  .footer-card3 i {
    padding-right: 20px;
  }

  .n1 {
    width: 50px;
    margin: auto;
    margin-bottom: 15px; /* Center alignment for n1 */
  }

  .n2 {
    width: 50px;
    margin: auto;
    margin-bottom: 15px;
  }
}
