/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #f4a6cd; /* Soft Pink */
  --primary-color-alt: #e91e63; /* Deeper Pink */
  --secondary-color: #ffd1dc; /* Lighter Pink */
  --accent-color: #d4af37; /* Gold/Yellow for highlights */
  --text-color: #2c2c2c; /* Dark Gray */
  --text-color-light: #6b7280; /* Medium Gray */
  --white-color: #ffffff;
  --body-color: #fefefe; /* Off-white background */
  --container-color: #ffffff; /* White for cards/sections */
  --border-color: #e5e7eb; /* Light Gray border */
  --shadow-color: rgba(0, 0, 0, 0.08); /* Softer subtle shadow */
  --shadow-strong: rgba(0, 0, 0, 0.15); /* Stronger shadow for hover */

  /* Dark mode colors */
  --dark-body-color: #1a1a1a; /* Dark background */
  --dark-container-color: #2d2d2d; /* Darker gray for cards/sections */
  --dark-text-color: #f5f5f5; /* Light text */
  --dark-text-color-light: #a1a1aa; /* Lighter gray text */
  --dark-border-color: #404040; /* Darker border */
  --dark-shadow-color: rgba(255, 255, 255, 0.08); /* Light shadow */
  --dark-shadow-strong: rgba(255, 255, 255, 0.15); /* Stronger light shadow */

  /* Typography */
  --body-font: "Inter", sans-serif;
  --title-font: "Playfair Display", serif;
  --biggest-font-size: 3.5rem; /* Slightly larger for impact */
  --h1-font-size: 2.8rem;
  --h2-font-size: 2.2rem;
  --h3-font-size: 1.6rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.9rem;
  --smaller-font-size: 0.8rem;

  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* Spacing */
  --header-height: 4.5rem; /* Slightly taller header */
  --section-padding: 6rem 0; /* More vertical space for sections */
  --container-padding: 0 1.5rem; /* Slightly more horizontal padding */

  /* Border radius */
  --border-radius: 0.75rem;
  --border-radius-small: 0.5rem;
  --border-radius-large: 1.5rem;

  /* Transitions */
  --transition: all 0.3s ease-in-out; /* Smoother transitions */
  --transition-fast: all 0.2s ease-out;

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Dark mode variables */
[data-theme="dark"] {
  --body-color: var(--dark-body-color);
  --container-color: var(--dark-container-color);
  --text-color: var(--dark-text-color);
  --text-color-light: var(--dark-text-color-light);
  --border-color: var(--dark-border-color);
  --shadow-color: var(--dark-shadow-color);
  --shadow-strong: var(--dark-shadow-strong);

  /* Footer specific dark mode background */
  .footer {
    background: var(--dark-body-color); /* Ensure footer is dark in dark mode */
  }
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  color: var(--text-color);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  background: none; /* Ensure buttons don't have default background */
}

input,
textarea {
  font-family: inherit;
  outline: none;
  border: none; /* Reset default border */
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section__title {
  font-size: var(--h2-font-size);
  font-family: var(--title-font);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section__subtitle {
  text-align: center;
  color: var(--text-color-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-width: 150px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: var(--white-color);
  box-shadow: 0 4px 15px rgba(244, 166, 205, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px); /* More pronounced hover */
  box-shadow: 0 8px 25px var(--shadow-strong); /* Stronger shadow on hover */
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color-alt);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px); /* More pronounced hover */
  box-shadow: 0 6px 20px rgba(244, 166, 205, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  /* Animation applied by JS using IntersectionObserver */
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-large);
  box-shadow: 0 4px 20px var(--shadow-color);
  z-index: var(--z-fixed);
  transition: var(--transition);
  padding: 0 1rem; /* Add padding to header itself */
}

[data-theme="dark"] .header {
  background: rgba(45, 45, 45, 0.95);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0 2rem; Removed, handled by header padding */
}

.brand-name {
  font-family: var(--title-font);
  font-size: 1.6rem; /* Slightly larger brand name */
  font-weight: var(--font-bold);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* Increased gap for better spacing */
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0; /* Add padding for larger clickable area */
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color-alt); /* Deeper pink on hover/active */
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -8px; /* Adjusted position */
  left: 0;
  width: 0;
  height: 3px; /* Thicker underline */
  background: var(--primary-color-alt); /* Deeper pink underline */
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem; /* Slightly increased gap */
}

.theme-toggle {
  background: var(--container-color);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 45px; /* Slightly larger toggle */
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--shadow-color); /* Subtle shadow on toggle */
}

.theme-toggle:hover {
  transform: scale(1.05); /* Less aggressive scale */
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--shadow-strong);
}

.theme-toggle__icon {
  font-size: 1.3rem; /* Slightly larger icon */
  transition: var(--transition);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px; /* Slightly larger gap for hamburger lines */
  width: 30px; /* Ensure consistent size */
  height: 20px; /* Ensure consistent size */
  justify-content: center;
  align-items: center;
}

