/*
Theme Name: Moje Vlastní Šablona
Author: Jan Šára
Description: Moje vlastní šablona vytvořená z HTML/CSS/JS.
Version: 1.0
*/

/* Sem později nakopíruješ své vlastní CSS styly */*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    scroll-behavior: smooth;
}

:root{

    /*  Fonty   */

     --fheading: 'Cormorant Garamond', serif;
     --fbody: 'Inter', sans-serif;
     --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /*  Barvy   */
    --headerhlavicka: #f0e9de;
    --fontcolorheadings: #1f1f1f;
    --fontcolormain: #563c2e;
    --fontcolormainhover: #201712;
    --fontcolorheadingshover: #6e6e6e;
    --bila: #ffffff;
    --biladark: #d8d8d8;

}


header{
    width: 100%;
    min-height: 100dvh;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)),
        url("images/prestavkapozadi.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* horní odsazení vždy rezervuje místo pro pevnou hlavičku, aby se s ní text nikdy nepřekrýval */
    padding-top: calc(clamp(5rem, 7vw, 8rem) + 40px);
    padding-bottom: 60px;
}



body.no-scroll {
  overflow: hidden;
}

/* Pozadí přes celou obrazovku + rozostření */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Podpora pro Safari */
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
.overlay.active {
  display: flex;
}

.modal {
  position: relative;
  width: 80%;
  overflow-y: auto;
  height: 100vh; 
  background-color: #222;
  color: #fff;
  padding: 40px 30px;
  box-sizing: border-box;
}

.modal h1{
    font-family: var(--fheading);
    font-weight: 400;
    margin-bottom: 50px;
}

.aktuality{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.aktualita{
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.aktualita:last-child{
    border-bottom: none;
    padding-bottom: 0;
}

.aktualita-obrazek{
    width: 260px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.aktualita-obsah{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aktualita-datum{
    font-family: var(--fbody);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b5644a;
    margin: 0;
}

.aktualita-nadpis{
    font-family: var(--fheading);
    font-weight: 400;
    font-size: 26px;
    color: #fff;
    margin: 0;
}

.aktualita-text{
    font-family: var(--fbody);
    font-size: 16px;
    line-height: 1.6;
    color: var(--biladark);
    margin: 0;
}

@media (max-width: 700px) {
    .aktualita{
        flex-direction: column;
    }

    .aktualita-obrazek{
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 700px) {
    .modal {
        width: 95%;
    }
}


.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.modal::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: #666;
}






/* Křížek na zavření */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}










/* hlavicka*/



#hlavicka{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: clamp(5rem, 7vw, 8rem);
    background-color: var(--headerhlavicka);
    opacity: 0.95;
    position: fixed;
    top: 0;
    width: 100%;
    transition: 0.3s ease-in-out;
    border-bottom: 2px solid #fff;
    z-index: 2;
    
}

.navigace{
    width: 70%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#hlavicka.scroll0{
    background-color: transparent;
    border-bottom: none;
    transition: 0.3s ease-in-out;
}

.prestavka{
    font-size: clamp(1.4rem, 2.1rem, 3rem);
    color: var(--fontcolorheadings);
    font-weight: 400;
}
.prestavka.scrollx{
    color: var(--bila);
}

#list{
    width: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;

}


#list li{
    font-size: clamp(0.5rem, 1rem, 3rem);
    font-family: var(--fbody);
    color: var(--fontcolormain);
    list-style-type: none;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    cursor: pointer;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: 40px;
    padding-bottom: 5px;
}

#list li a{
    color:  var(--fontcolormain);
    padding-bottom: 5px;
}


#list.scrolly li{
    color: var(--biladark);
}

#list.scrolly li a{
    color: var(--biladark);
}

#list.scrolly li:hover{
    color: var(--bila);
    border-bottom: 2px solid var(--biladark);
    transition: 0.3s;
}


#hlavicka ul li:hover{
    color: var(--fontcolormainhover);
    border-bottom: 2px solid var(--fontcolorheadingshover);
    transition: 0.3s;
}


/* Hamburger tlačítko - viditelné pouze na menších obrazovkách */

.hamburger{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 5;
}

.hamburger span{
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--fontcolormain);
    transition: 0.3s ease;
}

#hlavicka.scroll0 .hamburger span{
    background-color: var(--bila);
}

.hamburger.open span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2){
    opacity: 0;
}

.hamburger.open span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
}


@media (max-width: 1500px) {
    .navigace {
        width: 80%;
    }
}

