body,
html {
  scroll-behavior: smooth; /* Applies smooth scrolling behavior */
  overflow-x: hidden;
  width: 100%;
  font-family: Garamond, serif;
  font-size: 16px; /* Change to desired font-size */
}

.container {
  padding-right: 15px;
  padding-left: 15px;
}

img {
  max-width: 100%;
  height: auto;
}

.arrow-down {
  position: absolute; /* Position the arrow absolutely */
  bottom: 20px; /* Place it 20px from the bottom of the container */
  left: 50%; /* Center it horizontally */
  transform: translateX(-50%); /* Center the arrow horizontally */
  font-size: 2rem;
  color: white;
  animation: bounce 2s infinite;
  text-decoration: none;
  display: inline-block;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* .navbar .navbar-brand {
  margin: 0 1rem !important;
  color: white !important;
} */

.logo {
  font-size: 1.8rem;
  font-weight: 900 !important; /* Bolder font weight, enforce with !important */
  color: #fff !important; /* Ensure logo text is white */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #fff !important; /* White text color, enforce with !important */
  font-size: 1.1rem;
  padding: 10px;
  transition: color 0.3s, background-color 0.3s;
  border-radius: 5px;
  font-weight: 700 !important; /* Bolder font weight, enforce with !important */
}

nav ul li a:hover {
  color: #2e2e2e !important;
  background-color: #f8f8f8;
}

/* Art Section Styling */
.art {
  background-color: #e9ecef;
}

.art img {
  width: 100%; /* Ensures images are responsive and fit within their grid columns */
  height: auto; /* Maintains aspect ratio */
  border-radius: 8px; /* Optional: Adds border-radius for style */
}

.image-container {
  position: relative; /* Positions child elements relative to this container */
  overflow: hidden; /* Ensures image zoom does not affect layout */
}

.image-container img {
  width: 100%; /* Ensures images are responsive and fit within their grid columns */
  height: auto; /* Maintains aspect ratio */
  transition: transform 0.5s ease; /* Smooth transition for zoom effect */
  border-radius: 8px; /* Optional: Adds border-radius for style */
}

.image-container:hover img {
  transform: scale(1.1); /* Zooms in the image */
}

.overlay {
  position: absolute;
  top: 75%;
  left: 0;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  width: 100%;
  height: 25%;
  background-color: rgb(241 241 241 / 83%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .overlay {
  opacity: 1; /* Shows overlay on hover */
}

.info {
  display: flex;
  align-items: center; /* Centers icons vertically */
  gap: 10px; /* Spacing between icons and numbers */
}

.info i {
  margin-right: 5px; /* Spacing between icon and text */
}

/* Random Section Styling */
.random {
  padding: 50px 0;
  background-color: #e9ecef; /* Light background color */
}

.random-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.random-description {
  flex: 1;
}

.random-description p {
  font-size: 1rem;
  line-height: 1.6;
}

.random-image {
  flex: 1;
}

.random-image img {
  width: 100%;
  height: auto;
  border-radius: 8px; /* Optional rounded corners */
}

/* carousel */
#myCarousel {
  margin: 20px 0;
  max-width: 100%;
}
@media (max-width: 768px) {
  .carousel-inner .carousel-item > div {
    display: none;
  }
  .carousel-inner .carousel-item > div:first-child {
    display: block;
  }
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-start,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
  display: flex;
  /* // transition-duration: 10s; */
}

/* display 4 */
@media (min-width: 768px) {
  .carousel-inner .carousel-item-right.active,
  .carousel-inner .carousel-item-next,
  .carousel-item-next:not(.carousel-item-start) {
    transform: translateX(25%) !important;
  }

  .carousel-inner .carousel-item-left.active,
  .carousel-item-prev:not(.carousel-item-end),
  .active.carousel-item-start,
  .carousel-item-prev:not(.carousel-item-end) {
    transform: translateX(-25%) !important;
  }

  .carousel-item-next.carousel-item-start,
  .active.carousel-item-end {
    transform: translateX(0) !important;
  }

  .carousel-inner .carousel-item-prev,
  .carousel-item-prev:not(.carousel-item-end) {
    transform: translateX(-25%) !important;
  }

  .carousel-control-next,
  .carousel-control-prev {
    width: 5%;
  }
}

.padding-about-section {
  padding: 6rem 0 !important;
}

/* Keyframes for fade-in-left effect */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Keyframes for fade-in-right effect */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Keyframes for fade-out-left effect */
@keyframes fadeOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

/* Keyframes for fade-out-right effect */
@keyframes fadeOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* Default state for fade-in-left effect */
.fade-in-left.hidden-left {
  animation: fadeOutLeft 1s ease-out forwards;
}

/* State when the section is visible for fade-in-left effect */
.fade-in-left.visible-left {
  animation: fadeInLeft 1s ease-out forwards;
}

/* Default state for fade-in-right effect */
.fade-in-right.hidden-right {
  animation: fadeOutRight 1s ease-out forwards;
}

/* State when the section is visible for fade-in-right effect */
.fade-in-right.visible-right {
  animation: fadeInRight 1s ease-out forwards;
}

footer {
  text-align: center;
  padding: 10px 0;
  background-color: #f8f9fa;
  width: 100%;
}

footer p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #333;
  color: white;
}

.site-name {
  font-size: 1.5rem;
  font-weight: bold;
}

.line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  position: relative;
}

.nav-links {
  display: flex;
  list-style-type: none;
}

.nav-links li {
  margin-left: 1rem;
}

.nav-links a {
  display: block; /* Make the anchor tag a block element to fill li */
  padding: 10px; /* Add padding for better click area */
  text-decoration: none;
  color: white;
  font-size: 1rem;
  text-align: center; /* Center text */
  width: 100%;
}

.burger {
  display: none;
}

@media (max-width: 768px) {
  .site-name {
    text-align: center;
    flex: 1;
  }

  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #333;
    position: absolute;
    top: 55px;
    left: 0;
  }

  .nav-links.active {
    display: flex;
    z-index: 1;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
}

/* Animation for burger icon */
.line1 {
  transform: rotate(45deg);
  top: 6px; /* Adjust to align correctly */
}

.line2 {
  opacity: 0;
}

.line3 {
  transform: rotate(-45deg);
  top: -6px; /* Adjust to align correctly */
}

/* Add these styles for smooth transitions */
header {
  width: 100%;
  position: relative; /* Ensure relative positioning for animation */
  opacity: 1; /* Start as invisible */
  transition: opacity 0.6s ease, transform 0.6s ease; /* Transition properties */
}

/* Sticky header styles */
header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(43, 43, 43, 0.404);
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 1; /* Fade in effect */
  transform: translateY(0); /* Move to original position */
  backdrop-filter: blur(10px); /* Apply blur effect to the background */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
}

/* Optional: Adding a smoother fade-in animation */
header.sticky {
  animation: fadeInUp 0.6s ease;
}

.navbar.sticky {
  background-color: transparent; /* Remove background color when sticky */
}

@keyframes fadeInUp {
  from {
    opacity: 0.5;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  height: 50px;
  width: 50px;
  align-content: center;
}

#scrollToTop i {
  font-size: 18px;
}

#scrollToTop:hover {
  background-color: #0056b3;
}

.modal-header .close {
  position: absolute;
  top: -5px;
  right: 10px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 30px;
}

/* Optional: Adjust the modal width if necessary */
.modal-dialog.modal-lg {
  max-width: 80%;
}
