/*--------------------------------------------------------------
# UNIVERSAL RESET & PAGE SPACING FIX
--------------------------------------------------------------*/
/* Remove all default browser spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure no page overflow or unwanted spacing */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  /* overflow-x removed to allow progress bar visibility */
}

/*--------------------------------------------------------------
# FONT & COLOR VARIABLES
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Nunito", sans-serif;
  --nav-font: "Inter", sans-serif;
  --brand-font: "Nunito", sans-serif; /* Dedicated brand font */
}

/* Ensure Nunito Extra Bold is used for brand elements */
.brand,
.brand span,
.navbar .brand,
.navbar .brand span,
.footer-logo .sitename,
.sitename {
  font-family: var(--brand-font) !important;
  font-weight: 800 !important; /* Extra Bold */
  font-display: swap;
}

/* Light Theme (Default) */
:root {
  --background-color: #f8f9fa;
  --surface-color: #ffffff;
  --light-surface-color: #e9ecef;
  --card-background: #ffffff;
  --default-color: #495057;
  --heading-color: #212529;
  --accent-color: #667eea;
  --accent-color-dark: #5a67d8;
  --contrast-color: #ffffff;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color-rgb: 0, 0, 0;
  --footer-background: #2c3e50;
  --footer-text: rgba(255, 255, 255, 0.7);
  --footer-heading: #ffffff;
  
  /* RGB values for smooth transitions */
  --background-color-rgb: 248, 249, 250;
  --surface-color-rgb: 255, 255, 255;
  --accent-color-rgb: 102, 126, 234;
  --border-color-rgb: 0, 0, 0;
}

/* Dark Theme */
html[data-theme="dark"] {
  --background-color: #1a202c;
  --surface-color: #2d3748;
  --light-surface-color: #4a5568;
  --card-background: #2d3748;
  --default-color: #a0aec0;
  --heading-color: #edf2f7;
  --accent-color: #7f9cf5;
  --accent-color-dark: #9f7aea;
  --contrast-color: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color-rgb: 0, 0, 0;
  --footer-background: #171923;
  --footer-text: #a0aec0;
  --footer-heading: #edf2f7;
  
  /* RGB values for smooth transitions */
  --background-color-rgb: 26, 32, 44;
  --surface-color-rgb: 45, 55, 72;
  --accent-color-rgb: 127, 156, 245;
  --border-color-rgb: 255, 255, 255;
}

/*--------------------------------------------------------------
# FAVICON OPTIMIZATION
--------------------------------------------------------------*/
/* Prevent favicon loading issues */
link[rel="icon"], 
link[rel="shortcut icon"],
link[rel="apple-touch-icon"] {
  /* Ensure favicon links don't interfere with page layout */
  display: none;
}

/* Preload critical favicons for better performance */
@media (prefers-reduced-motion: no-preference) {
  link[rel="icon"][type="image/svg+xml"],
  link[rel="icon"][type="image/png"] {
    /* SVG and PNG favicons load fastest */
    -webkit-font-feature-settings: normal;
    font-feature-settings: normal;
  }
}

/* Section-specific Overrides */
.light-background {
  --background-color: #f3f9ff;
  --surface-color: #ffffff;
}

/*--------------------------------------------------------------
# CUSTOM GRID SYSTEM (BOOTSTRAP REPLACEMENT)
--------------------------------------------------------------*/
/* Container System */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1rem;
}

/* Flexbox Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.row.g-0 {
  margin: 0;
}

.row.g-0 > [class*="col-"] {
  padding: 0;
}

.row.g-4 {
  margin: -1rem -0.75rem;
}

.row.g-4 > [class*="col-"] {
  padding: 1rem 0.75rem;
}

.row.gy-4 {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row.gy-4 > [class*="col-"] {
  padding: 1rem 0.75rem 0 0.75rem;
}

/* Column Base */
[class*="col-"] {
  position: relative;
  width: 100%;
  padding: 0 0.75rem;
  flex-grow: 0;
  flex-shrink: 0;
}

