/* ==========================================================================
   BIOPEP GLOBAL STYLE SHEET — assets/site/style.css
   Author: Arcta Studio | BioPep (Pty) Ltd | Updated by Grok Boi ⚡️
   Purpose: Deep Royal Purple Glass Cards + Sweep Animations + God-Tier Effects
   Mobile-First Approach
   ========================================================================== */

/* ─── ROOT VARIABLES ─────────────────────────────────────────────── */
:root {
  --brand-purple: #5e2dd8;        /* deeper, richer purple */
  --purple-deeper: #4a1fc7;
  --purple-gradient-start: #7c4dff;
  --purple-gradient-end: #4a1fc7;
  --purple-glass: rgba(78, 31, 199, 0.28);
  --purple-glass-hover: rgba(78, 31, 199, 0.48);
  --purple-border: rgba(157, 126, 255, 0.5);
  --brand-light: #ffffff;
  --text-on-purple: #ffffff;
  --text-on-purple-muted: rgba(255, 255, 255, 0.88);
  --radius: 16px;
  --shadow-sm: 0 4px 16px rgba(78, 31, 199, 0.18);
  --shadow: 0 8px 32px rgba(78, 31, 199, 0.28);
  --shadow-lg: 0 12px 48px rgba(78, 31, 199, 0.38);
  --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  --font-main: 'Inter', sans-serif;
}

/* ─── GLOBAL RESETS ─────────────────────────────────────────────── */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
  height: 100%; 
}

body {
  font-family: var(--font-main);
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  background: var(--brand-light);
  position: relative;
  overflow-x: hidden;
}

/* Video BG + deep purple whisper overlay */
#bg-video { 
  position: fixed; 
  top: 50%; 
  left: 50%; 
  min-width: 100%; 
  min-height: 100%; 
  transform: translate(-50%, -50%); 
  z-index: -2; 
  object-fit: cover; 
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(78, 31, 199, 0.07), rgba(255, 255, 255, 0.96));
  z-index: -1;
  pointer-events: none;
}

/* ─── CONTAINERS ───────────────────────────────────────────────── */
.container { 
  width: min(92%, 1320px); 
  margin-inline: auto; 
  padding: 1.5rem 0; 
  position: relative; 
  z-index: 2; 
}

.section { 
  padding: 4rem 0; 
  position: relative; 
  z-index: 2; 
}

