.hero {
height: 100vh;
min-height: 800px;
display: flex;
flex-direction: column;
justify-content: center;
padding: 0 5%;
position: relative;
overflow: hidden;
}

.hero-video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -2;
}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(30, 30, 30, 0.3);
z-index: -1;
}

.hero-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('asset/IMGhome/bg1.jpg') center/cover no-repeat;
z-index: -1;
transition: background-image 0.8s ease;
} 

.hero-bg::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(30, 30, 30, 0.3);
}

.hero-content {
max-width: 1200px;
margin: 0 auto;
color: var(--white);
text-align: center;
position: relative;
z-index: 2;
}

.hero h1 {
font-size: 3.8rem;
line-height: 1.1;
margin-bottom: 1.5rem;
font-weight: 500;
color: var(--white);
animation: fadeInUp 1s ease-out;
}

.hero h1 span {
color: var(--accent);
font-weight: 400;
}

.hero p {
max-width: 600px;
margin: 0 auto 3rem;
font-size: 1.1rem;
opacity: 0.9;
color: var(--light-gray);
animation: fadeInUp 1s ease-out 0.2s forwards;
opacity: 0;
font-weight: 300;
letter-spacing: 0.5px;
}

.video-wrapper {
position: absolute;
top: 50%;
left: 50%;
width: 100vw;
height: 56.25vw;
min-height: 100vh;
transform: translate(-50%, -50%);
z-index: -1;
overflow: hidden;
}

.video-wrapper video {
width: 100%;
height: 100%;
object-fit: cover;
}

.carousel-controls {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 15px;
z-index: 10;
}

.carousel-control {
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--white);
opacity: 0.5;
cursor: pointer;
transition: var(--transition);
}

.carousel-control.active {
background: var(--accent);
transform: scale(1.2);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.cta {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--accent);
    padding: 1rem 2.5rem;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta:hover {
    color: var(--black);
    border-color: var(--white);
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--white);
    transition: var(--transition);
    z-index: -1;
}

.cta:hover::before {
    width: 100%;
}

.cta.primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.cta.primary:hover {
    background: transparent;
    color: var(--white);
}

.cta.primary::before {
    background: var(--medium-gray);
}

@media (max-width: 1024px) {

  .hero {
    min-height: 700px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .carousel-controls {
    bottom: 30px;
  }

}

@media (max-width: 768px) {

  .hero {
    min-height: 100vh;
    padding: 0 5%;
    padding-top: 120px; 
  }

  .hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .cta-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .carousel-controls {
    bottom: 20px;
    gap: 10px;
  }

}

@media (max-width: 480px) {

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }

  .carousel-control {
    width: 10px;
    height: 10px;
  }

}