/* ==========================================================================
   NICETOUCH - OFFICIAL STYLESHEET
   Matches UI/UX Design with Pixel-Perfect Precision
   ========================================================================== */

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

:root {
  --primary-cyan: #00a2e8;
  --primary-cyan-hover: #008ec6;
  --primary-cyan-light: #e6f6fd;
  --dark-navy: #071b2f;
  --navy-header: #0b2545;
  --navy-card: #0d2744;
  --navy-deep: #051424;
  --slate-text: #475569;
  --slate-muted: #64748b;
  --slate-heading: #0b2545;
  --border-light: #e2e8f0;
  --card-bg-blue: #dff0fc;
  --card-bg-tan: #fbf1e8;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px -2px rgba(11, 37, 69, 0.06);
  --shadow-card: 0 10px 30px -4px rgba(11, 37, 69, 0.08);
  --shadow-hover: 0 20px 35px -6px rgba(11, 37, 69, 0.14);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  scroll-behavior: smooth;
  color: var(--slate-text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  line-height: 1.6;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-heading);
  font-weight: 700;
  line-height: 1.25;
}

/* Custom Cyan Button */
.btn-cyan {
  background-color: var(--primary-cyan);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-cyan:hover {
  background-color: var(--primary-cyan-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(0, 162, 232, 0.4);
}

.btn-ghost-white {
  background-color: transparent;
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* Arrow Circle Buttons */
.arrow-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-cyan);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}
.arrow-circle-btn:hover {
  transform: scale(1.1);
  background-color: var(--primary-cyan-hover);
  box-shadow: 0 4px 12px rgba(0, 162, 232, 0.35);
}
.arrow-circle-btn.tan {
  background-color: #a16207;
}
.arrow-circle-btn.tan:hover {
  background-color: #854d0e;
  box-shadow: 0 4px 12px rgba(161, 98, 7, 0.35);
}

/* ==========================================================================
   HERO / BANNER ANIMATED SLIDER
   ========================================================================== */
.hero-slider-container {
  position: relative;
  overflow: hidden;
  background-color: #071b2f;
  min-height: 580px;
  height: 84vh;
  max-height: 750px;
  width: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* ==========================================================================
   HERO GRID ANIMATION SYSTEM
   ========================================================================== */
/* 1. Subtle High-Tech Blueprint Grid Lines (Cyber-clean, no gradient) */
.hero-tech-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 162, 232, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 162, 232, 0.08) 1px, transparent 1px);
  background-size: 70px 70px;
  pointer-events-none;
  z-index: 2;
  opacity: 0.85;
}

/* 2. Grid Tile Transition Canvas (6 cols x 2 rows = 12 animated grid cells) */
.hero-grid-fx {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  z-index: 4;
  pointer-events-none;
  overflow: hidden;
}

.hero-grid-tile {
  position: relative;
  overflow: hidden;
  background-size: 600% 200%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
}

.hero-grid-tile.revealing {
  animation: gridTileWipe 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gridTileWipe {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transform: scale(1.08);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: scale(1);
  }
}

/* 3. Staggered Grid Content Entrance Animations */
.hero-slide.active .hero-grid-tag {
  animation: gridContentIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-slide.active .hero-grid-title {
  animation: gridContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-slide.active .hero-grid-text {
  animation: gridContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.hero-slide.active .hero-grid-actions {
  animation: gridContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* Legacy slide animation support */
.hero-slide.active .hero-animate-title {
  animation: gridContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-slide.active .hero-animate-text {
  animation: gridContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-slide.active .hero-animate-actions {
  animation: gridContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes gridContentIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Slide Progress & Indicator Dots */
.hero-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 25;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.hero-dot.active {
  width: 36px;
  background-color: var(--primary-cyan);
  box-shadow: 0 0 12px rgba(0, 162, 232, 0.6);
}

/* Hero Nav Arrows */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(7, 27, 47, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}
.hero-nav-btn:hover {
  background-color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  transform: translateY(-50%) scale(1.08);
}
.hero-prev {
  left: 20px;
}
.hero-next {
  right: 20px;
}

/* Wave & Diagonal Dividers */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagonal-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 20;
  pointer-events-none;
}
.diagonal-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   CAROUSEL SYSTEMS (PRODUCTS & INDUSTRIES)
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-track-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 12px 4px 24px 4px;
}
.carousel-track-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
}

.carousel-card {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}
@media (max-width: 640px) {
  .carousel-track {
    gap: 1rem;
  }
  .carousel-card {
    flex: 0 0 86%;
    min-width: 250px;
    max-width: 320px;
  }
}
@media (max-width: 380px) {
  .carousel-card {
    flex: 0 0 92%;
    min-width: 230px;
  }
}

/* Carousel Control Header */
.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.carousel-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background-color: #ffffff;
  color: var(--navy-header);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.carousel-arrow-btn:hover {
  background-color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 162, 232, 0.3);
}

/* ==========================================================================
   CARD STYLES & HOVERS
   ========================================================================== */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #bae6fd;
}

.product-image-box {
  width: 100%;
  height: 220px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image-box img {
  transform: scale(1.05);
}

.capacity-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Category Feature Cards */
.cat-card-hygiene {
  background: linear-gradient(135deg, #dcf0ff 0%, #bde1fd 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid #c4e0f9;
}
.cat-card-hygiene:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 162, 232, 0.2);
}

.cat-card-packaging {
  background: linear-gradient(135deg, #fef4ea 0%, #fae2cc 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid #ebd0be;
}
.cat-card-packaging:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(161, 98, 7, 0.2);
}

/* Industry Cards */
.industry-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eef2f6;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #bae6fd;
}
.industry-image-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.industry-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.industry-card:hover .industry-image-box img {
  transform: scale(1.08);
}

/* Custom Packaging Dark Section */
.custom-packaging-dark-section {
  background-color: #071b2f;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.custom-pack-wave-top,
.custom-pack-wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 20;
  pointer-events-none;
}
.custom-pack-wave-top {
  top: 0;
}
.custom-pack-wave-bottom {
  bottom: 0;
}
.custom-pack-wave-top svg,
.custom-pack-wave-bottom svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Responsibility Cards */
.resp-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.resp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: #bae6fd;
}