.nav__toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 4rem); /* Adjusted padding */
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(244, 166, 205, 0.1), rgba(255, 209, 220, 0.1)); /* Soft gradient overlay */
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.8), rgba(26, 26, 26, 0.8));
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; /* Increased gap */
  align-items: center;
}

.hero__content {
  text-align: left; /* Left align text for desktop */
}

.hero__title {
  font-size: var(--biggest-font-size);
  font-family: var(--title-font);
  font-weight: var(--font-bold);
  margin-bottom: 1.2rem; /* Adjusted margin */
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color-light);
  margin-bottom: 1.8rem; /* Adjusted margin */
  font-style: italic;
}

.hero__description {
  font-size: 1.15rem; /* Slightly larger description text */
  color: var(--text-color-light);
  margin-bottom: 3rem; /* Adjusted margin */
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 1.5rem; /* Increased gap */
  flex-wrap: wrap;
  justify-content: flex-start; /* Left align buttons for desktop */
}

.hero__image {
  position: relative;
  display: flex; /* Use flex to center image */
  justify-content: center;
  align-items: center;
  height: 100%; /* Ensure it takes available height */
}

.hero__image img {
  width: 100%; /* Scale up image */
  max-width: 600px; /* Increased max width for desktop */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Ensure image fits without cropping */
  border-radius: var(--border-radius-large);
  box-shadow: 0 15px 40px var(--shadow-strong); /* Stronger shadow for hero image */
  transition: var(--transition);
}

.hero__image:hover img {
  transform: scale(1.01); /* Subtle scale on hover */
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--container-color);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; /* Increased gap */
  align-items: center; /* Vertically align content */
}

.about__text .section__title {
  text-align: left;
  margin-bottom: 2.5rem; /* Adjusted margin */
}

.about__description {
  color: var(--text-color-light);
  margin-bottom: 2.2rem; /* Adjusted margin */
  line-height: 1.7;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; /* Adjusted gap */
  margin-top: 3.5rem; /* Adjusted margin */
}

.stat {
  text-align: center;
  padding: 1.8rem; /* Increased padding */
  background: linear-gradient(135deg, var(--secondary-color), rgba(244, 166, 205, 0.1));
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: 0 2px 10px var(--shadow-color); /* Subtle shadow */
}

.stat:hover {
  transform: translateY(-8px); /* More pronounced hover */
  box-shadow: 0 8px 20px var(--shadow-strong); /* Stronger shadow on hover */
}

.stat__number {
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--primary-color-alt);
  margin-bottom: 0.6rem; /* Adjusted margin */
}

.stat__label {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.about__image img {
  border-radius: var(--border-radius-large);
  box-shadow: 0 10px 30px var(--shadow-strong); /* Stronger shadow */
}

/* ===== CATEGORIES SECTION ===== */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem; /* Increased gap */
  margin-top: 3.5rem; /* Adjusted margin */
}

.category-card {
  background: var(--container-color);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-12px); /* More pronounced hover */
  box-shadow: 0 18px 45px var(--shadow-strong); /* Stronger shadow on hover */
}

.category-card__image {
  position: relative;
  height: 220px; /* Slightly taller image area */
  overflow: hidden;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover .category-card__image img {
  transform: scale(1.08); /* More pronounced scale */
}

.category-card__content {
  padding: 2.2rem; /* Increased padding */
}

.category-card__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1.2rem; /* Adjusted margin */
  color: var(--text-color);
}

.category-card__description {
  color: var(--text-color-light);
  margin-bottom: 1.8rem; /* Adjusted margin */
  line-height: 1.6;
}

.category-card__link {
  color: var(--primary-color);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem; /* Adjusted gap */
  transition: var(--transition);
}

.category-card__link:hover {
  color: var(--primary-color-alt);
}

.arrow {
  transition: var(--transition);
}

.category-card__link:hover .arrow {
  transform: translateX(8px); /* More pronounced arrow movement */
}

/* ===== TRENDING SECTION ===== */
.trending {
  background: var(--container-color);
}

.trending__slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-large);
  padding: 0 2rem; /* Add padding for slider buttons */
}

.trending__track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease-in-out; /* Smoother transition */
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trending__track::-webkit-scrollbar {
  display: none;
}

.trending__card {
  flex: 0 0 350px;
  background: var(--body-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
}

.trending__card:hover {
  transform: translateY(-8px); /* More pronounced hover */
  box-shadow: 0 12px 30px var(--shadow-strong); /* Stronger shadow on hover */
}

.trending__image {
  height: 200px;
  overflow: hidden;
}

.trending__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.trending__card:hover .trending__image img {
  transform: scale(1.07); /* More pronounced scale */
}

.trending__content {
  padding: 1.8rem; /* Increased padding */
}

.trending__category {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color-alt);
  padding: 0.3rem 0.8rem; /* Slightly larger padding */
  border-radius: var(--border-radius-small);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 1.2rem; /* Adjusted margin */
}

