/* Custom CSS Variables */
:root {
  /* Colors based on Leyard brand */
  --color-primary: #E60012;
  --dark-blue: #001E3C;
  --dark-blue-80: rgba(0, 30, 60, 0.8);
  --dark-blue-40: rgba(0, 30, 60, 0.4);
  --light-blue: #0066CC;
  --white-98: rgba(255, 255, 255, 0.98);
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  
  /* Transitions */
  --transition-fast: 200ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Section Spacing */
.section {
  padding: var(--section-padding);
}

/* Typography */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Navigation Styles */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.nav-transparent {
  background: transparent;
  box-shadow: none;
}

.nav-transparent.scrolled {
  background: var(--white-98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  border-radius: 4px;
}

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

.btn-primary:hover {
  background: rgb(var(--color-primary-rgb-700));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(var(--color-primary-rgb) / 0.3);
}

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

.btn-outline:hover {
  background: rgb(var(--color-primary-rgb));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(var(--color-primary-rgb) / 0.3);
}

/* Card Styles */
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card img {
  transition: transform var(--transition-slow);
}

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

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.hero-slide.active {
  opacity: 1;
}

/* Gradient Overlays */
.gradient-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.gradient-overlay-dark {
  background: linear-gradient(180deg, var(--dark-blue-80) 0%, var(--dark-blue-40) 100%);
}

/* Statistics Counter */
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

/* Footer */
footer {
  background: var(--dark-blue);
  color: white;
}

footer a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: white;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 999;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gray-300);
  border-top-color: rgb(var(--color-primary-rgb));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Utilities */
@media (max-width: 1024px) {
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
  
  .container {
    padding: 0 16px;
  }
}