/* ==========================================================================
   VELUNO Premium Plumbing & Sanitary Solutions CSS Design System
   Color Palette: Blue (#0F5EA8), Light Blue (#67C4FF), White (#FFFFFF), Dark (#111111)
   Theme: Premium Modern Light Glassmorphism
   ========================================================================== */

:root {
  --color-primary: #0F5EA8;
  --color-primary-hover: #0c4d8b;
  --color-light-blue: #67C4FF;
  --color-white: #FFFFFF;
  --color-dark: #0F172A; /* Deep slate headings */
  --color-body-bg: #F8FAFC; /* Slate-white body background */
  --color-card-bg: rgba(255, 255, 255, 0.65);
  --color-border: rgba(15, 94, 168, 0.08);
  --color-success: #25D366; /* WhatsApp Green */
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-height: 85px;
  --transition-smooth: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  --glass-shadow: 0 8px 32px rgba(15, 94, 168, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  --neon-glow: 0 0 25px rgba(103, 196, 255, 0.18);
}

/* --- Base & General Reset --- */
body {
  font-family: var(--font-body);
  background-color: var(--color-body-bg);
  color: #334155; /* Slate grey body text */
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-dark);
}

/* Override standard Bootstrap text-dark class for dark mode readability */
.text-dark {
  color: var(--color-dark) !important;
}

.text-muted {
  color: #475569 !important;
}

.bg-light {
  background-color: rgba(241, 245, 249, 0.8) !important;
}

/* Global viewport WebGL background canvas */
#global-fluid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* --- Header / Sticky Navigation (Floating Island Layout) --- */
#main-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1240px;
  height: 75px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 40px rgba(15, 94, 168, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

#main-header.scrolled {
  top: 8px;
  height: 68px;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 94, 168, 0.15);
  box-shadow: 0 12px 45px rgba(15, 94, 168, 0.08);
}

.header-container {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  animation: float-logo 3s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.nav-link-item {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--color-primary);
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
  width: 100%;
}

/* Header Buttons */
.btn-header {
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-call {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-call:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(15, 94, 168, 0.3);
}

.btn-whatsapp {
  background-color: var(--color-success);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-cart {
  background-color: #F1F5F9;
  color: var(--color-dark);
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  position: relative;
  border: 1px solid var(--color-border);
}

.btn-cart:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn-cart .cart-count {
  font-size: 0.65rem;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--color-dark);
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

/* --- Hero Section & 3D WebGL Canvas --- */
.hero-section {
  min-height: 90vh;
  margin-top: 0;
  padding-top: calc(var(--header-height) + 3rem) !important;
  display: flex;
  align-items: center;
}

#hero-canvas {
  z-index: 0;
  pointer-events: auto;
}

.hero-overlay {
  background-color: #FFFFFF !important;
  opacity: 0.20 !important;
}

.hero-subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--color-primary) !important;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900 !important;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-shadow: none !important;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-description {
  max-width: 750px;
  color: #1e293b !important; /* Deeper slate for high contrast readability */
  font-size: 1.25rem;
  text-shadow: 0 1px 4px rgba(255,255,255,0.8);
  line-height: 1.5;
}

.hero-actions .btn-outline-light {
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
  background-color: transparent;
}