/* Rozklikávací mobilní menu (nahrazuje vodorovnou navigaci) */
@media (max-width: 860px){

    .hamburger{
        display: flex;
    }

    #list{
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(78vw, 320px);
        background-color: var(--headerhlavicka);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 30px;
        padding: 100px 40px;
        transform: translateX(100%);
        transition: transform 0.35s ease-in-out;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 4;
    }

    #list.list-open{
        transform: translateX(0);
    }

    #list li{
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        font-size: 1.6rem;
    }

    #list li, #list li a,
    #list.scrolly li, #list.scrolly li a{
        color: var(--fontcolormain);
    }

    #list.scrolly li:hover,
    #list li:hover{
        color: var(--fontcolormainhover);
        border-bottom-color: var(--fontcolorheadingshover);
    }
}

.text{
    width: 65%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10%;
    margin-bottom: 4%;
}

.text p{
    color: var(--biladark);
    font-family: var(--fbody);
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.text h2{
    font-size: 96px;
    font-family: var(--fheading);
    color: var(--bila);
    font-weight: 200;
}

.text h1{
    font-size: 24px;
    font-family: var(--fbody);
    color: var(--biladark);
    font-weight: 200;
    margin-top: 50px;
    line-height: 1.8;
}

.tlacitka{
    margin-top: 40px;
}

#nabidka{
  display: inline-block;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 1px solid;
  transition: 0.2s ease, color 0.2s ease;
  color: var(--fontcolorheadings);
  background-color: var(--bila);
  font-family: var(--mono);
  border: 0px;
  margin-right: 50px;
}

#nabidkaa:hover{
    background-color: var(--biladark);
}

.navigovat{
  display: inline-block;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 1px solid;
  transition: 0.2s ease, color 0.2s ease;
  color: var(--bila);
  font-family: var(--mono);
  border: 1px solid white;
  margin-right: 50px;
}

.navigovat:hover{
    background-color: rgba(245, 245, 245, 0.137);
}

/*konec hlavicky*/

main{
    width: 100%;
    min-height: 100vh;
    background-color: white;
}

.features {
  background-color: #f5f0e8;
  font-family: var(--fheading);
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.featuresdiv{
    width: 70%;
    margin-top: 7%;
    padding-left: 25px;
    padding-right: 40px;

}

.features__eyebrow {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b5644a;
  margin: 0 0 20px 0;
}

.features__title {
  font-size: 52px;
  font-weight: 400;
  color: #1a1612;
  margin: 0 0 104px 0;
  line-height: 1.15;
}

.features__text{
    font-size: 18px;
    font-family: var(--fbody);
    letter-spacing: 2px;
    line-height: 1.5;
    color: var(--fontcolormain);
}



.why {
  background-color: #f5f0e8;
  padding: 80px 60px;
  font-family: var(--fheading);
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.divwhy{
    width: 70%;
    margin-top: 2%;
}

.why__eyebrow {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b5644a;
  margin: 0 0 20px 0;
}

.why__title {
  font-size: 52px;
  font-weight: 400;
  color: #1a1612;
  margin: 0 0 104px 0;
  line-height: 1.15;
}

.why__title em {
  font-style: italic;
  font-weight: 400;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px 80px;
  
}

.why__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.why__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #c8bfb0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a4f44;
}

.why__text h3 {
  font-size: 32px;
  font-weight: 400;
  color: var(--fontcolorheadings);
  margin: 0 0 6px 0;
}

.why__text p {
  font-family: var(--fbody);
  font-size:18px;
  color: #5a4f44;
  margin: 0;
  line-height: 1.6;
}







/*menu*/

.offer{
    padding-top: 100px;
    margin-left: 18%;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--fontcolormain);
    font-family: var(--mono);
    letter-spacing: 4px;

}

.description{
    margin-left: 18%;
    font-size: 54px;
    color: var(--fontcolorheadings);
    font-family: var(--fheading);
    font-weight: 200;
    margin-bottom: 60px;
}

.offerheading {
    font-size: 200px;
    color: red;
}

.menu{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 5vh;
    padding-bottom: 15vh;
}

.menu img{
    width: 70%;
    height: auto;
}


.fotka{
    height: 80vh;
    background-color: #f5f0e8;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("images/fotka.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fotka h2{
    color: var(--bila);
    font-family: var(--fheading);
    font-size: 72px;
    font-weight: 300;
}


.fotka p{
    color: var(--biladark);
    font-family: var(--fbody);
    font-size: 24px;
    font-weight: 300;
    margin-top: 2%;
}


