@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #FF1A1A;
  --accent: #FF3333;
  --primary-dark: #cc0000;
  --foreground: #F2F4F7;
  --background: #050505;
  --card-bg: rgba(15, 15, 17, 0.6);
  --card-border: rgba(30, 30, 35, 0.8);
  --surface: #0a0a0c;
  --muted: #A1A1AA;
  --success: #10B981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Nav dropdown */
.nav-dropdown {
  opacity: 0;
  transform: scaleY(0.95) translateY(-8px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.nav-dropdown.active {
  opacity: 1;
  transform: scaleY(1) translateY(0);
  pointer-events: auto;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  background: var(--background);
  padding: 1.5rem;
  z-index: 40;
}

.mobile-menu.active {
  display: block;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.cart-drawer.active {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 200ms ease;
}

.cart-drawer.active .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 24rem;
  background: var(--card-bg);
  border-left: 1px solid var(--card-border);
  transform: translateX(100%);
  transition: transform 200ms ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active .cart-panel {
  transform: translateX(0);
}

/* Card hover glow - RED THEME */
.product-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  border-color: rgba(255, 26, 26, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 26, 26, 0.1), 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  transform: translateY(-4px);
}

.product-card img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
  transform: scale(1.08);
}

/* Buttons - RED THEME */
.btn-primary {
  background: var(--primary);
  color: var(--background);
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 20px rgba(255, 45, 45, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--foreground);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 45, 45, 0.5);
  background: var(--surface);
}

/* Gradient text - RED THEME */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature icon background - RED THEME */
.feature-icon {
  background: linear-gradient(135deg, rgba(255, 45, 45, 0.15) 0%, rgba(255, 82, 82, 0.05) 100%);
  border: 1px solid rgba(255, 45, 45, 0.2);
}

/* Status indicator */
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

.status-indicator.online {
  background-color: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.status-indicator.update {
  background-color: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
}

.status-indicator.offline {
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Animated gradient background */
.animated-gradient {
  background: linear-gradient(-45deg, #050505, #110505, #050505, #140303);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glow effects */
.glow-red {
  box-shadow: 0 0 30px rgba(255, 45, 45, 0.3);
}

.text-glow {
  text-shadow: 0 0 20px rgba(255, 45, 45, 0.5);
}

/* Hero Section Full Screen */
.hero-fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 80px;
  padding-bottom: 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 13, 16, 0.3) 0%, rgba(11, 13, 16, 0.7) 50%, rgba(11, 13, 16, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Hero animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Quantity stepper */
.qty-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--card-border);
  color: var(--foreground);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: var(--card-border);
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease;
}

.faq-item.open .faq-content {
  max-height: 200px;
}

.faq-item .faq-icon {
  transition: transform 200ms ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Status page styles */
.status-card {
  background: linear-gradient(135deg, rgba(255, 45, 45, 0.05) 0%, transparent 100%);
  border: 1px solid rgba(255, 45, 45, 0.1);
}

/* Footer Styles */
.footer-links a {
  position: relative;
  transition: color 0.2s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 45, 45, 0.5);
}

/* Responsive Typography */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero-title {
    font-size: 4rem !important;
  }
}

@media (min-width: 1025px) {
  .hero-title {
    font-size: 5rem !important;
  }
}

/* CTA Banner */
.cta-banner {
  background-size: cover;
  background-position: center;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 13, 16, 0.9) 0%, rgba(11, 13, 16, 0.4) 100%);
  border-radius: inherit;
}

/* Product card responsive */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Container responsive padding */
.container-responsive {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-responsive {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Aspect ratio utilities */
.aspect-hero {
  aspect-ratio: 16/9;
}

@media (max-width: 768px) {
  .aspect-hero {
    aspect-ratio: 4/3;
  }
}

/* Navbar height responsive */
.nav-height {
  height: 56px;
}

@media (min-width: 640px) {
  .nav-height {
    height: 64px;
  }
}
