:root {
  /* Color Palette */
  --color-primary: #6c5ce7;
  --color-secondary: #a29bfe;
  --color-accent: #fd79a8;
  --color-dark: #959595;
  --color-light: #f5f6fa;
  --color-success: #00b894;

  /* Text Colors */
  --text-primary: var(--color-dark);
  --text-secondary: #636e72;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #000;
    --text-secondary: #000;
    --color-dark: #f5f6fa;
    --color-light: #f8f8f8;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
  }
}

body {
  font-family: "Comic Neue", cursive, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--color-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.light-mode {
  --text-primary: var(--color-dark);
  --text-secondary: #000000;
  background-color: #7c7c7c;
  --color-light: #f5f6fa;
}

body.light-mode header {
  box-shadow: var(--shadow-sm);
}

body.light-mode .hero-card {
  box-shadow: var(--shadow-md);
}

body.dark-mode {
  --text-primary: #f5f6fa;
  --text-secondary: #b2bec3;
  --color-dark: #f5f6fa;
  --color-light: #2d3436;
}
html.puppy-page,
body.puppy-page {
  background-image: url("imgs/PuppyInBleu-Artist\ Page\ Background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: transparent;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.tos-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 10%;
  padding: 0 var(--space-lg);
}
/* Header Styles */
header {
  background-color: var(--color-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  height: 100px;
  top: 0;
  z-index: 100;
  transition: all var(--transition-normal);
}

header.shrink {
  padding: var(--space-xs) 0;
}

.header-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-lg);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70%;
}
.logo-button {
  height: 100px;
  margin-top: auto;
  margin-bottom: 1rem;
}

.logo-button img {
  height: 100px;
  transition: transform var(--transition-normal);
  will-change: transform;
}

.logo-button:hover img {
  animation: shake 0.5s ease-in-out;
}

/* Navigation */
.center-nav {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 30%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: bold;
  font-size: 2.1rem;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle-container {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.theme-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: color var(--transition-normal);
  padding: var(--space-xs);
  border-radius: 50%;
}

.theme-toggle button:hover {
  color: var(--color-primary);
  background-color: rgba(108, 92, 231, 0.1);
}
.theme-toggle button i {
  transition: transform 1s ease-in-out;
  transform: rotate(0deg);
}

.theme-toggle button:hover i {
  transform: rotate(360deg);
}

/* Hero Section */
.hero-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
  align-items: start;
}

.hero-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.hero-image-container {
  aspect-ratio: 16/9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-bottom: 3px solid var(--color-primary);
  padding: var(--space-lg);
}

.hero-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: fill;
  transition: transform var(--transition-normal);
  image-rendering: -webkit-optimize-contrast;
}

.hero-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hero-content h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.hero-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25rem;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

.btn:hover {
  background-color: #5a4fcf;
  transform: translateY(-2px);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.btn:hover::after {
  opacity: 0.2;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.btn-group .btn {
  flex: 1;
  min-width: 140px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Gallery Section */
.gallery {
  margin: var(--space-xl) 0;
  text-align: center;
}

.gallery h2 {
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

/* Carousel Styles */
.carousel-container {
  width: 100%;
  max-width: 1200px;
  height: 450px;
  position: relative;
  perspective: 1000px;
  margin-top: var(--space-xl);
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.card {
  position: absolute;
  width: 280px;
  height: 380px;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  image-rendering: -webkit-optimize-contrast;
}

.card.center {
  z-index: 10;
  transform: scale(1.1) translateZ(0);
}

.card.center img {
  filter: none;
}

.card.left-2 {
  z-index: 1;
  transform: translateX(-400px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

.card.left-2 img {
  filter: grayscale(100%);
}

.card.left-1 {
  z-index: 5;
  transform: translateX(-200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

.card.left-1 img {
  filter: grayscale(100%);
}

.card.right-1 {
  z-index: 5;
  transform: translateX(200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

.card.right-1 img {
  filter: grayscale(100%);
}

.card.right-2 {
  z-index: 1;
  transform: translateX(400px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

.card.right-2 img {
  filter: grayscale(100%);
}

.card.hidden {
  opacity: 0;
  pointer-events: none;
}

.member-info {
  text-align: center;
  margin-top: var(--space-lg);
  transition: all var(--transition-slow);
}

.member-name {
  color: var(--color-secondary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.member-name::before,
.member-name::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 100px;
  height: 2px;
  background: var(--color-secondary);
}

.member-name::before {
  left: -120px;
}

.member-name::after {
  right: -120px;
}

.member-role {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-md) 0;
  margin-top: -15px;
  position: relative;
}

.dots {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  background: var(--color-secondary);
  transform: scale(1.2);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-secondary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-normal);
  font-size: 1.5rem;
  border: none;
  outline: none;
  padding-bottom: 4px;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
  left: var(--space-lg);
  padding-right: 3px;
}

.nav-arrow.right {
  right: var(--space-lg);
  padding-left: 3px;
}

/* Order Form Section */
.order-section {
  background: white;
  padding: var(--space-lg);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) auto;
  max-width: 800px;
}

.order-section h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: bold;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-normal);
  background-color: var(--color-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-lg) 0;
  margin-top: auto;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.social-links {
  display: flex;
  gap: var(--space-lg);
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color var(--transition-normal);
}

.social-links a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
}

/* Animations */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px) rotate(-2deg);
  }
  50% {
    transform: translateX(3px) rotate(2deg);
  }
  75% {
    transform: translateX(-2px) rotate(-1deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient-slide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
