/* Hero Video Component - 2025 Minimal Glass Design */

.hero-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-background video {
  width: calc(100% + 130px);
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 2;
}

.hero-content-minimal {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-20) var(--container-padding) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  width: 100%;
}

.hero-text {
  max-width: 100%;
  animation: hero-text-slide 1.2s ease-out both;
}

@keyframes hero-text-slide {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-minimal {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-black);
  color: var(--color-white);
  line-height: 0.95;
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-accent {
  color: var(--color-white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: relative;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 50%,
    var(--color-primary) 100%
  );
  border-radius: 2px;
  animation: accent-glow 2s ease-in-out infinite alternate;
}

@keyframes accent-glow {
  0% { opacity: 0.7; transform: scaleX(0.9); }
  100% { opacity: 1; transform: scaleX(1); }
}

.hero-subtitle-minimal {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  font-weight: var(--font-weight-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 0;
  padding: var(--space-6) var(--space-8);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.hero-subtitle-minimal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* Glass Search Container */
.hero-search-glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-2xl);
  padding: var(--space-10);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  max-width: 550px;
  animation: search-glass-slide 1.2s ease-out 0.4s both;
  position: relative;
  overflow: hidden;
}

@keyframes search-glass-slide {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-search-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: var(--space-5);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-12);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-full);
  color: var(--color-navy);
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  outline: none;
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.search-input::placeholder {
  color: rgba(10, 10, 10, 0.6);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(212, 175, 55, 0.2),
    0 0 20px rgba(212, 175, 55, 0.1);
}

.search-button {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-10);
  background: linear-gradient(135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-full);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-quart);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.search-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--duration-slow) var(--ease-out-quart);
}

.search-button:hover::before {
  left: 100%;
}

.search-button:hover {
  background: linear-gradient(135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 100%
  );
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(212, 175, 55, 0.4),
    0 0 25px rgba(212, 175, 55, 0.3);
}

.search-button i {
  font-size: 1.1em;
  transition: all var(--duration-normal) var(--ease-bounce);
}

.search-button:hover i {
  transform: scale(1.1) rotate(10deg);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  animation: stat-fade-in 0.8s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.6s; }
.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.8s; }

@keyframes stat-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-black);
  font-size: 1.8rem;
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-content-minimal {
    text-align: center;
    justify-items: center;
  }
  
  .hero-search-glass {
    max-width: 100%;
  }
  
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .hero-video {
    height: 910px;  /* FIXED HEIGHT - PERFECT FOR IPHONE 14! */
  }
  
  .hero-content-minimal {
    padding: var(--space-20) var(--space-4) var(--space-16);
    gap: var(--space-16);  /* More space between elements */
    justify-content: center;
  }
  
  .hero-subtitle-minimal {
    padding: var(--space-5) var(--space-6);
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .hero-search-glass {
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
  }
  
  .search-input {
    font-size: 1rem;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-10);
  }
  
  .search-button {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: var(--space-5);
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-video {
    height: 910px;  /* SAME FIXED HEIGHT - CONSISTENT ACROSS ALL MOBILE! */
  }
  
  .hero-content-minimal {
    padding: var(--space-16) var(--space-3) var(--space-12);
    gap: var(--space-12);  /* More breathing room */
    justify-content: center;
  }
  
  .hero-subtitle-minimal {
    padding: var(--space-4) var(--space-5);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
  
  .hero-search-glass {
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(35px) !important;
    -webkit-backdrop-filter: blur(35px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  
  .stat-item {
    align-items: center;
  }
}

/* Keep video on mobile but optimize */
@media (max-width: 768px) {
  .video-background video {
    object-position: center right;
    /* Keep video playing on mobile - no fallbacks! */
  }
  
  .hero-title-minimal {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    text-align: center;
    color: var(--color-white) !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7) !important;
  }
  
  .hero-accent {
    color: var(--color-white) !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
  }
}

@media (max-width: 480px) {
  .video-background video {
    /* Force video to keep playing on mobile */
    display: block !important;
    width: calc(100% + 130px) !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  
  .hero-title-minimal {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
    color: var(--color-white) !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
    text-align: center !important;
  }
  
  .hero-accent {
    color: var(--color-white) !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
  }
}