/* Custom CSS for Alena Langmajerová (a.la) Portfolio */

:root {
  --color-bg: #FAF9F6;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F4F2EC;
  --color-text-main: #18181B;
  --color-text-muted: #52525B;
  --color-text-subtle: #71717A;
  --color-border: #E4E4E7;
  --color-border-subtle: #EBEAE5;
  --color-magenta: #E11D74;
  --color-magenta-hover: #BE123C;
  --color-magenta-light: #FFF0F5;
  --color-magenta-glow: rgba(225, 29, 116, 0.15);
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--color-magenta);
  color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF9F6;
}
::-webkit-scrollbar-thumb {
  background: #D4D4D8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A1A1AA;
}

/* Editorial typography tweaks */
.tracking-editorial {
  letter-spacing: -0.035em;
}

.tracking-wider-editorial {
  letter-spacing: 0.12em;
}

/* Magenta Highlights and Underlines */
.highlight-magenta {
  position: relative;
  display: inline-block;
}

.highlight-magenta::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 10px;
  background-color: rgba(225, 29, 116, 0.16);
  border-radius: 3px;
  z-index: -1;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.highlight-magenta:hover::after {
  height: 90%;
  opacity: 0.25;
}

.underline-magenta-curve {
  position: relative;
  text-decoration: none;
}

.underline-magenta-curve::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #E11D74 0%, #FB7185 100%);
  border-radius: 2px;
  transition: transform 0.3s ease;
  transform-origin: left;
}

/* Navigation blur */
.nav-glass {
  background-color: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 228, 231, 0.7);
}

/* Card hover elevations */
.card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(24, 24, 27, 0.07), 0 0 1px 1px rgba(225, 29, 116, 0.12);
}

/* Badge dot pulse */
@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 116, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(225, 29, 116, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 116, 0);
  }
}

.pulse-magenta-dot {
  animation: pulse-dot 2.2s infinite;
}

/* Fade in scroll effects */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image frame & subtle styling */
.image-editorial-frame {
  position: relative;
  overflow: hidden;
}

.image-editorial-frame img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-editorial-frame:hover img {
  transform: scale(1.03);
}

/* Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-content.is-open {
  max-height: 800px;
  opacity: 1;
}

/* Tab Active styling */
.tab-btn.active {
  background-color: #18181B;
  color: #FFFFFF;
}

/* Floating contact badge */
.floating-contact-pill {
  box-shadow: 0 10px 25px -5px rgba(225, 29, 116, 0.35), 0 8px 10px -6px rgba(225, 29, 116, 0.2);
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.4rem;
    line-height: 1.15;
  }
}
