/* ============================================
   Quick Rick's — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-text {
  color: #1e293b;
}

#navbar:not(.scrolled) .nav-text {
  color: #f1f5f9;
}

#navbar:not(.scrolled) a.nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) a.nav-link:hover {
  color: #5eead4;
}

/* Mobile menu */
#mobileMenu.show {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature cards */
.feature-card {
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

.feature-card:last-child {
  border-right: none;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Geometric shapes */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #5eead4;
  top: -100px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #fbbf24;
  bottom: 10%;
  left: 5%;
  animation: float2 10s ease-in-out infinite;
}

.shape-circle-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #fb7185;
  top: 30%;
  right: 10%;
  animation: float3 7s ease-in-out infinite;
}

.shape-square-1 {
  width: 120px;
  height: 120px;
  background: #34d399;
  top: 20%;
  left: 8%;
  transform: rotate(45deg);
  animation: spin1 12s linear infinite;
}

.shape-square-2 {
  width: 80px;
  height: 80px;
  background: #f472b6;
  bottom: 25%;
  right: 15%;
  transform: rotate(20deg);
  animation: spin2 15s linear infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #a78bfa;
  top: 60%;
  left: 15%;
  animation: float1 9s ease-in-out infinite;
}

.shape-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 20px solid #60a5fa;
  top: 15%;
  right: 25%;
  animation: float2 11s ease-in-out infinite;
}

.shape-dots {
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, #fbbf24 2px, transparent 2px);
  background-size: 12px 12px;
  bottom: 15%;
  right: 8%;
  animation: float3 6s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(20px) translateX(-15px); }
}

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

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

@keyframes spin2 {
  from { transform: rotate(20deg); }
  to { transform: rotate(-340deg); }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* Gallery hover */
.rounded-2xl.overflow-hidden img {
  transition: transform 0.5s ease;
}

.rounded-2xl.overflow-hidden:hover img {
  transform: scale(1.05);
}

/* Menu list items hover */
.bg-gradient-to-br ul li {
  transition: transform 0.2s ease;
}

.bg-gradient-to-br ul li:hover {
  transform: translateX(4px);
}

/* Form focus states */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* CTA button hover */
a[href="#menu"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
}

a[href="#menu"]:active,
button[type="submit"]:active {
  transform: translateY(0);
}

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

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

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Selection color */
::selection {
  background: #0d9488;
  color: white;
}
