/* ============================================
   KING TIRE TRADING - COMPREHENSIVE UI/UX
   ============================================ */

/* ============== ROOT VARIABLES ============== */
:root {
  /* Brand Identity: Racing Yellow */
  --primary: #F1C40F;
  --primary-hover: #f4d03f;
  --primary-dark: #b8860b;
  --primary-light: #f9e79f;
  --primary-glow: rgba(241, 196, 15, 0.4);

  /* Monochrome Palette (Light Mode) */
  --black: #000000;
  --black-soft: #121212;
  --white: #ffffff;
  --white-soft: #f8f9fa;

  /* Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --text-main: var(--gray-900);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);

  --bg-main: #FFFFFF;
  --bg-secondary: var(--gray-50);
  --bg-light: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-input: var(--gray-50);

  --border-subtle: var(--gray-200);
  --border-focus: var(--primary);

  /* Status Colors */
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;

  /* UI Properties */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px var(--primary-glow);

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.8s ease-in-out;
  --transition-premium: cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing Standards */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 30px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-main);
  transition: all 0.4s var(--transition-premium);
}

/* Dark Mode Overhaul */
body.dark-mode {
  /* Carbon / Asphalt Tones */
  --bg-main: #080a0c;
  /* Deepest Background */
  --bg-secondary: #121212;
  /* Slightly lighter sections */
  --bg-card: #111111;
  /* Card bg */
  --bg-input: #1a1a1a;

  --text-main: #ffffff;
  --text-muted: #8B949E;
  --text-light: #6E7681;

  --border-subtle: #30363D;
  --border-focus: var(--primary);

  color: var(--text-main);
  background-color: var(--bg-main);
}

/* Dark Mode Overrides */
body.dark-mode .navbar {
  background: rgba(15, 17, 21, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 214, 10, 0.15) !important;
}

body.dark-mode .card,
body.dark-mode .premium-card,
body.dark-mode .modal-content,
body.dark-mode .bg-white {
  background-color: var(--bg-card) !important;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

body.dark-mode .card:hover {
  border-color: rgba(255, 214, 10, 0.3);
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .input-group .form-control,
body.dark-mode .form-control-premium {
  background-color: var(--bg-input);
  border-color: var(--border-subtle);
  color: var(--text-main);
  box-shadow: none;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ========================================
   BUTTONS & ACTIONS
   ======================================== */

.btn {
  border-radius: var(--radius-md);
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--transition-premium);
  text-transform: uppercase;
  font-size: 14px;
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: var(--black);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  color: var(--black);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--black);
}

.btn-lg {
  padding: 18px 42px;
  font-size: 16px;
}

body.dark-mode .btn-ghost:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #E63946;
}

body.dark-mode .table {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .table thead th {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  transition: color var(--transition-base);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #ffffff;
}

h1 {
  font-size: 3rem;
  letter-spacing: 0.5px;
  font-weight: 800;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: 0.3px;
  font-weight: 700;
}

h3 {
  font-size: 1.8rem;
  font-weight: 700;
}

h4 {
  font-size: 1.4rem;
  font-weight: 700;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-body);
  line-height: 1.7;
}

body.dark-mode p {
  color: #ffffff;
}

body.dark-mode .text-light {
  color: #8b95a8 !important;
}

body.dark-mode .text-muted {
  color: #8b95a8 !important;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  display: inline-block;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #111111;
  border: 2px solid var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  background-color: transparent;
}

.btn-outline-primary:hover:not(:disabled) {
  background-color: var(--primary);
  color: #111111;
  border-color: var(--primary);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  border: 2px solid var(--secondary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--secondary-light);
  border-color: var(--secondary-light);
}

.btn-success {
  background-color: var(--success);
  color: white;
  border: 2px solid var(--success);
}

.btn-success:hover:not(:disabled) {
  background-color: #218838;
  border-color: #218838;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
  border: 2px solid var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background-color: #c82333;
  border-color: #c82333;
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border: 2px solid #d0d0d0;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
  display: block;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  transition: all var(--transition-base);
  box-shadow: 0 0 0 transparent;
  padding: 12px 0;
}

