@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --primary: #e83e8c;
  --primary-dark: #c2185b;
  --secondary: #6d28d9;
  --dark: #1e293b;
  --light: #f8fafc;
  --gold: #f59e0b;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-primary: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.heading-font {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* Particles.js container */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.3;
}

/* Hero video background */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Overlay for video */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Section title animation */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  bottom: -10px;
  left: 0;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.section-title.in-view:after {
  width: 50%;
  left: 25%;
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

/* Cake card hover effect */
.cake-card {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cake-card:hover {
  transform: translateY(-15px) scale(1.02) rotateX(5deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cake-card:hover .cake-image {
  transform: scale(1.1);
}

.cake-image {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge animation */
.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.cake-card:hover .badge {
  transform: rotate(15deg);
}

/* Price tag animation */
.price-tag {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.price-tag:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.cake-card:hover .price-tag:after {
  width: 100%;
}

/* Testimonial card */
.testimonial-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease;
}

.testimonial-card.in-view {
  transform: translateY(0);
  opacity: 1;
}

.testimonial-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Navigation link animation */
.nav-link {
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

/* Button animations */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(232, 62, 140, 0.4);
}

.btn-primary:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s ease;
}

.btn-primary:hover:before {
  left: 100%;
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(232, 62, 140, 0.3);
}

/* Order steps animation */
.order-steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.order-steps li.in-view {
  opacity: 1;
  transform: translateX(0);
}

.order-steps li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.order-steps li:nth-child(1):before {
  content: "1";
}

.order-steps li:nth-child(2):before {
  content: "2";
}

.order-steps li:nth-child(3):before {
  content: "3";
}

.order-steps li:nth-child(4):before {
  content: "4";
}

/* Feature icon animation */
.feature-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: rotate(0deg) scale(1);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon:hover {
  transform: rotate(10deg) scale(1.1);
}

/* Flavor chip animation */
.flavor-chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f3e8ff;
  color: var(--secondary);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transform: scale(1);
  transition: all 0.3s ease;
}

.flavor-chip:hover {
  transform: scale(1.1);
  background-color: #e9d5ff;
}

/* Stats item animation */
.stats-item {
  background: var(--bg-secondary);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px);
  opacity: 0;
}

.stats-item.in-view {
  transform: translateY(0);
  opacity: 1;
}

.stats-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

/* Instagram feed animation */
.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.instagram-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 1/1;
  transform: scale(1);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.instagram-item img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-item:hover img {
  transform: scale(1.2);
}

.instagram-item:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.instagram-item:hover:after {
  opacity: 1;
}

.instagram-item i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.instagram-item:hover i {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius: 10px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Preloader animation */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.loader {
  width: 64px;
  height: 64px;
  position: relative;
  animation: rotate 1.5s ease-in-out infinite;
}

.loader:before,
.loader:after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--primary);
  animation: bounce 1.5s ease-in-out infinite;
}

.loader:after {
  background: var(--secondary);
  animation-delay: -0.75s;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

/* Marquee animation */
.marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 80px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
}

.marquee-content {
  display: flex;
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-tag {
  display: flex;
  align-items: center;
  padding: 0 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.marquee-tag i {
  margin-right: 1rem;
  font-size: 2rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Floating animation */
.floating {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Swiper custom styles */
.swiper {
  width: 100%;
  padding: 50px 0;
}

.swiper-slide {
  width: 300px;
  height: auto;
  opacity: 0.5;
  transition: all 0.6s ease;
}

.swiper-slide-active {
  opacity: 1;
  transform: scale(1.05);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: white;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
  transform: scale(1.2);
}

/* Form input animation */
.form-input {
  transition: all 0.3s ease;
  border: 2px solid var(--bg-tertiary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.2);
}

/* Textarea specific styles */
textarea.form-input {
  min-height: 100px;
  resize: vertical;
  color: var(--text-primary);
  padding: 12px;
}

/* Navigation animation */
nav {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Footer link animation */
.footer-link {
  position: relative;
  transition: all 0.3s ease;
}

.footer-link:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: white;
  transition: width 0.3s ease;
}

.footer-link:hover:before {
  width: 100%;
}

/* Floating action buttons */
.floating-btn {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Pulse animation */
.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Rotate animation */
.animate-rotate {
  animation: rotate 8s linear infinite;
}

/* Bounce animation */
.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* New animations */
@keyframes floatAndSpin {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.float-and-spin {
  animation: floatAndSpin 8s ease-in-out infinite;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.scale-in {
  animation: scaleIn 1s ease-out forwards;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

/* Card hover effect enhancement */
.enhanced-hover {
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.enhanced-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Glow effect */
.glow {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(232, 62, 140, 0.5);
  }

  to {
    box-shadow: 0 0 20px rgba(232, 62, 140, 0.8);
  }
}

/* 3D tilt effect */
.tilt-effect {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-10px);
  box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.3);
}

/* Gradient text animation */
.gradient-text-animate {
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--primary)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientText 3s linear infinite;
}

@keyframes gradientText {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* New animations */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes jello {
  0%,
  100% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }
}

.jello {
  animation: jello 0.8s ease-in-out;
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-in {
  animation: zoomIn 0.6s ease-out forwards;
}

/* Skeleton Loading */
.skeleton {
  background-color: #e2e8f0;
  background-image: linear-gradient(90deg, #e2e8f0, #f1f5f9, #e2e8f0);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.lazy-load {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

@media (max-width: 1024px) {
  .hero {
    min-height: 700px;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .menu-items-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 600px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .stats-item {
    padding: 1.5rem;
  }

  .stats-number {
    font-size: 2rem;
  }

  .marquee-tag {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .marquee-tag i {
    font-size: 1.5rem;
  }

  .feature-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }

  .order-form {
    padding: 1.5rem;
  }

  .form-input,
  textarea.form-input {
    padding: 0.75rem;
  }
}

@media (max-width: 640px) {
  .menu-items-container {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .btn-primary,
  .hero-content .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .menu-items-container {
    grid-template-columns: 1fr;
  }

  .swiper-slide {
    width: 250px;
  }

  .order-steps li {
    padding-left: 2.5rem;
  }

  .order-steps li:before {
    width: 2rem;
    height: 2rem;
  }

  .marquee-tag {
    font-size: 0.875rem;
    padding: 0 0.75rem;
  }

  .marquee-tag i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
  }

  .contact-section {
    padding: 1rem;
  }

  textarea.form-input {
    min-height: 80px;
  }
}

.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;
}

.breadcrumb {
  display: none;
}
