/* Minimal Custom Styles - Only what Tailwind can't do */

/* CSS Variables */
:root {
  --primary-color: #f54d2b;
  --secondary-color: #d1cdc1;
  --dark-color: #1A1A2E;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Override Tailwind container max-width - ensure all screens use 90% width */
.container,
.hero-grid-container {
  max-width: none !important;
}

/* Logo specific styling */
.logo-text {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.logo-hake {
  color: #f54d2b;
  transition: color 0.3s ease;
}

.logo-yapi {
  color: #d1cdc1;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.navbar.scrolled .logo-text,
.navbar.navbar-solid .logo-text {
  text-shadow: none;
}

/* Navbar nav-link underline animation */
.nav-link {
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
  background: var(--primary-color);
}

/* Hero Section */
.modern-clean-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.modern-clean-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Hero Background Slider */
.hero-bg-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Navbar solid style (for scrolled state and subpages) */
.navbar.scrolled,
.navbar.navbar-solid {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.navbar.scrolled .nav-link,
.navbar.navbar-solid .nav-link {
  color: #333 !important;
  text-shadow: none !important;
}

.navbar.scrolled .mobile-menu-toggle,
.navbar.navbar-solid .mobile-menu-toggle {
  color: #333 !important;
  text-shadow: none !important;
}

.navbar.scrolled .lang-dropdown-toggle,
.navbar.navbar-solid .lang-dropdown-toggle {
  background: #f8f8f8 !important;
  border-color: #e0e0e0 !important;
  color: #333 !important;
}

.navbar.scrolled .lang-dropdown-toggle:hover,
.navbar.navbar-solid .lang-dropdown-toggle:hover {
  background: #f0f0f0 !important;
  border-color: var(--primary-color) !important;
}

.navbar.scrolled .logo-hake,
.navbar.navbar-solid .logo-hake {
  color: #f54d2b !important;
}

.navbar.scrolled .logo-yapi,
.navbar.navbar-solid .logo-yapi {
  color: #d1cdc1 !important;
}

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

.lang-dropdown-wrapper.active .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-wrapper.active .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu .lang-btn.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(245, 77, 43, 0.3);
}

/* Hero slide progress bar animation */
.hero-slide-progress-bar {
  height: 100%;
  background: rgba(245, 77, 43, 0.9);
  transition: width 0.3s ease;
}

/* Product card hover animations */
.product-modern-card .product-bg-image {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modern-card:hover .product-bg-image {
  transform: scale(1.1);
}

.product-modern-card .product-overlay {
  transition: background 0.4s ease;
}

.product-modern-card:hover .product-overlay {
  background: linear-gradient(
    to bottom,
    rgba(245, 77, 43, 0.5) 0%,
    rgba(0, 0, 0, 0.8) 100%
  ) !important;
}

.product-modern-card:hover .product-icon {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: scale(1.1);
}

.product-modern-card:hover .product-card-arrow {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

.products-cta-btn:hover i,
.about-cta-btn:hover i {
  transform: translateX(5px);
}

/* Gallery item hover */
.gallery-item:hover img {
  transform: scale(1.15);
}

/* Reference category card animations */
.reference-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #ff6b4a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.reference-category-card:hover::before {
  transform: scaleX(1);
}

.reference-category-card:hover .category-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(245, 77, 43, 0.4);
}

.reference-category-card:hover .category-card-title {
  color: var(--primary-color);
}

.reference-category-card:hover .category-card-arrow {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.references-modal.active {
  display: flex !important;
}

/* Modal animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.references-modal.active {
  animation: modalFadeIn 0.3s ease;
}

.references-modal-content {
  animation: modalSlideUp 0.4s ease;
}

/* Value Cards Hover Effect */
.value-card {
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #ff6b4a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.value-card:hover::before {
  transform: scaleX(1);
}

/* Category Cards Hover Effect */
.category-card img {
  transition: transform 0.7s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card:hover .fa-arrow-right {
  transform: translateX(5px);
}

/* Product Items */
.product-item {
  position: relative;
  overflow: hidden;
}

.product-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 10;
}

.product-item:hover::before {
  transform: scaleX(1);
}

.product-item:hover {
  transform: translateY(-5px);
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Modal */
#product-modal.flex {
  display: flex !important;
}

/* Custom Scrollbar for Modal */
.references-modal-content::-webkit-scrollbar {
  width: 8px;
}

.references-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.references-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.references-modal-content::-webkit-scrollbar-thumb:hover {
  background: #d43d1e;
}

/* Reference list items styling */
.reference-list-item {
  background: #f8f8f8;
  padding: 18px 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reference-list-item:hover {
  background: white;
  border-color: var(--primary-color);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(245, 77, 43, 0.1);
}

.reference-list-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), #ff6b4a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.reference-list-content {
  flex: 1;
}

.reference-list-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.reference-list-location {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reference-list-location i {
  color: var(--primary-color);
  font-size: 0.7rem;
}

/* Applications Gallery Grid - Force 4 columns on laptop screens */
@media (min-width: 1024px) {
  .applications-gallery-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Products Grid - Force 5 columns on laptop screens */
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* Gallery overlay gradient */
.gallery-overlay {
  background: linear-gradient(0deg, rgba(245, 77, 43, 0.9) 0%, transparent 100%);
}

/* Contact card hover animations */
.contact-info-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(245, 77, 43, 0.4);
}

.contact-info-card:hover .contact-info-content {
  color: var(--dark-color);
}

.whatsapp-btn:hover,
.email-btn:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.whatsapp-btn:hover i,
.email-btn:hover i {
  color: white !important;
  transform: scale(1.2);
}

/* Lightbox */
.lightbox.active {
  display: flex;
}