.trending__title {
  font-size: 1.2rem; /* Slightly larger title */
  margin-bottom: 0.8rem; /* Adjusted margin */
  color: var(--text-color);
  line-height: 1.3;
}

.trending__excerpt {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin-bottom: 1.2rem; /* Adjusted margin */
  line-height: 1.5;
}

.trending__link {
  color: var(--primary-color);
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.trending__link:hover {
  color: var(--primary-color-alt);
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white-color);
  border: none;
  width: 55px; /* Slightly larger buttons */
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem; /* Larger icon */
  color: var(--text-color);
  box-shadow: 0 4px 15px var(--shadow-color);
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.slider__btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-50%) scale(1.08); /* Subtle scale */
  box-shadow: 0 6px 20px var(--shadow-strong);
}

.slider__btn--prev {
  left: 0;
}

.slider__btn--next {
  right: 0;
}

/* ===== GALLERY SECTION ===== */
.gallery {
  background: var(--container-color);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Slightly larger min width */
  gap: 1.2rem; /* Adjusted gap */
  margin-top: 3.5rem; /* Adjusted margin */
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px var(--shadow-color); /* Subtle shadow */
}

.gallery__item:hover {
  transform: scale(1.03); /* Subtle scale */
  box-shadow: 0 8px 20px var(--shadow-strong); /* Stronger shadow on hover */
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 166, 205, 0.85), rgba(233, 30, 99, 0.85)); /* Slightly more opaque */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__tag {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  font-size: 1.2rem; /* Slightly larger tag */
}

/* Lightbox styles (added dynamically by JS) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95); /* Darker overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); /* Stronger shadow for lightbox */
}

.lightbox__content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.lightbox__close {
  position: absolute;
  top: -45px; /* Adjusted position */
  right: -5px; /* Adjusted position */
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem; /* Larger close button */
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox__close:hover {
  transform: rotate(90deg); /* Rotate on hover */
  color: var(--primary-color);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
  background: linear-gradient(135deg, var(--secondary-color), rgba(244, 166, 205, 0.1));
  text-align: center;
}

[data-theme="dark"] .newsletter {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.8), rgba(26, 26, 26, 0.8));
}

.newsletter__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.2rem; /* Adjusted margin */
  color: var(--text-color);
}

.newsletter__description {
  color: var(--text-color-light);
  margin-bottom: 2.8rem; /* Adjusted margin */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter__form {
  max-width: 550px; /* Slightly wider form */
  margin: 0 auto;
}

.newsletter__input-group {
  display: flex;
  gap: 1.2rem; /* Adjusted gap */
  margin-bottom: 1.2rem; /* Adjusted margin */
}

.newsletter__input {
  flex: 1;
  padding: 1.1rem 1.6rem; /* Slightly more padding */
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--normal-font-size);
  background: var(--white-color);
  color: var(--text-color);
  transition: var(--transition);
}

.newsletter__input:focus {
  border-color: var(--primary-color-alt); /* Deeper pink on focus */
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.15); /* Stronger focus shadow */
}

.newsletter__btn {
  padding: 1.1rem 2.2rem; /* Adjusted padding */
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: var(--white-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-strong);
}

.newsletter__privacy {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.newsletter__success {
  display: none;
  background: var(--white-color);
  padding: 2.5rem; /* More padding */
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px var(--shadow-color);
  text-align: center;
}

.newsletter__success.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.newsletter__success h3 {
  color: var(--primary-color-alt);
  margin-bottom: 0.8rem; /* Adjusted margin */
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--container-color);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; /* Increased gap */
  align-items: start;
}

.contact__info .section__title {
  text-align: left;
  margin-bottom: 1.5rem; /* Adjusted margin */
}

.contact__description {
  color: var(--text-color-light);
  margin-bottom: 2.8rem; /* Adjusted margin */
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* Increased gap */
}

.contact__item-title {
  font-size: 1.2rem; /* Slightly larger title */
  margin-bottom: 0.6rem; /* Adjusted margin */
  color: var(--text-color);
}

.contact__item-text {
  color: var(--text-color-light);
}

.social__links {
  display: flex;
  gap: 1.2rem; /* Adjusted gap */
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; /* Slightly larger social icons */
  height: 48px;
  background: var(--secondary-color);
  border-radius: 50%;
  font-size: 1.3rem; /* Larger icon */
  transition: var(--transition);
}

.social__link:hover {
  background: var(--primary-color);
  transform: translateY(-5px); /* More pronounced hover */
}

