/* ===== CUSTOM STYLES FOR COFFEE CORNER ===== */

/* --- Geometric Animations --- */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}

.geo-circle--1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #F5A623 0%, transparent 70%);
  top: -80px;
  right: -100px;
  animation-delay: 0s;
}

.geo-circle--2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #B34F82 0%, transparent 70%);
  bottom: 10%;
  left: -60px;
  animation-delay: -3s;
}

.geo-circle--3 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, #FFD466 0%, transparent 70%);
  top: 40%;
  right: 10%;
  animation-delay: -5s;
}

.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 60px 104px 60px;
  border-color: transparent transparent #F5A623 transparent;
  opacity: 0.08;
  top: 20%;
  left: 5%;
  transform: rotate(15deg);
  animation: spin-slow 20s linear infinite;
}

.geo-square {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 3px solid rgba(245, 166, 35, 0.15);
  border-radius: 16px;
  bottom: 15%;
  right: 8%;
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite reverse;
}

.geo-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 25%;
  right: 25%;
  background-image: radial-gradient(circle, rgba(245,166,35,0.2) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.6;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(3deg); }
}

@keyframes spin-slow {
  from { transform: rotate(15deg); }
  to { transform: rotate(375deg); }
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Fallback: always show content if JS is disabled */
.no-js .reveal-up,
.no-js .reveal-left,
.no-js .reveal-right {
  opacity: 1;
  transform: none;
}

/* --- Navbar --- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(26, 11, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .burger-line {
  background: #fff;
}

/* --- Mobile Menu --- */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* --- Burger Animation --- */
.burger-active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 5px;
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Selection --- */
::selection {
  background: rgba(245, 166, 35, 0.3);
  color: #F9F0F7;
}

/* --- Focus --- */
:focus-visible {
  outline: 2px solid #F5A623;
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A0B17;
}
::-webkit-scrollbar-thumb {
  background: #6B2F5B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9B3A6A;
}

/* --- Map grayscale override --- */
iframe.grayscale {
  filter: grayscale(0.3);
  transition: filter 0.5s ease;
}
iframe.grayscale:hover {
  filter: grayscale(0);
}
