/* Custom styles for Kamer Yem website */

/* Map iframe responsive height */
.map-iframe {
  height: 16rem;
  /* h-64 equivalent */
}

@media (min-width: 768px) {
  .map-iframe {
    height: 24rem;
    /* h-96 equivalent */
  }
}

@media (min-width: 1024px) {
  .map-iframe {
    height: 400px;
    /* lg:h-[400px] equivalent */
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #eab308;
}

/* Mobile Header Improvements */
.hamburger-line {
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #9ca3af;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hamburger-line.active:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: #eab308;
}

.hamburger-line.active:nth-child(2) {
  opacity: 0;
}

.hamburger-line.active:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: #eab308;
}

/* Mobile menu animations */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero section styles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  transform: scale(1.2);
}

.hero-dot.active {
  background-color: #eab308 !important;
  transform: scale(1.3);
}

/* Card hover effects */
.feature-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-color: #374151;
}

/* Button styles - Fixed */
.btn-primary {
  background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
  color: #1f2937 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  color: #1f2937 !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(234, 179, 8, 0.4);
}

.btn-primary:active,
.btn-primary:focus {
  color: #1f2937 !important;
  text-decoration: none;
  outline: none;
}

/* Section padding */
.section-padding {
  padding: 6rem 0;
}

/* Statistics section - Fixed visibility */
.statistics-section {
  background-color: #eab308;
  position: relative;
  z-index: 1;
}

.statistics-counter {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  color: #1f2937;
}

/* Product card styles */
.product-card {
  background-color: #1f2937;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.product-card>* {
  position: relative;
  z-index: 2;
}

/* Page header styles */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1500595046743-cd271d694d30?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem 0;
  margin-bottom: 3rem;
}

/* Contact form styles */
.contact-form input,
.contact-form textarea {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #f9fafb;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25);
  outline: none;
}

/* Testimonial cards */
.testimonial-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-left: 4px solid #eab308;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulse 3s infinite;
}

.animate-countUp {
  animation: countUp 0.8s ease-out forwards;
}

/* Filter button active state */
.filter-btn.active {
  background-color: #eab308 !important;
  color: #1f2937 !important;
}

/* Loading animation for images */
.image-loading {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Border button styles - Fixed */
.border-button {
  background: transparent !important;
  border: 2px solid #eab308 !important;
  color: #eab308 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.border-button:hover {
  background: #eab308 !important;
  color: #1f2937 !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(234, 179, 8, 0.4);
}

.border-button:active,
.border-button:focus {
  text-decoration: none;
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-slide {
    background-attachment: scroll;
  }

  .page-header {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .hero-slide h1 {
    font-size: 2.5rem !important;
  }

  .hero-slide p {
    font-size: 1.125rem !important;
  }

  .statistics-counter {
    font-size: 2.5rem !important;
  }

  /* Mobile header improvements */
  nav {
    backdrop-filter: blur(10px);
  }

  #mobile-menu a {
    font-size: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .section-padding {
    padding: 3rem 0;
  }

  .hero-slide h1 {
    font-size: 2rem !important;
  }

  .btn-primary,
  .border-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .statistics-counter {
    font-size: 2rem !important;
  }

  /* Better mobile spacing */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mobile form improvements */
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }
}