/* Custom font declarations */
@font-face {
  font-family: "ICA Rubrik Bold";
  font-style: normal;
  font-weight: normal;
  src: local("ICA Rubrik Bold"), url("../fonts/ICARubrikBold.woff") format("woff");
}

@font-face {
  font-family: "Poppins Regular";
  font-style: normal;
  font-weight: normal;
  src: local("Poppins Regular"),
    url("../fonts/Poppins-Regular.woff") format("woff");
}

@font-face {
  font-family: "Poppins Bold";
  font-style: normal;
  font-weight: normal;
  src: local("Poppins Bold"), url("../fonts/Poppins-Bold.woff") format("woff");
}
/* Main container styles */
.banner {
  width: 100%;
  height: 100vh; /* Full viewport height */
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* 3D slider styles */
.banner .slider {
  position: absolute;
  top: 10%;
  width: 12.5rem;
  height: 15.63rem;
  left: calc(50% - 6.25rem); /* Center the slider */
  transform-style: preserve-3d; /* Enable 3D transformations */
  transform: perspective(62.5rem);
  animation: autoRun 40s linear infinite; /* Apply the rotation animation */
  z-index: 2;
}

/* Individual slider item styles */
.banner .slider .item {
  position: absolute;
  inset: 0 0 0 0; /* Shorthand for top, right, bottom, left */
  /* Calculate the rotation based on the item's position and total quantity */
  transform: rotateY(
      calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
    )
    translateZ(34.38rem); /* Push the item out in 3D space */
}

/* Image styles within slider items */
.banner .slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keyframe animation for auto-rotation */
@keyframes autoRun {
  from {
    transform: perspective(62.5rem) rotateX(-16deg) rotateY(0deg);
  }
  to {
    transform: perspective(62.5rem) rotateX(-16deg) rotateY(360deg);
  }
}

/* Content section styles */
.banner .content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 100vw); /* Responsive width */
  height: max-content;
  padding-bottom: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  
}

/* Main heading styles */
.banner .content h1 {
  font-family: "Poppins Bold";
  font-size: 6em;
  line-height: 3em;
  color: #25283b;
  position: relative;
  
}
svg path {
    stroke: #fff;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: dash 5s linear forwards, filling 3s ease-in forwards;
}
@keyframes dash{
    to{
        stroke-dashoffset: 0;
    }
}
@keyframes filling{
    0%,70% {fill: #fff;fill-opacity:0;}
    100% {fill: #fff; fill-opacity: 1;}
}

/* Create an outline effect for the main heading */
.banner .content h1::after {
  position: absolute;
  inset: 0 0 0 0;
  content: attr(data-content); /* Use the data-content attribute value */
  z-index: 2;
  -webkit-text-stroke: 2px #d2d2d2; /* Create an outline */
  color: transparent; /* Make the text transparent to show only the outline */
}

/* Author section styles */
.banner .content .author {
  font-family: "Poppins Bold";
  font-size: 20px;
  color: beige;
}

/* Description text styles */
.banner .content .description {
  font-family: "Poppins Regular";
  text-align: right;
}

/* Author name styles */
.banner .content h2 {
  font-size: 3em;
}
/* Define the fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* Optional: Adds a subtle slide-up effect */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply the animation to your elements */
.banner {
  animation: fadeIn 2s ease-out forwards;
}


/* Background model image styles */
.banner .content .model {
  background-image: url("../images/model.png");
  width: 100%;
  height: 75vh;
  position: absolute;
  bottom: 0;
  left: 0;
  background-size: auto 130%;
  background-repeat: no-repeat;
  background-position: top center;
  z-index: 1;
}

/* Media queries for responsive design */
@media screen and (max-width: 1023px) {
  /* Adjust slider size and position for smaller screens */
  .banner .slider {
    width: 160px;
    height: 200px;
    left: calc(50% - 80px);
  }
  
  /* Adjust the 3D transform for smaller slider size */
  .banner .slider .item {
    transform: rotateY(
        calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
      )
      translateZ(300px);
  }
  
  /* Adjust heading size and styling for smaller screens */
  .banner .content h1 {
    text-align: center;
    width: 100%;
    text-shadow: 0 10px 20px #000;
    font-size: 7em;
  }
  
  /* Adjust author section styling for smaller screens */
  .banner .content .author {
    color: #fff;
    padding: 20px;
    text-shadow: 0 10px 20px #000;
    z-index: 2;
    max-width: unset;
    width: 100%;
    text-align: center;
    padding: 0 30px;
  }
}

@media screen and (max-width: 767px) {
  /* Further adjustments for very small screens */
  .banner .slider {
    width: 100px;
    height: 150px;
    left: calc(50% - 50px);
  }
  
  .banner .slider .item {
    transform: rotateY(
        calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
      )
      translateZ(180px);
  }
  
  .banner .content h1 {
    font-size: 5em;
  }
}
.floating-btn {
    position: fixed;
    bottom: 110px;
    right: 25px;

    padding: 14px 24px;
    border-radius: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
    color: #fff;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;

    border: 1px solid rgba(255,255,255,0.2);

    box-shadow: 0 8px 25px rgba(0,0,0,0.35);

    transition: all 0.3s ease;
    z-index: 9999;
}

.floating-btn:hover {
    background: #fff;
    color: #000;
    border-color: #000;

    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}