/* 
  Neon Beats - Premium Music Store
  Modern Dark Theme with Glassmorphism & Neon Accents
*/

:root {
  /* Color Palette */
  --primary: #f72585;
  --secondary: #7209b7;
  --accent: #4cc9f0;
  --dark: #120118; /* Deep purple/black base */
  --darker: #0a000e;
  --surface: #1f0529;
  --surface-hover: #2d0b3b;
  --text: #ffffff;
  --text-secondary: #b3b3b3;
  --success: #4cc9f0;
  --error: #f72585;
  --warning: #fca311;
  --info: #480ca8;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  --gradient-dark: linear-gradient(135deg, #1f0529 0%, #120118 100%);
  --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  --gradient-glow: radial-gradient(circle at center, rgba(114, 9, 183, 0.4) 0%, transparent 70%);
  
  /* Dimensions */
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  
  /* Effects */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.4);
  --shadow-neon: 0 0 15px rgba(247, 37, 133, 0.4);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --backdrop-blur: blur(12px);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--darker);
}

::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p { margin-bottom: 1rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(114, 9, 183, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 37, 133, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: white;
}

.btn-secondary:hover {
  background: rgba(247, 37, 133, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.2);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-icon {
  background: var(--surface);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-icon:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

/* Navigation */
.navbar {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(18, 1, 24, 0.8);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  background: rgba(10, 0, 14, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.nav-logo i {
  color: var(--primary);
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu-mobile-actions {
  display: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  color: var(--text-secondary);
}

.nav-link.active, .nav-link:hover {
  color: white;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(18, 1, 24, 0.7), rgba(18, 1, 24, 0.9)),
    url('assets/images/hero-bg.jpg') center/cover no-repeat;
  z-index: -1;
  animation: bgZoom 10s ease-in-out infinite alternate;
}

@keyframes bgZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  z-index: 1;
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -2px;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  border: var(--glass-border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: white;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* Sections Common */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Store Section */
.store-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  color: var(--text-secondary);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: var(--glass-border);
  transition: var(--transition);
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.product-card.filtering {
  animation: fadeOutDown 0.3s ease forwards;
}

@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(247, 37, 133, 0.3);
}

.product-image {
  height: 250px;
  background: var(--darker);
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  gap: 1rem;
}

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

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

/* About/Features Section - Bento Grid Redesign */
.about-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.bento-header {
  text-align: center;
  margin-bottom: 3rem;
}
.bento-header h2 {
  font-size: 3rem;
  background: linear-gradient(45deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.bento-header p {
  color: #aaa;
  font-size: 1.2rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 1.5rem;
}

.bento-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

/* Styling variants */
.main-feat h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.bento-icon-bg {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 10rem;
  opacity: 0.05;
  transform: rotate(15deg);
}

.bg-gradient {
  background: linear-gradient(145deg, var(--primary), #2a0a3d);
  border: none;
}
.bg-gradient h3 {
  font-size: 2rem;
}

.mini-viz-bars {
  display: flex;
  justify-content: center;
  gap: 5px;
  height: 60px;
  align-items: flex-end;
}
.mini-viz-bars span {
  width: 8px;
  background: white;
  border-radius: 4px;
  animation: bounce 1s infinite ease-in-out;
}
.mini-viz-bars span:nth-child(1) { animation-delay: 0s; height: 40%; }
.mini-viz-bars span:nth-child(2) { animation-delay: 0.2s; height: 80%; }
.mini-viz-bars span:nth-child(3) { animation-delay: 0.4s; height: 60%; }
.mini-viz-bars span:nth-child(4) { animation-delay: 0.1s; height: 90%; }
.mini-viz-bars span:nth-child(5) { animation-delay: 0.3s; height: 50%; }

@keyframes bounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.bento-content-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}
.icon-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.bento-icon-sm {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.text-sm {
  font-size: 0.9rem;
  color: #aaa;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--border-radius-lg);
  margin: 2rem 2rem 6rem;
}

.newsletter-content {
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  outline: none;
}

/* Footer */
.footer {
  background: var(--darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom i {
  color: var(--error);
}

/* Panels (Cart) */
.cart-panel {
  position: fixed;
  top: 0;
  right: -400px; /* Hidden by default */
  width: 350px;
  height: 100vh;
  background: rgba(18, 5, 24, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1500;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.panel-open {
  right: 0 !important;
}

.panel-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.panel-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* Empty Cart State */
.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.empty-cart-state i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.empty-cart-state p {
  margin-bottom: 1.5rem;
}

/* Cart Styles */
.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

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

.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.cart-item-price {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.remove-btn {
  color: var(--error);
  font-size: 0.8rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.remove-btn:hover {
  text-decoration: underline;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Notifications */
.notifications-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  min-width: 300px;
  animation: slideIn 0.3s ease-out forwards;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-success { border-color: var(--success); }
.notification-error { border-color: var(--error); }
.notification-info { border-color: var(--info); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { transform: translateX(100%); opacity: 0; }
}

/* Loading Splash Screen */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.splash-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.splash-logo {
  width: 120px;
  height: auto;
  animation: pulseLogo 1.2s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
  0% { transform: scale(1); filter: drop-shadow(0 0 15px var(--primary)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 35px var(--accent)); }
}

#load {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  user-select: none;
  cursor: default;
}

#load div {
  display: inline-block;
  opacity: 0;
  font-family: inherit;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 2px;
  animation: gatherLetter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#load div:nth-child(1) { color: hsl(336, 94%, 55%); text-shadow: 0 0 15px hsla(336, 94%, 55%, 0.7); animation-delay: 0.0s; }
#load div:nth-child(2) { color: hsl(320, 93%, 56%); text-shadow: 0 0 15px hsla(320, 93%, 56%, 0.7); animation-delay: 0.1s; }
#load div:nth-child(3) { color: hsl(304, 92%, 57%); text-shadow: 0 0 15px hsla(304, 92%, 57%, 0.7); animation-delay: 0.2s; }
#load div:nth-child(4) { color: hsl(288, 91%, 58%); text-shadow: 0 0 15px hsla(288, 91%, 58%, 0.7); animation-delay: 0.3s; }
#load div:nth-child(5) { color: hsl(272, 90%, 59%); text-shadow: 0 0 15px hsla(272, 90%, 59%, 0.7); animation-delay: 0.4s; width: 18px; }
#load div:nth-child(6) { color: hsl(256, 89%, 60%); text-shadow: 0 0 15px hsla(256, 89%, 60%, 0.7); animation-delay: 0.5s; }
#load div:nth-child(7) { color: hsl(240, 88%, 60%); text-shadow: 0 0 15px hsla(240, 88%, 60%, 0.7); animation-delay: 0.6s; }
#load div:nth-child(8) { color: hsl(224, 87%, 61%); text-shadow: 0 0 15px hsla(224, 87%, 61%, 0.7); animation-delay: 0.7s; }
#load div:nth-child(9) { color: hsl(208, 86%, 61%); text-shadow: 0 0 15px hsla(208, 86%, 61%, 0.7); animation-delay: 0.8s; }
#load div:nth-child(10) { color: hsl(193, 85%, 62%); text-shadow: 0 0 15px hsla(193, 85%, 62%, 0.7); animation-delay: 0.9s; }

@keyframes gatherLetter {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.5);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* =========================================
   Responsive Design & Mobile Layouts
   ========================================= */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

/* Responsive Bento Grid */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-large, .bento-tall, .bento-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-tall {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .navbar .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
  }
  
  .navbar .nav-menu.active {
    right: 0;
    z-index: 1000;
  }
  
  .nav-toggle {
    display: block;
    z-index: 1002;
  }
  
  /* Hamburger → X animation when menu is open */
  .nav-toggle.open i::before {
    content: '\eb99'; /* ri-close-line */
  }
  
  /* Mobile-only Sign In inside drawer */
  .nav-menu-mobile-actions {
    display: none;
  }
  .nav-menu.active .nav-menu-mobile-actions {
    display: block;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-signin-btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero adjustments */
  .hero-content {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  .hero-description {
    font-size: 1.05rem;
  }

  /* Stats: 3 columns grid layout for mobile */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem 0.8rem;
  }
  .stat-item {
    text-align: center;
  }
  .stat-number {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  /* Section headings */
  .section-header h2 { font-size: 2.2rem; }
  .bento-header h2 { font-size: 2.2rem; }

  /* Product grid — 2 cols on tablet */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Hero: tighter sizing on small phones */
  .hero-content {
    padding-top: 6rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-title {
    font-size: 1.85rem;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
  }
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .btn-large {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  /* Stats: tighten even more on small phones */
  .hero-stats {
    padding: 0.6rem;
  }
  .stat-number {
    font-size: 1.1rem;
  }
  .stat-label {
    font-size: 0.6rem;
  }

  /* Products: single column on phones */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .product-image {
    height: 200px;
  }
  .product-info {
    padding: 1rem;
  }
  .product-title {
    font-size: 1rem;
  }
  .product-price {
    font-size: 1.1rem;
  }

  /* Filter buttons: compact */
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Section headings */
  .section-header h2 { font-size: 1.8rem; }
  .bento-header h2 { font-size: 1.8rem; }

  /* Footer stacks to 1 column */
  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Checkout modal form stacks vertically */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* Quick view modal full screen */
  .modal-content {
    width: 95%;
    padding: 1.2rem;
  }
  .quick-view-grid {
    gap: 1rem;
  }
  .quick-view-info h2 {
    font-size: 1.4rem;
  }
  .qv-price {
    font-size: 1.4rem;
    margin: 0.8rem 0;
  }

  /* Cart panel full width */
  .cart-panel {
    width: 100%;
    right: -100%;
  }

  /* Container padding */
  .container {
    padding: 0 1rem;
  }
  section {
    padding: 4rem 0;
  }

  /* Make navbar items fit on tiny screens */
  .nav-logo span {
    display: none; /* Hide text, keep logo on tiny screens */
  }
  
  .btn-primary#login-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
}

/* =========================================
   Modals & Overlays
   ========================================= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.active {
  display: flex !important;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 2rem;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

/* Quick View Layout */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.quick-view-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.quick-view-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.qv-category {
  color: var(--secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.qv-price {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: bold;
  margin: 1.5rem 0;
}

.qv-description {
  color: #bbb;
  line-height: 1.6;
}

/* Checkout Modal */
.checkout-content {
  max-width: 500px;
}

.checkout-summary {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-row.total {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--secondary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

/* Success Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.success-content {
  text-align: center;
  animation: popIn 0.5s ease;
}

.checkmark-circle {
  width: 100px;
  height: 100px;
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin-bottom: 2rem;
}

.checkmark-circle .background {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #2a9d8f;
  position: absolute;
}

.checkmark-circle .checkmark {
  border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
  animation-delay: 300ms;
  animation-duration: 1s;
  animation-timing-function: ease;
  animation-name: checkmark;
  transform: scaleX(-1) rotate(135deg);
  animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
  opacity: 1;
  height: 50px;
  width: 25px;
  transform-origin: left top;
  border-right: 10px solid white;
  border-top: 10px solid white;
  content: '';
  left: 25px;
  top: 50px;
  position: absolute;
}

@keyframes checkmark {
  0% {
    height: 0;
    width: 0;
    opacity: 1;
  }
  20% {
    height: 0;
    width: 25px;
    opacity: 1;
  }
  40% {
    height: 50px;
    width: 25px;
    opacity: 1;
  }
  100% {
    height: 50px;
    width: 25px;
    opacity: 1;
  }
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
