/* Base Variables from index.css */
:root {
  --background: 255 255 255;
  /* Converted HSL 0 0% 100% to RGB for simplicity or keep raw values if using tailwind defaults */
  /* Actually with CDN we might just rely on Tailwind classes mostly, but let's keep the custom vars from index.css just in case */
  --foreground: 0 0% 10%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 10%;
  --primary: 0 79% 51%;
  --primary-foreground: 0 0% 100%;
  --secondary: 142 71% 45%;
  --secondary-foreground: 0 0% 100%;
  --muted: 0 0% 96%;
  --muted-foreground: 0 0% 45%;
  --accent: 142 71% 45%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 90%;
  --input: 0 0% 90%;
  --ring: 0 79% 51%;
  --radius: 0.5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App.css Content */

.App {
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* Milano Title */
.milano-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.5px;
}

/* ========== ANIMATED BACKGROUNDS ========== */
@keyframes blob {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.animated-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blob 7s ease-in-out infinite;
  opacity: 0.7;
}

.blob-1 {
  top: 10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.3), transparent);
}

.blob-2 {
  top: 50%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.25), transparent);
  animation-delay: 2s;
}

.blob-3 {
  bottom: 10%;
  left: 50%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.2), transparent);
  animation-delay: 4s;
}

.animate-blob {
  animation: blob 7s ease-in-out infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* ========== NAVIGATION LINKS ========== */
.nav-link-italia {
  position: relative;
  font-weight: 600;
  color: #1a1a1a;
  transition: color 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  padding: 8px 0;
}

.nav-link-italia::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #dc2626, #16a34a);
  transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-link-italia:hover {
  color: #dc2626;
}

.nav-link-italia:hover::after {
  width: 100%;
}

/* ========== ADVANCED ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes starTwinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes ring {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(15deg);
  }

  20% {
    transform: rotate(-15deg);
  }

  30% {
    transform: rotate(15deg);
  }

  40% {
    transform: rotate(-15deg);
  }

  50% {
    transform: rotate(0deg);
  }
}

@keyframes pingSlow {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes bounceSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseSlow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-slide-up-delay {
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.animate-fade-in-delay {
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 1s ease-out 0.5s backwards;
}

.animate-fade-in-up-delay {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.animate-star-twinkle {
  animation: starTwinkle 2s ease-in-out infinite;
}

.animate-ring {
  animation: ring 0.5s ease-in-out;
}

.animate-ping-slow {
  animation: pingSlow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-bounce-slow {
  animation: bounceSlow 3s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulseSlow 3s ease-in-out infinite;
}

/* ========== 3D PERSPECTIVE EFFECTS ========== */
.perspective-container {
  perspective: 1000px;
}

.hero-italia-image-3d {
  position: relative;
  animation: floatGentle 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes floatGentle {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-italia-image-3d img {
  transition: transform 0.1s ease-out, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.hero-italia-image-3d:hover img {
  box-shadow:
    0 30px 60px rgba(220, 38, 38, 0.3),
    0 20px 40px rgba(22, 163, 74, 0.2);
}

/* ========== GLASSMORPHISM ========== */
.glass-morphism {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.125);
}

/* ========== MENU CARDS WITH ADVANCED EFFECTS ========== */
.menu-card-italia {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
  border: 2px solid #f3f4f6;
}

.menu-card-italia::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.menu-card-italia::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(22, 163, 74, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
  pointer-events: none;
}

.menu-card-italia:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(220, 38, 38, 0.1),
    0 0 30px rgba(220, 38, 38, 0.1);
  border-color: #dc2626;
}

.menu-card-italia:hover::before {
  left: 100%;
}

.menu-card-italia:hover::after {
  opacity: 1;
}

/* ========== CONTACT CARDS ========== */
.contact-italia {
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
  border: 2px solid #f3f4f6;
  position: relative;
  overflow: hidden;
}

.contact-italia::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.05), rgba(220, 38, 38, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-italia:hover {
  transform: translateY(-8px) rotate(2deg);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(22, 163, 74, 0.15);
  border-color: #16a34a;
}

.contact-italia:hover::before {
  opacity: 1;
}

/* ========== GALLERY WITH ADVANCED EFFECTS ========== */
.gallery-italia-enhanced {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.gallery-italia-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(22, 163, 74, 0.9));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-italia-enhanced:hover {
  transform: scale(1.08) translateZ(20px);
  z-index: 10;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(220, 38, 38, 0.3);
}

.gallery-italia-enhanced:hover::before {
  opacity: 1;
}

.gallery-italia-enhanced img {
  transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-italia-enhanced:hover img {
  transform: scale(1.15) rotate(2deg);
}

.gallery-overlay-enhanced {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.gallery-italia-enhanced:hover .gallery-overlay-enhanced {
  opacity: 1;
}

/* ========== BUTTON EFFECTS ========== */
button {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

button:active {
  transform: scale(0.95);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .hero-italia-image-3d {
    margin-top: 2rem;
  }

  .animated-bg-blob {
    display: none;
  }
}

/* ========== UTILITY CLASSES ========== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prevent text selection on interactive elements */
.nav-link-italia,
button {
  user-select: none;
  -webkit-user-select: none;
}

/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #dc2626, #16a34a);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #b91c1c, #15803d);
}

/* ========== MODAL ANIMATIONS ========== */
@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-card-appear {
  animation: modalAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========== PARALLAX SECTION ========== */
@keyframes float3D {

  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-20px) rotateX(5deg);
  }
}

.parallax-float {
  animation: float3D 6s ease-in-out infinite;
}