/* ===================== TYPOGRAPHY SCALE ===================== */
.display-1 {
  font-size: 72em;
  /* 77px */
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 1.2rem;
  font-family: 'Urbane', sans-serif;
}

h2,
.display-2 {
  font-size: 3.25rem;
  /* 52px */
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

h3,
.display-3 {
  font-size: 2.25rem;
  /* 36px */
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

h4,
.display-4 {
  font-size: 1.5rem;
  /* 24px */
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 0.8rem;
}

h5 {
  font-size: 1.125rem;
  /* 18px */
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 0.7rem;
}

h6 {
  font-size: 1rem;
  /* 16px */
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

p,
.lead {
  font-size: 1.125rem;
  /* 18px */
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {

  h1,
  .display-1 {
    font-size: 2.5rem;
  }

  h2,
  .display-2 {
    font-size: 2rem;
  }

  h3,
  .display-3 {
    font-size: 1.5rem;
  }

  h4,
  .display-4 {
    font-size: 1.2rem;
  }

  h5 {
    font-size: 1rem;
  }

  h6 {
    font-size: 0.95rem;
  }

  p,
  .lead {
    font-size: 1rem;
  }
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--muted-text);
  background: var(--bg);
  line-height: 1.7;
}

/* Utility: Remove top margin for first child, bottom for last */
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child,
p:first-child {
  margin-top: 0;
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child {
  margin-bottom: 0;
}

/* --- Ensure WhatsApp and Naše služby button animation always works (hero) --- */
#hero .btn-success,
#hero .hero_btn {
  transition: transform 0.25s cubic-bezier(.2, .9, .2, 1), box-shadow 0.25s cubic-bezier(.2, .9, .2, 1) !important;
  will-change: transform, box-shadow;
}

#hero .btn-success:hover,
#hero .btn-success:focus {
  transform: translateY(-8px) scale(1.04) !important;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25), 0 2px 8px rgba(0, 0, 0, 0.10) !important;
  z-index: 2;
}

#hero .hero_btn:hover,
#hero .hero_btn:focus {
  transform: translateY(-8px) scale(1.04) !important;
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.25), 0 2px 8px rgba(0, 0, 0, 0.10) !important;
  z-index: 2;
}

/* Header switches flex container for language and theme toggle */
.header-switches {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  /* requested spacing */
}

@media (max-width: 768px) {
  .header-switches {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 17px;
    /* keep spacing consistent on small screens */
  }

  .header-switches .language-switch {
    text-align: left;
    margin-bottom: 0;
  }

  .header-switches .theme-toggle {
    align-self: center;
  }

  /* removed stray closing curly brace */

  /* WhatsApp button rise-up animation in hero section */
  #hero .btn-success,
  #hero .hero_btn {
    transition: transform 0.25s cubic-bezier(.2, .9, .2, 1), box-shadow 0.25s cubic-bezier(.2, .9, .2, 1);
    will-change: transform, box-shadow;
  }

  #hero .btn-success:hover,
  #hero .btn-success:focus {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25), 0 2px 8px rgba(0, 0, 0, 0.10);
    z-index: 2;
  }

  #hero .hero_btn:hover,
  #hero .hero_btn:focus {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.25), 0 2px 8px rgba(0, 0, 0, 0.10);
    z-index: 2;
  }
}

/* Reusable rise-on-hover button effect (use .btn-rise on any btn) */
.btn-rise {
  transition: transform 0.25s cubic-bezier(.2, .9, .2, 1), box-shadow 0.25s cubic-bezier(.2, .9, .2, 1);
  will-change: transform, box-shadow;
}

.btn-rise:hover,
.btn-rise:focus {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.10);
  z-index: 2;
}

/* Accent-aware shadows for common button variants */
.btn-rise.btn-success:hover,
.btn-rise.btn-success:focus {
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25), 0 2px 8px rgba(0, 0, 0, 0.10);
}

.btn-rise.btn-outline-warning:hover,
.btn-rise.btn-outline-warning:focus,
.btn-rise.btn-warning:hover,
.btn-rise.btn-warning:focus {
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.28), 0 2px 8px rgba(0, 0, 0, 0.10);
}

.btn-rise.btn-primary:hover,
.btn-rise.btn-primary:focus,
.btn-rise.btn-outline-primary:hover,
.btn-rise.btn-outline-primary:focus {
  box-shadow: 0 8px 32px rgba(13, 110, 253, 0.26), 0 2px 8px rgba(0, 0, 0, 0.10);
}

