/* ========================================
   KB.Photography — Custom Styles
   ======================================== */

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

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

/* Selection */
::selection {
  background-color: #C4704B;
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #D4A44A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C4704B;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(253, 248, 240, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Floating card animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-card-1 {
  animation: float 4s ease-in-out infinite;
}
.floating-card-2 {
  animation: float 5s ease-in-out infinite 0.5s;
}
.floating-card-3 {
  animation: float 4.5s ease-in-out infinite 1s;
}

/* Scroll reveal — below the fold only */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion — no animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .floating-card-1, .floating-card-2, .floating-card-3 {
    animation: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Image hover zoom container */
.portfolio-item {
  overflow: hidden;
  border-radius: 1rem;
}

/* Subtle gradient border on cards */
.card-gradient-border {
  position: relative;
  background: white;
  border-radius: 1.5rem;
}
.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(196, 112, 75, 0.2), rgba(212, 164, 74, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
