/**
 * Krejčovství Magda - Custom Stylesheet
 */

/* Material Symbols Outlined settings */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 24;
}

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(253, 248, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Smooth Scrolling & Section Offset */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a8abab;
}

/* Image Transitions */
.portfolio-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.04);
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Page Load & Hero Entrance Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSettleZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-animate-bg {
  animation: heroSettleZoom 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform;
}

.hero-animate-item {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate-delay-1 {
  animation-delay: 0.15s;
}

.hero-animate-delay-2 {
  animation-delay: 0.3s;
}

.hero-animate-delay-3 {
  animation-delay: 0.45s;
}

.hero-animate-delay-4 {
  animation-delay: 0.6s;
}

/* Scroll Progress Indicator Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #9b8ed7, #c4b9f8, #7664b9);
  z-index: 100;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(155, 142, 215, 0.6);
}

/* Universal Scroll Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-left {
  transform: translateX(-36px);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(36px);
}

.reveal-on-scroll.reveal-scale {
  transform: scale(0.94);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Subtle scroll entrance animation for cards */
.fade-in-card {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover lift & glow */
.interactive-card {
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.interactive-card:hover {
  transform: translateY(-4px);
}

/* Scroll To Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease;
}

#scroll-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-animate-bg,
  .hero-animate-item,
  .reveal-on-scroll,
  .fade-in-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
