/* Egyptian Creativity - V2 with V1 Animations */
/* CSS Variables - Egyptian Color Palette */
:root {
  /* Your specified color palette */
  --royal-dark-blue: #052077;
  --rich-blue: #2b2b90;
  --medium-blue-violet: #3535ab;
  --royal-orange: #e06427;
  --soft-yellow: #e5bbcb;
  --soft-gold: #cb8a58;
  --beige-gold: #dfbe8c;
  --dark-golden-brown: #ba8249;

  /* Additional Egyptian colors */
  --pyramid-gold: #FFD700;
  --desert-sand: #F4E4BC;
  --papyrus: #F7F3E3;
  --ancient-bronze: #CD7F32;

  /* Text colors */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #ffffff;
  --text-gold: var(--soft-gold);

  /* Shadows and effects */
  --shadow-primary: 0 10px 30px rgba(5, 32, 119, 0.3);
  --shadow-gold: 0 0 30px rgba(203, 138, 88, 0.5);
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.6);

  /* Typography */
  --font-primary: 'Cinzel', serif;
  --font-secondary: 'Cormorant Garamond', serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Sidebar background */
  --bg-card: rgba(255,255,255,0.97);
}

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  cursor: url('../images/go3raann.cur'), auto !important;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--rich-blue) 0%, var(--medium-blue-violet) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ANIMATED BACKGROUND (From Version 1) */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rich-blue) 0%, var(--medium-blue-violet) 50%, var(--royal-dark-blue) 100%);
}

.pyramid-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, transparent 50%, rgba(212, 175, 55, 0.05) 50%);
  animation: pyramidRotate 20s linear infinite;
}

@keyframes pyramidRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.sand-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.sand-particles::before,
.sand-particles::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--pyramid-gold);
  border-radius: 50%;
  animation: sandFloat 15s linear infinite;
}

.sand-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.sand-particles::after {
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

@keyframes sandFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-100px) translateX(50px);
  }
}

.hieroglyph-symbols {
  position: absolute;
  width: 100%;
  height: 100%;
}

.symbol {
  position: absolute;
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.1);
  animation: symbolFloat 20s ease-in-out infinite;
}

.symbol:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.symbol:nth-child(2) { top: 20%; right: 10%; animation-delay: 3s; }
.symbol:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 6s; }
.symbol:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 9s; }
.symbol:nth-child(5) { top: 50%; left: 8%; animation-delay: 12s; }
.symbol:nth-child(6) { top: 70%; right: 5%; animation-delay: 15s; }

@keyframes symbolFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
    opacity: 0.3;
  }
}

.golden-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.1), transparent, rgba(212, 175, 55, 0.05), transparent);
  animation: raysRotate 30s linear infinite;
}

@keyframes raysRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.floating-artifacts {
  position: absolute;
  width: 100%;
  height: 100%;
}

.artifact {
  position: absolute;
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.2);
  animation: artifactFloat 15s ease-in-out infinite;
}

.artifact-1 { top: 10%; left: 10%; animation-delay: 0s; }
.artifact-2 { top: 20%; right: 15%; animation-delay: 4s; }
.artifact-3 { bottom: 30%; left: 20%; animation-delay: 8s; }
.artifact-4 { bottom: 20%; right: 10%; animation-delay: 12s; }

@keyframes artifactFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.4;
  }
}

/* Loading Screen (Unified Style) */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--royal-dark-blue) 0%, var(--rich-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: all 1s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: var(--text-light);
}

.loading-pyramid {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  animation: pulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.loading-pyramid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loading-text {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--pyramid-gold);
}

.loading-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--soft-yellow);
}

.loading-progress {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 2rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pyramid-gold), var(--soft-gold));
  border-radius: 2px;
  width: 0;
  transition: width 0.3s ease;
}

