@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  /* Primary Colors */
  --color-primary: #000000; /* Changed from zinc-800 to black */
  --color-secondary: #1a1a1a; /* Changed from zinc-600 to dark black */
  --color-accent: #ba9778; /* Updated from amber-500 to requested hex color */
  
  /* Background Colors */
  --color-background: #fafafa; /* neutral-50 */
  --color-surface: #f4f4f5; /* zinc-100 */
  
  /* Text Colors */
  --color-text-primary: #000000; /* Changed from zinc-900 to black */
  --color-text-secondary: #333333; /* Changed from zinc-500 to dark gray */
  
  /* Status Colors */
  --color-success: #059669; /* emerald-600 */
  --color-warning: #a5855c; /* Updated from amber-600 to match new color scheme */
  --color-error: #dc2626; /* red-600 */
  
  /* Additional Black/Dark Shades - Updated from Zinc */
  --color-zinc-50: #fafafa; /* zinc-50 */
  --color-zinc-100: #f4f4f5; /* zinc-100 */
  --color-zinc-200: #e4e4e7; /* zinc-200 */
  --color-zinc-300: #333333; /* Changed to darker */
  --color-zinc-400: #1a1a1a; /* Changed to darker */
  --color-zinc-500: #000000; /* Changed to black */
  --color-zinc-600: #000000; /* Changed to black */
  --color-zinc-700: #000000; /* Changed to black */
  --color-zinc-800: #000000; /* Changed to black */
  --color-zinc-900: #000000; /* Already black */
  
  /* Updated Amber/Accent Color Shades */
  --color-amber-100: #f5f0e9;
  --color-amber-200: #ede2d3;
  --color-amber-300: #e0cfb8;
  --color-amber-400: #d2bc9c;
  --color-amber-500: #ba9778;
  --color-amber-600: #a5855c;
  --color-amber-700: #8a6d47;
  --color-amber-800: #6f5638;
  --color-amber-900: #543f2b;
  
  /* Shadow Variables */
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Animation Durations */
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-premium: 400ms;
}

@layer base {
  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
  }
  
  .font-accent {
    font-family: 'Playfair Display', serif;
  }
}

@layer components {
  .shadow-subtle {
    box-shadow: var(--shadow-subtle);
  }
  
  .shadow-premium {
    box-shadow: var(--shadow-premium);
  }
  
  .transition-fast {
    transition-duration: var(--duration-fast);
  }
  
  .transition-normal {
    transition-duration: var(--duration-normal);
  }
  
  .transition-premium {
    transition-duration: var(--duration-premium);
  }
}

/* Custom styling for enhanced components */
.enhanced-hover {
  transition: all 300ms ease-in-out;
}

.enhanced-hover:hover {
  transform: translateY(-1px);
}

.button-expand {
  transition: all 300ms ease-in-out;
}

.button-expand:hover {
  transform: scale(1.02);
}

.card-float {
  transition: all 300ms ease-in-out;
}

.card-float:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

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

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

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

.glow-on-hover {
  position: relative;
  overflow: hidden;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(186, 151, 120, 0.20), transparent); /* Increased opacity by 25% (0.16 to 0.20) */
  transition: left 0.5s;
}

.glow-on-hover:hover::before {
  left: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.1s ease-out;
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
  opacity: 0.90; /* Increased from 0.72 by 25% */
  transform: translateY(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.animate-fade-left.animate {
  opacity: 0.90; /* Increased from 0.72 by 25% */
  transform: translateX(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.animate-fade-right.animate {
  opacity: 0.90; /* Increased from 0.72 by 25% */
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease-out;
}

.animate-scale.animate {
  opacity: 0.90; /* Increased from 0.72 by 25% */
  transform: scale(1);
}

.image-reveal {
  overflow: hidden;
}

.image-reveal img {
  transition: transform 0.6s ease-out;
}

.image-reveal.animate img {
  transform: scale(1.05);
}

/* Stagger delays for animations */
.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }
.stagger-delay-5 { animation-delay: 0.5s; }

/* Mobile menu animation - Enhanced with proper show/hide states */
.mobile-menu-hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease-out;
  visibility: hidden;
}

.mobile-menu-show {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease-out;
  visibility: visible;
}

/* Legacy support for old mobile menu classes */
#mobile-menu {
  transition: all 0.3s ease-out;
}

#mobile-menu.show {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Custom scrollbar - Completely transparent */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
  width: 0px;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  width: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* For Firefox */
html {
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

/* Additional fallback for complete transparency */
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0px;
  display: none;
}

/* Form focus states */
input:focus, 
textarea:focus, 
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(186, 151, 120, 0.10); /* Increased opacity by 25% (0.08 to 0.10) */
}

@layer utilities {
  .opacity-92 {
    opacity: 0.92;
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 640px) {
  /* Small text adjustments for mobile */
  .text-4xl {
    font-size: 2rem !important;
    line-height: 2.25rem !important;
  }
  
  .text-5xl {
    font-size: 2.5rem !important;
    line-height: 2.75rem !important;
  }
  
  .text-6xl {
    font-size: 3rem !important;
    line-height: 3.25rem !important;
  }
  
  /* Better spacing for mobile cards */
  .card-mobile-spacing {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Mobile optimized grids */
  .grid-mobile-1 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Enhanced mobile buttons */
  .button-mobile {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
  }
  
  /* Mobile hero adjustments */
  .hero-mobile-padding {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Mobile section spacing */
  .section-mobile-padding {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Mobile image sizing */
  .image-mobile-responsive {
    width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    object-fit: cover !important;
  }
}

/* Tablet responsiveness */
@media (min-width: 641px) and (max-width: 1024px) {
  .text-5xl {
    font-size: 2.75rem !important;
    line-height: 3rem !important;
  }
  
  .text-6xl {
    font-size: 3.25rem !important;
    line-height: 3.5rem !important;
  }
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
  .mobile-nav-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .mobile-menu-button {
    display: block !important;
  }
  
  .desktop-menu {
    display: none !important;
  }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
  .enhanced-hover:hover {
    transform: none;
  }
  
  .button-expand:hover {
    transform: scale(1.02);
  }
  
  .card-float:hover {
    transform: translateY(-1px);
  }
}