body {
    font-family: 'Georgia', serif;
    background-color: #fdf9f7;
    color: #444;
}
.hero {
    position: relative;
    background: url('/static/images/hero.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 150px 20px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.hero > * {
    position: relative;
    z-index: 2;
}
.section-title {
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}
.timeline-item {
    margin-bottom: 30px;
}
.guest-photo {
    width: 100%;
    max-width: 200px;
    border-radius: 12px;
}
.carousel-inner img {
    height: 50rem;
    object-fit: cover;
    border-radius: 16px;
}
@media (min-width: 992px) {
    #slider {
        width: 30vw;
        margin-left: auto;
        margin-right: auto;
    }
}
.hero-header {
    position: relative;
    height: 100vh;
    background: url('/static/images/hero.png') no-repeat center center / cover;
}
.hero-header .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.hero-text {
    z-index: 2;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
@media (max-width: 991.98px) {
    .mx-auto[style*="width: 40%"] {
        width: 100% !important;
    }
}
.parent-photo {
    width: 240px;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    background: #eee;
    display: block;
}
@media (max-width: 767.98px) {
    .parent-photo {
        width: 100%;
        max-width: 250px;
        height: 187.5px;
    }
}
@media (min-width: 992px) {
    .timeline > .mx-auto {
        width: 70% !important;
    }
}
.photo-hover-wrapper {
    display: inline-block;
    width: 240px;
    height: 320px;
    vertical-align: top;
    position: relative;
}
.photo-hover-wrapper .parent-photo {
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s cubic-bezier(.4,2,.6,1);
    will-change: transform, box-shadow;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: none;
    z-index: 1;
    position: relative;
}
.photo-hover-wrapper:hover .parent-photo,
.photo-hover-wrapper:focus-within .parent-photo {
    transform: scale(1.08);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 2px 8px 0 rgba(0,0,0,0.10);
    z-index: 2;
}
@media (max-width: 767.98px) {
    .photo-hover-wrapper {
        width: 100%;
        max-width: 250px;
        height: 187.5px;
    }
}
.parent-name {
    font-family: 'Marck Script', cursive;
    font-size: 1rem;
    color: #000000;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
.header-main {
    font-family: 'Marck Script', cursive;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.hand-black{
    font-family: 'Marck Script', cursive;
    color: #000000;
    letter-spacing: 0.5px;
    font-size: 1.3rem;
}
@media (min-width: 992px) {
    .mx-auto[style*="max-width: 100%"] {
        width: 50% !important;
        max-width: 50vw !important;
    }
}
.btn-confirm-attendance {
  background: #fff;
  color: #111;
  border-radius: 2rem;
  font-family: 'Marck Script', cursive;
  font-size: 1.3rem;
  padding: 0.5rem 2.5rem;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s;
}
.btn-confirm-attendance:hover, .btn-confirm-attendance:focus {
  background: #f2f0dc;
  color: #000;
}
.heart-beat {
  animation: heartBeat 1s infinite;
  transform-origin: center;
  display: inline-block;
}
@keyframes heartBeat {
  0% { transform: scale(1); }
  20% { transform: scale(1.2); }
  40% { transform: scale(0.95); }
  60% { transform: scale(1.1); }
  80% { transform: scale(0.98); }
  100% { transform: scale(1); }
}
@media (max-width: 767.98px) {
  #attendanceModal .modal-dialog {
    max-width: 98vw;
    margin: 0.5rem auto;
  }
  #attendanceModal .modal-content {
    border-radius: 1.6rem;
  }
  #thanksModal .modal-content,
  #sadModal .modal-content {
    border-radius: 1.6rem;
  }
  #attendanceModal .modal-body {
    padding: 1rem;
  }
  #attendanceModal .border-end-md {
    border-right: none !important;
    border-bottom: 1px solid #eee !important;
    padding-right: 0 !important;
    margin-bottom: 1rem !important;
  }
  #attendanceModal .ps-md-4 {
    padding-left: 0 !important;
  }
  #attendanceModal .d-flex.gap-2.flex-md-row {
    flex-direction: column !important;
  }
}
#attendanceModal .modal-content {
    border-radius: 1.6rem;
}
#thanksModal .modal-content,
#sadModal .modal-content {
    border-radius: 1.6rem;
}

/* Styles for helpers section */
.helpers-section {
    margin-bottom: 3rem;
}

.helper-item {
    flex: 0 0 auto;
}

.helper-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s cubic-bezier(.4,2,.6,1);
    will-change: transform, box-shadow;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.helper-item .photo-hover-wrapper:hover .helper-photo,
.helper-item .photo-hover-wrapper:focus-within .helper-photo {
    transform: scale(1.08);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 2px 8px 0 rgba(0,0,0,0.10);
}

.helper-name {
    font-family: 'Marck Script', cursive;
    font-size: 1.2rem;
    color: #000000;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
    .helpers-section {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .helper-item .photo-hover-wrapper {
        width: 180px !important;
        height: 180px !important;
    }
}

/* Styles for useful links section */
.useful-links-section {
    margin-bottom: 3rem;
}

.useful-link-item {
    flex: 0 0 auto;
}

.useful-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.useful-link-wrapper:hover,
.useful-link-wrapper:focus {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.useful-link-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    display: block;
    margin: 0 auto 1rem auto;
}

.useful-link-wrapper:hover .useful-link-image,
.useful-link-wrapper:focus .useful-link-image {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.useful-link-text {
    font-family: 'Marck Script', cursive;
    font-size: 1.1rem;
    color: #000000;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

@media (max-width: 767.98px) {
    .useful-links-section {
        flex-direction: column !important;
        gap: 2.5rem !important;
    }
    
    .useful-link-image {
        width: 220px;
        height: 220px;
    }
}


/* Стили для Particles.js */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
    pointer-events: none;
}

#particles-js canvas {
    display: block;
}

/* Убеждаемся, что контент отображается поверх частиц */
body {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.container {
    position: relative;
    z-index: 2;
}
