/* VARIABLES */
:root {
  /* Colors */
  --primary: #F2C9D8;
  --secondary: #AFC7E8;
  --accent: #1B2A41;
  --background: #FBF9F9;
  --cta: #D0C4F2;
  
  /* Typography */
  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Montserrat', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Borders */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--background);
  color: var(--accent);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

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

a:hover {
  color: var(--cta);
}

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

button, .btn {
  background-color: var(--accent);
  color: var(--background);
  border: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: var(--text-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  display: inline-block;
}

button:hover, .btn:hover {
  background-color: var(--cta);
  transform: translateY(-2px);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-lg) 0;
}

/* NAVIGATION & HEADER */
header {
  padding: var(--space-md) 0;
  position: relative;
  z-index: 1000;
  transition: transform var(--transition-normal);
}

.header-scroll-hide {
  transform: translateY(-100%);
}

.logo {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: bold;
  color: var(--accent);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cta);
  transition: width var(--transition-normal);
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  margin: 6px auto;
  background-color: var(--accent);
  transition: all var(--transition-normal);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    transform: rotate(-10deg) scale(0.9);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.slide-right {
  opacity: 0;
  animation: slideInFromRight 0.8s ease forwards;
}

.slide-left {
  opacity: 0;
  animation: slideInFromLeft 0.8s ease forwards;
}

.scale-up {
  opacity: 0;
  animation: scaleUp 0.8s ease forwards;
}

.rotate-in {
  opacity: 0;
  animation: rotateIn 0.8s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

.hover-pulse:hover {
  animation: pulse 1s ease infinite;
}

.hover-rotate:hover {
  transform: rotate(3deg) scale(1.02);
  transition: transform var(--transition-normal);
}

/* Text animation for logo and headings */
.text-reveal {
  display: inline-block;
  overflow: hidden;
  position: relative;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
  to {
    transform: translateY(0);
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--secondary);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(242, 201, 216, 0.3), rgba(175, 199, 232, 0.3));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background-color: rgba(251, 249, 249, 0.85);
  backdrop-filter: blur(5px);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero p {
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
}

.hero-btn {
  padding: var(--space-sm) var(--space-lg);
}

/* FEATURE SECTIONS */
.feature-section {
  padding: var(--space-xl) 0;
}

.feature-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.feature-title {
  margin-bottom: var(--space-xs);
  color: var(--accent);
}

/* PRODUCTS SECTION */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: var(--space-md);
}

.product-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.product-price {
  font-size: var(--text-xl);
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.product-description {
  margin-bottom: var(--space-sm);
}

/* CONTACT FORM */
.contact-section {
  position: relative;
  padding: var(--space-xl) 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.contact-info {
  padding-right: var(--space-lg);
}

.contact-form {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form-checkbox input {
  margin-top: 5px;
}

.submit-btn {
  width: 100%;
  padding: var(--space-sm);
}

/* FOOTER */
footer {
  background-color: var(--accent);
  color: var(--background);
  padding: var(--space-lg) 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo {
  color: var(--background);
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: bold;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  color: var(--background);
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  width: 100%;
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
}

/* COOKIES POPUP */
.cookies-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  padding: var(--space-md);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
}

.cookies-content {
  margin-bottom: var(--space-sm);
}

.cookies-buttons {
  display: flex;
  gap: var(--space-sm);
}

.cookies-accept {
  background-color: var(--accent);
}

.cookies-decline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* 404 PAGE */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found-content {
  max-width: 600px;
}

.not-found h1 {
  font-size: 6rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

/* THANK YOU PAGE */
.thank-you {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1234;
    position: relative;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--background);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-lg);
    display:none;
  }
  
  .nav-links.active {
    right: 0;
    display:flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero {
    height: auto;
    padding: var(--space-xl) 0;
  }
  
  .hero-content {
    padding: var(--space-lg);
  }
  
  .feature-section,
  .contact-section {
    padding: var(--space-lg) 0;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-content {
    padding: var(--space-md);
  }
  
  .product-card {
    min-width: 100%;
  }
  
  .contact-form {
    padding: var(--space-md);
  }
}
