/*
 * Tomsan Tarım Global Styles
 * Contains custom utility classes, hover effects, and base overrides.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
  background: #C8102E; 
}
::-webkit-scrollbar-thumb:hover {
  background: #8B0000; 
}

/* Navbar glass effect & transition */
#navbar {
  transition: all 0.3s ease-in-out;
}
.scrolled-nav {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.scrolled-nav .nav-link {
  color: #333 !important;
}

.scrolled-nav .nav-link:hover {
  color: #C8102E !important;
}

.scrolled-nav .logo-text {
  color: #C8102E !important;
}

.scrolled-nav .hamburger span {
  background-color: #333 !important;
}

/* Mobile Menu Transition */
#mobile-menu {
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
}
#mobile-menu.open {
  transform: translateX(0);
}

/* Image overlay for hero */
.hero-overlay {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(200, 16, 46, 0.3));
}

/* Gallery image zoom effect */
.gallery-img-container {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-img-container img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-img-container:hover img {
  transform: scale(1.08); /* slight zoom */
}
.gallery-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(200, 16, 46, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-img-container:hover .gallery-img-overlay {
  opacity: 1;
}

/* Lightbox Modal */
#lightbox {
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

/* WhatsApp Floating Button & Pulse Animation */
@keyframes wp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wp-float-btn {
  animation: wp-pulse 2.2s infinite;
}

.wp-float-btn:hover {
  animation: none;
}

/* Teklif Modal Animations */
.teklif-modal-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.teklif-modal-active .teklif-modal-card {
  transform: scale(1) translateY(0) !important;
}