.contact__form {
  background: var(--body-color);
  padding: 3rem; /* More padding */
  border-radius: var(--border-radius-large);
  box-shadow: 0 8px 25px var(--shadow-color); /* Stronger shadow */
}

.form__group {
  margin-bottom: 1.8rem; /* Adjusted margin */
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 1.1rem 1.6rem; /* Slightly more padding */
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--normal-font-size);
  background: var(--container-color);
  color: var(--text-color);
  transition: var(--transition);
  resize: vertical;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--primary-color-alt); /* Deeper pink on focus */
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.15); /* Stronger focus shadow */
}

.form__success {
  display: none;
  background: var(--secondary-color);
  color: var(--primary-color-alt);
  padding: 1.2rem; /* Adjusted padding */
  border-radius: var(--border-radius);
  margin-top: 1.5rem; /* Adjusted margin */
  text-align: center;
}

.form__success.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-color);
  color: var(--white-color);
  padding: 4rem 0 1.5rem; /* More padding */
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem; /* Increased gap */
  margin-bottom: 2.5rem; /* Adjusted margin */
}

.footer__brand .brand-name {
  color: var(--white-color);
  margin-bottom: 1.2rem; /* Adjusted margin */
  font-size: 1.8rem; /* Larger brand name */
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.8rem; /* Adjusted margin */
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 1.2rem; /* Adjusted gap */
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px; /* Slightly larger social icons */
  height: 45px;
  background: rgba(255, 255, 255, 0.15); /* Slightly more visible background */
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--primary-color);
  transform: translateY(-5px); /* More pronounced hover */
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; /* Increased gap */
}

.footer__title {
  font-size: 1.2rem; /* Slightly larger title */
  margin-bottom: 1.2rem; /* Adjusted margin */
  color: var(--white-color);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem; /* Adjusted gap */
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--primary-color);
  padding-left: 0.6rem; /* More pronounced padding shift */
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more visible border */
  padding-top: 2rem; /* More padding */
  text-align: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--small-font-size);
}

.footer__sitemap-link {
  margin-top: 0.6rem; /* Adjusted margin */
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
  :root {
    --biggest-font-size: 3rem;
    --h1-font-size: 2.4rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.4rem;
    --section-padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero__container,
  .about__container,
  .contact__content {
    grid-template-columns: 1fr;
    gap: 3rem; /* Adjusted gap */
  }

  .hero__image {
    order: -1; /* Move image above text on smaller screens */
  }

  .hero__content {
    text-align: center; /* Center align text for mobile */
  }

  .hero__buttons {
    justify-content: center; /* Center align buttons for mobile */
  }

  .categories__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.8rem;
    --h3-font-size: 1.3rem;
    --header-height: 4rem;
  }

  .header {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    padding: 0 1rem; /* Ensure padding on mobile */
  }

  .nav {
    padding: 0; /* Removed, handled by header padding */
    position: relative;
  }

  .nav__brand {
    flex-grow: 1;
  }

  .nav__actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--container-color);
    transition: var(--transition);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 0;
    overflow-y: auto;
    z-index: var(--z-fixed) - 1;
    box-shadow: 0 8px 20px var(--shadow-strong); /* Add shadow to mobile menu */
  }

  [data-theme="dark"] .nav__menu {
    background: var(--dark-container-color);
  }

  .nav__menu.show-menu {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.8rem; /* Adjusted gap */
    margin-bottom: 2.5rem; /* Adjusted margin */
  }

  .nav__link {
    font-size: 1.1rem; /* Slightly larger mobile links */
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    padding-top: calc(var(--header-height) + 2.5rem); /* Adjusted padding */
    min-height: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .btn {
    min-width: auto;
    width: 100%;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 1.2rem; /* Adjusted gap */
  }

  .categories__grid {
    grid-template-columns: 1fr;
  }

  .trending__card {
    flex: 0 0 280px;
  }

  .slider__btn {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter__input-group {
    flex-direction: column;
  }

  .newsletter__input,
  .newsletter__btn {
    width: 100%;
  }

  .footer__links {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --biggest-font-size: 2rem;
    --h1-font-size: 1.8rem;
    --h2-font-size: 1.6rem;
    --h3-font-size: 1.2rem;
    --section-padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .trending__card {
    flex: 0 0 250px;
  }

  .contact__form {
    padding: 1.8rem; /* Adjusted padding */
  }

  .footer__content {
    gap: 2rem;
  }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-color-alt);
  outline-offset: 3px; /* Increased offset for better visibility */
  border-radius: var(--border-radius-small); /* Apply to elements with rounded corners */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-strong: rgba(0, 0, 0, 0.6);
  }

  .btn-primary {
    border: 2px solid var(--primary-color-alt);
  }

  .btn-secondary {
    border-width: 3px;
  }
}
