/* ========================================
   The Main Street Creamery — Custom Styles
   ======================================== */

/* Base */
html {
  scroll-behavior: smooth;
}

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

/* ========================================
   Geometric Background Shapes
   ======================================== */
.geo-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

.geo-circle-1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dce8dc 0%, #b9d0b9 100%);
  top: 10%;
  right: -5%;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #f0f5f0;
  bottom: 15%;
  right: 10%;
  animation: float-medium 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #c8956c;
  opacity: 0.2;
  top: 40%;
  left: 5%;
  animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid #dce8dc;
  opacity: 0.3;
  top: 20%;
  left: 8%;
  animation: rotate-slow 30s linear infinite;
}

.geo-square-rotated {
  width: 100px;
  height: 100px;
  background: #f0f5f0;
  opacity: 0.4;
  bottom: 20%;
  left: 15%;
  transform: rotate(45deg);
  animation: float-medium 12s ease-in-out infinite;
}

.geo-dots {
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, #8fb88f 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.3;
  top: 60%;
  right: 5%;
  animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-circle-4 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b9d0b9 0%, #dce8dc 100%);
  top: -10%;
  right: -10%;
  animation: float-slow 25s ease-in-out infinite;
}

.geo-triangle-2 {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 87px solid #c8956c;
  opacity: 0.15;
  bottom: 10%;
  left: 5%;
  animation: rotate-slow 25s linear infinite reverse;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   Navigation
   ======================================== */
.nav-scrolled {
  background: rgba(254, 254, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2d5f2d;
  transition: width 0.3s ease;
}

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

/* ========================================
   Menu Cards
   ======================================== */
.menu-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Special Cards
   ======================================== */
.special-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-card:hover {
  transform: translateY(-4px);
}

/* ========================================
   Gallery Items
   ======================================== */
.gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

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

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #2d5f2d;
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
  width: 40px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
  .geo-circle-1 {
    width: 150px;
    height: 150px;
  }

  .geo-circle-2 {
    width: 80px;
    height: 80px;
  }

  .geo-triangle {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #dce8dc;
  }

  .geo-square-rotated {
    width: 50px;
    height: 50px;
  }
}
