/* Sticky header with blur & transparency */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../../img/header.jpeg') center/cover no-repeat;

  opacity: 0.8; /* 🔥 controls transparency */
  z-index: -1;
}

.nav-container {
  width: 100%;
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* LEFT SIDE */
.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Logo */
/* Logo container */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 2000;
}

/* Logo image */
.logo-img {
  height: 80px;   /* perfect header size */
  width: auto;
  object-fit: contain;
  display: block;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu li a {
    text-decoration: none;
    color: #001757;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.25s;
    position: relative;
    padding-bottom: 6px;
}

/* underline slide effect */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #00e0ff, #3a86ff);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu li a:hover {
    color: #0042f8;
    text-shadow: 0 0 6px rgba(0, 224, 255, 0.5);
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* CTA Button Glowing */
.btn-glow {
    background: linear-gradient(95deg, #0088f8e3, #016583);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0A1F44;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn-glow:hover {
    transform: translateY(-2px);
    background: linear-gradient(95deg, #00539c, #001336);
    color: #fff;
}

/* Mobile responsive (minimal) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* ensure images maintain aspect ratio */
.card-image {
    min-height: 320px;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease, translate 0.3s;
}
/* smooth stacking - add will-change */
.product-card {
    will-change: transform, opacity, box-shadow;
}

.product-card:not(.revealed) {
    opacity: 0;
    transform: translateY(45px);
}
.product-card.revealed {
    opacity: 1;
    transform: translateY(0);
}


@media (min-width: 1200px) {
  .nav-container {
    padding: 1rem 3rem;
  }
}

/* ===============================
   📱 TABLET (768px - 1024px)
================================= */
@media (max-width: 1024px) {

  .nav-container {
    padding: 1rem 2rem;
    height: 70px;
  }

  .logo-img {
    height: 65px;
  }

  .nav-menu {
    gap: 1.2rem;
  }

  .nav-menu li a {
    font-size: 0.9rem;
  }

  .btn-glow {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
  }

  /* Product Cards */
  .card-image {
    min-height: 260px;
  }
}

/* ===============================
   📱 MOBILE (<= 768px)
================================= */
@media (max-width: 768px) {

  /* NAVBAR */
  .nav-container {
    padding: 0.8rem 1rem;
    height: 80px;
  }

  .logo-img {
    height: 55px;
  }

  /* Hide desktop menu */
  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(10, 31, 68, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    transform: translateY(-120%);
    transition: 0.4s ease;
  }

  /* Active menu */
  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu li a {
    color: #fff;
    font-size: 1rem;
  }

  .site-header.scrolled {
    background: rgba(10,31,68,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  }
  /* Show menu toggle */
  .menu-toggle {
    display: block;
  }

  

  /* LEFT SIDE spacing */
  .nav-left {
    gap: 1rem;
  }

  /* PRODUCT CARDS */
  .card-image {
    min-height: 220px;
  }

  .product-card {
    transform: none !important;
  }
}

/* ===============================
   📱 SMALL MOBILE (<= 480px)
================================= */
@media (max-width: 480px) {

  .nav-container {
    padding: 0.5rem 0.6rem;
  }

  .logo-img {
    height: 48px;
  }

  .nav-menu {
    padding: 1.5rem;
  }

  .nav-menu li a {
    font-size: 0.95rem;
  }

  /* Cards */
  .card-image {
    min-height: 180px;
  }

  /* Reduce spacing */
  .product-card {
    margin-bottom: 1rem;
  }
}

/* ===============================
   🖥️ ULTRA LARGE SCREENS (1400px+)
================================= */
@media (min-width: 1400px) {
  .container {
    max-width: 1300px;
  }

  .card-image {
    min-height: 360px;
  }
}