.skip-btn {
  background: transparent;
  border: 2px solid var(--pyramid-gold);
  color: var(--pyramid-gold);
  padding: 0.75rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skip-btn:hover {
  background: var(--pyramid-gold);
  color: var(--royal-dark-blue);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* Header - Matching Shop Page Dimensions */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 32, 119, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(203, 138, 88, 0.3);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(5, 32, 119, 0.98);
  box-shadow: var(--shadow-primary);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 1.2rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-light);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pyramid-gold);
  line-height: 1;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--soft-yellow);
  line-height: 1;
}

/* Global active state for navigation links (applies on all breakpoints) */
.nav-menu .nav-link.active {
  color: var(--pyramid-gold);
  position: relative;
}
.nav-menu .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--pyramid-gold);
  border-radius: 2px;
}

/* Global mobile menu backdrop */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pyramid-gold);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pyramid-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-light);
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.header-icon:hover {
  background: var(--pyramid-gold);
  color: var(--royal-dark-blue);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--royal-orange);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.75rem;
  width: 44px;
  height: 44px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.mobile-menu-btn span {
  width: 22px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition-smooth);
  display: block;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 220px 0 80px; /* extra space below navbar */ /* Increased top padding from 120px to 180px */
  position: relative;
  background: transparent;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  color: var(--text-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border: 2px solid #ffd700;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #1a1a2e;
  backdrop-filter: blur(10px);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-title .line {
  display: block;
  line-height: 1.1;
}

.hero-title .golden {
  background: linear-gradient(45deg, var(--pyramid-gold), var(--soft-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--soft-yellow);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--royal-orange) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 20px rgba(224, 100, 39, 0.4) !important;
  font-weight: 700 !important;
}

.btn-primary:hover {
  background: #d55a1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224, 100, 39, 0.6);
}

.btn-secondary {
  background: transparent !important;
  color: #FFD700 !important;
  border: 2px solid #FFD700 !important;
  font-weight: 700 !important;
}

.btn-secondary:hover {
  background: var(--pyramid-gold);
  color: var(--royal-dark-blue);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pyramid-gold);
  color: var(--pyramid-gold);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pyramid-gold);
  line-height: 1;
  text-shadow: var(--glow-gold);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--soft-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.featured-product {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(203, 138, 88, 0.3);
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  box-shadow: var(--shadow-primary);
  transform: perspective(1000px) rotateY(0deg);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: heroProductFloat 6s ease-in-out infinite;
}

.featured-product:hover {
  transform: perspective(1000px) rotateY(5deg) translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: var(--pyramid-gold);
}

@keyframes heroProductFloat {
  0%, 100% {
      transform: perspective(1000px) rotateY(0deg) translateY(0px);
  }
  25% {
      transform: perspective(1000px) rotateY(2deg) translateY(-5px);
  }
  50% {
      transform: perspective(1000px) rotateY(0deg) translateY(-10px);
  }
  75% {
      transform: perspective(1000px) rotateY(-2deg) translateY(-5px);
  }
}

.product-showcase {
  text-align: center;
}

.product-image {
  margin-bottom: 1.5rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image:hover img {
  transform: scale(1.1) rotate(2deg);
}

.product-info h3 {
  color: var(--pyramid-gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.featured-product:hover .product-info h3 {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.product-info p {
  color: var(--soft-yellow);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.featured-product:hover .product-info p {
  color: var(--pyramid-gold);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pyramid-gold);
  margin-bottom: 1.5rem;
  text-shadow: var(--glow-gold);
}

.product-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--pyramid-gold);
  box-shadow: var(--glow-gold);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--soft-gold);
  transform: scale(1.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--soft-yellow);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-line {
  width: 1px;
  height: 30px;
  background: var(--pyramid-gold);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.5); }
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border: 2px solid #ffd700;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.section-title {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.section-description {
  font-size: 1.1rem;
  color: var(--soft-yellow);
  line-height: 1.7;
}

