html {
  scroll-behavior: smooth;
}

img#portrait {
  max-width: 350px;
}

/* General section styles */
section {
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  border-bottom: 5px solid #bbb;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  section {
    height: auto;
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

/* Lottie animation container */
.lottie-background {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
}

#collabs-lottie {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
}

/* Gradient overlays */
.overlay-about,
.overlay-collabs,
.overlay-contact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.overlay-about {
  background: rgb(0, 153, 153);
  background: linear-gradient(
    191deg,
    rgba(0, 153, 153, 0.6) 21%,
    rgba(71, 5, 58, 0.6) 100%
  );
}

.overlay-collabs {
  background: rgb(0, 153, 153);
  background: linear-gradient(
    45deg,
    rgba(15, 114, 109, 0.6) 22%,
    rgba(71, 5, 58, 0.6) 100%
  );
}

.overlay-contact {
  background: rgb(0, 153, 153);
  background: linear-gradient(
    180deg,
    rgba(0, 153, 153, 0.6) 21%,
    rgba(71, 5, 58, 0.6) 100%
  );
}

.about-section {
  background: rgb(125, 38, 217);
}

.collabs-section {
  background-color: rgba(115, 38, 151, 0.57);
}

.contact-section {
  background: linear-gradient(
    201deg,
    rgba(187, 27, 165, 1) 21%,
    rgba(186, 64, 52, 1) 100%
  );
}

/* Section content z-index fix */
.content {
  position: relative;
  z-index: 2;
}

/* Custom Font Styles */
.playwrite-au-vic {
  font-family: "Playwrite AU VIC", cursive;
  font-weight: 400;
}

/* Styling the Large Heading */
.large-heading {
  font-size: 6rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* Applying font to section headings */
h1 {
  font-weight: 600;
  font-size: 4rem;
}
h2 {
  font-weight: 600;
  font-size: 3rem;
}
h4 {
  font-weight: 400;
}
p {
  font-size: 1.2rem;
}
.about-section img {
  border: 5px solid #ffffff20;
}

.card {
  border: 5px solid #ffffff20;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  background-color: #ffffff40;
}

div.location {
  margin-bottom: 20px;
}

.card {
  height: 400px;
  /* Set a fixed height for the cards */
  overflow: hidden;
  /* Hide overflow */
  position: relative;
  /* Allow text and overlay to be positioned on top */
}

.card-img-top {
  width: 100%;
  /* Full width for images */
  height: 100%;
  /* Full height to ensure they cover the card */
  object-fit: cover;
  /* Cover the card area, cropping if necessary */
  padding: 0;
  /* Remove any default padding */
  margin: 0;
  /* Remove any default margin */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  /* Milder overlay */
  z-index: 1;
  /* Overlay is above the image */
}

.card-body {
  position: absolute;
  /* Position text over the image */
  bottom: 0;
  /* Align text to bottom */
  left: 0;
  /* Align text to left */
  right: 0;
  /* Align text to right */
  padding: 10px;
  /* Padding for text */
  text-align: center;
  /* Center align text */
  z-index: 2;
  /* Text above the overlay */
}

/* Additional CSS for mobile responsiveness */
@media (max-width: 768px) {
  .card {
    margin-bottom: 15px;
    /* Space between cards on mobile */
    height: auto;
    /* Allow cards to resize automatically on mobile */
  }
}

/* Ensure the video fills the container without cropping */
.video-card {
  width: 100%;
  height: 100%;
  object-fit: contain; /* This ensures the video scales to fit within the container */
  background-color: black; /* Optional: Add a background color in case the video does not fill the space entirely */
}