.navbar.scrolled {
  background-color: #111111;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.navbar.scrolled .nav-link {
  color: #ffffff !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary) !important;
}

.navbar-nav .nav-link {
  color: var(--gray-900) !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  /* Dark Gold for visibility */
}

.navbar.scrolled .dark-mode-toggle {
  color: #ffffff;
}

/* Dark Mode Overrides */
body.dark-mode .navbar {
  background: rgba(15, 17, 21, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 214, 10, 0.15) !important;
}

body.dark-mode .card,
body.dark-mode .premium-card,
body.dark-mode .modal-content,
body.dark-mode .bg-white {
  background-color: var(--bg-card) !important;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

body.dark-mode .card:hover {
  border-color: rgba(255, 214, 10, 0.3);
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .input-group .form-control,
body.dark-mode .form-control-premium {
  background-color: var(--bg-input);
  border-color: var(--border-subtle);
  color: var(--text-main);
  box-shadow: none;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

body.dark-mode .brand-card:hover .brand-badges .badge {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border-left: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 100px;
  height: 100px;
  background: rgba(230, 57, 70, 0.05);
  border-radius: 50%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
}

.testimonial-stars i {
  color: #ffc107;
  font-size: 14px;
}

.testimonial-quote-icon {
  font-size: 28px;
  color: rgba(230, 57, 70, 0.2);
  line-height: 1;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 15px;
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Dark Mode - Testimonials */
body.dark-mode .testimonial-card {
  background-color: #1a2332;
  border-left-color: var(--primary);
}

body.dark-mode .testimonial-card::before {
  background: rgba(230, 57, 70, 0.1);
}

body.dark-mode .testimonial-text {
  color: #ffffff;
}

body.dark-mode .testimonial-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .testimonial-author {
  color: #ffffff;
}

body.dark-mode .testimonial-role {
  color: #8b95a8;
}

/* ========================================
   CAROUSEL / SLIDER
   ======================================== */

.carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-inner {
  border-radius: var(--radius-lg);
}

.carousel-item {
  transition: opacity 0.6s ease-in-out;
}

.carousel-indicators [data-bs-target] {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background-color: rgba(230, 57, 70, 0.3);
}

.carousel-indicators [data-bs-target].active {
  background-color: var(--primary);
}

/* ========================================
   FORMS
   ======================================== */

.form-control,
.form-select {
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  padding: 12px 16px;
  font-family: 'Roboto', sans-serif;
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25);
  outline: none;
}

.form-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

body.dark-mode .form-label {
  color: var(--dark-text);
}

.form-check-input {
  border-radius: 4px;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ========================================
   MODALS
   ======================================== */

.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
}

body.dark-mode .modal-content {
  background-color: var(--dark-card);
}

.modal-header {
  border-bottom: 2px solid var(--border-color);
}

body.dark-mode .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.btn-close {
  filter: brightness(0) saturate(100%);
}

body.dark-mode .btn-close {
  filter: brightness(1);
}

/* ========================================
   TABLES
   ======================================== */

.table {
  border-collapse: collapse;
}

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background-color: rgba(230, 57, 70, 0.05);
}

body.dark-mode .table tbody tr:hover {
  background-color: rgba(230, 57, 70, 0.2);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
}

/* ========================================
   MODERN TRENDING ANIMATIONS
   ======================================== */

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes morph {
  0%, 100% {
    border-radius: 50% 50% 50% 50%;
    transform: rotate(0deg);
  }
  25% {
    border-radius: 30% 70% 70% 30%;
    transform: rotate(90deg);
  }
  50% {
    border-radius: 70% 30% 30% 70%;
    transform: rotate(180deg);
  }
  75% {
    border-radius: 30% 70% 30% 70%;
    transform: rotate(270deg);
  }
}

@keyframes liquidBounce {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(5deg);
  }
  50% {
    transform: scale(1.05) rotate(-5deg);
  }
  75% {
    transform: scale(1.02) rotate(3deg);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes elasticScale {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.15);
  }
  40% {
    transform: scale(0.95);
  }
  60% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes wave {
  0%, 60%, 100% {
    transform: initial;
  }
  30% {
    transform: translateY(-15px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.7;
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.8), 0 0 30px rgba(241, 196, 15, 0.6);
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: var(--primary);
    box-shadow: 0 0 5px var(--primary-glow);
  }
  50% {
    border-color: var(--primary-hover);
    box-shadow: 0 0 20px var(--primary-glow), 0 0 30px var(--primary-glow);
  }
}

@keyframes magneticPull {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(5px, -5px) rotate(1deg);
  }
  50% {
    transform: translate(-3px, 3px) rotate(-1deg);
  }
  75% {
    transform: translate(2px, -2px) rotate(0.5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes liquidMorph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

@keyframes staggeredFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes pageTransition {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fadeIn {
  animation: fadeIn var(--transition-base);
}

.fadeInUp {
  animation: fadeInUp var(--transition-slow);
}

.slideInUp {
  animation: slideInUp var(--transition-slow);
}

.slideInLeft {
  animation: slideInLeft var(--transition-slow);
}

/* Modern Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.float {
  animation: float 3s ease-in-out infinite;
}

.morph {
  animation: morph 8s ease-in-out infinite;
}

.liquid-bounce {
  animation: liquidBounce 2s ease-in-out infinite;
}

.gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.elastic-scale {
  animation: elasticScale 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.slide-in-bottom {
  animation: slideInBottom 0.8s ease-out;
}

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

.rotate-in {
  animation: rotateIn 0.8s ease-out;
}

.wave {
  animation: wave 2s ease-in-out infinite;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

.particle-float {
  animation: particleFloat 4s ease-in-out infinite;
}

.text-glow {
  animation: textGlow 2s ease-in-out infinite;
}

.border-glow {
  animation: borderGlow 2s ease-in-out infinite;
}

.magnetic-pull {
  transition: transform 0.3s ease;
}

.magnetic-pull:hover {
  animation: magneticPull 0.6s ease-in-out;
}

.liquid-morph {
  animation: liquidMorph 6s ease-in-out infinite;
}

.staggered-fade {
  animation: staggeredFade 0.8s ease-out;
}

.typing-effect {
  overflow: hidden;
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

.page-transition {
  animation: pageTransition 0.8s ease-out;
}

/* ========================================
   SCROLL-TRIGGERED ANIMATIONS
   ======================================== */

.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-fade-in.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.scroll-slide-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.scroll-slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease-out;
}

.scroll-scale-in.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Out animation classes */
.animate-out {
  opacity: 0 !important;
}

.fade-in-up.animate-out,
.fade-in-down.animate-out,
.fade-in-left.animate-out,
.fade-in-right.animate-out,
.slide-in-up.animate-out,
.slide-in-down.animate-out,
.slide-in-left.animate-out,
.slide-in-right.animate-out,
.scale-in.animate-out,
.rotate-in.animate-out,
.bounce-in.animate-out,
.staggered-fade.animate-out,
.liquid-morph.animate-out,
.particle-float.animate-out,
.wave.animate-out,
.scroll-fade-in.animate-out,
.scroll-slide-up.animate-out,
.scroll-slide-left.animate-out,
.scroll-slide-right.animate-out,
.scroll-scale-in.animate-out {
  opacity: 0 !important;
}

/* ========================================
   ENHANCED HOVER EFFECTS
   ======================================== */

.magnetic-btn {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.magnetic-btn:hover {
  transform: scale(1.05);
}

/* Particle effect for backgrounds */
.particle-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  animation: particleFloat 8s ease-in-out infinite;
  pointer-events: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary);
}

.text-light {
  color: var(--text-light);
}

.bg-primary {
  background-color: var(--primary);
  color: white;
}

.bg-light {
  background-color: var(--accent);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.transition-all {
  transition: all var(--transition-base);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero .btn {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FOOTER DARK MODE
   ======================================== */

body.dark-mode .bg-secondary {
  background-color: #0f1419 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode footer {
  background-color: #0f1419;
}

body.dark-mode footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

body.dark-mode footer a:hover {
  color: var(--primary);
}

body.dark-mode footer h5,
body.dark-mode footer h6 {
  color: #ffffff;
}

body.dark-mode .footer-link {
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .footer-link:hover {
  color: var(--primary);
}

/* ========================================
   LIGHT MODE OVERRIDES FOR DARK MODE
   ======================================== */

body.dark-mode .bg-white {
  background-color: #1a2332 !important;
  color: #ffffff;
}

body.dark-mode .bg-light {
  background-color: #141a24 !important;
}

body.dark-mode .border {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .form-label {
  color: #ffffff;
}

body.dark-mode .form-check-label {
  color: #ffffff;
}

body.dark-mode .form-select {
  background-color: #1a2332;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   BADGE & RATING STYLES
   ======================================== */

.badge {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-danger {
  background-color: var(--primary);
  color: #111111;
}

.badge-success {
  background-color: #28a745;
  color: white;
}

body.dark-mode .badge {
  filter: brightness(1.1);
}

.rating {
  color: #ffc107;
  font-size: 14px;
}

body.dark-mode .rating {
  color: #F1C40F;
}

/* ========================================
   ADDITIONAL DARK MODE FIXES
   ======================================== */

body.dark-mode .breadcrumb {
  background-color: transparent;
}

body.dark-mode .breadcrumb-item.active {
  color: #ffffff;
}

body.dark-mode .list-group-item {
  background-color: #1a2332;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.dark-mode .list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .pagination .page-link {
  background-color: #1a2332;
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.dark-mode .pagination .page-link:hover {
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

body.dark-mode .pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #111111;
}

/* ========================================
   SCROLLBAR STYLES
   ======================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #0f1419;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #444;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* ========================================
   SECTION IMPROVEMENTS
   ======================================== */

.section-title {
  animation: fadeInUp 0.8s ease-out;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: var(--spacing-sm);
  font-weight: 500;
}

body.dark-mode .section-subtitle {
  color: #8b95a8;
}

.alt-bg {
  background-color: var(--bg-light);
  transition: background-color var(--transition-base);
}

body.dark-mode .alt-bg {
  background-color: #141a24;
}

/* Grid systems for responsive layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 50px 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.4s var(--transition-premium);
  text-align: center;
  border: 1px solid var(--border-subtle);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-card-top {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.feature-icon {
  width: 75px;
  height: 75px;
  background: var(--gray-100);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 32px;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--black);
  transform: rotate(10deg);
}

.feature-card h4 {
  font-weight: 800;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--black);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.feature-highlight {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 12px;
  text-transform: uppercase;
  margin-top: auto;
  letter-spacing: 1px;
}

/* Dark Mode Feature Cards */
body.dark-mode .feature-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body.dark-mode .feature-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

body.dark-mode .feature-card h4 {
  color: var(--text-main);
}

body.dark-mode .feature-card p {
  color: var(--text-muted);
}

body.dark-mode .feature-card .feature-icon {
  background: var(--bg-input);
  color: var(--text-main);
}

body.dark-mode .feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--black);
}

body.dark-mode .feature-highlight {
  color: var(--primary);
}

/* Premium Feature Variant */
.premium-feature {
  background: var(--black-soft) !important;
  color: var(--white) !important;
  position: relative;
  overflow: hidden;
}

.premium-feature::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.premium-feature h4 {
  color: var(--white);
}

.premium-feature .feature-icon {
  background: var(--primary);
  color: var(--black);
}

.feature-badge {
  background: var(--primary);
  color: var(--black);
  font-size: 10px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-left: 12px;
  align-self: center;
  box-shadow: 0 4px 10px var(--primary-glow);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Alert improvements for dark mode */
body.dark-mode .alert-success {
  background-color: rgba(40, 167, 69, 0.15);
  border-color: rgba(40, 167, 69, 0.3);
  color: #10c956;
}

body.dark-mode .alert-danger {
  background-color: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.3);
  color: #ff6b7a;
}

body.dark-mode .alert-warning {
  background-color: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

body.dark-mode .alert-info {
  background-color: rgba(23, 162, 184, 0.15);
  border-color: rgba(23, 162, 184, 0.3);
  color: #17a2b8;
}

/* Dropdown menu dark mode */
body.dark-mode .dropdown-menu {
  background-color: #1a2332;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-item {
  color: #ffffff;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--primary);
}

body.dark-mode .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Link underline animation */
body.dark-mode a {
  color: var(--primary);
}

body.dark-mode a:hover {
  color: #ffffff;


}

/* Gray Text Utilities & Dark Mode Overrides */
.text-gray-100 {
  color: #f3f4f6;
}

.text-gray-200 {
  color: #e5e7eb;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-100 {
  color: #111827;
}

body.dark-mode .text-gray-100,
body.dark-mode .text-gray-200,
body.dark-mode .text-gray-300,
body.dark-mode .text-gray-400,
body.dark-mode .text-gray-500,
body.dark-mode .text-gray-600,
body.dark-mode .text-gray-700,
body.dark-mode .text-gray-800,
body.dark-mode .text-gray-900,
body.dark-mode .text-muted,
body.dark-mode .text-light,
body.dark-mode .form-label,
body.dark-mode .form-check-label,
body.dark-mode .section-subtitle,
body.dark-mode .product-specs,
body.dark-mode .text-body {
  color: #ffffff !important;
}

/* Global Hover & Button Text Color for Dark Mode */
body.dark-mode a,
body.dark-mode .nav-link,
body.dark-mode .dropdown-item,
body.dark-mode .btn,
body.dark-mode button {
  color: #ffffff !important;
}

body.dark-mode a:hover,
body.dark-mode .nav-link:hover,
body.dark-mode .dropdown-item:hover,
body.dark-mode .btn:hover,
body.dark-mode button:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Ensure buttons text is white unless it's a primary button (yellow) which needs dark text for contrast */
body.dark-mode .btn-primary,
body.dark-mode .btn-primary:hover {
  color: #111111 !important;
}

body.dark-mode .btn-outline-primary:hover {
  color: #111111 !important;
}

body.dark-mode .btn-success,
body.dark-mode .btn-danger,
body.dark-mode .btn-secondary,
body.dark-mode .btn-info,
body.dark-mode .btn-warning {
  color: #ffffff !important;
}

/* ========================================
   BRAND CARDS
   ======================================== */

.brand-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s var(--transition-premium);
  border: 1px solid var(--border-subtle);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.brand-card-header {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: white;
  position: relative;
}

.brand-gold {
  background: linear-gradient(135deg, #F1C40F 0%, #B8860B 100%);
}

.brand-dark {
  background: linear-gradient(135deg, #333333 0%, #000000 100%);
}

.brand-gold-alt {
  background: linear-gradient(135deg, #e6b800 0%, #997a00 100%);
}

.brand-card-body {
  padding: 35px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.brand-card-body h4 {
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: -0.5px;
}

.brand-card-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

.brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  margin-top: auto;
}

.brand-badges .badge {
  background: var(--gray-100);
  color: var(--gray-800);
  font-weight: 700;
  font-size: 11px;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: 2px solid var(--black);
  color: var(--black);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.brand-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  background: var(--black-soft);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-section .btn-light {
  background: var(--primary) !important;
  border: none !important;
  color: var(--black) !important;
  font-weight: 800;
  box-shadow: 0 10px 25px var(--primary-glow);
  padding: 20px 45px;
  border-radius: var(--radius-md);
}

.cta-section .btn-light:hover {
  background: var(--primary-hover) !important;
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 35px var(--primary-glow);
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.testimonial-card {
  background: var(--white);
  padding: 45px;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--transition-premium);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.testimonial-stars {
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 2px;
}

.testimonial-quote-icon {
  color: var(--gray-200);
  font-size: 32px;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-800);
  margin-bottom: 35px;
  position: relative;
  font-weight: 500;
}

.testimonial-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-avatar {
  width: 55px;
  height: 55px;
  background: var(--primary);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.testimonial-author {
  font-weight: 800;
  color: var(--black);
  font-size: 18px;
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

body.dark-mode .brand-card,
body.dark-mode .testimonial-card {
  background: #12161d;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .brand-card-body h4,
body.dark-mode .testimonial-author {
  color: var(--white);
}

body.dark-mode .brand-badges .badge {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .brand-btn {
  border-color: var(--primary);
  color: var(--primary);
}

body.dark-mode .brand-btn:hover {
  background: var(--primary);
  color: var(--black);
}

body.dark-mode .testimonial-text {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .testimonial-quote-icon {
  color: rgba(255, 255, 255, 0.1);
}

/* Grid 4 Override for Professional Layout */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
}


/* Info Cards */
.info-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-card-icon {
  width: 50px;
  height: 50px;
  background: var(--gray-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  flex-shrink: 0;
}

.info-card h5 {
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.info-card .highlight {
  font-weight: 700;
  color: var(--black);
  margin-bottom: 5px;
}

.info-card .detail {
  color: var(--text-muted);
  margin-bottom: 5px;
}

.info-card .sub-detail {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.8;
}

.info-card .contact-link {
  display: block;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 5px;
}

body.dark-mode .info-card {
  background: #12161d;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .info-card h5,
body.dark-mode .info-card .highlight {
  color: var(--white);
}

body.dark-mode .info-card-icon {
  background: rgba(255, 255, 255, 0.05);
}


/* Products Page - Filter Panel */
.filter-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 25px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 100px;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-header h5 {
  margin: 0;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
  color: var(--black);
  text-transform: uppercase;
}

.filter-options {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom Scrollbar for filters */
.filter-options::-webkit-scrollbar {
  width: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 4px;
}

.custom-checkbox .form-check-input {
  border-color: var(--gray-300);
  border-radius: 4px;
  cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox .form-check-label {
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}

/* Product Toolbar */
.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 15px 25px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.section-title-sm {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

/* Premium Pagination */
.premium-pagination .page-link {
  border: none;
  color: var(--black);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.premium-pagination .page-item.active .page-link {
  background: var(--primary);
  color: var(--black);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.premium-pagination .page-link:hover {
  background: var(--gray-100);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Dark Mode Overrides for Products Page */
body.dark-mode .filter-panel,
body.dark-mode .product-toolbar {
  background: #12161d;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .filter-label,
body.dark-mode .section-title-sm {
  color: var(--white);
}

body.dark-mode .custom-checkbox .form-check-label {
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .premium-pagination .page-link {
  background: transparent;
  color: var(--white);
}

body.dark-mode .premium-pagination .page-item.active .page-link {
  background: var(--primary);
  color: var(--black);
}


/* Product Detail Page */
.product-detail-gallery {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-subtle);
}

.main-image-container {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.thumbnail-btn {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 5px;
  background: var(--white);
  transition: all 0.2s;
}

.thumbnail-btn:hover,
.thumbnail-btn.active {
  border-color: var(--primary);
}

.product-title-lg {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.price-display {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.qty-input {
  width: 80px;
  height: 50px;
  text-align: center;
  font-weight: 700;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--white);
}

.spec-card {
  background: #1a1a1a;
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-card .table {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.spec-card th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--primary);
  padding: 15px;
}

.spec-card td {
  border: none;
  padding: 15px;
  vertical-align: middle;
  background: transparent !important;
  color: white !important;
}

/* Dark Mode Overrides for Product Detail */
body.dark-mode .product-detail-gallery {
  background: #12161d;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .thumbnail-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .qty-input {
  background: #12161d;
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

body.dark-mode .product-title-lg {
  color: white;
}


/* Standard Page Styles (About, Contact, etc.) */
.page-hero {
  text-align: center;
  padding: 80px 0;
  background: var(--white);
  margin-bottom: 60px;
}

.page-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: var(--black);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 80px;
}

.value-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  height: 100%;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.value-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 25px;
}

.bg-soft {
  background-color: var(--gray-100);
}

.check-list-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.check-icon {
  color: var(--primary);
  font-size: 20px;
  margin-top: 3px;
}

/* Contact Box Styling on Other Pages */
.contact-cta-box {
  background: linear-gradient(135deg, #111111 0%, #2d2d2d 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-info-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--border-subtle);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.contact-icon-circle {
  width: 60px;
  height: 60px;
  background: var(--gray-100);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

/* Dark Mode for Pages */
body.dark-mode .page-hero,
body.dark-mode .value-card,
body.dark-mode .contact-info-card {
  background: #12161d;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .page-title {
  color: var(--white);
}

body.dark-mode .bg-soft {
  background-color: #1a1e26;
}

body.dark-mode .contact-icon-circle {
  background: rgba(255, 255, 255, 0.05);
}


/* Premium Cards & Containers */
.premium-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  padding: 30px;
  margin-bottom: 25px;
}

.card-header-styled {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.form-control-premium {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 15px;
  background: var(--gray-100);
  transition: all 0.3s;
}

.form-control-premium:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Cart & Checkout Specific */
.cart-item {
  transition: background 0.2s;
}

.cart-item:hover {
  background: rgba(0, 0, 0, 0.01);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--border-subtle);
}

.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.step-active {
  color: var(--primary);
  font-weight: 700;
}

/* Dark Mode for Premium Cards */
body.dark-mode .premium-card {
  background: #12161d;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .card-header-styled {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .form-control-premium {
  background: #1a1e26;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

body.dark-mode .form-control-premium:focus {
  border-color: var(--primary);
  background: #12161d;
}

body.dark-mode .summary-row.total {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}



/* Utilities */
.min-h-500 {
  min-height: 500px;
}

.transition-hover {
  transition: all 0.3s ease;
}

.transition-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cursor-pointer {
  cursor: pointer;
}



/* Added Utilities for New Palette */
.table {
  color: var(--text-main);
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-light {
  background-color: var(--bg-secondary) !important;
}

.border {
  border-color: var(--border-subtle) !important;
}



/* Fix Navbar Text Contrast */
.navbar-light .navbar-nav .nav-link {
  color: var(--gray-800);
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--primary-dark);
}

.navbar-brand {
  color: #000000 !important;
}

body.dark-mode .navbar-brand {
  color: var(--primary) !important;
}



/* Fix Navbar Brand Color */
.navbar-brand {
  color: #111111 !important;
}

/* Dark Mode Navbar Brand Fix */
body.dark-mode .navbar-brand {
  color: var(--primary) !important;
}

/* Reverting Navbar Text to previous state */
.navbar-nav .nav-link {
  color: var(--gray-900) !important;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}


/* ========================================
   PRODUCT CARDS (Hot Selling & Responsive)
   ======================================== */
.product-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.4s var(--transition-premium);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05); /* Enhanced shadow */
  backdrop-filter: blur(10px);
  animation: cardFadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover {
  transform: translateY(-15px) scale(1.03); /* Increased lift and scale */
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2), 0 0 40px var(--primary-glow); /* Enhanced shadow and glow */
  border-color: var(--primary);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  position: relative;
  width: 100%;
  padding-top: 75%; /* Changed from 100% to 75% for more compact 4:3 ratio */
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.5s var(--transition-premium);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image img {
  transform: translate(-50%, -50%) scale(1.1) rotate(1deg); /* Reduced scale and rotation for subtlety */
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15)); /* Reduced shadow */
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--black);
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.product-badge.sale {
  background: linear-gradient(135deg, #FF4D4D 0%, #E63946 100%);
  color: white;
  animation: pulse 2s infinite;
}

.product-info {
  padding: 16px; /* Reduced from 24px */
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
}

.product-brand {
  font-size: 11px; /* Reduced from 12px */
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 6px; /* Reduced from 8px */
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-brand::before {
  content: '★';
  color: var(--primary);
  font-size: 14px;
}

.product-title {
  font-size: 16px; /* Reduced from 18px */
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px; /* Reduced from 12px */
  line-height: 1.3; /* Reduced from 1.4 */
  height: 38px; /* Reduced from 50px for 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: var(--primary-dark);
}

.product-specs {
  font-size: 12px; /* Reduced from 13px */
  color: var(--text-muted);
  margin-bottom: 10px; /* Reduced from 16px */
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  padding: 6px 10px; /* Reduced from 8px 14px */
  border-radius: 6px; /* Reduced from 8px */
  display: inline-block;
  align-self: flex-start;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced from 8px */
  margin-bottom: 10px; /* Reduced from 16px */
  font-size: 13px; /* Reduced from 14px */
}

.product-rating .stars {
  color: #F1C40F;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-rating .count {
  color: var(--text-muted);
  font-weight: 500;
}

.product-price-container {
  margin-top: auto;
  margin-bottom: 12px; /* Reduced from 20px */
  padding: 12px; /* Reduced from 16px */
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, rgba(241, 196, 15, 0.05) 100%);
  border-radius: 10px; /* Reduced from 12px */
  border: 1px solid rgba(241, 196, 15, 0.2);
}

.product-price-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.product-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.product-price::before {
  content: '$';
  font-size: 18px;
  font-weight: 600;
}

.product-card .btn-add-cart {
  width: 100%;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
  color: var(--white);
  border: 2px solid var(--black);
  padding: 10px; /* Reduced from 14px */
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px; /* Reduced from 14px */
  transition: all 0.4s var(--transition-premium);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Reduced from 10px */
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card .btn-add-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.product-card .btn-add-cart:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--primary-glow);
  border-color: var(--primary);
}

.product-card .btn-add-cart:hover::before {
  left: 100%;
}

/* Dark Mode Overrides for Product Cards */
body.dark-mode .product-card {
  background: linear-gradient(135deg, #12161d 0%, #1a1e26 100%);
  border-color: rgba(255, 215, 0, 0.2);
}

body.dark-mode .product-card::before {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

body.dark-mode .product-image {
  background: linear-gradient(135deg, #1a1e26 0%, #202530 100%);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .product-title {
  color: var(--white);
}

body.dark-mode .product-specs {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .product-price-container {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
  border-color: rgba(255, 215, 0, 0.3);
}

body.dark-mode .product-card .btn-add-cart {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--black);
  border-color: var(--primary);
}

body.dark-mode .product-card .btn-add-cart:hover {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
  color: var(--black);
}

/* ========================================
   RESPONSIVE PRODUCT CARDS
   ======================================== */
@media (max-width: 768px) {
  .product-card {
    margin-bottom: 20px;
  }
  
  .product-info {
    padding: 20px;
  }
  
  .product-title {
    font-size: 16px;
    height: 44px;
  }
  
  .product-price {
    font-size: 22px;
  }
  
  .product-price::before {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .product-info {
    padding: 16px;
  }
  
  .product-title {
    font-size: 15px;
    height: 40px;
  }
  
  .product-price-container {
    padding: 12px;
  }
  
  .product-price {
    font-size: 20px;
  }
}


/* ========================================
   HERO SECTION (Responsive & Premium)
   ======================================== */
.hero {
  position: relative;
  height: 85vh;
  /* Occupy most of the screen */
  min-height: 600px;
  width: 100%;
  background: url('../images/hero-bg.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  margin-bottom: 40px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 20px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--gray-200);
  margin-bottom: 40px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  opacity: 0.8;
  color: var(--white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.scroll-indicator:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--black);
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

/* Responsive Adjustments for Hero */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .hero {
    height: auto;
    min-height: 550px;
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    padding: 60px 20px;
    background-position: center bottom;
    /* Adjust bg focus for mobile */
  }

  .hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding: 0 10px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .scroll-indicator {
    bottom: 20px;
    width: 30px;
    height: 30px;
  }

  .scroll-indicator svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
}

/* Dark Mode Overrides for Hero */
body.dark-mode .hero::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 100%);
}


/* ========================================
   BRAND CARDS (Responsive & Touch Friendly)
   ======================================== */
@media (max-width: 992px) {
  .brand-card-body {
    padding: var(--spacing-lg);
    /* Standardized */
  }

  .brand-card-header {
    height: 120px;
    font-size: 48px;
  }

  .brand-card-body h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .brand-grid {
    gap: var(--spacing-md);
    /* Standardized mobile gap */
  }

  .brand-card {
    margin-bottom: 0;
  }

  .brand-card-header {
    height: 100px;
    font-size: 40px;
  }

  .brand-card-body {
    padding: var(--spacing-md);
    /* Standardized mobile padding */
  }

  .brand-card-body h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
  }

  .brand-card-body p {
    font-size: 14px;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
  }

  .brand-badges {
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .brand-badges .badge {
    font-size: 10px;
    padding: 6px 12px;
  }

  .brand-btn {
    padding: 12px;
    font-size: 12px;
  }
}

/* Ensure single column on very small screens if grid doesn't catch it */
@media (max-width: 480px) {
  .brand-card-header {
    height: 90px;
    font-size: 36px;
  }
}