@media (prefers-reduced-motion: reduce) {

  .btn-rise,
  .btn-rise:hover,
  .btn-rise:focus {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  #hero .btn-success,
  #hero .btn-success:hover,
  #hero .btn-success:focus,
  #hero .hero_btn,
  #hero .hero_btn:hover,
  #hero .hero_btn:focus {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Larger font size for big desktop screens */
@media (min-width: 1400px) {
  html {
    font-size: 72.5%;
  }

  body,
  section,
  header,
  footer,
  .container,
  .lead,
  .display-1,
  .display-5,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  a,
  .navbar__link,
  .card,
  .btn,
  .form-control,
  .accordion,
  .carousel,
  .about-photo,
  .portfolio-item,
  .footer-nav {
    font-size: 1.18em !important;
  }
}

/* Neumorphism and breathing room for header, footer, and sections on mobile */
@media (max-width: 576px) {

  header,
  footer,
  section {
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10), 0 1.5px 6px 0 var(--shadow-light);
    background: var(--surface);
  }

  /* Ensure inner containers don't touch the edges */
  header .container,
  footer .container,
  section .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Infinite pulse animation for warning block */
@keyframes warning-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(175, 174, 172, 0.7);
  }

  70% {
    box-shadow: 0 0 16px 12px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.warning-animate {
  animation: warning-pulse 1.5s infinite;
}

/* style.css - základní styly (nahraj do css/style.css) */

:root {
  --color-primary: #0d6efd;
  --muted: #6c757d;
  /* translucent overlay so the background image remains visible */
  --hero-overlay: linear-gradient(120deg, #0d6efd38, #0dcaf02e);
  /* subtle gradient behind cards (light theme) */
  --card-gradient: linear-gradient(135deg, #0d6efd0f, #0dcaf008);
  /* Theme variables - light (default) */
  --bg: #f8f9fa;
  --surface_light: #f6f7fb;
  --surface: #ffffff;
  /* default surface for light theme */
  --text: #212529;
  --text_dark: #0d2b3a;
  --muted-text: #6c757d;
  --shadow-light: #ffffffe6;
  --shadow-dark: #0f172a14;
  --neumo-offset: 8px;
  --border-muted: #6c757d;
  --color-warning: #ffc107;
  /* Card variables (light) */
  --card-surface-elev: #f6f7fb;
  --card-back-bg: var(--surface);
  --card-back-color: #0b2a3a;
  --card-back-border: rgba(0, 0, 0, 0.06);
  /* Flip card canvas (what shows during rotation gaps) */
  --flip-card-canvas: transparent;
}

/* Dark theme variables moved to css/style_dark.css */


html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  margin: 12px;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--muted-text);
}

header {
  background: var(--color-warning);
  color: #212529;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  font-family: 'Montserrat', sans-serif;

}


.language-switch a {
  text-decoration: none;
  color: var(--muted-text);
  font-weight: bold;
  margin: 0 0.25rem;
  border: 3px solid transparent;
  /* avoid layout shift on hover */
  transition: all 0.3s ease;
}

.language-switch a:hover {
  padding: 0.3rem;
  border-radius: 7px;
  border: 3px solid var(--border-muted);


}

.theme-toggle {
  display: inline-block;
  margin-left: 0.5rem;
  border: 3px solid transparent;
  /* match language-switch baseline */
  cursor: pointer;
  transition: all 0.3s ease;
  /* match language-switch transition */
}

.theme-toggle:hover {
  /* apply same hover accent and spacing as language-switch */
  padding: 0.3rem;
  border: 3px solid var(--border-muted);
  border-radius: 7px;
}

.logo img {
  max-width: 164px;
  max-height: 164px;
  /* Adjust as needed */
  width: auto;

  @media (max-width: 576px) {
    max-height: 96px;
  }
}



/* Navbar container */
/* Base styles for the BEM block */
.navbar {
  color: var(--muted-text);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;

}

/* BEM Element: Navbar menu */
.navbar__menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

/* BEM Modifier for mobile menu */
.navbar__menu--mobile {
  /* Now uses flexbox and position to control visibility */
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: -110vw;
  /* Initially off-screen */
  max-width: 100%;
  height: 26em;
  /* Solid background for mobile menu; avoid transparency */
  background-color: var(--surface, var(--surface_light, #767575));
  padding-top: 4rem;
  align-items: center;
  transition: left 1.7s ease-in-out;
  transition-delay: 0.3s;
  border-radius: 7px;
  z-index: 1000;
}

/* BEM Modifier for open state (mobile) */
.navbar__menu--open {
  left: 0;
  /* Slide into view */
}

/* BEM Element: Toggle button */
.navbar__toggle {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
}

/* Hamburger icon styles */
.navbar__toggle-icon,
.navbar__toggle-icon::before,
.navbar__toggle-icon::after {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.navbar__toggle-icon {
  position: relative;
}

.navbar__toggle-icon::before,
.navbar__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.navbar__toggle-icon::before {
  top: -8px;
}

.navbar__toggle-icon::after {
  top: 8px;
}

/* State for the icon when the menu is open */
.navbar__toggle--is-open .navbar__toggle-icon {
  background-color: transparent;
  /* Middle line disappears */
}

.navbar__toggle--is-open .navbar__toggle-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.navbar__toggle--is-open .navbar__toggle-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar__link {
  text-decoration: none;
  color: var(--muted-text);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 3px solid transparent;
  /* avoid layout shift on hover */
  transition: all 0.3s ease;
}

.navbar__link:hover {
  padding: 0.5rem 1rem;
  /* keep same padding */
  border-radius: 7px;
  border-color: var(--border-muted);
}

/* Responsive design with media queries */
@media (max-width: 768px) {
  .navbar__toggle {
    display: block;
  }

  /* No longer hiding the menu here */
  .navbar__menu {
    /* Inherits from navbar__menu--mobile */
    display: flex;
  }
}

@media (min-width: 769px) {
  .navbar__menu--mobile {
    all: unset;
    /* Reset all mobile styles for desktop */
    display: flex;
    flex-direction: row;
    gap: 2rem;
    list-style: none;
    width: auto;
    height: auto;
    background-color: rgba(0, 0, 0, 0.28);
    padding: 0;
    position: static;
    border-radius: 7px;
  }

  .navbar__menu--mobile .navbar__link {
    color: white;
  }
}

/* Hero */
/* Full-viewport hero so image subject is visible; header is sticky so keep content padded if needed */
#hero {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  /* focus slightly higher so heads are visible */
  position: relative;
  min-height: 100vh;
  /* occupy full viewport */
  display: flex;
  align-items: center;
}

/* Parallax hero background layer */
.parallax-hero {
  position: relative;
  overflow: hidden;
}

.parallax-hero .hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  /* keep focus toward top but avoid fractional offsets */
  background-repeat: no-repeat;
  /* bias toward top of image so faces are visible */
  transform: translateZ(0);
  will-change: transform;
  transform-origin: center center;
  /* scale from center to avoid exposing edges */
  z-index: 0;
  /* base filter - can be overridden by JS for dynamic scroll filter */
  --hero-filter: saturate(1) contrast(1) brightness(.95) blur(0px);
  filter: var(--hero-filter);
}

.parallax-hero .hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  /* overlay to improve text contrast */
  z-index: 1;
  pointer-events: none;
  /* allow clicks through overlay */
}

.parallax-hero>.container {
  position: relative;
  z-index: 2;
}

/* Ensure hero content has breathing room on small screens */
.parallax-hero .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Make sure the hero heading isn't too large on small devices */
@media (max-width: 576px) {
  #hero h1 {
    font-size: 1.75rem;
  }
}

/* Neumorphism for card fronts */
.flip-card__front {
  background: var(--surface);
  /* subtle light surface - neumorphic */
  box-shadow: var(--neumo-offset) var(--neumo-offset) 16px var(--shadow-dark),
    calc(var(--neumo-offset) * -1) calc(var(--neumo-offset) * -1) 16px var(--shadow-light);
  border-radius: 12px;
  color: var(--muted-text);
}

/* Glassmorphism for card backs */
.flip-card__back {
  /* Use elevated surface for back face to improve contrast in both themes */
  background: var(--card-back-bg, var(--card-surface-elev, #414142));
  box-shadow: var(--card-shadow, 0 10px 20px rgba(0, 0, 0, 0.06)), var(--card-inset, inset 6px 6px 12px rgba(0, 0, 0, 0.02));
  border-radius: 12px;
  border: 1px solid var(--card-back-border, var(--card-border, rgba(0, 0, 0, 0.04)));
  color: var(--card-back-color, var(--text));
}

/* Services cards animation */
.service-card {
  transition: transform .25s ease, box-shadow .25s ease;
  border: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--service-hover-shadow, 0 10px 25px rgba(13, 110, 253, 0.12));
}

/* utility class for neumorphic hover lift + subtle Y-rotation */
.neumorphic {
  transition: transform 320ms cubic-bezier(.2, .9, .2, 1), box-shadow 320ms ease;
  will-change: transform;
}

.neumorphic:hover {
  transform: rotateY(5deg) translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {

  .neumorphic,
  .neumorphic:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* Flip card styles */
.flip-card {
  perspective: 1200px;
  /* creates 3D space */
  -webkit-perspective: 1200px;
  position: relative;
  /* keep in document flow */
  overflow: hidden;
  /* hide faces during rotation */
  min-height: 260px;
  /* ensures card contributes to layout and prevents overlap */
  margin-bottom: 1rem;
  /* breathing room when flipped */
  background: var(--flip-card-canvas);
  border-radius: 12px;
}

/* Override Bootstrap .card defaults on the flip-card container */
.flip-card.card {
  background: var(--flip-card-canvas) !important;
  border: 0 !important;
  box-shadow: none;
}

/* Decorative gradient layer behind each card (theme-aware). Uses a pseudo-element so
   the gradient doesn't interfere with the flipping faces. Kept subtle to preserve
   neumorphic / glassmorphic surfaces above it. */
.flip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--card-gradient);
  border-radius: 12px;
  pointer-events: none;
  /* slight inward inset so the gradient doesn't touch card edges too strongly */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.2, .9, .2, 1);
  will-change: transform;
}

.flip-card__front,
.flip-card__back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* ensure internal spacing */
  border-radius: 12px;
  /* match container to avoid showing underlying canvas on corners */
}

