/* ============================================
   Art of Africa Galleria - World Class Design
   ============================================ */

/* CSS Variables - Dark Mode (Default) */
:root {
  --brand: #f37021;
  --text-on-dark: #ffffff;
  --muted: rgba(255,255,255,0.8);
  --overlay: rgba(0,0,0,0.5);
  --dark-bg: #000000;
  --dark-secondary: #1a1a1a;
  --dark-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --border-color: rgba(255,255,255,0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Background Colors */
  --bg-primary: #000000;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  
  /* Text Colors */
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.8);
  --text-secondary-color: rgba(255,255,255,0.7);
}

/* CSS Variables - Light Mode */
[data-theme="light"] {
  --brand: #f37021;
  --text-on-dark: #1a1a1a;
  --muted: rgba(26,26,26,0.7);
  --overlay: rgba(255,255,255,0.5);
  --dark-bg: #ffffff;
  --dark-secondary: #f8f9fa;
  --dark-tertiary: #e9ecef;
  --text-primary: #1a1a1a;
  --text-secondary: rgba(26,26,26,0.7);
  --border-color: rgba(0,0,0,0.1);
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  
  /* Text Colors */
  --text-main: #1a1a1a;
  --text-muted: rgba(26,26,26,0.7);
  --text-secondary-color: rgba(26,26,26,0.6);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-on-dark);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Allow text selection in input fields */
input, textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Image Protection - Prevent download but allow clicks */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-touch-callout: none;
}

/* Allow images to be clickable but not draggable */
a img {
  pointer-events: auto;
}

/* Allow images in admin area and navigation */
.admin img,
nav img,
.navbar-brand img {
  pointer-events: auto;
  user-select: auto;
}

/* Prevent overflow on mobile */
@media (max-width: 767.98px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  .container,
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.main-header {
  background: var(--dark-bg);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  width: 100%;
}

.top-bar {
  background: var(--dark-secondary);
  border-bottom: 1px solid var(--border-color);
}

.top-bar small {
  color: var(--muted);
  font-size: 0.85rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-select {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-on-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.top-bar-select:focus {
  outline: none;
  border-color: var(--brand);
}

.main-navbar {
  background: var(--dark-bg) !important;
  padding: 1rem 0;
  width: 100%;
}

.navbar {
  position: relative;
}

.navbar-brand {
  padding: 0;
}

.logo-img {
  height: 60px;
  width: auto;
}

.navbar-toggler {
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  background: transparent;
  cursor: pointer;
  z-index: 1031;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 30px;
  height: 30px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--dark-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-on-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin: 0 0.75rem;
  z-index: 1031;
  position: relative;
}

.theme-toggle-btn:hover {
  background: var(--brand);
  color: var(--text-on-dark);
  border-color: var(--brand);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(243, 112, 33, 0.3);
}

.theme-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.3);
}

.theme-toggle-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
  transform: rotate(15deg);
}

