/* ===== Custom Styles for The Alexander ===== */

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

/* Scroll reveal base - content is visible by default */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When JS is enabled and prefers-reduced-motion is off, add hidden state */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating card animations */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -1.3s;
  animation-duration: 4.5s;
}

.floating-card:nth-child(3) {
  animation-delay: -2.6s;
  animation-duration: 3.8s;
}

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(253, 252, 250, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

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

.nav-scrolled .nav-text {
  color: #1B4332;
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #66BB6A;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #2E7D32;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

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