.flip-card__front {
  z-index: 2;
}

.flip-card__back {
  transform: rotateY(180deg);
  /* use theme variables set earlier for consistent neumorphism */
  background: var(--card-back-bg, var(--card-surface-elev));
  color: var(--card-back-color, var(--text));
  border: 1px solid var(--card-back-border, var(--card-border));
}

/* Flip on hover or focus within for keyboard users */
.flip-card:hover .flip-card__inner,
.flip-card:focus-within .flip-card__inner,
.flip-card.nav-open .flip-card__inner {
  transform: rotateY(180deg);
}

/* When toggled via button on touch devices */
.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

/* Toggle button (top-right corner) */
.flip-card__toggle {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(10, 10, 20, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}

.flip-card__toggle:active {
  transform: scale(.98);
}

.flip-card__toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: #ffc107;
}


/* ==================================================== ABOUT PHOTO + SOCIAL OVERLAY==================================================== */



/* About photo + social overlay */
.about-photo {
  display: inline-block;
  position: relative;
  border-radius: 0;
  /* let child (img/overlay) control rounding exactly */
  overflow: hidden;
  transition: transform 450ms cubic-bezier(.2, .9, .2, 1);
  will-change: transform;
}

.about-photo__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 450ms cubic-bezier(.2, .9, .2, 1);
  will-change: transform;
}