/* Mobile positioning - between hamburger and logo */
@media (max-width: 991.98px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .theme-toggle-btn.d-lg-none {
    order: 2;
    margin: 0 0.75rem;
    position: relative;
    z-index: 1032;
    flex-shrink: 0;
  }
  
  .navbar-brand {
    order: 3;
    flex: 1;
    text-align: center;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .navbar-toggler {
    order: 1;
    flex-shrink: 0;
  }
  
  /* Ensure theme toggle is visible on mobile */
  .theme-toggle-btn.d-lg-none {
    display: flex !important;
  }
}

/* Light mode adjustments for navbar toggler icon */
[data-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 26, 26, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1029;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

[data-theme="light"] .mobile-menu-overlay {
  background: rgba(255, 255, 255, 0.7);
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: all;
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
  .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 80% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: var(--dark-secondary) !important;
    z-index: 1030 !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3) !important;
    padding: 2rem 1.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-menu.active {
    left: 0 !important;
  }
  
  .mobile-menu:not(.active) {
    left: -100% !important;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start !important;
    width: 100%;
    margin: 0;
  }

  .navbar-nav .nav-item {
    width: 100%;
    margin: 0.5rem 0;
  }

  .navbar-nav .nav-link {
    padding: 1rem !important;
    margin: 0 !important;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .search-item {
    width: 100%;
    margin: 1rem 0 !important;
  }

  .search-form {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .btn-login {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
  
  /* Currency Selector Mobile Styling */
  .currency-mobile-item {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .currency-mobile-item select {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
  
  /* Mobile Top Bar Currency Selector */
  .top-bar .d-md-none {
    background: var(--dark-secondary);
  }
  
  .top-bar .d-md-none select {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
  }
  
  /* Ensure collapse class doesn't interfere - always show on mobile */
  .navbar-collapse.collapse,
  .navbar-collapse.collapsing {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
  }
}

.navbar-nav .nav-link {
  color: var(--text-on-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.search-form {
  position: relative;
}

.search-input {
  background: var(--dark-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-on-dark);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  width: 200px;
  font-size: 0.9rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(243, 112, 33, 0.2);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-btn {
  background: var(--brand);
  border: none;
  color: var(--text-on-dark);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  margin-left: 0.5rem;
  transition: var(--transition);
}

.search-btn:hover {
  background: #d85f1a;
  transform: translateY(-2px);
}

.cart-link {
  font-size: 1.2rem;
  color: var(--text-on-dark) !important;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--brand);
  color: var(--text-on-dark);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.cart-badge.show {
  display: flex;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-login:hover {
  background: var(--brand);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 600px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-text {
  max-width: 700px;
  padding: 2rem;
}

.hero-subtitle {
  display: inline-block;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-on-dark);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-hero {
  background: var(--brand);
  color: var(--text-on-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary-hero:hover {
  background: #d85f1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(243, 112, 33, 0.4);
  color: var(--text-on-dark);
}

.btn-secondary-hero {
  background: transparent;
  color: var(--text-on-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--text-on-dark);
  transition: var(--transition);
  display: inline-block;
}

.btn-secondary-hero:hover {
  background: var(--text-on-dark);
  color: var(--dark-bg);
  transform: translateY(-3px);
}

/* Swiper Customization */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
}

.swiper-pagination-bullet {
  background: var(--brand);
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--brand);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--brand);
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--brand);
  color: var(--text-on-dark);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
  padding: 5rem 0;
  width: 100%;
  overflow-x: hidden;
}

.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  display: inline-block;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
  background: var(--dark-secondary);
  padding: 6rem 0;
  width: 100%;
  overflow-x: hidden;
}

.category-link {
  display: block;
  text-decoration: none;
}

.category-card {
  background: var(--dark-tertiary);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(243, 112, 33, 0.2);
  border-color: var(--brand);
}

.category-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-image {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.category-content {
  padding: 2rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
}

.category-description {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.category-link-text {
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.category-card:hover .category-link-text {
  transform: translateX(5px);
}

/* ============================================
   FEATURED ARTWORKS SECTION
   ============================================ */

.featured-artworks-section {
  background: var(--dark-bg);
  padding: 6rem 0;
  width: 100%;
  overflow-x: hidden;
}

.artwork-card {
  background: var(--dark-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

.artwork-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(243, 112, 33, 0.15);
  border-color: var(--brand);
}

.artwork-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.artwork-card:hover .artwork-image {
  transform: scale(1.1);
}

.artwork-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.artwork-card:hover .artwork-overlay {
  opacity: 1;
}

.quick-view {
  color: var(--text-on-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.artwork-content {
  padding: 1.5rem;
}

.artwork-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
}

.artwork-artist {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.artwork-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.artwork-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
}

.artwork-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-view,
.btn-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-view {
  background: var(--dark-tertiary);
  color: var(--text-on-dark);
}

.btn-view:hover {
  background: var(--brand);
  transform: scale(1.1);
}

.btn-cart {
  background: var(--brand);
  color: var(--text-on-dark);
}

.btn-cart:hover {
  background: #d85f1a;
  transform: scale(1.1);
}

/* ============================================
   ARTIST SPOTLIGHT SECTION
   ============================================ */

.artist-spotlight-section {
  background: var(--dark-secondary);
  padding: 6rem 0;
}

.artist-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.artist-image {
  width: 100%;
  height: auto;
  display: block;
}

.artist-info {
  padding: 2rem;
}

.artist-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  margin: 1rem 0;
}

.artist-description {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */

.why-choose-section {
  background: var(--dark-bg);
  padding: 6rem 0;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--dark-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand);
  box-shadow: 0 15px 35px rgba(243, 112, 33, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(243, 112, 33, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--brand);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--brand);
  color: var(--text-on-dark);
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
  background: var(--dark-secondary);
  padding: 6rem 0;
}

.testimonial-card {
  background: var(--dark-tertiary);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  height: 100%;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--brand);
  transform: translateY(-5px);
}

.testimonial-rating {
  color: var(--brand);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.testimonial-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author strong {
  display: block;
  color: var(--text-on-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section {
  background: var(--dark-bg);
  padding: 6rem 0;
}

.blog-card {
  background: var(--dark-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 15px 35px rgba(243, 112, 33, 0.15);
}

.blog-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.1);
}

.blog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.blog-content {
  padding: 2rem;
}

.blog-date {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 1rem 0;
}

.blog-excerpt {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.blog-link {
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.blog-link:hover {
  gap: 1rem;
  color: #d85f1a;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
  background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-tertiary) 100%);
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.newsletter-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input-field {
  flex: 1;
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  color: var(--text-on-dark);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-input-field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(243, 112, 33, 0.2);
}

.newsletter-input-field::placeholder {
  color: var(--muted);
}

.newsletter-submit-btn {
  background: var(--brand);
  color: var(--text-on-dark);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-submit-btn:hover {
  background: #d85f1a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(243, 112, 33, 0.3);
  color: var(--text-on-dark);
}

/* ============================================
   INSTAGRAM SECTION
   ============================================ */

.instagram-section {
  background: var(--dark-bg);
  padding: 6rem 0;
}

.instagram-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
}

.instagram-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(243, 112, 33, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-item:hover .instagram-image {
  transform: scale(1.1);
}

.instagram-overlay i {
  font-size: 2rem;
  color: var(--text-on-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
  background: var(--dark-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  margin-bottom: 3rem;
}

.footer-widget {
  height: 100%;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--brand);
}

.footer-text {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.social-link:hover {
  background: var(--brand);
  transform: translateY(-3px);
  border-color: var(--brand);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand);
  transform: translateX(5px);
}

.footer-newsletter {
  margin-top: 1.5rem;
}

.newsletter-input {
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  color: var(--text-on-dark);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--brand);
}

.newsletter-btn {
  background: var(--brand);
  border: none;
  color: var(--text-on-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  width: 100%;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background: #d85f1a;
  transform: translateY(-2px);
}

.contact-info {
  margin-top: 1.5rem;
}

.contact-item {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item i {
  color: var(--brand);
  width: 20px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.copyright {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-text {
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.payment-icon {
  font-size: 1.5rem;
  color: var(--muted);
  transition: var(--transition);
}

.payment-icon:hover {
  color: var(--brand);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--brand);
  border: none;
  color: var(--text-on-dark);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(243, 112, 33, 0.4);
}

.back-to-top:hover {
  background-color: #d85f1a;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(243, 112, 33, 0.5);
}

.back-to-top.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .search-input {
    width: 150px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn-primary-hero,
  .btn-secondary-hero {
    width: 100%;
    text-align: center;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }
  
  /* Sections Padding */
  section {
    padding: 3rem 0;
  }
  
  .categories-section,
  .featured-artworks-section,
  .artist-spotlight-section,
  .why-choose-section,
  .testimonials-section,
  .blog-section,
  .instagram-section {
    padding: 3rem 0;
  }
  
  /* Categories */
  .category-image-wrapper {
    height: 250px;
  }
  
  .category-content {
    padding: 1.5rem;
  }
  
  .category-title {
    font-size: 1.25rem;
  }
  
  .category-description {
    font-size: 0.9rem;
  }
  
  /* Artworks */
  .artwork-image-wrapper {
    height: 220px;
  }
  
  .artwork-content {
    padding: 1.25rem;
  }
  
  .artwork-title {
    font-size: 1rem;
  }
  
  .artwork-price {
    font-size: 1.1rem;
  }
  
  /* Artist Spotlight */
  .artist-spotlight-content {
    padding: 0 1rem;
  }
  
  .artist-info {
    padding: 1.5rem 0;
  }
  
  .artist-name {
    font-size: 1.5rem;
  }
  
  .artist-description {
    font-size: 0.9rem;
  }
  
  /* Feature Cards */
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-title {
    font-size: 1.1rem;
  }
  
  .feature-description {
    font-size: 0.85rem;
  }
  
  /* Testimonials */
  .testimonial-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
  
  /* Blog */
  .blog-image-wrapper {
    height: 200px;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .blog-title {
    font-size: 1.25rem;
  }
  
  .blog-excerpt {
    font-size: 0.9rem;
  }
  
  /* Newsletter */
  .newsletter-section {
    padding: 3rem 1rem;
  }
  
  .newsletter-title {
    font-size: 1.5rem;
  }
  
  .newsletter-description {
    font-size: 0.9rem;
  }
  
  .newsletter-content {
    padding: 0 1rem;
  }
  
  .newsletter-input-group {
    flex-direction: column;
  }
  
  .newsletter-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* Instagram */
  .instagram-section {
    padding: 3rem 0;
  }
  
  /* Footer */
  .main-footer {
    padding: 3rem 1rem 1.5rem;
  }
  
  .footer-widget {
    margin-bottom: 2rem;
  }
  
  .footer-title {
    font-size: 1.1rem;
  }
  
  .footer-text {
    font-size: 0.85rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
  }
  
  .payment-methods {
    justify-content: center;
    margin-top: 1rem;
  }
  
  /* Search */
  .search-item {
    order: -1;
    width: 100%;
    margin: 1rem 0;
  }
  
  .search-input {
    width: 100%;
  }
  
  .footer-content {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  section {
    padding: 2.5rem 0;
  }
  
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.8rem;
  }
  
  .section-description {
    font-size: 0.9rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  /* Categories */
  .categories-section {
    padding: 2.5rem 0;
  }
  
  .category-image-wrapper {
    height: 200px;
  }
  
  .category-content {
    padding: 1.25rem;
  }
  
  .category-title {
    font-size: 1.1rem;
  }
  
  /* Artworks */
  .featured-artworks-section {
    padding: 2.5rem 0;
  }
  
  .artwork-image-wrapper {
    height: 200px;
  }
  
  .artwork-content {
    padding: 1rem;
  }
  
  .artwork-title {
    font-size: 0.95rem;
  }
  
  .artwork-artist {
    font-size: 0.85rem;
  }
  
  .artwork-price {
    font-size: 1rem;
  }
  
  /* Artist Spotlight */
  .artist-spotlight-section {
    padding: 2.5rem 0;
  }
  
  .artist-name {
    font-size: 1.25rem;
  }
  
  .artist-description {
    font-size: 0.85rem;
  }
  
  /* Features */
  .why-choose-section {
    padding: 2.5rem 0;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .feature-title {
    font-size: 1rem;
  }
  
  .feature-description {
    font-size: 0.8rem;
  }
  
  /* Testimonials */
  .testimonials-section {
    padding: 2.5rem 0;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
  }
  
  /* Blog */
  .blog-section {
    padding: 2.5rem 0;
  }
  
  .blog-image-wrapper {
    height: 180px;
  }
  
  .blog-content {
    padding: 1.25rem;
  }
  
  .blog-title {
    font-size: 1.1rem;
  }
  
  /* Newsletter */
  .newsletter-section {
    padding: 2.5rem 1rem;
  }
  
  .newsletter-title {
    font-size: 1.25rem;
  }
  
  /* Instagram */
  .instagram-section {
    padding: 2.5rem 0;
  }
  
  /* Footer */
  .main-footer {
    padding: 2.5rem 1rem 1rem;
  }
  
  .footer-title {
    font-size: 1rem;
  }
  
  .footer-text {
    font-size: 0.8rem;
  }
  
  .contact-item {
    font-size: 0.8rem;
  }
  
  .copyright {
    font-size: 0.8rem;
  }
  
  /* Buttons */
  .btn-primary-hero,
  .btn-secondary-hero {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.btn-orange {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-dark);
}

.btn-orange:hover {
  background-color: #d85f1a;
  border-color: #d85f1a;
  color: var(--text-on-dark);
}

.border-orange {
  border: 1px solid var(--brand) !important;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

.about-hero-section {
  background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-tertiary) 100%);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.about-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/slide1.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.about-hero-content {
  position: relative;
  z-index: 1;
}

.about-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.about-hero-description {
  font-size: 1.3rem;
  color: var(--brand);
  font-weight: 600;
}

/* About CEO Section */
.about-ceo-section {
  background: var(--dark-bg);
  padding: 6rem 0;
}

.ceo-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.ceo-image {
  width: 100%;
  height: auto;
  display: block;
}

.ceo-content {
  padding: 2rem;
}

.ceo-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  margin: 1rem 0;
}

.ceo-description {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.ceo-description strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

/* Mission Section */
.mission-section {
  background: var(--dark-secondary);
  padding: 6rem 0;
}

.mission-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.mission-image {
  width: 100%;
  height: auto;
  display: block;
}

.mission-content {
  padding: 2rem;
}

.mission-text {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* History Section */
.history-section {
  background: var(--dark-bg);
  padding: 6rem 0;
}

.history-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.history-image {
  width: 100%;
  height: auto;
  display: block;
}

.history-content {
  padding: 2rem;
}

.history-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.history-text strong {
  color: var(--brand);
  font-weight: 600;
}

/* Philosophy Section */
.philosophy-section {
  background: var(--dark-secondary);
  padding: 6rem 0;
}

.philosophy-content {
  background: var(--dark-tertiary);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.philosophy-text {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.philosophy-text strong {
  color: var(--brand);
  font-weight: 600;
}

/* Collections About Section */
.collections-about-section {
  background: var(--dark-bg);
  padding: 6rem 0;
}

.collection-card {
  background: var(--dark-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.collection-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(243, 112, 33, 0.2);
  border-color: var(--brand);
}

.collection-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.collection-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover .collection-image {
  transform: scale(1.1);
}

.collection-content {
  padding: 2rem;
}

.collection-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.collection-description {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Goal Section */
.goal-section {
  background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-tertiary) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.goal-content {
  max-width: 900px;
  margin: 0 auto;
}

.goal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 2rem;
}

.goal-text {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.goal-text strong {
  color: var(--brand);
  font-weight: 600;
}

.goal-slogan {
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(243, 112, 33, 0.1);
  border-radius: 12px;
  border: 2px solid var(--brand);
}

/* About Page Responsive */
@media (max-width: 767.98px) {
  .about-hero-section {
    padding: 5rem 0 4rem;
  }
  
  .about-hero-title {
    font-size: 2rem;
  }
  
  .about-hero-description {
    font-size: 1rem;
  }
  
  .about-ceo-section,
  .mission-section,
  .history-section,
  .philosophy-section,
  .collections-about-section,
  .goal-section {
    padding: 3rem 0;
  }
  
  .ceo-content,
  .mission-content,
  .history-content {
    padding: 1.5rem 0;
  }
  
  .ceo-name {
    font-size: 1.5rem;
  }
  
  .philosophy-content {
    padding: 2rem 1.5rem;
  }
  
  .collection-image-wrapper {
    height: 200px;
  }
  
  .goal-title {
    font-size: 1.75rem;
  }
  
  .goal-text {
    font-size: 1rem;
  }
  
  .goal-slogan {
    font-size: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .about-hero-title {
    font-size: 1.75rem;
  }
  
  .ceo-name {
    font-size: 1.25rem;
  }
  
  .goal-title {
    font-size: 1.5rem;
  }
  
  .goal-slogan {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
}

/* ============================================
   LIGHT MODE SPECIFIC OVERRIDES
   ============================================ */

[data-theme="light"] .hero-overlay {
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.4) 100%);
}

[data-theme="light"] .category-overlay {
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.7) 100%);
}

[data-theme="light"] .artwork-overlay {
  background: rgba(255,255,255,0.85);
}

[data-theme="light"] .artwork-overlay .btn {
  color: var(--text-main);
}

[data-theme="light"] .blog-overlay {
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.7) 100%);
}

[data-theme="light"] .instagram-overlay {
  background: rgba(243, 112, 33, 0.9);
}

/* Smooth transitions for all elements */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Exclude images and specific elements from color transitions */
img, svg, video, iframe, canvas {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ensure buttons and interactive elements have proper contrast in light mode */
[data-theme="light"] .btn-primary-hero,
[data-theme="light"] .btn-secondary-hero,
[data-theme="light"] .search-btn,
[data-theme="light"] .newsletter-submit-btn,
[data-theme="light"] .newsletter-btn {
  color: #fff;
}

[data-theme="light"] .btn-secondary-hero {
  border-color: var(--text-main);
  color: var(--text-main);
}

[data-theme="light"] .btn-secondary-hero:hover {
  background: var(--text-main);
  color: var(--bg-primary);
}

/* Light mode box shadows for depth */
[data-theme="light"] .main-header {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

[data-theme="light"] .artwork-card,
[data-theme="light"] .category-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .testimonial-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

[data-theme="light"] .artwork-card:hover,
[data-theme="light"] .category-card:hover,
[data-theme="light"] .blog-card:hover,
[data-theme="light"] .feature-card:hover {
  box-shadow: 0 8px 24px rgba(243, 112, 33, 0.15);
}

/* Light mode input fields */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--border-color);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(243, 112, 33, 0.1);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--text-muted);
}