@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: #f7f7f7;
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: url('./bac.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #eee;
}

/* Preloader styling */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #e6eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.loader-container.fade-out {
  top: -120%;
}

/* Navbar styling */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 5%;
  width: auto;
  height: 6.5rem;
  background-color: black;
  box-shadow: 0 10px 70px rgba(150, 238, 234, 0.616);
}
section {
  min-height: 80vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 3.5rem;
  color: rgb(54, 14, 14);
  font-weight: 800;
  text-align: center;
}
.heading span {
  color: rgb(16, 170, 149);
}

.logo {
  display: flex;
  align-items: center; /* Aligns items vertically */
  text-decoration: none; /* Removes underline from the link */
}

.logo img {
  height: 40px; /* Set the height of the logo image */
  width: auto; /* Keeps the aspect ratio */
}

.logo span {
  margin-left: 5px; /* Space between the image and text */
  font-size: 1.5rem; /* Adjust the font size as needed */
  color: #f2ebeb; /* Adjust text color */
  font-weight: bold; /* Optional: make text bold */
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li {
  margin-left: 2.5rem;
}
header .navbar ul li a {
  font-size: 1.57rem;
  color: #f1f6f896;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}
header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #f6f8f8;
  border-bottom: 0.2rem solid #f3f4f7;
  padding: 0.5rem 0;
}
/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(231, 233, 234);
  display: none;
}


/* Carousel styling */
.carousel {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.carousel .list {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  transform: translateX(0);
  transition: transform 0.5s ease;
}

.carousel .item {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel .content {
  height: 80%;
  max-width: 80%;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
  border-radius: 2rem;
  text-align: left;
  animation: fadeInUp 1s ease-out forwards;
}

.carousel .content .author {
  font-size: 2rem;
  background: #756f6ddc;
  border-radius: 1.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  color: #fff;
}

.carousel .content .title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ee6e19;
}

.carousel .content .topic {
  font-size: 2.5rem;
  color: white;
  overflow: hidden;
}

.carousel .arrows {
  position: absolute;
  bottom: 100px;
  display: flex;
  justify-content: space-between;
  width: 85%;
  pointer-events: none;
}

.carousel .arrows button {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2rem;
  padding: 10px;
  font-size: 2rem;
  color: #fff;
  pointer-events: all;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel .arrows button:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Keyframes for animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    padding-left:0;
  }

  .carousel .content {
    max-width: 90%;
  }

  .carousel .content .title {
    font-size: 5vw;
  }

  .carousel .content .topic {
    font-size: 4vw;
  }

  .carousel .arrows {
    bottom: 50px;
  }
}
