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

/*
  Table of Contents:
  1. Variables & Root
  2. Global Styles
  3. Navigation Bar
  4. NEW: Hero Section & Typewriter
  5. Service, Product, & Process
  6. NEW: Portfolio Section
  7. Contact & Footer
  8. Utility & NEW Animations
*/

/* 1. Variables & Root */
:root {
  --primary-color: #ffc107; /* Bootstrap 'warning' yellow */
  --secondary-color: #0dcaf0; /* Bootstrap 'info' cyan */
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --text-color: #333;
  --font-family: "Poppins", sans-serif;
}

/* 2. Global Styles */
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

section,
article {
  padding: 80px 0;
  overflow-x: hidden; /* Prevents horizontal scrollbar from animations */
}

/* 3. Navigation Bar */
.main-nav .logo-img {
  max-height: 50px;
  width: auto;
}
.main-nav .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 20px 15px !important;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--primary-color) !important;
}

/* 4. NEW: Hero Section & Typewriter */
.hero-section {
  height: 100vh; /* Full screen height */
  min-height: 600px;
  background: url("../images/Hit-print-logo-design.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* Creates a simple parallax effect */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Darker overlay */
}
.hero-content {
  position: relative;
  z-index: 10;
}
.hero-typewriter {
  font-size: 2.5rem;
  font-weight: 500;
}
/* Blinking cursor for typewriter */
#typewriter-text::after {
  content: "|";
  animation: blink 0.7s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* 5. Service, Product, & Process */
.service-card,
.product-card {
  border: none;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card {
  height: 100%;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.service-card:hover,
.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.product-card .card-img-top {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 10px;
}
.process-step .process-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* 6. NEW: Portfolio Section */
.portfolio-grid .portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.portfolio-item img {
  transition: transform 0.4s ease;
}
.portfolio-item:hover img {
  transform: scale(1.1);
}
.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px 20px 15px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}
.portfolio-info h5 {
  font-weight: 600;
  margin: 0;
}

/* 7. Contact & Footer */
#contact {
  background-color: var(--dark-color);
}
#contact .form-control {
  padding: 12px;
  background-color: #343a40;
  border: 1px solid #555;
  color: #fff;
}
#contact .form-control:focus {
  background-color: #495057;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
  color: #fff;
}
footer {
  border-top: 4px solid var(--primary-color);
}

/* 8. Utility & NEW Animations */
#scrollTopButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--dark-color);
  border: none;
  border-radius: 50%;
  display: none;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}
#scrollTopButton:hover {
  background-color: var(--dark-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* Animation Container */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}
.slide-in-left {
  transform: translateX(-100px);
}
.slide-in-right {
  transform: translateX(100px);
}
.zoom-in {
  transform: scale(0.9);
}
/*
  9. NEW: Product Filter & Image Hover
*/

/* Style for the filter button navigation */
.product-filter-nav .filter-btn {
  border: none;
  font-weight: 500;
  color: var(--text-color);
  background-color: #eee;
  margin: 0 5px;
  border-radius: 20px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

/* Style for the ACTIVE filter button */
.product-filter-nav .filter-btn.active,
.product-filter-nav .filter-btn:hover {
  color: var(--dark-color);
  background-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

/* This class will be toggled by JS to hide/show items */
.product-item.hide {
  transition: all 0.4s ease-out;
  transform: scale(0.9);
  opacity: 0;
  display: none; /* JS will handle this, but good as a fallback */
}

/* NEW: Wrapper to contain the image zoom */
.product-card .product-img-wrapper {
  overflow: hidden;
  border-radius: 10px 10px 0 0; /* Match card's border radius */
}

/* NEW: Image hover zoom effect */
.product-card .card-img-top {
  transition: transform 0.4s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.1);
}
.whatsapp-fl-btn {
  position: fixed;
  bottom: 80px; /* Sits 10px above the 50px-high 'top' button (50+20+10) */
  right: 20px; /* Aligned with the 'top' button */
  width: 60px;
  height: 60px;
  background-color: #25d366; /* WhatsApp Green */
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  line-height: 60px; /* Vertically centers the icon */
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-fl-btn:hover {
  color: #fff;
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
@media (max-width: 767.98px) {
  .product-filter-nav {
    /* This ensures the items are centered as a group */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-filter-nav .filter-btn {
    margin: 5px;
    /* Make buttons a bit smaller to fit better */
    font-size: 14px;
    padding: 6px 15px;
  }
}