/* ===== Custom Font ===== */
@font-face {
  font-family: 'Curlz';
  src: url('/fonts/Curlz.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
  --color-bg: #f8f6f2;
  --color-bg-light: #fdfcfa;
  --color-text: #6b5b7a;
  --color-text-light: #9a8ba8;
  --color-plum: #8b6b7a;
  --color-rose: #e8b4b8;
  --color-pink: #f5d5d8;
  --color-sage: #b8c9a8;
  --color-blue: #bccde0;
  --color-white: #ffffff;

  --font-curlz: 'Curlz', cursive;
  --font-display: 'Comfortaa', cursive;
  --font-body: 'Quicksand', sans-serif;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 30px rgba(107, 91, 122, 0.1);
  --shadow-soft: 0 4px 20px rgba(107, 91, 122, 0.08);
  --radius: 20px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.section-title {
  font-family: var(--font-curlz);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-plum);
}

/* ===== Layout ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== Decorative Blobs ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  z-index: -1;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(248, 246, 242, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-soft);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-curlz);
  font-size: 2.2rem;
  color: var(--color-plum);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--color-rose);
  border-radius: 3px;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--color-plum);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-text);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 6rem 5% 4rem;
  overflow: hidden;
}

.hero .blob {
  width: 400px;
  height: 400px;
}

.hero .blob-1 {
  top: 10%;
  left: -100px;
  background: var(--color-pink);
}

.hero .blob-2 {
  top: 20%;
  right: -150px;
  background: var(--color-blue);
}

.hero .blob-3 {
  bottom: 10%;
  left: 20%;
  background: var(--color-sage);
  width: 300px;
  height: 300px;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  width: clamp(120px, 16vw, 200px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
}

.hero-title {
  font-family: var(--font-curlz);
  font-size: clamp(3.5rem, 10vw, 6rem);
  color: var(--color-plum);
  margin-bottom: 1rem;
  font-weight: normal;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--color-text);
  margin-bottom: 2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.scroll-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-rose), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  border-radius: var(--radius);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-pink) 100%);
  color: var(--color-plum);
  box-shadow: 0 4px 15px rgba(232, 180, 184, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 180, 184, 0.5);
}

/* ===== Gallery Section ===== */
.gallery-section {
  padding: 6rem 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  background: var(--color-white);
}

.gallery-item {
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 2rem;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--color-rose);
  color: var(--color-white);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: var(--transition);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-rose);
  color: var(--color-white);
}

/* ===== Collection Feature ===== */
.collection-feature {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-bg-light);
  border-radius: var(--radius);
}

.collection-title {
  font-family: var(--font-curlz);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-plum);
  text-align: center;
  margin-bottom: 1rem;
}

.collection-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-text-light);
  line-height: 1.8;
}

.collection-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.collection-images .gallery-item img {
  height: 250px;
}

@media (max-width: 1024px) {
  .collection-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .collection-images {
    grid-template-columns: 1fr;
  }

  .collection-images .gallery-item img {
    height: 220px;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 4rem 0;
  text-align: center;
  background: var(--color-bg-light);
}

.footer .logo {
  font-family: var(--font-curlz);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--color-plum);
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact a {
  color: var(--color-text);
  font-size: 1rem;
}

.footer-contact a:hover {
  color: var(--color-plum);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-rose);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

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

@keyframes scrollPulse {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(0.8);
  }
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.3rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

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

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

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

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
  }

  .gallery-item img {
    height: 140px;
  }
}
