/* ============================================
   KANDILAND BAKERY — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #faf9f6;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0c0c0b;
}
::-webkit-scrollbar-thumb {
  background: #2d6041;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d7a53;
}

/* ---- Floating Card Animations ---- */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(0.5deg); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-0.5deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(0.3deg); }
}
@keyframes float-4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-0.3deg); }
}

.floating-card {
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.card-1 { animation-name: float-1; }
.card-2 { animation-name: float-2; }
.card-3 { animation-name: float-3; }
.card-4 { animation-name: float-4; }

/* ---- Reveal Animations ---- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Navbar Scrolled State ---- */
.nav-scrolled {
  background: rgba(12, 12, 11, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-scrolled #navbar .text-cream-200\/70 {
  color: rgba(235, 232, 223, 0.7) !important;
}

/* ---- Mobile Menu Transitions ---- */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* ---- Custom Select Styling ---- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%23c9a84c' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ---- Button Ripple Effect ---- */
button, a {
  -webkit-tap-highlight-color: transparent;
}

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

/* ---- Image Loading ---- */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ---- Smooth Section Transitions ---- */
section {
  position: relative;
}

/* ---- Print Styles ---- */
@media print {
  nav, .floating-card, #contact-form { display: none; }
  body { background: white; color: black; }
}