/* Mobile First Columns */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col { flex: 1 0 0%; }

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container { max-width: 540px; }
  
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container { max-width: 720px; }
  
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container { max-width: 960px; }
  
  .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
  
  .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Utility Classes */
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-baseline { align-items: baseline; }
.align-items-stretch { align-items: stretch; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

/* Spacing utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }
.mx-0 { margin-left: 0; margin-right: 0; }
.my-0 { margin-top: 0; margin-bottom: 0; }

.m-1 { margin: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }
.mr-1 { margin-right: 0.25rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }

.m-2 { margin: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

.m-3 { margin: 1rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.ml-3 { margin-left: 1rem; }
.mr-3 { margin-right: 1rem; }
.mx-3 { margin-left: 1rem; margin-right: 1rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }

.m-4 { margin: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.ml-4 { margin-left: 1.5rem; }
.mr-4 { margin-right: 1.5rem; }
.mx-4 { margin-left: 1.5rem; margin-right: 1.5rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.m-5 { margin: 3rem; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.ml-5 { margin-left: 3rem; }
.mr-5 { margin-right: 3rem; }
.mx-5 { margin-left: 3rem; margin-right: 3rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

/* Button utilities */
.me-0 { margin-right: 0; }
.me-3 { margin-right: 1rem; }
.me-sm-3 { margin-right: 1rem; }

/* Image utilities */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Rounded corners */
.rounded-4 { border-radius: 0.5rem; }

/* Button utilities */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.btn-primary:hover {
  background-color: var(--accent-color-dark);
  border-color: var(--accent-color-dark);
  color: var(--contrast-color);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 0.375rem;
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

/* Responsive utilities */
@media (max-width: 575.98px) {
  .d-sm-none { display: none; }
  .d-sm-block { display: block; }
  .me-sm-3 { margin-right: 0; }
}

@media (max-width: 767.98px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .mb-md-5 { margin-bottom: 3rem; }
}

@media (max-width: 991.98px) {
  .d-lg-none { display: none; }
  .d-lg-block { display: block; }
}

/*--------------------------------------------------------------
# GENERAL STYLING
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# PAGE LOAD TRANSITIONS
--------------------------------------------------------------*/
/* Initial state - everything hidden */
html.no-transition {
  opacity: 0;
  visibility: hidden;
}

html.no-transition *,
html.no-transition *::before,
html.no-transition *::after {
  transition: none !important;
  animation: none !important;
}

/* Page loaded state - fade in everything */
html.page-loaded {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

/* Specific elements fade in with delays */
html.page-loaded .nav-wrap {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out 0.1s, transform 0.8s ease-out 0.1s;
}

html.page-loaded .hero {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

html.page-loaded .featured-brands {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

/* Initial hidden states */
html.no-transition .nav-wrap {
  opacity: 0;
  transform: translateY(-20px);
}

html.no-transition .hero {
  opacity: 0;
  transform: translateY(30px);
}

html.no-transition .featured-brands {
  opacity: 0;
  transform: translateY(20px);
}

/*--------------------------------------------------------------
# OPTIMIZED SMOOTH THEME TRANSITION SYSTEM
--------------------------------------------------------------*/
/* Root element transition */
html {
  transition: color-scheme 0.3s ease;
}

/* Smooth transitions for color-changing elements only */
body,
.nav-wrap,
nav.navbar,
.hero,
.newsletter,
.footer,
.article-card {
  transition: 
    background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Faster transitions for interactive elements */
button, 
a, 
input, 
select, 
textarea,
.btn,
.nav-link,
.dropdown-menu,
.theme-switch,
.hamburger {
  transition: 
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Theme transitioning state */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition-duration: 0.3s !important;
}

/* Disable transitions on page load */
html.no-transition *,
html.no-transition *::before,
html.no-transition *::after {
  transition: none !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Optimize for mobile performance */
@media (max-width: 768px) {
  *, *::before, *::after {
    transition-duration: 0.25s;
  }
  
  button, a, input, select, textarea, .btn, .nav-link, .dropdown-menu {
    transition-duration: 0.15s;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------------------------------------------------
# UTILITIES & SHARED CLASSES
--------------------------------------------------------------*/
/* Sections */
section, .section {
  padding: 80px 0;
  scroll-margin-top: 80px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section, .section {
    scroll-margin-top: 70px;
  }
}

/* Section Titles */
.section-title {
  text-align: center;
  padding-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: var(--default-color);
}

/* Scroll Top Button - UPDATED for ID selector */
#scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 999;
  background: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

#scroll-top:hover {
  background: var(--accent-color-dark);
  color: var(--contrast-color);
}

#scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# PROFESSIONAL HEADER
--------------------------------------------------------------*/
/* Styles for header, logo, and navigation have been removed from this section. 
   They are now correctly handled by navbar.css */

/*--------------------------------------------------------------
# HERO SECTION
--------------------------------------------------------------*/
.hero {
  padding: 120px 0 80px;
  background-color: var(--surface-color);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-content .accent-text {
  color: var(--accent-color);
}

.hero-content .highlight-text {
  position: relative;
  display: inline-block;
}

.hero-content .highlight-text::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color);
  opacity: 0.3;
  border-radius: 2px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--default-color);
  max-width: 500px;
}

/* PREMIUM BUTTON STYLES */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Primary Premium Button - Gradient with Glow */
.hero-buttons .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 100%;
  border: none;
  padding: 18px 36px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  color: var(--contrast-color);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 25px rgba(102, 126, 234, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-buttons .btn-primary::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.6s ease;
}

.hero-buttons .btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(102, 126, 234, 0.6),
    0 0 30px rgba(102, 126, 234, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.hero-buttons .btn-primary:hover::before {
  left: 100%;
}

.hero-buttons .btn-primary:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* Secondary Premium Button - Glass Morphism */
.hero-buttons .btn-outline-primary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid;
  border-image: linear-gradient(135deg, #667eea, #764ba2, #667eea) 1;
  padding: 16px 34px;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  color: var(--heading-color);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.hero-buttons .btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 48px;
}

.hero-buttons .btn-outline-primary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-color);
  border-image: linear-gradient(135deg, #764ba2, #667eea, #764ba2) 1;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(102, 126, 234, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.hero-buttons .btn-outline-primary:hover::before {
  opacity: 1;
}

.hero-buttons .btn-outline-primary:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* Dark Mode Adjustments */
html[data-theme="dark"] .hero-buttons .btn-outline-primary {
  background: rgba(45, 55, 72, 0.3);
  backdrop-filter: blur(15px);
  color: var(--heading-color);
  border-image: linear-gradient(135deg, #7f9cf5, #9f7aea, #7f9cf5) 1;
}

html[data-theme="dark"] .hero-buttons .btn-outline-primary:hover {
  background: rgba(45, 55, 72, 0.5);
  color: var(--accent-color);
}

/* Button Icons (optional enhancement) */
.hero-buttons .btn-primary::after {
  content: '→';
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.hero-buttons .btn-primary:hover::after {
  transform: translateX(4px);
}

.hero-buttons .btn-outline-primary .btn-icon {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.hero-buttons .btn-outline-primary:hover .btn-icon {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero {
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image {
    margin-top: 40px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline-primary {
    width: 100%;
    max-width: 280px;
    padding: 16px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline-primary {
    max-width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
}

/* Accessibility Enhancements */
.hero-buttons .btn-primary:focus,
.hero-buttons .btn-outline-primary:focus {
  outline: 3px solid rgba(102, 126, 234, 0.4);
  outline-offset: 3px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline-primary {
    transition: none;
  }
  
  .hero-buttons .btn-primary::before,
  .hero-buttons .btn-outline-primary::before,
  .hero-buttons .btn-primary::after,
  .hero-buttons .btn-outline-primary .btn-icon {
    transition: none;
  }
  
  .hero-buttons .btn-primary:hover,
  .hero-buttons .btn-outline-primary:hover {
    transform: none;
  }
}

/* High Performance Mode for Mobile */
@media (max-width: 768px) {
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline-primary {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
  }
}

/*--------------------------------------------------------------
# FEATURED BRANDS SECTION
--------------------------------------------------------------*/
.featured-brands {
  padding: 40px 0;
  background-color: var(--surface-color);
}

.brands-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--default-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.featured-brands .swiper-slide img {
  opacity: 0.6;
  transition: 0.3s;
  filter: grayscale(100);
  max-height: 40px;
  width: auto;
}

.featured-brands .swiper-slide img:hover {
  filter: none;
  opacity: 1;
}

/* animation class */
.swiper-wrapper.continuous-scroll {
  transition-timing-function: linear !important;
}

/*--------------------------------------------------------------
# ALL OTHER SECTIONS (About, Features, CTA, Testimonials, FAQ)
# These styles are refined for a professional look.
--------------------------------------------------------------*/

/* About Section */
.about {
  padding: 100px 0;
  background: transparent; /* Remove any background */
}

.about .about-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--heading-color);
}

.about .about-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 0;
}

/* Remove image wrapper background and decorative elements */
.about .image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Remove all background boxes, borders, and decorative elements */
.about .image-wrapper .images {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about .image-wrapper .main-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  /* Remove box shadows - just keep the image clean */
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle hover effect without heavy shadows */
.about .image-wrapper .main-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Remove all decorative pseudo-elements */
.about .image-wrapper::before,
.about .image-wrapper::after {
  display: none;
}

/* Clean content layout */
.about .row {
  align-items: center;
}

/* Responsive optimizations */
@media (max-width: 1199px) {
  .about .about-title {
    font-size: 2.2rem;
  }
  
  .about .about-description {
    font-size: 1.05rem;
  }
}

@media (max-width: 991px) {
  .about {
    text-align: center;
    padding: 80px 0;
  }
  
  .about .image-wrapper {
    margin-top: 3rem;
    max-width: 400px;
  }
  
  .about .about-title {
    font-size: 2rem;
  }
  
  .about .about-description {
    font-size: 1rem;
    margin: 0 auto;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 60px 0;
  }
  
  .about .image-wrapper {
    max-width: 350px;
    margin-top: 2rem;
  }
  
  .about .about-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .about .about-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Clean mobile hover states */
  .about .image-wrapper .main-image:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 576px) {
  .about .image-wrapper {
    max-width: 300px;
  }
  
  .about .about-title {
    font-size: 1.6rem;
  }
  
  .about .about-description {
    font-size: 0.9rem;
  }
  
  .about .image-wrapper .main-image {
    border-radius: 15px;
  }
}

/* High-DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .about .image-wrapper .main-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .about .image-wrapper .main-image {
    transition: none;
  }
  
  .about .image-wrapper .main-image:hover {
    transform: none;
  }
}

/* Dark mode specific adjustments */
html[data-theme="dark"] .about .image-wrapper .main-image:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Features Section (Tabs) */
.features .nav-tabs {
  border: 0;
  background-color: var(--surface-color);
  border-radius: 50px;
  padding: 6px;
}
.features .nav-link {
  border: 0;
  background: none;
  color: var(--heading-color);
  padding: 10px 30px;
  border-radius: 50px;
}
.features .nav-link.active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}
.features .tab-pane h3 {
  font-weight: 700;
  font-size: 32px;
}
.features .tab-pane ul i {
  color: var(--accent-color);
  font-size: 20px;
  padding-right: 4px;
}

/* Call To Action Section */
.call-to-action .container {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 1rem;
  padding: 4rem 2rem;
}
.call-to-action .content h2 {
  color: var(--contrast-color);
}
.call-to-action .btn-cta {
  background: var(--contrast-color);
  color: var(--accent-color);
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: 600;
}
.call-to-action .btn-cta:hover {
  background: rgba(255,255,255,0.9);
}

/* Testimonials Section */
.testimonials .testimonial-item {
  background-color: var(--surface-color);
  box-shadow: 0 5px 30px rgba(0,0,0,0.07);
  padding: 30px;
  border-radius: 10px;
}
.testimonials .testimonial-item .stars i {
  color: #ffc107;
}
.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: rgba(52, 152, 219, 0.3);
  font-size: 26px;
}

/* FAQ Section - Professional & Interactive Design */
.faq {
  padding: 80px 0;
  background-color: var(--surface-color);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.faq .faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.faq .faq-description {
  font-size: 1.1rem;
  color: var(--default-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.faq .faq-arrow {
  color: var(--accent-color);
  opacity: 0.6;
  max-width: 180px;
  margin-top: 2rem;
}

.faq .faq-container {
  margin-top: 2rem;
}

.faq .faq-container .faq-item {
 background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
}

.faq .faq-container .faq-item:hover {
transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(var(--shadow-color-rgb),0.1);
  border-color: var(--accent-color);
}

.faq .faq-container .faq-item h3 {
  cursor: pointer;
  margin: 0;
  padding: 25px 60px 25px 25px;
  position: relative;
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-color);
  transition: all 0.3s ease;
  border-radius: 15px 15px 0 0;
  user-select: none;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active h3 {
  color: var(--accent-color);
  background: var(--background-color);
}


.faq .faq-container .faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, background-color 0.3s ease;
  background: var(--surface-color);
  will-change: max-height, opacity;
}

.faq .faq-container .faq-active .faq-content {
  opacity: 1;
  border-top: 1px solid rgba(52, 152, 219, 0.1);
}

.faq .faq-container .faq-content p {
  padding: 25px;
  margin: 0;
  line-height: 1.7;
  color: var(--default-color);
  font-size: 16px;
  background: var(--background-color);
  transition: background-color 0.3s ease;
}

.faq .faq-container .faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px;
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  will-change: transform;
}

.faq .faq-container .faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color) 0%, rgba(52, 152, 219, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq .faq-container .faq-active::before {
  opacity: 1;
}

/* Responsive Design for FAQ */
@media (max-width: 768px) {
  .faq {
    padding: 60px 0;
  }
  
  .faq .faq-title {
    font-size: 2rem;
  }
  
  .faq .faq-description {
    font-size: 1rem;
  }
  
  .faq .faq-container .faq-item h3 {
    padding: 20px 50px 20px 20px;
    font-size: 16px;
  }
  
  .faq .faq-container .faq-content p {
    padding: 20px;
    font-size: 15px;
  }
  
  .faq .faq-container .faq-toggle {
    right: 20px;
    font-size: 16px;
  }
}

/* Additional FAQ Effects */
.faq .faq-container .faq-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq .faq-container .faq-active h3::after {
  opacity: 1;
}

.faq .faq-container .faq-item:focus-within {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* FAQ Section Background Pattern */
.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(52, 152, 219, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 75% 75%, rgba(52, 152, 219, 0.03) 0%, transparent 25%);
  pointer-events: none;
}

.faq .container {
  position: relative;
  z-index: 1;
}

/*--------------------------------------------------------------
# NEWSLETTER & SUCCESS MODAL
--------------------------------------------------------------*/
.newsletter-box {
  background: var(--surface-color);
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.newsletter-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
  color: var(--contrast-color);
  border-radius: 50%;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.newsletter-title {
  font-size: 2.5rem;
  font-weight: 800;
}
.newsletter-form .input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(var(--shadow-color-rgb), 0.1);
  border: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.newsletter-form .form-control {
  padding: 1.25rem;
  border-radius: 50px 0 0 50px;
  border-color: transparent;
  border-right: none;
  flex: 1;
  border: none;
  outline: none;
}
.newsletter-form .btn-subscribe {
  padding: 1.25rem 2rem;
  border-radius: 0 50px 50px 0;
  background: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 600;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-width: 160px;
  flex-shrink: 0;
  cursor: pointer;
}

.newsletter-form .btn-subscribe:hover {
  background: var(--accent-color-dark);
  transform: scale(1.02);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.newsletter-form .btn-subscribe:active {
  transform: scale(0.98);
}
.newsletter-features .feature-item {
  color: var(--default-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.newsletter-features .feature-item i {
  color: var(--accent-color);
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# PROFESSIONAL FOOTER
--------------------------------------------------------------*/
.footer {
  background-color: var(--footer-background);
  color: var(--footer-text);
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.footer .footer-top {
  padding: 80px 0 40px;
}
.footer .footer-logo .sitename {
  color: var(--footer-heading);
  display: block !important;
}
.footer .social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer .social-links a {
  width: 40px;
  height: 40px;
  background: var(--border-color);
  border-radius: 50%;
  color: var(--footer-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.footer .social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}
.footer h4 {
  color: var(--footer-heading);
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer .footer-links ul a {
  color: var(--footer-text);
  display: block;
  padding: 8px 0;
  transition: all 0.3s ease;
}
.footer .footer-links ul a:hover {
  color: var(--footer-heading);
  padding-left: 8px;
}
.footer .footer-newsletter-form {
  display: flex;
  margin-top: 15px;
}
.footer .footer-newsletter-form input {
  background: var(--border-color);
  border: none;
  color: var(--footer-heading);
  padding: 12px 15px;
  border-radius: 50px 0 0 50px;
  flex: 1;
}
.footer .footer-newsletter-form .newsletter-btn {
  background: var(--accent-color);
  border: none;
  color: var(--contrast-color);
  padding: 12px 20px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
}
.footer .footer-bottom {
 padding: 25px 0;
 background: rgba(var(--shadow-color-rgb), 0.1);
}
.footer .copyright {
  color: var(--footer-text);
  margin: 0;
}
.footer .footer-badges {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.footer .footer-badges .trust-badge {
  background: var(--border-color);
  color: var(--footer-text);
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
  .footer .footer-badges {
    justify-content: flex-start;
    margin-top: 15px;
  }
  .footer .footer-newsletter-form {
    flex-direction: column;
  }
  .footer .footer-newsletter-form input {
    border-radius: 50px;
    margin-bottom: 10px;
  }
  .footer .footer-newsletter-form .newsletter-btn {
    border-radius: 50px;
  }
}

/*--------------------------------------------------------------
# ENHANCED NEWSLETTER SECTION
--------------------------------------------------------------*/
.newsletter {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--contrast-color);
  position: relative;
  overflow: hidden;
}

.newsletter::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.newsletter-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 50px 40px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.newsletter-icon i {
  font-size: 3.5rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.newsletter-title {
  color: var(--contrast-color);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.newsletter-form .input-group {
  max-width: 500px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.newsletter-form .form-control {
  border: none;
  padding: 18px 25px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--default-color);
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  background: var(--contrast-color);
}

.newsletter-form .btn-subscribe {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border: none;
  color: var(--contrast-color);
  padding: 18px 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.newsletter-form .btn-subscribe:hover {
  background: linear-gradient(45deg, #ff5252, #ff7575);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.newsletter-form .btn-subscribe:active {
  transform: translateY(0);
}

.newsletter-form .btn-loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.newsletter-features {
  margin-top: 2.5rem;
}

.newsletter-features .feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.newsletter-features .feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.newsletter-features .feature-item i {
  font-size: 1.8rem;
  color: #ffd700;
  margin-bottom: 8px;
}

.newsletter-features .feature-item span {
  color: var(--contrast-color);
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

/* Success Modal Enhancements */
.success-modal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-animation {
  position: relative;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: scaleIn 0.6s ease-out;
}

.checkmark {
  width: 30px;
  height: 30px;
  border: 3px solid white;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  margin-top: -5px;
  animation: checkmarkDraw 0.8s ease-out 0.3s both;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes checkmarkDraw {
  0% { width: 0; height: 0; }
  50% { width: 30px; height: 0; }
  100% { width: 30px; height: 30px; }
}

.success-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.8rem;
}

.success-message {
  color: var(--default-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

.success-features .success-feature {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 15px 10px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.success-features .success-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.success-features .success-feature i {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-features .success-feature span {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--default-color);
}

/* Form Messages */
.form-messages {
  margin-top: 15px;
  padding: 0;
  min-height: 20px;
}

.form-messages.success {
  color: #4CAF50;
  font-weight: 600;
}

.form-messages.error {
  color: #f44336;
  font-weight: 600;
}

/* Footer Newsletter Enhancements */
.footer-newsletter-form {
  position: relative;
}

.footer-newsletter-form .newsletter-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.footer-newsletter-form .newsletter-btn:hover {
  background: var(--accent-color-dark);
  transform: translateY(-2px);
}

.footer-newsletter-form .btn-loading {
  animation: spin 1s linear infinite;
}

.footer-newsletter-form .form-messages {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .newsletter-box {
    padding: 40px 25px;
    margin: 0 15px;
  }
  
  .newsletter-title {
    font-size: 1.8rem;
  }
  
  .newsletter-description {
    font-size: 1rem;
  }
  
  .newsletter-form .form-control,
  .newsletter-form .btn-subscribe {
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  .newsletter-features .feature-item {
    padding: 15px 10px;
    margin-bottom: 15px;
  }
  
  .newsletter-features .feature-item span {
    font-size: 0.9rem;
  }
  
  .success-modal .modal-dialog {
    margin: 20px;
  }
  
  .success-title {
    font-size: 1.5rem;
  }
  
  .success-message {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .newsletter-form .input-group {
    flex-direction: column;
    border-radius: 15px;
  }
  
  .newsletter-form .form-control {
    border-radius: 15px;
    margin-bottom: 15px;
  }
  
  .newsletter-form .btn-subscribe {
    border-radius: 15px;
    width: 100%;
  }
  
  .newsletter-features .row > .col-md-4 {
    margin-bottom: 15px;
  }
}

/*--------------------------------------------------------------
# ARTICLES SECTION
--------------------------------------------------------------*/
.articles {
  background: var(--background-color);
  position: relative;
  overflow: hidden;
}

/* Grid Layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Article Card */
.article-card {
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(var(--shadow-color-rgb), 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(var(--shadow-color-rgb), 0.15);
  border-color: var(--accent-color);
}

/* Article Image */
.article-image {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.article-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

/* Article Content */
.article-content {
  padding: 1.5rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article-tags .tag {
  background: var(--light-surface-color);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.article-title {
  font-size: 1.25rem;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-excerpt {
  color: var(--default-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Article Meta */
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.article-date {
  color: var(--default-color);
  font-size: 0.9rem;
}

.read-more {
  color: var(--accent-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more:hover {
  transform: translateX(5px);
}

/* Load More Button */
.load-more-btn {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
  color: var(--contrast-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(var(--accent-color-rgb), 0.2);
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(var(--accent-color-rgb), 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .article-card {
    max-width: 100%;
  }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  /* Faster transitions on mobile for better performance */
  *, *::before, *::after {
    transition-duration: 0.2s;
  }
  
  /* Optimize for mobile browsers */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
  }
  
  /* Prevent transition lag on mobile */
  .theme-switch,
  .navbar,
  .article-card,
  .newsletter-box {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  html {
    transition: all 0.2s ease;
  }
}
