/* ===== Custom Styles for ZoSlovenska.sk ===== */

/* Self-hosted Inter variable font (replaces Google Fonts CDN) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Hero gradient animation */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-gradient {
  background: linear-gradient(-45deg, #064e3b, #0a0a0a, #1e1b4b, #0a0a0a);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effect */
.glow {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.glow-hover:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
}

/* Fade-in animation for scroll reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.reveal-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

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

/* Card hover lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Tech badge */
.tech-badge {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid #374151;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #d1d5db;
  cursor: default;
  transition: all 0.3s ease;
}
.tech-badge:hover {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  transform: translateY(-2px);
}

/* Timeline connector */
.timeline-line {
  position: absolute;
  left: 1.25rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #10b981, #064e3b);
}

/* Pulse animation for the dot */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulse-ring 2s infinite;
}

/* Nav transparency transition */
.nav-transparent {
  background: transparent;
  backdrop-filter: none;
}

.nav-solid {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.nav-menu-open {
  background: #0a0a0a;
  backdrop-filter: none;
}

/* Grid pattern background */
.grid-pattern {
  background-image:
    linear-gradient(rgba(55, 65, 81, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 65, 81, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Contact form styles */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  outline: none;
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
}

.mobile-menu.open {
  max-height: 500px;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Button shine effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: rotate(30deg);
  transition: left 0.5s ease;
  left: -200%;
}

.btn-shine:hover::after {
  left: 200%;
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
}
