/* 🎨 COMPONENTS LIBRARY */
/* Default (Light Mode) */
:root {
  --card-bg: var(--white);
  --text-color: var(--text);
}

/* Dark Mode Overrides */
body.dark-mode {
  --card-bg: #2c2c2c;
  --text-color: #e0e0e0;
}

/* 🔹 Button Component */
.btn-primary {
  background: var(--primary);
  color: white;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  background: #2f6aa1;
}

/* 🔹 Card Component */
.card {
  background: var(--card-bg);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 🔹 Gallery Card (Image Wrapper) */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}
.gallery-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-card:hover img {
  transform: scale(1.05);
}

/* 🔹 Section Wrapper */
.section {
  padding: 6rem 1rem;
  max-width: 960px;
  margin: auto;
  text-align: center;
  color: var(--text-color);
}

/* 🔹 Nav Link */
.nav-link {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: opacity 0.3s;
}
.nav-link:hover {
  opacity: 0.7;
}
.flip-toggle {
  width: 44px;
  height: 44px;
  perspective: 800px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
}

.front {
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg);
}

/* 🎯 Flip the inner wrapper when dark mode is active */
body.dark-mode .flip-inner {
  transform: rotateY(180deg);
}
/* Floating flip button */
.floating-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Move to opposite side */
  z-index: 1000;
  background: transparent;
  border: none;
}

/* Reuse from previous flip styles */
.flip-toggle {
  width: 44px;
  height: 44px;
  perspective: 800px;
  padding: 0;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
}

.front {
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg);
}

body.dark-mode .flip-inner {
  transform: rotateY(180deg);
}
.swatch {
  width: 120px;
  height: 60px;
  background: var(--swatch);
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