.resp-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.resp-icon-green {
  background-color: #dcfce7;
  color: #16a34a;
}
.resp-icon-blue {
  background-color: #e0f2fe;
  color: #0284c7;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.faq-item:hover {
  border-color: #bae6fd;
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: var(--slate-heading);
  transition: var(--transition-smooth);
}
.faq-header:hover {
  color: var(--primary-cyan);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: #64748b;
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-cyan);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--slate-text);
  font-size: 0.95rem;
}
.faq-item.active .faq-body {
  max-height: 500px;
  padding-bottom: 1.25rem;
  transition: max-height 0.4s ease-in-out;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 27, 47, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.modal-close-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0b2545;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  border-left: 4px solid var(--primary-cyan);
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating Input Focus Styles */
.form-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.925rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #f8fafc;
  transition: var(--transition-smooth);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-cyan);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 162, 232, 0.2);
}

/* Responsive Navbar */
.nav-link {
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-cyan);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-cyan);
  border-radius: 9999px;
}

/* ==========================================================================
   PRODUCT CATALOGUE (FILTER TABS & SEARCH)
   ========================================================================== */
.product-cat-pill {
  border: 1px solid #e2e8f0;
  color: #0b2545;
  background-color: #f8fafc;
  font-weight: 700;
  transition: var(--transition-smooth);
}
.product-cat-pill:hover {
  background-color: #e2e8f0;
  color: #0b2545;
}
.product-cat-pill.active {
  background-color: var(--primary-cyan) !important;
  color: #ffffff !important;
  border-color: var(--primary-cyan) !important;
  box-shadow: 0 4px 14px rgba(0, 162, 232, 0.3);
}

.product-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.product-item:hover {
  transform: translateY(-4px);
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   ========================================================================== */
/* Prevent iOS auto-zoom on form focus by ensuring at least 16px font-size */
@media (max-width: 639px) {
  input,
  select,
  textarea,
  .form-input {
    font-size: 16px !important;
  }
  
  .hero-slider-container {
    min-height: 520px;
    height: auto;
    max-height: none;
  }
  
  .hero-nav-btn {
    width: 36px;
    height: 36px;
    background-color: rgba(7, 27, 47, 0.8);
  }
  
  .hero-prev {
    left: 8px;
  }
  
  .hero-next {
    right: 8px;
  }
  
  .hero-indicators {
    bottom: 16px;
  }
  
  .modal-content {
    padding: 1.5rem 1.25rem !important;
    border-radius: 20px !important;
    max-height: 92vh !important;
  }
}

/* Extra small devices (320px - 380px) */
@media (max-width: 380px) {
  .btn-cyan,
  .btn-ghost-white {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
  }
  
  .arrow-circle-btn {
    width: 34px;
    height: 34px;
  }
}

/* Smooth Tap and Drag Handling */
button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   MOBILE SIDE NAV BAR / DRAWER (EXPLICIT STYLES)
   ========================================================================== */
#mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(7, 27, 47, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-drawer-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
}

#mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 18rem;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  z-index: 9999;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  -webkit-transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-drawer.active {
  transform: translateX(0) !important;
  -webkit-transform: translateX(0) !important;
}

@media (min-width: 768px) {
  #mobile-drawer,
  #mobile-drawer-backdrop {
    display: none !important;
  }
}