.hero-actions .btn-outline-light:hover {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

/* --- Section Headings --- */
.section-title {
  font-size: 2.5rem;
  color: var(--color-dark);
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title span {
  color: var(--color-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.text-left .section-title::after {
  left: 0;
  transform: none;
}

/* --- Premium Spatial 3D Glassmorphic Cards --- */
.feature-card, 
.category-card, 
.product-card, 
.info-card, 
.form-container, 
.cert-badge-card, 
.app-card {
  position: relative;
  background: var(--color-card-bg) !important;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: #334155 !important;
  border-radius: 20px !important;
  box-shadow: var(--glass-shadow) !important;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

/* Glass Spotlight Glare Layer */
.glare-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  z-index: 10;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.feature-card:hover .glare-effect,
.category-card:hover .glare-effect,
.product-card:hover .glare-effect,
.info-card:hover .glare-effect,
.form-container:hover .glare-effect,
.cert-badge-card:hover .glare-effect,
.app-card:hover .glare-effect {
  opacity: 1;
}

.feature-card:hover, 
.category-card:hover, 
.product-card:hover, 
.info-card:hover, 
.form-container:hover, 
.cert-badge-card:hover, 
.app-card:hover {
  border-color: rgba(15, 94, 168, 0.25) !important;
  box-shadow: 0 20px 40px rgba(15, 94, 168, 0.08), var(--neon-glow) !important;
}

/* Inner elements 3D pop effect */
.feature-card > *,
.product-card > *,
.category-card > * {
  transform: translateZ(25px);
}

/* Feature Icon Wrap */
.feature-icon-wrapper {
  background-color: rgba(15, 94, 168, 0.08) !important;
  color: var(--color-primary) !important;
}

/* Category Card Image */
.category-img-wrapper {
  height: 180px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.category-img-wrapper img {
  height: 90%;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

/* --- Product Cards / Catalog Grid --- */
.card-image-wrapper {
  height: 250px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
}

.card-image-wrapper img {
  height: 90%;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.product-card:hover .card-image-wrapper img {
  transform: scale(1.06);
}

.card-specs {
  background: #F8FAFC !important;
  border: 1px solid rgba(15, 94, 168, 0.06) !important;
}

.card-specs strong {
  color: var(--color-dark) !important;
}

.spec-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  padding-bottom: 4px;
}
.spec-row:last-child {
  border-bottom: none;
}

/* --- Catalog Filter Buttons --- */
.filter-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(15, 94, 168, 0.25);
}

/* --- Lead Forms Styling --- */
.form-control,
.form-select {
  background-color: var(--color-white) !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--color-white) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(15, 94, 168, 0.15) !important;
}

.form-control::placeholder {
  color: #64748B !important;
}

.form-select option {
  background-color: var(--color-white) !important;
  color: #0F172A !important;
}

.form-label {
  color: #475569 !important;
  font-weight: 500;
}

.cart-drawer {
  position: fixed;
  top: 20px;
  right: -480px;
  width: 440px;
  max-width: calc(100vw - 40px);
  height: calc(100vh - 40px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 24px !important;
  color: var(--color-dark);
  box-shadow: 0 20px 50px rgba(15, 94, 168, 0.12) !important;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cart-drawer.active {
  right: 20px;
}

.drawer-header {
  height: 80px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--color-border);
}

.drawer-header h3 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 700;
}

.close-drawer-btn {
  background: none;
  border: none;
  color: #475569;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-drawer-btn:hover {
  color: var(--color-dark);
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
}

.drawer-footer {
  border-top: 1px solid var(--color-border);
  background-color: #F8FAFC;
}

.drawer-footer .summary-row span {
  color: #475569;
}

.drawer-footer .summary-row.total span {
  color: var(--color-primary);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 94, 168, 0.15);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Cart Item Cards inside Drawer */
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(15, 94, 168, 0.02);
  border: 1px solid rgba(15, 94, 168, 0.06);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  background: var(--color-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(15, 94, 168, 0.1);
}

.cart-item-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-dark);
}

.cart-item-meta {
  font-size: 0.75rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}

.qty-counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
}

.qty-btn {
  background: none;
  border: none;
  color: #475569;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
}

.qty-input {
  width: 40px;
  border: none;
  background: none;
  color: var(--color-dark);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.remove-item-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 0.78rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
}

.empty-cart-msg {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #475569;
}

.empty-cart-msg svg {
  margin-bottom: 1rem;
  color: #CBD5E1;
}

/* --- Mobile Drawer Navigation (Left-hand slide) --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--color-white);
  color: var(--color-dark);
  box-shadow: 5px 0 30px rgba(15, 94, 168, 0.08);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  border-right: 1px solid var(--color-border);
}

.mobile-drawer.active {
  left: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 94, 168, 0.15);
  backdrop-filter: blur(4px);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list a {
  display: block;
  padding: 1.2rem 2rem;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.mobile-nav-list a:hover {
  background-color: rgba(15, 94, 168, 0.02);
  color: var(--color-primary);
  padding-left: 2.3rem;
}

/* --- Floating WhatsApp Help Action --- */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--color-success);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08) rotate(10deg);
  background-color: #1ebe57;
  color: var(--color-white);
}

/* --- Page Title Banner Overrides --- */
.page-title-banner {
  margin-top: var(--header-height);
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(15, 94, 168, 0.08) !important;
  color: var(--color-dark) !important;
}

.page-title-banner h1 {
  color: var(--color-dark) !important;
}

.page-title-banner h1 span {
  color: var(--color-primary) !important;
}

.page-title-banner .banner-bg-overlay {
  display: none !important; /* Hide heavy dark overlay */
}

.page-title-banner .text-light-50 {
  color: #475569 !important; /* High contrast dark grey text */
}

