/* Enhanced Modern Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

/* Hero Background Container */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  z-index: 2;
}

.hero-bg-primary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/gallery/1.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.3;
  animation: parallaxFloat 20s ease-in-out infinite;
}

.hero-bg-secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.3) 0%, transparent 50%);
  animation: gradientShift 15s ease-in-out infinite alternate;
}

/* Animated Decorations */
.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: rotateFloat 25s linear infinite;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  border-color: rgba(59, 130, 246, 0.2);
  animation-duration: 20s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  left: 8%;
  border-color: rgba(255, 255, 255, 0.15);
  animation-duration: 30s;
  animation-direction: reverse;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 25%;
  border-color: rgba(37, 99, 235, 0.2);
  animation-duration: 35s;
}

.decoration-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: lineFloat 12s ease-in-out infinite;
}

.line-1 {
  width: 200px;
  height: 2px;
  top: 20%;
  left: 15%;
  animation-delay: -3s;
}

.line-2 {
  width: 150px;
  height: 2px;
  bottom: 30%;
  right: 20%;
  animation-delay: -8s;
}

/* Hero Container */
.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 4;
}

/* Hero Content */
.hero-content {
  color: white;
  animation: fadeInLeft 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.badge-icon {
  color: #3b82f6;
  font-size: 1.1rem;
  animation: pulse 2s infinite;
}

/* Hero Title */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-main {
  display: block;
  margin-bottom: 0.2rem;
}

.title-accent {
  display: block;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.subtitle-quote {
  display: block;
  font-weight: 400;
}

.subtitle-highlight {
  display: block;
  color: #3b82f6;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Hero Features */
.hero-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
}

.feature-item i {
  color: #3b82f6;
  font-size: 1rem;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Hero Gallery */
.hero-gallery {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

.gallery-container {
  position: relative;
  height: 500px;
  width: 100%;
}

/* Main Gallery Image */
.gallery-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 60%;
  z-index: 3;
}

.main-image {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.05);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Secondary Gallery Images */
.gallery-secondary {
  position: absolute;
  right: 0;
  top: 20%;
  width: 45%;
  height: 70%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2;
}

.secondary-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform 0.3s ease;
}

.secondary-image:hover {
  transform: scale(1.08);
}

.secondary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image Overlays */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.main-image:hover .image-overlay,
.secondary-image:hover .image-overlay {
  transform: translateY(0);
}

.overlay-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.overlay-content i {
  color: #3b82f6;
  font-size: 1.2rem;
}

/* Floating Mini Gallery */
.gallery-floating {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-item {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  animation: floatAnimation 6s ease-in-out infinite;
}

.floating-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.float-2 {
  bottom: 20%;
  left: 10%;
  animation-delay: -2s;
}

.float-3 {
  top: 60%;
  left: 20%;
  animation-delay: -4s;
}

/* Enhanced Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
}

.scroll-text {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.arrow-line {
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
  animation: scrollAnimation 2s ease-in-out infinite;
}

.arrow-head {
  animation: bounceArrow 2s ease-in-out infinite;
}

.hero-scroll:hover .scroll-text {
  opacity: 1;
  color: #3b82f6;
}

.hero-scroll:hover .arrow-line {
  background: #3b82f6;
}

.hero-scroll:hover .arrow-head {
  color: #3b82f6;
}

/* Floating Action Button */
.hero-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fabPulse 3s infinite;
}

.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

.fab-btn i {
  font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes parallaxFloat {
  0%,
  100% {
    transform: scale(1.1) translateY(0);
  }
  50% {
    transform: scale(1.15) translateY(-20px);
  }
}

@keyframes gradientShift {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

@keyframes rotateFloat {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes lineFloat {
  0%,
  100% {
    transform: translateX(-20px) scaleX(0.8);
    opacity: 0.5;
  }
  50% {
    transform: translateX(20px) scaleX(1.2);
    opacity: 1;
  }
}

@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@keyframes scrollAnimation {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes bounceArrow {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes fabPulse {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6), 0 0 0 10px rgba(16, 185, 129, 0.1);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-container {
    max-width: 1100px;
    gap: 3rem;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .gallery-container {
    height: 450px;
  }
}

/* Perbaikan untuk tampilan mobile hero section */

/* Responsive Design - Mobile First Approach */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
    text-align: left; /* Ubah dari center ke left untuk readability yang lebih baik */
  }

  .hero-content {
    order: 1;
    max-width: 100%;
  }

  .hero-gallery {
    order: 2;
    max-width: 100%;
    margin: 0;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-features {
    justify-content: flex-start; /* Align ke kiri instead of center */
    flex-wrap: wrap;
  }

  .hero-actions {
    justify-content: flex-start; /* Align ke kiri instead of center */
    flex-wrap: wrap;
  }

  .gallery-container {
    height: 350px; /* Reduced height for better mobile view */
  }

  /* Hide some decorative elements for cleaner mobile view */
  .circle-1,
  .circle-2,
  .circle-3 {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh; /* Maintain full height */
    padding: 1rem 0;
    display: flex;
    align-items: center;
  }

  .hero-container {
    gap: 2rem;
    padding: 0 1rem;
    width: 100%;
  }

  .hero-content {
    text-align: left; /* Better readability on mobile */
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1.5rem;
    width: fit-content;
  }

  .hero-title {
    font-size: 2.2rem; /* Smaller but still impactful */
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .title-main,
  .title-accent {
    display: block;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .hero-features {
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
  }

  .feature-item {
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    max-width: 100%;
    padding: 1rem 2rem;
    justify-content: center;
    font-size: 0.95rem;
  }

  /* Gallery improvements for mobile */
  .gallery-container {
    height: 280px; /* Better proportioned height */
    margin-top: 1rem;
  }

  .gallery-main {
    width: 100%; /* Full width for main image */
    height: 65%;
    left: 0;
    top: 0;
  }

  .gallery-secondary {
    display: none; /* Hide secondary images on small screens for cleaner look */
  }

  .gallery-floating {
    display: none; /* Hide floating elements on mobile */
  }

  .main-image {
    border-radius: 15px;
  }

  .image-overlay {
    padding: 1rem;
  }

  .overlay-content {
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  /* Remove all decorative elements for cleaner mobile view */
  .decoration-circle,
  .decoration-line {
    display: none;
  }

  .hero-scroll {
    bottom: 1rem;
  }

  .scroll-text {
    display: none;
  }

  .arrow-line {
    height: 20px;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 100vh;
    padding: 0.5rem 0;
  }

  .hero-container {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    padding-left: 8px;
  }

  .feature-item {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Simplified gallery for very small screens */
  .gallery-container {
    height: 220px;
  }

  .gallery-main {
    width: 100%;
    height: 100%;
  }

  .main-image {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 0 0.8rem;
  }

  .hero-title {
    font-size: 2rem;
    margin: 1.5rem 0;
    line-height: 32px;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 20px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
  }

  .gallery-container {
    height: 200px;
  }

  .image-overlay {
    padding: 0.8rem;
  }

  .overlay-content {
    font-size: 0.8rem;
  }
}

/* Additional improvements for better mobile UX */
@media (max-width: 768px) {
  /* Ensure proper touch targets */
  .hero-btn-primary,
  .hero-btn-secondary,
  .fab-btn {
    min-height: 44px; /* Minimum touch target size */
  }

  /* Better spacing for mobile */
  .hero-content > * {
    margin-left: 0;
    margin-right: 0;
  }

  /* Ensure text doesn't go edge to edge */
  .hero-subtitle,
  .hero-title {
    max-width: 100%;
    word-wrap: break-word;
  }

  /* Make sure the hero badge doesn't break on small screens */
  .badge-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
}

/* Landscape phone orientation fixes */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-gallery {
    order: 2;
  }

  .gallery-container {
    height: 250px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: row;
    gap: 1rem;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: auto;
    max-width: 200px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .hero-badge {
    background: rgba(255, 255, 255, 0.1);
  }

  .hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero-badge {
    border: 2px solid white;
  }

  .decoration-circle {
    border-width: 3px;
  }
}