.reviews {
  background-color: #f5f0e8;
  padding: 80px 60px;
  font-family: var(--fheading);
}

.reviews p {
  font-family: var(--fbody);
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b5644a;
  margin-top: 60px;
  margin-left: 15%;
}

.reviews  h2 {
  font-size: 48px;
  font-weight: 400;
  color: #1a1612;
  margin: 0 0 120px 0;
  line-height: 1.15;
  margin-left: 15%;
}

.reviews h3{
    color: var(--fontcolorheadings);
    font-size: 22px;
    font-family: var(--fheading);
    font-weight: 200;
}

.review{
    display: flex;
    flex-direction: column;
    
    overflow: hidden;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 60px;
}

.reviews span {
  color: #b5644a;
  font-size: 24px;
  letter-spacing: 2px;
}

.nevim{
    min-height: 100vh;
    width: 100%;
}

.image1{
    width: 100%;
    aspect-ratio: 3 / 2;
    background-image: url(images/obrazek6.jpg);
    background-size: cover;
    background-position: center;
}

.image2{
    width: 100%;
    aspect-ratio: 3 / 2;
    background-image: url(images/obrazek4.jpg);
    background-size: cover;
    background-position: center;
}

.image3{
    width: 100%;
    aspect-ratio: 3 / 2;
    background-image: url(images/obrazek2.jpg);
    background-size: cover;
    background-position: center;
}

.image4{
    width: 100%;
    aspect-ratio: 3 / 2;
    background-image: url(images/obrazek3.jpg);
    background-size: cover;
    background-position: center;
}

.nevim{
    background-color: #f5f0e8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 5% 0px;
}

.nevim p, .nevim h3, .fotky{
    width: 100%;
    max-width: 1260px;
}

.nevim p{
    font-family: var(--fbody);
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b5644a;
    text-align: left;
}

.nevim h3{
    font-size: 36px;
    font-weight: 400;
    font-family: var(--fheading);
    color: #1a1612;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 60px;
}

.faq{
    background-color: #f5f0e8;
}

.fotky{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.faq-container {
    max-width: 800px;
    margin: 0px auto;
    font-family: var(--fbody);
    padding: 100px 60px 100px 60px;
}

details {
    border-bottom: 1px solid #dcdcdc;
    padding: 20px 0;
}

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

details[open] .faq-content {
    grid-template-rows: 1fr;
}

.faq-inner-wrapper {
    overflow: hidden;
}

.faq-inner-wrapper p {
    padding-top: 15px;
    color: var(--fontcolormain);
    line-height: 1.6;
}


.faq p{
    font-family: var(--fbody);
    font-size: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b5644a;
    margin-left: 20%;
    padding-top: 80px;
    padding-bottom: 20px;

}

.faq h3{
    font-size: 42px;
    font-weight: 200;
    color: #1a1612;
    line-height: 1.15;
    margin-left: 20%;
    margin-top: 20px;
}

summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    color: var(--fontcolorheadings);
    font-family: var(--fheading);
}

summary::-webkit-details-marker {
    display: none;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    color: var(--fontcolorheadings);
}

details[open] .arrow {
    transform: rotate(180deg);
}


footer{
    background-color: #1f1f1f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 8%;
    color: var(--biladark);
    font-family: var(--fbody);
}

