/* Hero Section Base Styling */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes sure it covers the area */
  z-index: 0;
  pointer-events: none; /* allows clicks through video */
}
.hero-title-container {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  color: white;
  padding: 0 20px;
  pointer-events: none;
  width: 100%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.3s, transform 0.3s;
}

.animate-hero-title {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ Tablet */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

/* ✅ Mobile */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  .hero-title-container {
    top: 50%;
    padding: 0 15px;
  }
}

/* ✅ Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }
}

/* ✅ Very Small Devices */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }
}
.hero-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.3s, transform 0.3s;
  letter-spacing: 1px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.animate-hero-subtitle {
  animation: fadeInUpSub 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInUpSub {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive subtitle */
@media (max-width: 1024px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.85rem;
  }
}

.text-title {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 10px;
  background-color: #a2342c;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
}
/* Responsive Handling */
@media (max-width: 1024px) {
  .navbar,
  .btn-bg-header {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ===== Responsive Design ===== */

/* Tablet View */
@media (max-width: 1024px) {
  .header {
    padding: 15px 30px;
    flex-direction: row;
    justify-content: space-between;
  }

  .logo img {
    width: 180px;
    transition: all 0.3s ease;
  }
  .hamburger {
    display: flex;
    gap: 5px;
  }
  .navbar {
    gap: 20px;
  }
  .hero {
    height: 500px;
    padding-bottom: 0px;
  }

  .hero-content {
    flex-direction: column;
    height: auto;
    width: 100%;
  }
  .left-box,
  .middle-box {
    width: 100%;
    height: 80px;
    flex: unset;
    min-width: 100%;
    padding: 50px 30px;
    font-size: 16px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .left-box {
    border-bottom: 1px solid white;
  }
  .middle-box {
    padding: 20px 30px;
  }

  .card-divider-line {
    display: none;
  }

  .scroll-icon {
    right: 40px;
    bottom: 60px;
  }

  .scroll-icon-img {
    width: 45px;
    margin-right: 0;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .header {
    padding: 15px 25px;
    flex-direction: row;

    align-items: center;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
    width: 50%;
    margin-top: 15px;
  }

  .navbar a {
    padding: 8px 0;
    font-size: 14px;
  }

  .btn-bg-header {
    margin-top: 10px;
    align-self: stretch;
  }

  .hero {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100vh;
  }

  .hero-content {
    /* padding: 20px; */
    bottom: 0px;
  }

  .right-box {
    display: none;
  }
  .left-box {
    font-size: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(160, 160, 160, 0.927);
  }

  .middle-box {
    padding: 15px;
    padding-top: 35px;
    font-size: 15px;
  }

  .scroll-icon {
    right: 20px;
    bottom: 40px;
  }

  .scroll-icon-img {
    width: 40px;
  }
}

/* Box expands from left */
@keyframes expandFromLeft {
  0% {
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes textFadeUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInDivider {
  from {
    height: 0%;
    opacity: 0;
  }
  to {
    height: 80%;
    opacity: 0.5;
  }
}

.card-divider-line {
  width: 1.5px;
  height: 70%;
  background-color: #ffffff;
  opacity: 1;
  position: absolute;
}

.hero-content.visible .card-divider-line {
  animation: fadeInDivider 1s ease forwards;
}

.hero-box,
.hero-box .box-content p {
  opacity: 0;
  transform: none;
}

/* Box animations only when visible */
.hero-content.visible .hero-box {
  animation: expandFromLeft 0.8s ease-out forwards;
}

.hero-content.visible .left-box {
  animation-delay: 0.3s;
}

.hero-content.visible .middle-box {
  animation-delay: 1.2s;
}

.hero-content.visible .box-content p {
  animation: textFadeUp 0.6s ease-out forwards;
}

.hero-content.visible .left-box .box-content p {
  animation-delay: 1.1s;
}

.hero-content.visible .middle-box .box-content p {
  animation-delay: 2s;
}
/* Hide separators on mobile */
@media (max-width: 768px) {
  .hero-title .separator {
    display: none;
  }

  /* Optional: Add some spacing between words when separators are hidden */
  .hero-title span:not(.separator) {
    margin: 0 5px;
  }
}

/* For very small devices, you might want to adjust further */
@media (max-width: 480px) {
  .hero-title span:not(.separator) {
    margin: 0 3px;
  }
}

/* Custom Scroll Down Icon */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  z-index: 10;
}

.scroll-mouse {
  width: 28px;
  height: 45px;
  border: 2px solid #a2342c;
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: start;
}

.scroll-wheel {
  width: 6px;
  height: 10px;
  background: #fff;
  border-radius: 10px;
  margin-top: 6px;
  animation: wheelMove 1.4s infinite;
}

@keyframes wheelMove {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Arrow under the mouse */
.scroll-arrow {
  margin-top: 8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #a2342c;
  animation: arrowBlink 1.6s infinite;
}

@keyframes arrowBlink {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}
