/* The Million Deals - Modern Futuristic CSS Framework 2025 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - 2025 Light & Bright Color Palette */
:root {
  /* Primary Gradient Colors - Light Blue to Pink */
  --primary-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #ffeaa7 100%);
  --primary-blue: #74b9ff;
  --primary-mid: #fd79a8;
  --primary-light: #fdcb6e;
  
  /* Secondary & Accent Colors */
  --secondary-orange: #fab1a0;
  --accent-green: #00b894;
  --background-white: #FFFFFF;
  --background-gray: #f1f2f6;
  --text-dark: #2d3436;
  --text-gray: #636e72;
  --text-light: #b2bec3;
  
  /* Additional Colors */
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --info: #74b9ff;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 15px;
  
  /* Border Radius */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  
  /* Shadows - Light and airy */
  --shadow-sm: 0 2px 4px rgba(116, 185, 255, 0.08);
  --shadow-md: 0 4px 12px rgba(116, 185, 255, 0.12);
  --shadow-lg: 0 8px 25px rgba(116, 185, 255, 0.15);
  --shadow-xl: 0 20px 40px rgba(116, 185, 255, 0.18);
  
  /* Additional Light Gradient Variations */
  --secondary-gradient: linear-gradient(135deg, #fab1a0 0%, #fdcb6e 100%);
  --accent-gradient: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
  --light-gradient: linear-gradient(135deg, #ddd6fe 0%, #e0e7ff 100%);
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
  overflow-x: hidden;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2.75rem;
  font-weight: 800;
}

h3 {
  font-size: 2.25rem;
  font-weight: 700;
}

h4 {
  font-size: 1.875rem;
  font-weight: 600;
}

h5 {
  font-size: 1.5rem;
  font-weight: 600;
}

h6 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-mid);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::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: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background: var(--secondary-orange);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: #E8441F;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-success {
  background: var(--accent-green);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-success:hover {
  background: #00A844;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
  border-radius: var(--border-radius-lg);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* Cards */
.card {
  background: var(--background-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: none;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  background: var(--background-gray);
  border-bottom: 1px solid #E9ECEF;
  padding: 1.5rem;
  font-weight: 600;
}

.card-body {
  padding: 2rem;
}

.card-footer {
  background: var(--background-gray);
  border-top: 1px solid #E9ECEF;
  padding: 1.5rem;
}

/* Deal Cards */
.deal-card {
  position: relative;
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid #E9ECEF;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.deal-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary-orange);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.deal-badge.exclusive {
  background: var(--accent-green);
}

.deal-badge.limited {
  background: var(--danger);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-weight: 900;
  font-size: 1.75rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  background: var(--background-gray);
  color: var(--primary-blue);
}

.navbar-nav .nav-link.active {
  background: var(--primary-gradient);
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Utilities */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback color for better compatibility */
  color: var(--primary-blue);
}

/* Ensure text-gradient works properly on different backgrounds */
.text-gradient:not([style*="background"]) {
  color: var(--primary-blue) !important;
}

/* Fix for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .text-gradient {
    color: var(--primary-blue) !important;
    background: none !important;
  }
}

/* Comprehensive Text Contrast Fixes */
/* Ensure proper contrast on dark backgrounds */
.bg-dark, .bg-dark *, 
[class*="bg-dark"], [class*="bg-dark"] *,
.navbar-dark, .navbar-dark *,
footer.bg-dark, footer.bg-dark * {
  color: #ffffff !important;
}

.bg-dark .text-muted,
[class*="bg-dark"] .text-muted,
footer.bg-dark .text-muted {
  color: #adb5bd !important;
}

.bg-dark .text-gradient,
[class*="bg-dark"] .text-gradient,
footer.bg-dark .text-gradient {
  color: #fdcb6e !important;
}

/* Ensure proper contrast on light backgrounds */
.bg-light, .bg-light *,
.bg-white, .bg-white *,
[class*="bg-light"], [class*="bg-light"] *,
[class*="bg-white"], [class*="bg-white"] *,
body, .container, .container-fluid {
  color: var(--text-dark) !important;
}

.bg-light .text-muted,
.bg-white .text-muted,
[class*="bg-light"] .text-muted,
[class*="bg-white"] .text-muted,
body .text-muted {
  color: var(--text-gray) !important;
}

/* Force proper text colors for common elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark) !important;
}

p, span, div, li, a:not(.btn) {
  color: var(--text-dark) !important;
}

/* Override for elements inside dark containers */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
[class*="bg-dark"] h1, [class*="bg-dark"] h2, [class*="bg-dark"] h3, 
[class*="bg-dark"] h4, [class*="bg-dark"] h5, [class*="bg-dark"] h6,
footer.bg-dark h1, footer.bg-dark h2, footer.bg-dark h3, 
footer.bg-dark h4, footer.bg-dark h5, footer.bg-dark h6 {
  color: #ffffff !important;
}

.bg-dark p, .bg-dark span, .bg-dark div, .bg-dark li, .bg-dark a:not(.btn),
[class*="bg-dark"] p, [class*="bg-dark"] span, [class*="bg-dark"] div, 
[class*="bg-dark"] li, [class*="bg-dark"] a:not(.btn),
footer.bg-dark p, footer.bg-dark span, footer.bg-dark div, 
footer.bg-dark li, footer.bg-dark a:not(.btn) {
  color: #ffffff !important;
}

.bg-gradient {
  background: var(--primary-gradient);
}

.bg-light-gray {
  background: var(--background-gray);
}

.shadow-hover {
  transition: var(--transition-smooth);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .section-title {
    margin-bottom: 3rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  /* Mobile Header Adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
  }
  
  /* Mobile Footer Adjustments */
  .footer-brand h4 {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .footer-brand p {
    text-align: center;
    font-size: 0.9rem;
  }
  
  .social-links {
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  footer h5 {
    text-align: center;
    font-size: 1rem;
  }
  
  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links a:hover {
    padding-left: 0;
    transform: none;
  }
  
  .footer-links a::before {
    display: none;
  }
  
  footer .row:last-child {
    text-align: center;
  }
  
  footer .col-md-6:last-child {
    margin-top: 1rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 82, 212, 0.3);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 82, 212, 0.4);
}

/* Advanced UI Features */

/* Coupon Reveal Modal */
.coupon-modal {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.coupon-modal .modal-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.coupon-modal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
  pointer-events: none;
}

.coupon-code-display {
  background: rgba(255, 255, 255, 0.95);
  border: 3px dashed #ff512f;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coupon-code-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.coupon-code {
  font-size: 2rem;
  font-weight: bold;
  color: #ff512f;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.copy-code-btn {
  background: linear-gradient(45deg, #ff512f, #dd2476);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.copy-code-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 81, 47, 0.4);
}

.copy-code-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.copy-code-btn:hover::before {
  left: 100%;
}

/* Enhanced Hover Animations */
.deal-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.deal-card::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.6s;
  z-index: 1;
}

.deal-card:hover::before {
  left: 100%;
}

.deal-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.deal-card:hover .deal-image {
  transform: scale(1.1);
}

.deal-image {
  transition: transform 0.4s ease;
  overflow: hidden;
}

/* Enhanced Button Effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, #fd79a8, #fdcb6e);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-outline-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 100, 247, 0.3);
}

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* Pulse Animation for CTAs */
.pulse-animation {
  animation: pulse-cta 2s infinite;
}

@keyframes pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 100, 247, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(67, 100, 247, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(67, 100, 247, 0);
  }
}

/* Floating Animation */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Slide In Animations */
.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile Optimization Enhancements */
@media (max-width: 768px) {
  .coupon-code {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
  
  .modal-dialog {
    margin: 20px;
  }
  
  .deal-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

@media (max-width: 576px) {
  .coupon-code {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .deal-card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .deal-card:active {
    transform: scale(0.98);
  }
  
  .btn:active {
    transform: scale(0.95);
  }
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible {
  outline: 2px solid #74b9ff;
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating,
  .pulse-animation {
    animation: none;
  }
}

/* Enhanced Header Styling */
.navbar {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 0.75rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
  color: var(--text-dark) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-1px);
}

/* Enhanced Footer Styling */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
}

.footer-brand h4 {
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

footer h5 {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
  display: inline-block;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 20px;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  width: 12px;
}

/* Social Links Enhancement */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(67, 100, 247, 0.3);
}

.social-link:nth-child(1):hover { background: linear-gradient(135deg, #3b5998, #8b9dc3); }
.social-link:nth-child(2):hover { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.social-link:nth-child(3):hover { background: linear-gradient(135deg, #e1306c, #fd1d1d); }
.social-link:nth-child(4):hover { background: linear-gradient(135deg, #ff0000, #cc0000); }

/* Footer Bottom Section */
footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0 2rem;
}

footer .row:last-child p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 400;
  margin: 0;
}

footer .text-danger {
  color: #ff6b6b !important;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Typography Consistency Improvements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

p, li, span {
  color: var(--text-gray);
  line-height: 1.6;
}

.text-white h1, .text-white h2, .text-white h3, 
.text-white h4, .text-white h5, .text-white h6 {
  color: #ffffff !important;
}

.text-white p, .text-white li, .text-white span {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Enhanced Button Typography */
.btn {
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: none;
}

.btn-primary {
  color: #ffffff !important;
}

.btn-outline-primary {
  color: var(--primary-blue) !important;
}

.btn-outline-primary:hover {
  color: #ffffff !important;
}

/* Bootstrap Text Utilities Fix */
.text-muted {
  color: var(--text-gray) !important;
}

.lead.text-muted {
  color: var(--text-gray) !important;
  opacity: 0.8;
}

.small.text-muted {
  color: var(--text-light) !important;
}

/* Ensure proper contrast for all text elements */
.text-dark {
  color: var(--text-dark) !important;
}

.text-secondary {
  color: var(--text-gray) !important;
}

/* Card text visibility */
.card-body p,
.card-body .text-muted,
.card-text {
  color: var(--text-gray) !important;
}

.card-title {
  color: var(--text-dark) !important;
}

/* Deal card specific fixes */
.deal-card .card-body p,
.deal-card .text-muted {
  color: var(--text-gray) !important;
}

/* Section content visibility */
.section p,
.section .lead {
  color: var(--text-gray) !important;
}

.section h1, .section h2, .section h3, 
.section h4, .section h5, .section h6 {
  color: var(--text-dark) !important;
}

/* Additional Text Visibility Fixes */
.feature-card p,
.style-tip p,
.seasonal-item p,
.brand-card p {
  color: var(--text-gray) !important;
}

.feature-card h4,
.feature-card h5,
.style-tip h5,
.seasonal-item h5,
.brand-card h5 {
  color: var(--text-dark) !important;
}

/* Ensure all paragraph text is visible */
body p {
  color: var(--text-gray);
}

body h1, body h2, body h3, body h4, body h5, body h6 {
  color: var(--text-dark);
}

/* Override any potential white text on white background */
.bg-white p,
.bg-light p,
.bg-light-gray p {
  color: var(--text-gray) !important;
}

.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-light-gray h1, .bg-light-gray h2, .bg-light-gray h3, .bg-light-gray h4, .bg-light-gray h5, .bg-light-gray h6 {
  color: var(--text-dark) !important;
}

/* Light Mode Alternative - Soft Pastel Theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #ffeaa7;
    --text-color: #2d3436;
    --card-bg: #ffffff;
  }
  
  body {
    background: linear-gradient(135deg, #ffeaa7 0%, #fed6e3 100%);
    color: var(--text-color);
  }
  
  .card,
  .deal-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.1);
  }
  
  .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
  }
  
  .navbar-nav .nav-link {
    color: rgba(45, 52, 54, 0.9) !important;
  }
  
  .navbar-nav .nav-link:hover {
    color: #74b9ff !important;
    background: rgba(116, 185, 255, 0.1);
  }
  
  /* Light mode text fixes */
  .text-muted {
    color: rgba(45, 52, 54, 0.7) !important;
  }
  
  body p {
    color: rgba(45, 52, 54, 0.8);
  }
  
  body h1, body h2, body h3, body h4, body h5, body h6 {
    color: #2d3436;
  }
  
  /* Light mode gradients */
  .hero {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #ffeaa7 100%) !important;
  }
}