/* Reset and base styles for proper mobile responsiveness */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.swiper-pagination-bullet-active {
  background-color: #2563eb !important;
}

.swiper-button-next, .swiper-button-prev {
  color: #2563eb !important;
}

@media (max-width: 768px) {
  .swiper-button-next, .swiper-button-prev {
    display: none !important;
  }
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animated Lock Styles */
.animated-lock-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-lock-svg {
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
  animation: lockFloat 3s ease-in-out infinite;
}

@keyframes lockFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.lock-body-group {
  animation: lockAssemble 2s ease-out;
}

@keyframes lockAssemble {
  0% { 
    opacity: 0; 
    transform: scale(0.5) translateY(20px); 
  }
  50% { 
    opacity: 0.7; 
    transform: scale(0.8) translateY(10px); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0px); 
  }
}

.keyhole-group {
  animation: keyholeAppear 1.5s ease-out 0.5s both;
}

@keyframes keyholeAppear {
  0% { 
    opacity: 0; 
    transform: scale(0); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1); 
  }
}

.text-group {
  animation: textSlideIn 1s ease-out 1s both;
}

@keyframes textSlideIn {
  0% { 
    opacity: 0; 
    transform: translateX(-20px); 
  }
  100% { 
    opacity: 1; 
    transform: translateX(0px); 
  }
}

.btn-primary {
  @apply bg-gradient-to-r from-primary-600 to-primary-700 hover:from-primary-700 hover:to-primary-800 text-white font-semibold py-3 px-6 rounded-lg shadow-lg transform transition duration-300 ease-in-out hover:scale-105 focus:outline-none focus:ring-4 focus:ring-primary-300;
}

.btn-secondary {
  @apply bg-white text-primary-700 border-2 border-primary-300 hover:bg-primary-50 font-semibold py-3 px-6 rounded-lg shadow-md transform transition duration-300 ease-in-out hover:scale-105 focus:outline-none focus:ring-4 focus:ring-primary-100;
}

.feature-card {
  @apply bg-white rounded-xl p-6 shadow-lg border border-gray-100 card-hover;
}

.access-method-card {
  @apply bg-white rounded-2xl shadow-lg border border-gray-100 transition-all duration-300 ease-in-out;
  transform: translateY(0);
}

.access-method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.access-method-card .group-hover\:scale-110:hover {
  transform: scale(1.1) rotate(3deg);
}

.access-method-card .group-hover\:rotate-3:hover {
  transform: rotate(3deg);
}

.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
}

.form-group {
  @apply mb-4;
}

.form-input {
  @apply w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:border-primary-500 focus:outline-none transition duration-300;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-2;
}

.error-message {
  @apply text-red-500 text-sm mt-1;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2563eb;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}


/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
.focus-visible:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Simple Responsive Video Styles */
.video-container {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  padding: 0;
}

.hero-video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

/* Ensure hero section takes full viewport height */
.hero-section {
  min-height: 100vh;
  height: 100vh;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    height: 100vh;
  }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(248, 250, 252, 0.8) 100%);
  z-index: 2;
}

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


/* Sound Control Button */
.sound-control {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 50;
}

.sound-control:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.sound-control.muted {
  background: rgba(255, 0, 0, 0.7);
}

.sound-control.muted:hover {
  background: rgba(255, 0, 0, 0.9);
}


/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .video-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0;
  }
  
  .hero-video {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .sound-control {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .video-container {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  
  .hero-video {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .sound-control {
    width: 35px;
    height: 35px;
    top: 10px;
    right: 10px;
  }
}

/* Video Loading State */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  font-size: 18px;
  z-index: 3;
}

/* Featured Products Section Enhancements */
.featured-products-container {
  position: relative;
  overflow: hidden;
}

.featured-products-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.large-featured-card {
  position: relative;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fbbf24 100%);
  border: 2px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.large-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.large-featured-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.small-product-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.small-product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.small-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.6) 100%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.small-product-card:hover::before {
  opacity: 1;
}

/* Premium Badge Animation */
.premium-badge {
  animation: premiumPulse 2s ease-in-out infinite;
}

@keyframes premiumPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
  }
}

/* Feature Grid Animation */
.feature-grid-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-grid-item:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Featured Products */
@media (max-width: 1024px) {
  .large-featured-card {
    margin-bottom: 2rem;
  }
  
  .small-product-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .large-featured-card .grid {
    grid-template-columns: 1fr;
  }
  
  .large-featured-card .p-12 {
    padding: 1.5rem;
  }
  
  .large-featured-card h3 {
    font-size: 2rem;
  }
  
  .large-featured-card .text-lg {
    font-size: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .small-product-card .p-6 {
    padding: 1rem;
  }
  
  .small-product-card h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .large-featured-card {
    border-radius: 1.5rem;
  }
  
  .small-product-card {
    border-radius: 1rem;
  }
  
  .premium-badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Enhanced Hover Effects */
.product-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.product-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-image-container:hover::after {
  opacity: 1;
}

/* CTA Button Enhancements */
.cta-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-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 0.5s ease;
}

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

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 40px -12px rgba(245, 158, 11, 0.4);
}

/* Small Card CTA Buttons */
.small-cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.small-cta-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Direct Key Points Styling */
.key-points-list {
  position: relative;
}

.key-points-list .flex {
  transition: all 0.2s ease;
}

.key-points-list .flex:hover {
  transform: translateX(4px);
}

.key-points-list .flex:hover .w-2,
.key-points-list .flex:hover .w-1\.5 {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Large Card Key Points */
.large-card-points .w-2 {
  transition: all 0.3s ease;
}

.large-card-points .flex:hover .w-2 {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Small Card Key Points */
.small-card-points .w-1\.5 {
  transition: all 0.3s ease;
}

.small-card-points .flex:hover .w-1\.5 {
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}