/* Collection Section */
.collection {
  background: rgba(53, 53, 171, 0.3);
  backdrop-filter: blur(10px);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.collection-item {
  background: rgba(223, 190, 140, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(203, 138, 88, 0.3);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.collection-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--pyramid-gold);
}

.item-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.collection-item:hover .item-image img {
  transform: scale(1.1);
}

.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 32, 119, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.collection-item:hover .item-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: var(--text-light);
}

.overlay-content h3 {
  color: var(--pyramid-gold);
  margin-bottom: 0.5rem;
}

.item-price {
  font-size: 1.2rem;
  color: var(--pyramid-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.action-btn {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 600;
  font-size: 0.8rem;
}

.add-to-cart {
  background: var(--royal-orange);
  color: var(--text-light);
}

.add-to-wishlist {
  background: transparent;
  color: var(--pyramid-gold);
  border: 1px solid var(--pyramid-gold);
  width: 40px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-info {
  padding: 1.5rem;
}

.item-category {
  font-size: 0.8rem;
  color: var(--soft-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.item-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-family: var(--font-primary);
}

.item-description {
  color: var(--soft-yellow);
  font-size: 0.9rem;
  line-height: 1.5;
}

.collection-footer {
  text-align: center;
}

/* Make 'View All Collection' button smaller and centered on index page */
.collection-footer .btn {
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  display: block;
  border-width: 2px;
}

/* About Section */
.about {
  background: rgba(43, 43, 144, 0.3);
  backdrop-filter: blur(10px);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  color: var(--soft-yellow);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-content h4 {
  color: var(--pyramid-gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
}

.feature-content p {
  color: var(--soft-yellow);
  margin: 0;
  font-size: 0.9rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 400px;
}

.visual-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.visual-item.large {
  grid-row: 1 / -1;
}

.visual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.visual-item:hover img {
  transform: scale(1.05);
}

/* Gallery Section */
.gallery {
  background: rgba(53, 53, 171, 0.3);
  backdrop-filter: blur(10px);
}

.gallery-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(5, 32, 119, 0.9));
  padding: 2rem;
  color: var(--text-light);
}

.slide-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--pyramid-gold);
  font-family: var(--font-primary);
}

.slide-info p {
  font-size: 1.1rem;
  color: var(--soft-yellow);
  margin: 0;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.gallery-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(5, 32, 119, 0.8);
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: var(--pyramid-gold);
  color: var(--royal-dark-blue);
  transform: scale(1.1);
}

/* Blog Section */
.blog {
  background: rgba(43, 43, 144, 0.3);
  backdrop-filter: blur(10px);
}

.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.blog-card {
  background: rgba(223, 190, 140, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(203, 138, 88, 0.3);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: var(--pyramid-gold);
}

.blog-card.featured {
  grid-row: 1 / -1;
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card.featured .card-image {
  height: 300px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--royal-orange);
  color: var(--text-light);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2; /* Always on top */
  pointer-events: none; /* Not clickable */
}

.card-content {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--soft-gold);
}

.card-category {
  color: var(--pyramid-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-light);
  font-family: var(--font-primary);
}

.blog-card.featured .card-title {
  font-size: 1.6rem;
}

.card-excerpt {
  color: var(--soft-yellow);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.card-link {
  color: var(--pyramid-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.card-link:hover {
  color: var(--soft-gold);
}

/* Testimonials Section */
.testimonials {
  background: rgba(53, 53, 171, 0.3);
  backdrop-filter: blur(10px);
  padding: 5rem 0;
  overflow: hidden;
}

.testimonials-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  width: fit-content;
  animation: testimonialAutoScroll var(--animation-duration, 40s) linear infinite;
}

.testimonial-card {
  min-width: 400px;
  margin-right: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(203, 138, 88, 0.3);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  align-items: center;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--pyramid-gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-content {
  width: 100%;
}

.quote-icon {
  font-size: 3rem;
  color: var(--pyramid-gold);
  margin-bottom: 1.5rem;
  text-shadow: var(--glow-gold);
  animation: float 3s ease-in-out infinite;
}

.testimonial-text {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--pyramid-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--pyramid-gold);
  font-family: var(--font-primary);
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.author-info p {
  color: var(--soft-yellow);
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
}

.rating {
  color: var(--pyramid-gold);
  font-size: 1rem;
}

@keyframes testimonialAutoScroll {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-50%);
  }
}

/* Newsletter Section */
.newsletter {
  background: rgba(43, 43, 144, 0.3);
  backdrop-filter: blur(10px);
  padding: 4rem 0;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-icon {
  font-size: 3rem;
  color: var(--pyramid-gold);
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
  text-shadow: var(--glow-gold);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.newsletter-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.newsletter-subtitle {
  color: var(--soft-yellow);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(203, 138, 88, 0.3);
  color: var(--text-light);
  padding: 1rem;
  border-radius: 25px;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
  color: var(--soft-yellow);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--pyramid-gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.newsletter-btn {
  background: var(--royal-orange) !important;
  color: var(--text-light) !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 1rem 2rem !important;
  box-shadow: 0 4px 20px rgba(224, 100, 39, 0.4) !important;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #d55a1f !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224, 100, 39, 0.6) !important;
}

/* Footer */
.footer {
  background: var(--royal-dark-blue);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(203, 138, 88, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 80px !important;
  width: auto !important;
  max-width: 240px !important;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-description {
  color: var(--soft-yellow);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--pyramid-gold);
  color: var(--royal-dark-blue);
  transform: translateY(-2px);
}

.footer-section h4 {
  color: var(--pyramid-gold);
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--soft-yellow);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--pyramid-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft-yellow);
}

/* Notifications */
.notification-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 3000;
}

.notification {
  background: rgba(5, 32, 119, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid var(--pyramid-gold);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  min-width: 300px;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.notification.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* --- Search Modal Styles --- */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 32, 119, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(203, 138, 88, 0.3);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  margin: 10vh auto;
  transform: translateY(-20px);
  transition: var(--transition-smooth);
}

.search-modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(203, 138, 88, 0.3);
}

.modal-header h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--pyramid-gold);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pyramid-gold);
}

.search-input-container {
  position: relative;
  padding: 1.5rem;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(203, 138, 88, 0.3);
  color: var(--text-light);
  padding: 1rem 3rem 1rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--pyramid-gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.search-input::placeholder {
  color: var(--soft-yellow);
}

.search-icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--soft-gold);
}