.download-cta-section .text-white-50 {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Map and Form styling --- */
.map-container iframe {
  border-radius: 16px;
  filter: none !important; /* Normal Google Map colors for Light Theme */
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #F1F5F9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
}

.social-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 0 10px rgba(103, 196, 255, 0.2);
}

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

::-webkit-scrollbar-track {
  background: var(--color-body-bg);
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
  border: 1px solid #F1F5F9;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- Bootstrap Modal Light Theme Styles --- */
.modal-content {
  background-color: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-dark) !important;
}

.modal-header {
  border-bottom: 1px solid var(--color-border) !important;
  background-color: #F8FAFC !important;
}

.modal-body {
  color: var(--color-dark) !important;
}

.specs-list {
  background: #F8FAFC !important;
  border: 1px solid rgba(15, 94, 168, 0.06) !important;
}

.specs-list strong {
  color: var(--color-dark) !important;
}

/* Close button override */
.btn-close-white {
  filter: none !important;
}

/* --- Modern Stat Display in Why Choose Section --- */
.stat-row {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  transition: var(--transition-smooth);
}

.stat-row:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 15px rgba(15, 94, 168, 0.08) !important;
  transform: scale(1.02);
}

.stat-number {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--color-primary) !important;
}

.stat-text h4 {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--color-dark) !important;
}

/* --- 3D Scroll Reveal & Entrance Animations --- */
.reveal-3d {
  opacity: 0;
  transform: perspective(1000px) rotateX(12deg) translateY(50px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.reveal-3d.in-view {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

/* Stagger delay classes for grid columns */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Dynamic Glow Spotlights */
.glow-spotlight {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(103, 196, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}

/* Modern Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #06213f, #0b4c8c) !important; /* Very dark navy to brand blue for high-contrast visibility */
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Spatial Dark Footer Override */
#main-footer {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#main-footer hr {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- Events & Engagements Section --- */
.events-section {
  position: relative;
  background-color: var(--color-white);
}

.events-section .bg-blob-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15, 94, 168, 0.05) 0%, rgba(103, 196, 255, 0.02) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  z-index: 1;
}

.events-section .bg-blob-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(103, 196, 255, 0.06) 0%, rgba(15, 94, 168, 0.02) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  z-index: 1;
}

.events-section .container {
  position: relative;
  z-index: 2;
}

.filter-tab-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 94, 168, 0.15);
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.filter-tab-btn:hover {
  background: rgba(15, 94, 168, 0.05);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.filter-tab-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(15, 94, 168, 0.25);
}

.events-carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px; /* Space for absolute navigation arrows */
}

.events-carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
}

.events-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  gap: 24px; /* 1.5rem gap */
}

.events-carousel-slide {
  flex: 0 0 100%; /* Mobile: 1 item */
  box-sizing: border-box;
  aspect-ratio: 16 / 10.5;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(15, 94, 168, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hide card class for tab filtering */
.events-carousel-slide.hide-slide {
  display: none !important;
}

.events-carousel-slide img,
.events-carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.events-carousel-slide:hover img,
.events-carousel-slide:hover video {
  transform: scale(1.06);
}

.events-carousel-slide .slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 94, 168, 0.95) 0%, rgba(15, 94, 168, 0.5) 40%, rgba(15, 94, 168, 0.1) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem 1.5rem;
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;
}

.events-carousel-slide .slide-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 0.25rem 0;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.events-carousel-slide .slide-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.events-carousel-slide .slide-meta i {
  color: #67c4ff;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
  .events-carousel-slide {
    flex: 0 0 calc((100% - 24px) / 2); /* Tablet: 2 items */
  }
}

@media (min-width: 992px) {
  .events-carousel-slide {
    flex: 0 0 calc((100% - 48px) / 3); /* Desktop: 3 items */
  }
}

/* Navigation Controls */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 94, 168, 0.15);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-nav-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(15, 94, 168, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn.prev-btn {
  left: 0;
}

.carousel-nav-btn.next-btn {
  right: 0;
}

/* Dots Pagination */
.carousel-dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-dot:hover {
  background: #94a3b8;
}

.carousel-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 10px;
}

/* Slide hover cursor */
.events-carousel-slide {
  cursor: zoom-in;
}

/* --- Lightbox Styles --- */
.events-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.events-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  color: #67c4ff;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
}

.lightbox-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(15, 94, 168, 0.4);
}

.lightbox-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-arrow.lightbox-prev {
  left: 30px;
}

.lightbox-arrow.lightbox-next {
  right: 30px;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10000;
}

.events-lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