.about-photo__link {
  display: block;
  /* ensure container matches image box exactly */
}

.about-photo__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.45));
  /* ensure edges match parent */
  z-index: 1;
  /* sit above the image */
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  /* fade only to avoid jumping edges */
  will-change: opacity;
}

.about-photo:focus-within .about-photo__overlay,
.about-photo:hover .about-photo__overlay {
  opacity: 1;
  pointer-events: auto;
}

.about-photo:focus-within,
.about-photo:hover {
  transform: scale(1.03) rotate(-1deg);
}

.about-photo__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transform: translateY(10px) scale(.9);
  opacity: 0;
  transition: transform 360ms cubic-bezier(.2, .9, .2, 1), opacity 300ms ease, background 200ms ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.about-photo__social:hover,
.about-photo__social:focus {
  background: var(--color-warning);
  transform: translateY(0) scale(1.7);
  outline: var(--text_dark) auto 2px;

}

/* Stagger children entrance */
.about-photo__overlay .about-photo__social:nth-child(1) {
  transition-delay: 60ms;
}

.about-photo__overlay .about-photo__social:nth-child(2) {
  transition-delay: 120ms;
}

.about-photo__overlay .about-photo__social:nth-child(3) {
  transition-delay: 180ms;
}

.about-photo__overlay .about-photo__social:nth-child(4) {
  transition-delay: 240ms;
}

/* When overlay is active, animate icons in */
.about-photo:focus-within .about-photo__social,
.about-photo:hover .about-photo__social {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .about-photo__img,
  .about-photo__overlay,
  .about-photo__social {
    transition: none !important;
  }
}

.flip-card .back-inner {
  padding: 1rem;
}

/* improve contrast for back side text */
.flip-card__back .card-title {
  color: #0b2a3a;
  font-weight: 700;
}