.search-suggestions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggestion-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.suggestion-item:hover {
  background: var(--pyramid-gold);
  color: var(--royal-dark-blue);
}

/* Mobile Navigation (global) */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    z-index: 1002; /* above backdrop and menu */
  }

  .mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: rgba(5, 32, 119, 0.98);
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(203, 138, 88, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001; /* above backdrop */
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px; /* leave space for header */
    gap: 12px;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu .nav-link {
    color: var(--text-light);
    padding: 12px 10px;
    border-radius: 8px;
  }

  /* On mobile, avoid hover highlight (touch may stick). Only active shows. */
  .nav-menu .nav-link.active {
    background: rgba(203, 138, 88, 0.15);
    color: var(--pyramid-gold);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .about-content {
      grid-template-columns: 1fr;
      gap: 3rem;
      text-align: center;
  }

  .hero-visual {
      order: 1;
  }

  .blog-grid {
      grid-template-columns: 1fr;
  }

  .footer-content {
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
  }
  .footer-content {
    justify-items: center;
  }
  .footer-section:first-child {
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .footer-social {
    justify-content: center !important;
  }

  .testimonial-card {
      min-width: 350px;
  }

  /* Enhanced tablet styles */
  .container {
      padding: 0 2rem;
  }

  .header-container {
      padding: 0 2rem;
  }

  .nav-menu {
      gap: 1.5rem;
  }

  .nav-link {
      font-size: 0.9rem;
  }

  .hero-title {
      font-size: clamp(2.5rem, 6vw, 3.5rem);
  }

  .section-title {
      font-size: clamp(2rem, 5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--royal-dark-blue) 0%, var(--rich-blue) 100%) !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1500 !important;
    padding: 2rem 0 !important;
    text-align: center !important;
    box-shadow: 0 12px 40px rgba(5, 32, 119, 0.3) !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
  }
  .nav-menu.active {
    display: block !important;
    animation: slideDown 0.3s ease-out !important;
  }
  .nav-link {
    display: block !important;
    padding: 1.2rem 2rem !important;
    font-size: 1.1rem !important;
    color: var(--text-light) !important;
    border: none !important;
    background: none !important;
    text-align: center !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    margin: 0.25rem 1rem !important;
    border-radius: 8px !important;
  }
  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--pyramid-gold) !important;
    transform: translateY(-2px) !important;
  }
  .nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--pyramid-gold) !important;
    transition: all 0.3s ease !important;
    transform: translateX(-50%) !important;
  }
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 60% !important;
  }
  .mobile-menu-btn {
      display: flex !important;
  }

  /* Ensure mobile menu button is always visible on mobile */
  .header-actions .mobile-menu-btn {
      order: 999;
  }

  .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
  }

  .hero-stats {
      justify-content: center;
      flex-wrap: wrap;
      gap: 2rem;
  }

  .collection-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
  }

  .visual-grid {
      grid-template-columns: 1fr;
      grid-template-rows: repeat(3, 1fr);
  }

  .visual-item.large {
      grid-row: auto;
  }

  .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 2rem;
  }
  .footer-content {
    justify-items: center;
  }
  .footer-section:first-child {
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .footer-social {
    justify-content: center !important;
  }

  .form-group {
      flex-direction: column;
  }

  .newsletter-btn {
      width: 100%;
  }

  .testimonial-card {
      min-width: 300px;
      padding: 1.5rem;
  }

  .testimonials-container {
      height: auto;
      min-height: 350px;
  }

  /* Mobile animations adjustments */
  .symbol {
    font-size: 1.5rem;
  }

  .artifact {
    font-size: 2rem;
  }

  .golden-rays {
    width: 400px;
    height: 400px;
  }

  /* Enhanced mobile styles */
  .container {
      padding: 0 1.5rem;
  }

  .header-container {
      padding: 0 1.5rem;
  }

  .hero {
      padding: 160px 0 80px;
  }

  .hero-content {
      gap: 2rem;
  }

  .hero-description {
      font-size: 1rem;
      line-height: 1.6;
  }

  .btn {
      padding: 0.875rem 1.5rem;
      font-size: 0.95rem;
  }

  .section-header {
      text-align: center;
      margin-bottom: 3rem;
  }

  .section-description {
      font-size: 1rem;
      line-height: 1.6;
  }

  /* Mobile navigation improvements */
  .mobile-menu-btn {
      width: 44px;
      height: 44px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
      border: 2px solid rgba(255, 255, 255, 0.25);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-btn:hover {
      background: rgba(255, 255, 255, 0.25);
      border-color: rgba(255, 255, 255, 0.4);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }

  .mobile-menu-btn span {
      width: 20px;
      height: 2.5px;
      border-radius: 2px;
  }

  /* Mobile search modal improvements */
  .search-modal .modal-content {
      margin: 5vh auto;
      max-width: 90%;
  }

  .search-input {
      font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Mobile sidebar improvements */
  .sidebar {
      width: 100%;
      max-width: 400px;
  }

  .nav-menu.active {
    display: block !important;
    background: #052077;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1500;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(5,32,119,0.18);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  .nav-link.active {
    color: #FFD700 !important;
    font-weight: bold !important;
    position: relative;
  }
  .nav-link.active::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
  }
}

@media (max-width: 480px) {
  .header-container {
      padding: 0 1rem;
  }

  .logo {
      gap: 0.5rem;
  }

  .logo-main {
      font-size: 1rem;
  }

  .logo-sub {
      font-size: 0.7rem;
  }

  .hero {
      padding: 140px 0 60px;
  }

  section {
      padding: 3rem 0;
  }

  .hero-title {
      font-size: 2.5rem;
      line-height: 1.2;
  }

  .section-title {
      font-size: 2rem;
      line-height: 1.3;
  }

  .featured-product {
      max-width: 100%;
      padding: 1rem;
  }

  .gallery-container {
      height: 300px;
  }

  .testimonial-card {
      min-width: 280px;
      padding: 1rem;
  }

  .testimonial-text {
      font-size: 1rem;
  }

  /* Small screen animations adjustments */
  .pharaoh-mask {
    width: 80px;
    height: 80px;
  }

  .mask-symbol {
    font-size: 2rem;
  }

  .loading-title {
    font-size: 1.5rem;
  }

  .loading-bar {
    width: 250px;
  }

  /* Enhanced small mobile styles */
  .container {
      padding: 0 1rem;
  }

  .hero-content {
      gap: 1.5rem;
  }

  .hero-buttons {
      gap: 0.75rem;
  }

  .btn {
      padding: 0.75rem 1.25rem;
      font-size: 0.9rem;
      width: 100%;
      max-width: 280px;
  }

  .hero-stats {
      gap: 1.5rem;
  }

  .stat {
      min-width: 80px;
  }

  .stat-number {
      font-size: 1.5rem;
  }

  .stat-label {
      font-size: 0.8rem;
  }

  .collection-item {
      margin-bottom: 1.5rem;
  }

  .footer-content {
      gap: 1.5rem;
  }

  .footer-section h4 {
      font-size: 1.1rem;
  }

  .footer-links a {
      font-size: 0.85rem;
  }

  /* Mobile header improvements */
  .header-actions {
      gap: 0.5rem;
  }

  .header-icon {
      width: 36px;
      height: 36px;
      padding: 0.5rem;
  }

  /* Ensure mobile menu button is prominent on small screens */
  .mobile-menu-btn {
      width: 40px !important;
      height: 40px !important;
      background: rgba(255, 255, 255, 0.2) !important;
      border: 2px solid rgba(255, 255, 255, 0.3) !important;
  }

  .mobile-menu-btn:hover {
      background: rgba(255, 255, 255, 0.3) !important;
      border-color: rgba(255, 255, 255, 0.5) !important;
  }

  .badge {
      font-size: 0.7rem;
      min-width: 16px;
      height: 16px;
      top: -2px;
      right: -2px;
  }

  /* Mobile search improvements */
  .search-suggestions {
      flex-direction: column;
      gap: 0.5rem;
  }

  .suggestion-item {
      text-align: center;
      padding: 0.75rem 1rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero-title {
      font-size: 2rem;
  }

  .section-title {
      font-size: 1.75rem;
  }

  .container {
      padding: 0 0.75rem;
  }

  .header-container {
      padding: 0 0.75rem;
  }

  .btn {
      padding: 0.625rem 1rem;
      font-size: 0.85rem;
  }

  .hero-stats {
      gap: 1rem;
  }

  .stat {
      min-width: 70px;
  }

  .stat-number {
      font-size: 1.25rem;
  }

  .stat-label {
      font-size: 0.75rem;
  }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
      padding: 120px 0 40px;
  }

  .hero-content {
      gap: 1rem;
  }

  .hero-title {
      font-size: 2rem;
  }

  .hero-description {
      font-size: 0.9rem;
  }

  .hero-stats {
      gap: 1rem;
  }

  .loading-overlay .loading-content {
      transform: scale(0.8);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .header-icon:hover,
  .btn:hover,
  .nav-link:hover {
      transform: none;
  }

  .collection-item:hover .item-overlay {
      opacity: 0.9;
  }

  .btn {
      min-height: 44px; /* Minimum touch target size */
  }

  .header-icon {
      min-width: 44px;
      min-height: 44px;
  }

  .nav-link {
      min-height: 44px;
      display: flex;
      align-items: center;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
  }
}

/* Utility Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

.hidden { display: none; }
.visible { display: block; }

/* Payment Iframe Styles */
.payment-error-message {
  text-align: center;
  padding: 2rem;
  background: #fff8f8;
  border: 1px solid #ffebee;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.payment-error-message .error-icon {
  color: #f44336;
  margin-bottom: 1rem;
}

.payment-error-message h4 {
  color: #d32f2f;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.payment-error-message p {
  color: #5f2120;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

#retry-payment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#retry-payment:hover {
  background: #1565c0;
}

#retry-payment .btn-icon {
  display: flex;
  align-items: center;
}

/* Login Required Message Styles */
.login-required-message {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  margin: 2rem 0;
}

.login-required-message h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.login-required-message p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.login-icon {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.login-icon svg {
  color: white;
}

.login-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.login-actions .btn {
  min-width: 120px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.login-actions .btn-primary {
  background: #28a745;
  border-color: #28a745;
}

.login-actions .btn-primary:hover {
  background: #218838;
  border-color: #1e7e34;
  transform: translateY(-2px);
}

.login-actions .btn-outline-primary {
  color: white;
  border-color: white;
  background: transparent;
}

.login-actions .btn-outline-primary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

.login-note {
  margin-top: 1rem;
  opacity: 0.8;
}

.login-note small {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments for login prompt */
@media (max-width: 768px) {
  .login-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .login-actions .btn {
    width: 100%;
    max-width: 200px;
  }
  
  .login-required-message {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }
}

/* Loading spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.card-iframe-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
}

.card-iframe-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
}

.card-iframe-loading .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(5, 32, 119, 0.1);
  border-radius: 50%;
  border-top-color: var(--royal-orange);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

.card-iframe-loading p {
  color: var(--royal-dark-blue);
  font-size: 1.1rem;
  font-weight: 500;
}

.card-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(42, 42, 42, 0.8);
}

::-webkit-scrollbar-thumb {
  background: var(--pyramid-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--soft-gold);
}

/* Selection Styling */
::selection {
  background: var(--pyramid-gold);
  color: var(--royal-dark-blue);
}

::-moz-selection {
  background: var(--pyramid-gold);
  color: var(--royal-dark-blue);
}

/* Egyptian-themed Empty State */
.empty-state {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--pyramid-gold);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pyramid-gold), var(--royal-orange), var(--pyramid-gold));
}

.empty-state__icon {
  font-size: 4rem;
  color: var(--pyramid-gold);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.empty-state__icon i {
  position: relative;
  z-index: 1;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.empty-state__decoration {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  z-index: 0;
  opacity: 0.15;
}

.hieroglyph {
  font-size: 2.5rem;
  animation: hieroglyphFloat 8s ease-in-out infinite;
  display: inline-block;
}

.hieroglyph:nth-child(2) { animation-delay: 1s; }
.hieroglyph:nth-child(3) { animation-delay: 2s; }

@keyframes hieroglyphFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.empty-state__title {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  color: var(--pyramid-gold);
  margin: 0 0 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
}

.empty-state__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--pyramid-gold), var(--royal-orange));
  margin: 0.8rem auto 0;
  border-radius: 3px;
}

.empty-state__text {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 80%;
  opacity: 0.9;
}

.empty-state a {
  color: var(--pyramid-gold);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: var(--transition-smooth);
}

.empty-state a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--royal-orange);
  transition: width 0.3s ease;
}

.empty-state a:hover {
  color: var(--royal-orange);
}

.empty-state a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .empty-state {
    margin: 1rem auto;
    padding: 2rem 1.5rem;
  }
  
  .empty-state__title {
    font-size: 1.5rem;
  }
  
  .empty-state__text {
    font-size: 1rem;
    max-width: 90%;
  }
  
  .empty-state__icon {
    font-size: 3.5rem;
  }
  
  .hieroglyph {
    font-size: 2rem;
  }
}