/* ===== Base & Utilities ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #5EBDAB;
  color: #0B1D3A;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
  background: #5EBDAB;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4aa896;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(11, 29, 58, 0.06);
}

.nav-logo-text {
  transition: color 0.3s ease;
}

/* ===== Mobile Menu ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== Hero Animations ===== */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

.hero-image {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* ===== Scroll Dot ===== */
.scroll-dot {
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 12px); }
}

/* ===== Product Cards ===== */
.product-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Quality Cards ===== */
.quality-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.quality-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== About Images ===== */
.about-images {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-images.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-content {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-content.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Visit Image ===== */
.visit-image {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.visit-image.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section Headers ===== */
.section-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hover Image Zoom ===== */
img {
  display: block;
}

/* ===== Focus Styles ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #5EBDAB;
  outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 70px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  html {
    scroll-padding-top: 80px;
  }
}