/* responsive: reduce rotation duration on small screens */
@media (max-width: 576px) {
  .flip-card__inner {
    transition: transform 0.55s cubic-bezier(.2, .9, .2, 1);
  }
}

/* Portfolio overlay */
.portfolio-item {
  cursor: pointer;
}

.portfolio-item img {
  transition: transform .35s ease;
  display: block;
}

.portfolio-item .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  transform: translateY(100%);
  transition: transform .3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item:hover .overlay {
  transform: translateY(0%);
}

/* Testimonials */
.carousel .blockquote {
  font-size: 1.2rem;
}

/* Contact card hover: subtle pop-out and rise */
#contact .container {
  transition: transform 260ms cubic-bezier(.2, .9, .2, 1), box-shadow 260ms cubic-bezier(.2, .9, .2, 1);
  will-change: transform, box-shadow;
}

/* Lift and stronger shadow on hover (desktop) */
@media (hover: hover) {
  #contact .container:hover {
    transform: translateY(-12px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  }
}

/* Services end-note: subtle lift + color change on hover (only on devices that support hover) */
@media (hover: hover) {

  /* target the specific block in #services so we don't affect other .mt-4 utilities */
  #services .mt-4.text-center.bg-dark.border.rounded.p-3 {
    transition: transform 260ms cubic-bezier(.2, .9, .2, 1), background-color 260ms ease;
    will-change: transform, background-color;
    transform: translateY(0);
    /* ensure the block has a consistent background layering for the transition */
    background-color: rgba(0, 0, 0, 0.72);
  }

  #services .mt-4.text-center.bg-dark.border.rounded.p-3 small {
    transition: color 260ms ease, opacity 260ms ease;
    /* keep the original warning color visually until hover */
    color: var(--muted-text);
    opacity: 0.95;
  }

  #services .mt-4.text-center.bg-dark.border.rounded.p-3:hover {
    transform: translateY(-10px);
    background-color: rgba(13, 110, 253, 0.92);
    /* bluish accent on hover */
  }

  #services .mt-4.text-center.bg-dark.border.rounded.p-3:hover small {
    color: #fff;
    /* change font color on hover */
    opacity: 1;
  }
}


/* Small screens spacing */
@media (max-width: 576px) {
  #hero {
    padding: 4rem 0;
    min-height: 50vh;
  }
}

/* Fade-in visible class */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  font-family: "Montserrat", Source Sans Pro, sans-serif;
  /* název fontu z Adobe */
}

.social-icons a {
  display: inline-block;
  font-size: 2.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #0d6efd;
  /* modrá (Bootstrap primary) nebo si zvol vlastní */
}

/* Ensure carousel controls are visible in dark theme */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* Global spacing between sections (~200px) */
section+section {
  margin-top: 240px;
}

@media (max-width: 576px) {
  section+section {
    margin-top: 170px;
    /* slightly reduced on small screens */
  }
}

/* Spacer below major section titles */
h1.display-1,
h2.fs-1,
h2.fs-2,
h2.mb-5,
h2.text-center,
h2 {
  margin-bottom: 2.2rem !important;
}

/* Logo hover shake animation */
@keyframes logo-shake {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  10% {
    transform: translate3d(2px, 0, 0) rotate(1deg);
  }

  20% {
    transform: translate3d(-2px, 0, 0) rotate(-1deg);
  }

  30% {
    transform: translate3d(2px, 0, 0) rotate(1.2deg);
  }

  40% {
    transform: translate3d(-2px, 0, 0) rotate(-1.2deg);
  }

  50% {
    transform: translate3d(1px, 0, 0) rotate(0.8deg);
  }

  60% {
    transform: translate3d(-1px, 0, 0) rotate(-0.8deg);
  }

  70% {
    transform: translate3d(1px, 0, 0) rotate(0.5deg);
  }

  80% {
    transform: translate3d(-1px, 0, 0) rotate(-0.5deg);
  }

  90% {
    transform: translate3d(0.5px, 0, 0) rotate(0.2deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

.logo img {
  transform-origin: center center;
  animation: none;
  /* base state so hover swaps animation name and reliably retriggers */
}

.logo:hover img,
.logo a:focus-visible img {
  animation: logo-shake 600ms cubic-bezier(.2, .9, .2, 1) 1 both;
}

@media (prefers-reduced-motion: reduce) {

  .logo:hover img,
  .logo a:focus img {
    animation: none !important;
  }
}

/* Dark theme variable for --surface moved to css/style_dark.css */