/* Theme Colors */
:root {
  --theme-bg: #FEFCF9;
  --theme-bg-light: #F5EEE0;
  --theme-bg-button: #F7ECD9;
  --theme-text: #5D524B;
  --theme-text-dark: #3E3632;
  --theme-accent: #A67C52;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--theme-bg);
  color: var(--theme-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-weight: 300;
}

.text-balance { text-wrap: balance; }

/* Typography */
h1, h2, h3, h4, h5, h6 { 
  font-family: 'Playfair Display', serif; 
  letter-spacing: -0.02em;
  font-weight: 400;
}

.font-serif { font-family: 'Playfair Display', serif; }

/* Reveal Animation */
.reveal { 
  opacity: 0; 
  transform: translateY(40px); 
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); 
}
.reveal.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Staggered Slide-up Animation */
.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Underline Animation */
.hero-underline {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-underline 1.5s ease-out 0.5s forwards;
}

@keyframes draw-underline {
  to {
    stroke-dashoffset: 0;
  }
}

/* Warm Gradient Text */
.gradient-text-warm {
  background: linear-gradient(135deg, #A67C52 0%, #D4A574 50%, #8B6543 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #b2ef91 0%, #fa9372 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Radial Background */
.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-from) 0%, var(--tw-gradient-to) 100%);
}

/* Card Hover */
.mai-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease,
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mai-card:hover {
  transform: translateY(-8px);
}

/* Navigation Link Animation */
.nav-link {
  position: relative;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--theme-accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--theme-text-dark);
}

/* Button Hover */
.btn-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease,
              box-shadow 0.3s ease;
}
.btn-hover:hover {
  transform: translateY(-2px);
}
.btn-hover:active {
  transform: translateY(0);
}

/* Selection */
::selection {
  background-color: var(--theme-accent);
  color: white;
}

/* Smooth Focus */
input:focus, button:focus, a:focus {
  outline: none;
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--theme-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--theme-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-text-dark);
}

/* Subtle Loading Animation */
@keyframes subtle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

/* Image Load Animation */
img {
  transition: opacity 0.5s ease;
}

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

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

/* Fade In Up Animation for scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}
/* Stagger delays */
.delay-100 { animation-delay: 100ms; transition-delay: 100ms; }
.delay-200 { animation-delay: 200ms; transition-delay: 200ms; }
.delay-300 { animation-delay: 300ms; transition-delay: 300ms; }
.delay-400 { animation-delay: 400ms; transition-delay: 400ms; }
.delay-500 { animation-delay: 500ms; transition-delay: 500ms; }

/* Scroll Hint Animation */
@keyframes scroll-hint {
  0%, 100% { 
    transform: translateY(0); 
    opacity: 1;
  }
  50% { 
    transform: translateY(8px); 
    opacity: 0.6;
  }
}

.animate-scroll-hint {
  animation: scroll-hint 2s ease-in-out infinite;
}

