/* 
   Carry 4 (Pvt) Ltd - Custom Styles
   Premium, Anti-gravity, Minimalist Luxury 
*/

:root {
  --brand-red: #e31e24;
  --brand-blue: #2e3192;
  --brand-dark: #0a0a0a;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--brand-dark);
  overflow-x: hidden;
}

/* Glassmorphism Components */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-nav-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Anti-gravity Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-fast {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-medium { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float-slow 8s ease-in-out infinite; }
.float-fast { animation: float-fast 4s ease-in-out infinite; }

/* Interactive Hover Effects */
.float-hover {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(166, 26, 23, 0.15);
  border-color: rgba(166, 26, 23, 0.3);
  background: rgba(166, 26, 23, 0.05);
}

/* Product Card Specifics */
.product-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150%; height: 150%;
  background: radial-gradient(circle, rgba(166,26,23,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-img-wrapper {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s ease;
}

.product-card:hover .product-img-wrapper {
  transform: scale(1.15) translateY(-15px);
  filter: drop-shadow(0 25px 25px rgba(166, 26, 23, 0.5));
  animation-play-state: paused;
}

/* Scroll Reveal Classes (Triggered via JS) */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

/* Infinite Marquee Text Strip */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: var(--brand-red);
  padding: 1.5rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee-content span {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 0 2rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-dark);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}
