/* Global Styles with New Warm Beige Theme */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import "tailwindcss";
@import "tw-animate-css";

:root {
  /* Updated color palette from pink to warm beige tones */
  --primary: #e3d5ca;
  --secondary: #d5bdaf;
  --accent: #8b7355;
  --muted: #faf7f4;
  --dark-primary: #b8a394;
  --text-primary: #4a4a4a;
  --text-secondary: #6b6b6b;
  --white: #ffffff;
  --black: #1a1a1a;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

@theme inline {
  /* optional: --font-sans, --font-serif, --font-mono if they are applied in the layout.tsx */
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  overflow-x: hidden;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Clamp text to 4 lines */
.line-clamp-4 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  overflow: hidden !important;
}
/* utility for smooth transitions when expanding review text */
.review-text {
  transition: all 200ms ease;
}
#mobile-menu.open {
  display: block;
}

/* Added smooth scrolling and enhanced cursor interactions */
html {
  scroll-behavior: smooth;
  /* cursor: none; */
}

/* Custom cursor for enhanced interactivity
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  transform: scale(2);
  background: var(--secondary);
} */

/* Enhanced animations and 3D effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

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

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

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

/* Enhanced fade-in animations with stagger effects */
.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in-right {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 0;
}

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

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Enhanced hover effects with 3D transforms */
.hover-scale {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.hover-scale:hover {
  transform: scale(1.05) rotateY(5deg) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(213, 189, 175, 0.3);
}

.hover-lift {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.hover-lift:hover {
  transform: translateY(-10px) rotateX(10deg);
  box-shadow: 0 15px 30px rgba(213, 189, 175, 0.4);
}

.hover-tilt {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.hover-tilt:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
}

/* Interactive button styles with new color scheme */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--dark-primary));
  color: var(--white);
  padding: 12px 32px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.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: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(213, 189, 175, 0.4);
  background: linear-gradient(135deg, var(--dark-primary), var(--primary));
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 12px 32px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(213, 189, 175, 0.3);
}

/* Enhanced card styles with 3D effects */
.card-3d {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(213, 189, 175, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.card-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card-3d:hover::before {
  transform: scaleX(1);
}

.card-3d:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 50px rgba(213, 189, 175, 0.2);
}

/* Masonry grid with enhanced animations */
.masonry {
  column-count: 3;
  column-gap: 20px;
  column-fill: balance;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.masonry-item:hover {
  transform: scale(1.02) rotateZ(1deg);
}

@media (max-width: 768px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry {
    column-count: 1;
  }
}

/* Interactive navigation with glass morphism */
nav {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(213, 189, 175, 0.1);
}

nav a {
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Parallax and scroll effects */
.parallax-container {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.parallax-element {
  transition: transform 0.1s ease-out;
}

/* Loading animations */
.loading-animation {
  position: relative;
  overflow: hidden;
}

.loading-animation::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(213, 189, 175, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Interactive form elements */
input,
textarea,
select {
  transition: all 0.3s ease;
  border: 2px solid rgba(213, 189, 175, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(213, 189, 175, 0.1);
  transform: translateY(-2px);
}

/* Responsive design enhancements */
@media (max-width: 768px) {
  .hover-scale:hover,
  .hover-lift:hover,
  .hover-tilt:hover {
    transform: none;
  }

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

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

/* Print styles */
@media print {
  .fade-in,
  .hover-scale,
  .hover-lift,
  .hover-tilt,
  .card-3d {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ensure carousel arrow buttons accept taps on mobile */
#carousel #prev,
#carousel #next {
  touch-action: manipulation; /* prevent scroll from canceling the tap */
  -webkit-tap-highlight-color: transparent; /* remove iOS tap highlight */
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: auto; /* make sure they receive events */
  z-index: 10000; /* above any overlays */
}

/* guarantee custom cursor can never block touches if turned on */
.custom-cursor {
  pointer-events: none !important;
}