.footer-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-info{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-heading{
    font-family: var(--fheading);
    font-size: 32px;
    font-weight: 400;
    color: var(--bila);
    margin-bottom: 10px;
}

.footer-item{
    font-size: 16px;
    color: var(--biladark);
    line-height: 1.6;
}

.footer-item strong{
    color: var(--bila);
    font-weight: 500;
    margin-right: 6px;
}

.footer-map iframe{
    max-width: 100%;
    border: none;
}

.footer-bottom{
    width: 100%;
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.footer-bottom p{
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #999;
}


body{
    overflow-x: hidden;
}

footer iframe{
    max-width: 100%;
}

/* ---- Tablety, do 1024px ---- */

@media (max-width: 1024px){

    .navigace{
        width: 90%;
    }

    .text{
        width: 80%;
    }

    .text h2{
        font-size: 64px;
    }

    .text h1{
        font-size: 19px;
    }

    .why{
        padding: 80px 30px;
    }

    .divwhy{
        width: 90%;
    }




    .featuresdiv{
        width: 95%;
        margin-top: 4%;
    }

    .features__title{
        font-size: 40px;
        margin-bottom: 60px;
    }

    .why__title{
        font-size: 40px;
        margin-bottom: 70px;
    }

    .why__grid{
        gap: 60px 40px;
    }

    .offer, .description{
        margin-left: 8%;
    }

    .description{
        font-size: 42px;
    }

    .fotka h2{
        font-size: 52px;
    }

    .reviews{
        padding: 80px 30px;
    }

    .reviews p, .reviews h2{
        margin-left: 8%;
    }

    .faq p, .faq h3{
        margin-left: 8%;
    }
}

/* ---- Malé tablety / velké mobily, do 900px ---- */
@media (max-width: 900px){

    .features{
        padding: 60px 30px;
    }

    .features{
        width: 100%;
    }


    .why__grid{
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .fotky{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .image1, .image2, .image3, .image4{
        max-width: 500px;
        margin: 0 auto;
    }

    .nevim p, .nevim h3{
        padding-left: 20px;
        padding-right: 20px;
    }

    .reviews-grid{
        gap: 40px;
    }

    .featuresdiv{
        width: 100%;
        margin-top: 0;
    }
}

/* ---- Mobily, do 700px ---- */
@media (max-width: 700px){

    #hlavicka{
        height: clamp(4rem, 16vw, 6rem);
    }

    .navigace{
        width: 94%;
    }

    .prestavka{
        font-size: 1.5rem;
    }


    .text{
        width: 88%;
        margin-left: 6%;
        margin-bottom: 8%;
    }

    .text p{
        font-size: 13px;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }

    .text h2{
        font-size: 40px;
    }

    .text h1{
        font-size: 15px;
        margin-top: 24px;
        line-height: 1.6;
    }

    .tlacitka{
        margin-top: 26px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    #nabidka, .navigovat{
        margin-right: 0;
        padding: 12px 20px;
        font-size: 14px;
        text-align: center;
        width: fit-content;
    }

    .features{
        padding: 50px 20px;
    }

    .features__title{
        font-size: 28px;
        margin-bottom: 32px;
    }

    .features__text{
        font-size: 15px;
        letter-spacing: 1px;
    }

    .why{
        padding: 60px 20px;
    }

    .why__title{
        font-size: 28px;
        margin-bottom: 50px;
    }

    .why__text h3{
        font-size: 22px;
    }

    .why__text p{
        font-size: 15px;
    }

    .offer, .description{
        margin-left: 6%;
    }

    .description{
        font-size: 30px;
        margin-bottom: 40px;
    }

    .tms{
        grid-template-columns: 1fr;
        gap: 36px 20px;
        padding: 20px 6% 70px;
    }

    .tms > div{
        max-width: 360px;
        margin: 0 auto;
    }

    .tms h3{
        font-size: 22px;
    }

    .tms p{
        font-size: 15px;
    }

    .fotka{
        padding: 0 20px;
        text-align: center;
    }

    .fotka h2{
        font-size: 32px;
    }

    .fotka p{
        font-size: 16px;
    }

    .reviews{
        padding: 50px 20px;
    }

    .reviews p, .reviews h2{
        margin-left: 0;
        text-align: center;
    }

    .reviews h2{
        font-size: 30px;
        margin-bottom: 50px;
    }

    .reviews-grid{
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .faq p, .faq h3{
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .faq h3{
        font-size: 24px;
    }

    .faq-container{
        padding: 60px 20px;
    }

    footer{
        min-height: auto;
        padding: 60px 6%;
    }

    .footer-content{
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-heading{
        font-size: 26px;
    }

    .footer-map, .footer-map iframe{
        width: 100%;
    }
}

/* ---- Malé mobily, do 480px ---- */
@media (max-width: 480px){

    .text h2{
        font-size: 32px;
    }

    .text h1{
        font-size: 14px;
    }



    .prestavka{
        font-size: 1.3rem;
    }

    .why__icon{
        width: 36px;
        height: 36px;
    }

    .description{
        font-size: 26px;
    }

    .features{
        padding: 40px 16px;
    }

    .features__title{
        font-size: 22px;
        margin-bottom: 24px;
    }

    .features__text{
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}




/* Obrázky - jemné zvětšení + fade */

.reveal-img{
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-img.in-view{
    opacity: 1;
    transform: scale(1);
}

.reveal-text{
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.reveal-text.in-view{
    opacity: 1;
    transform: translateY(0);
}

.reveal-item{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal-item.in-view{
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
    .reveal-img, .reveal-text, .reveal-item{
        opacity: 1;
        transform: none;
        transition: none;
    }
}