/* Landing page custom styles */

html {
  scroll-behavior: smooth;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-card {
  background: rgba(37, 38, 38, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gradient-button {
  background: linear-gradient(135deg, #e3c19f 0%, #5a4229 100%);
}

/* Hero portrait image */
.hero-portrait {
  filter: contrast(1.05) brightness(0.95) saturate(0.9) sepia(0.08);
  transition: filter 0.6s ease;
}

.hero-portrait:hover {
  filter: contrast(1.02) brightness(1.0) saturate(0.95) sepia(0.04);
}

/* Scroll-triggered fade-in animations */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar transition on scroll */
.nav-scrolled {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
  max-height: 400px;
}

/* Staggered children animations */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--stagger-index, 0) * 100ms);
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter cursor */
.typewriter-cursor::after {
  content: '|';
  display: inline;
  animation: blink-cursor 0.7s step-end infinite;
  color: #e3c19f;
  font-weight: 100;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typewriter-done::after {
  animation: blink-cursor 0.7s step-end 3;
  animation-fill-mode: forwards;
  opacity: 0;
}

/* Tilt card GPU hint */
.tilt-card {
  will-change: transform;
}

.tilt-card .tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(227, 193, 159, 0.08) 0%,
    transparent 60%
  );
}

.tilt-card:hover .tilt-shine {
  opacity: 1;
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .fade-section,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