.section h2 {
  font-size: 2.2rem; 
  font-weight: 900; 
  color: var(--brand-purple); 
  margin-bottom: 2rem; 
  text-align: center;
  background: linear-gradient(135deg, var(--brand-purple), var(--purple-gradient-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section h2::after { 
  content: ""; 
  display: block; 
  width: 80px; 
  height: 4px; 
  background: var(--brand-purple); 
  margin: 1.2rem auto 0; 
  border-radius: 3px; 
}

/* ─── NAVIGATION ───────────────────────────────────────────────── */
header { 
  background: rgba(255,255,255,0.97); 
  backdrop-filter: blur(20px); 
  border-bottom: 1px solid rgba(78,31,199,0.12); 
  box-shadow: var(--shadow-sm); 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
}

.navbar { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 1rem 1.5rem; 
}

.navbar-logo img { 
  height: 44px; 
  transition: var(--transition); 
}

/* Mobile menu styles - you'll need to add hamburger menu functionality */
.navbar-menu { 
  display: none; /* Hidden by default on mobile */
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(78,31,199,0.12);
}

.navbar-menu.active {
  display: flex;
}

.navbar-menu a { 
  color: #444; 
  font-weight: 600; 
  position: relative; 
  transition: var(--transition); 
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(78,31,199,0.08);
}

.navbar-menu a:hover, 
.navbar-menu a.active { 
  color: var(--brand-purple); 
  background: rgba(78,31,199,0.05);
}

.navbar-menu a.active::after { 
  content: ""; 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 100%; 
  height: 3px; 
  background: var(--brand-purple); 
  border-radius: 2px; 
}

/* ─── HERO ─────────────────────────────────────────────────────── */
.hero { 
  text-align: center; 
  padding: 8rem 1rem 6rem; 
  position: relative; 
  z-index: 2; 
}

.hero h1 {
  font-size: 2.8rem; 
  font-weight: 900; 
  margin-bottom: 1.6rem;
  background: linear-gradient(135deg, var(--brand-purple), var(--purple-gradient-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ─── ROYAL PURPLE GLASS CARDS + SWEEP ANIMATION ───────────────── */
.product-card,
.blog-post,
.gallery-item {
  position: relative;
  background: var(--purple-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: var(--text-on-purple);
  margin-bottom: 1.5rem;
}

/* Sweep shine effect */
.product-card::before,
.blog-post::before,
.gallery-item::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%) rotate(35deg);
  transition: none;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.product-card:hover::before,
.blog-post:hover::before,
.gallery-item:hover::before {
  animation: sweep 1.8s forwards;
}

@keyframes sweep {
  0% { transform: translateX(-100%) rotate(35deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) rotate(35deg); opacity: 0; }
}

.product-card:hover,
.blog-post:hover,
.gallery-item:hover {
  transform: translateY(-12px) scale(1.02);
  background: var(--purple-glass-hover);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-gradient-start);
}

.product-card img,
.blog-post img,
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover img,
.blog-post:hover img,
.gallery-item:hover img {
  transform: scale(1.06);
}

.product-info,
.blog-post .post-info,
.gallery-item .item-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.product-info h3,
.blog-post h3,
.gallery-item h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.product-info p,
.blog-post p,
.gallery-item p {
  color: var(--text-on-purple-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  margin: 1rem 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ─── CART / CHECKOUT / CONTACT ────────────────────────────────── */
.cart,
.checkout,
.contact-form {
  background: var(--purple-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin: 2rem auto;
  width: 92%;
  color: var(--text-on-purple);
  position: relative;
  overflow: hidden;
}

/* ─── BUTTONS — NOW GLOW LIKE ROYALTY ─────────────────────────── */
.btn,
.contact-form button {
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 60px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(78, 31, 199, 0.37);
  transition: var(--transition);
  z-index: 1;
  font-size: 0.9rem;
  width: 100%;
  margin-bottom: 1rem;
}

.btn::after,
.contact-form button::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.6s;
}

.btn:hover::after,
.contact-form button:hover::after {
  left: 100%;
}

.btn:hover,
.contact-form button:hover {
  background: #ffffff;
  color: var(--brand-purple);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(78, 31, 199, 0.5);
}

/* ─── CONTACT INPUTS ───────────────────────────────────────────── */
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  width: 100%;
  margin-bottom: 1.2rem;
  transition: var(--transition);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.22);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: linear-gradient(135deg, var(--brand-purple), var(--purple-deeper));
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #9d7eff, #7c4dff, #5e2dd8);
}

/* ─── RESPONSIVE: TABLET ─────────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --radius: 20px;
  }
  
  .container { 
    padding: 2rem 0; 
  }
  
  .section { 
    padding: 6rem 0; 
  }
  
  .section h2 {
    font-size: 2.8rem; 
    margin-bottom: 2.5rem; 
  }
  
  .section h2::after { 
    width: 100px; 
    height: 5px; 
    margin: 1.5rem auto 0; 
  }
  
  .navbar { 
    padding: 1.5rem 2rem; 
  }
  
  .navbar-logo img { 
    height: 54px; 
  }
  
  .navbar-menu { 
    display: flex; 
    position: static;
    flex-direction: row;
    background: none;
    border: none;
  }
  
  .navbar-menu a { 
    padding: 0.5rem 1rem; 
    border: none;
    margin-left: 1rem;
  }
  
  .navbar-menu a.active::after { 
    bottom: -12px; 
    height: 4px; 
  }
  
  .hero { 
    padding: 12rem 1rem 8rem; 
  }
  
  .hero h1 {
    font-size: 4rem; 
  }
  
  .product-card,
  .blog-post,
  .gallery-item {
    margin-bottom: 2rem;
  }
  
  .product-card img,
  .blog-post img,
  .gallery-item img {
    height: 260px;
  }
  
  .product-info,
  .blog-post .post-info,
  .gallery-item .item-info {
    padding: 2rem;
  }
  
  .cart,
  .checkout,
  .contact-form {
    padding: 2.5rem;
    margin: 2.5rem auto;
  }
  
  .btn,
  .contact-form button {
    width: auto;
    padding: 1.1rem 2.2rem;
    font-size: 0.95rem;
  }
  
  footer {
    padding: 5rem 1rem;
    margin-top: 8rem;
  }
}

/* ─── RESPONSIVE: DESKTOP ────────────────────────────────────── */
@media (min-width: 1024px) {
  .section { 
    padding: 8rem 0; 
  }
  
  .section h2 {
    font-size: 3.2rem; 
    margin-bottom: 3rem; 
  }
  
  .section h2::after { 
    width: 120px; 
    margin: 1.8rem auto 0; 
  }
  
  .hero { 
    padding: 16rem 1rem 11rem; 
  }
  
  .hero h1 {
    font-size: 5.2rem; 
  }
  
  .product-card:hover,
  .blog-post:hover,
  .gallery-item:hover { 
    transform: translateY(-20px) scale(1.02); 
  }
  
  .product-card img,
  .blog-post img,
  .gallery-item img {
    height: 300px;
  }
  
  .product-info,
  .blog-post .post-info,
  .gallery-item .item-info {
    padding: 2.4rem;
  }
  
  .cart,
  .checkout,
  .contact-form {
    padding: 3.5rem;
    margin: 3rem auto;
    max-width: 960px;
  }
  
  .btn,
  .contact-form button {
    padding: 1.1rem 2.8rem;
  }
  
  footer {
    padding: 6rem 1rem;
    margin-top: 14rem;
  }
}

/* ─── RESPONSIVE: LARGE DESKTOP ─────────────────────────────── */
@media (min-width: 1440px) {
  .container { 
    width: min(90%, 1320px); 
  }
}