/* ========================================
   Autumn Cafe — Custom Styles
   Deep Navy + Warm Gold Palette
   ======================================== */

/* Custom Tailwind Config */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --navy-950: #0a1628;
    --navy-900: #1a2744;
    --navy-800: #243660;
    --gold-500: #B8860B;
    --gold-400: #D4A017;
    --gold-300: #E8C547;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy-950);
    color: #ffffff;
  }

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

@layer components {
  /* Gold Button */
  .btn-gold {
    background: linear-gradient(135deg, #B8860B 0%, #D4A017 50%, #B8860B 100%);
    background-size: 200% 200%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .btn-gold:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(184, 134, 11, 0.4);
  }

  /* Outline Button */
  .btn-outline {
    transition: all 0.3s ease;
  }

  .btn-outline:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 160, 23, 0.5);
  }

  /* Navigation Links */
  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #B8860B, #D4A017);
    transition: width 0.3s ease;
    border-radius: 1px;
  }

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

  .nav-link:hover {
    color: #D4A017 !important;
  }

  /* Mobile Links */
  .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
  }

  /* Menu Cards */
  .menu-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu-card:hover {
    transform: translateY(-8px);
  }

  /* Gallery Items */
  .gallery-item {
    cursor: pointer;
    position: relative;
  }

  .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
  }

  .gallery-item:hover::after {
    opacity: 1;
  }

  /* Scroll Indicator */
  .scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
  }

  .scroll-dot {
    width: 100%;
    height: 12px;
    background: #D4A017;
    position: absolute;
    top: -12px;
    animation: scrollDown 2s ease-in-out infinite;
  }

  @keyframes scrollDown {
    0% { top: -12px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 40px; opacity: 0; }
  }
}

@layer utilities {
  /* Geometric Shapes */
  .geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }

  .geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
  }

  .geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
  }

  .geo-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
    top: 40%;
    right: 15%;
    animation: float 12s ease-in-out infinite;
  }

  .geo-circle-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.06) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    animation: float 18s ease-in-out infinite reverse;
  }

  .geo-diamond {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(184, 134, 11, 0.06);
    transform: rotate(45deg);
    pointer-events: none;
  }

  .geo-diamond-1 {
    top: 25%;
    left: 8%;
    animation: rotate-slow 25s linear infinite;
  }

  .geo-diamond-2 {
    bottom: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    animation: rotate-slow 20s linear infinite reverse;
  }

  .geo-diamond-3 {
    top: 30%;
    right: 5%;
    width: 100px;
    height: 100px;
    animation: rotate-slow 30s linear infinite;
  }

  .geo-stripe {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.15), transparent);
    pointer-events: none;
  }

  .geo-stripe-1 {
    width: 300px;
    top: 35%;
    left: 0;
    transform: rotate(-15deg);
  }

  .geo-stripe-2 {
    width: 200px;
    bottom: 30%;
    right: 0;
    transform: rotate(10deg);
  }

  .geo-dot-grid {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(184, 134, 11, 0.2) 1px, transparent 1px);
    background-size: 15px 15px;
    pointer-events: none;
    opacity: 0.5;
  }

  @keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
  }

  @keyframes rotate-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
  }

  /* Hero Animations */
  .hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
  }

  .hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
  }

  .hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
  }

  .hero-ctas {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Scroll Reveal (progressive enhancement) */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Navbar Scroll State */
  #navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* Mobile Menu Active State */
  #mobile-menu.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Reduced Motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    
    html {
      scroll-behavior: auto;
    }
  }

  /* Focus Styles */
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
    border-radius: 4px;
  }
}

/* Scroll Reveal JS Enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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