/* ================== Global & Variables ================== */
:root {
  --primary-blue: #0d6efd;
  --accent-red: #ff0000;
  --dark-bg: #061730;
  --light-gray: #f4f6f8;
  --text-main: #333;
}

body {
  line-height: 1.6;
  color: var(--text-main);
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ================== Navbar ================== */
.navbar {
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .nav-link {
  color: #111 !important;
  font-weight: 700;
  margin-left: 1rem;
  position: relative;
  transition: 0.3s;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.navbar .nav-link.active::after,
.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--primary-blue) !important;
}

/* ================== Hero Section ================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* ================== Product Gallery ================== */
h2.text-primary {
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent-red);
  margin-bottom: 3rem !important;
}

/* ================== Interactive Components (Cards) ================== */
.card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden; /* Clips the image zoom */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #fff;
  height: 100%; /* Ensures all cards in a row stay the same height */
}

.card-img-top {
  height: 250px; /* Uniform height for the container */
  width: 100%;
  
  /* CHANGE: 'contain' ensures the full image is visible without cutting */
  object-fit: contain; 
  
  /* ADDED: Adds a subtle background and padding so the "full" image 
     looks intentional if it doesn't fill the whole 250px area */
  background-color: #f9f9f9; 
  padding: 15px;
  
  transition: transform 0.6s ease;
}

/* Zoom Effect on Hover */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
  border-color: var(--primary-blue);
}

/* Optional: Slight zoom on the image itself without losing the "contain" edges */
.card:hover .card-img-top {
  transform: scale(1.05);
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

/* ================== Footer ================== */
footer.footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 4rem 0 2rem;
}

footer.footer h5 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

footer.footer h5::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--accent-red);
  left: 0;
  bottom: 0;
}

footer.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: 0.3s;
}

footer.footer a:hover {
  color: var(--accent-red) !important;
  padding-left: 5px;
}

/* ================== Responsiveness ================== */
@media (max-width: 768px) {
  .hero { height: 50vh !important; }
  .card-img-top {
    height: 180px;      /* Slightly shorter height for smaller screens */
    object-fit: contain; /* STOP CRIPPING: Shows the full image on mobile */
    padding: 10px;      /* Adds a little space so image doesn't touch edges */
  }
  h2.text-primary { font-size: 2rem; }
}
