/* ============================================
   APONGA — Layout (sections genereuses style mpiketrika)
   ============================================ */

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main { flex: 1; }

.aponga-section {
    padding: var(--aponga-section-py) 0;
    position: relative;
}
.aponga-section.section-dark { background-color: var(--aponga-bg-primary); color: var(--aponga-text-light); }
.aponga-section.section-light { background-color: var(--aponga-bg-light); color: var(--aponga-text-dark); }
.aponga-section.section-warm { background-color: var(--aponga-bg-warm); color: var(--aponga-text-dark); }
.aponga-section.section-accent { background-color: var(--aponga-accent); color: var(--aponga-text-dark); }

.container { max-width: 1320px; }

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }

/* Text animation word-by-word */
.text-animate-word .word {
    display: inline-block;
    opacity: 0;
    transform: rotateY(-40deg) translateY(10px);
    transform-origin: top center -50px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.text-animate-word.is-visible .word { opacity: 1; transform: rotateY(0) translateY(0); }

/* Background image overlay */
.bg-overlay {
    position: relative;
}
.bg-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,18,18,0.4) 0%, rgba(18,18,18,0.85) 100%);
    z-index: 1;
}
.bg-overlay > * { position: relative; z-index: 2; }

/* Lazy image fade-in */
.img-lazy {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.img-lazy.img-loaded {
    opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
    .text-animate-word .word { opacity: 1; transform: none; }
}

@media (max-width: 991px) { .aponga-section { padding: var(--aponga-section-py-tablet) 0; } }
@media (max-width: 767px) { .aponga-section { padding: var(--aponga-section-py-mobile) 0; } }
