.page-content {
    position: relative;
    
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;

    width: 100%;
    height: calc(100vh - 9rem);
}

.section {
    scroll-snap-align: start;

    justify-content: center;
    align-items: center;

    height: 100%;

    padding-block: 4rem;
}

@media(max-width: 52rem){
    .section {
        scroll-snap-align: none;
        height: fit-content;
    }
}

@media(max-height: 40rem){
    /* .page-content {
        scroll-snap-type: none;
        overflow-y: scroll;
    } */

    .section {
        scroll-snap-align: none;
        height: fit-content;
    }
}


/* HERO */


.section.hero {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;

    gap: 3rem;
}

.name-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(5, 1fr);
}

.name-grid img {
    width: clamp(2rem, 5vw, 5rem);
}

.grid-col-span {
    grid-column: span 4;

    font-family: 'NyghtSerif';
    font-weight: normal;
    font-size: clamp(3.5rem, 10vw, 12rem);
    line-height: clamp(1.2rem, 8vw, 10rem);
}

.about-text {
    font-size: clamp(1.5rem, 3vh, 3rem);
    margin-block: 2rem;
}

.social {
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;

    margin-top: 2rem;
}

.instagram, .tik-tok, .threads {
    width: 3rem;
    fill: var(--clr-dark);

    transition: .25s ease-out;
}

.instagram:hover, 
.tik-tok:hover, 
.threads:hover {
    fill: var(--clr-accent);
}

.instagram:active, 
.tik-tok:active, 
.threads:active {
    transform: scale(.9);
}

.instagram:not(:hover), 
.tik-tok:not(:hover), 
.threads:not(:hover) {
    color: var(--clr-dark);
    transform: scale(1);
}

@media(max-width: 52rem){
    .section.hero {
        margin-top: 3.5rem;
        min-width: calc(100vw - 2rem);
        padding-top: 3.5rem;
        justify-content: start;
    }

    .about-text {
        margin-bottom: 2rem;
    }

    .social{
        gap: 4rem;
        margin-block: 0;
        margin-bottom: 2rem;
    }

    .instagram, .tik-tok, .threads {
        transition: .1s ease-out;
    }
}


/* SKETCH-ANIMATION */


.section.sketch-anim {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: clamp(2rem, 7vw, 8rem);
}

.line-sketch-anim {
    display: flex;
    padding: 3rem;
    margin-block: auto;
    margin-left: auto;
}

.line-sketch-anim svg {
    display: block;
    height: clamp(35rem, 45vh, 50rem);
}

.line-sketch-anim svg path {
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;

    animation: dash 10s linear infinite;
}

@keyframes dash {
    0% {
      stroke-dashoffset: 5000;
    }
    50% {
      stroke-dashoffset: 2500;
    }
    75% {
      stroke-dashoffset: 1;
    }
    100% {
      stroke-dashoffset: 0;
    }
  }


.decorative-text-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    justify-content: center;
    align-items: center;

    margin-block: auto;
    margin-right: auto;
}

.decorative-text-container svg {
    width: clamp(2rem, 5vw, 5rem);
}

.decorative-text-container p {
    font-family: 'NyghtSerif', serif;
    font-weight: lighter;
    text-align: left;
    font-size: clamp(3.5rem, 4.5vw, 5rem);
    line-height: clamp(3rem, 4vw, 4.5rem);
}
.decorative-text-container span {
    color: var(--clr-accent);
    font-family: 'NyghtSerif', serif;
    font-weight: bold;
    font-style: italic;
}

.decorative-text-container > .buttons {
    display: flex;
    gap: clamp(1rem, 4vw, 5rem);
}

.buttons .button {
    min-width: 12rem;
}

.buttons .button.light {
    background-color: var(--clr-light);
    border: 1px solid var(--clr-dark);
}

.buttons > .button.light:active {
    box-shadow: .35rem .35rem .35rem rgba(0, 0, 0, 0.15),
    -.35rem -.35rem .35rem rgba(255, 255, 255, 0.9);
}

@media(max-width: 52rem){
    .line-sketch-anim,
    .decorative-text-container {
        margin-inline: auto; 
    }
    
    .section.sketch-anim {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 2fr;
        gap: 1rem;
    }

    .decorative-text-container p {
        text-align: center;
        font-size: clamp(3rem, 9vw, 10rem);
        line-height: clamp(2.75rem, 8vw, 9rem);
    }
}


/* VIDEO */


.section.video {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
}

.section.video svg{
    max-height: 2.5rem;
    margin: .5rem;
}

.hero-video video {
    max-height: 60vh;

    padding: 1rem;
    border: 1px solid var(--clr-dark);
    border-radius: 2rem;
    margin-inline: auto;
}

@media(max-width: 52rem) {
    .hero-video video {
        padding: 1rem;
    }
}


/* SKETCHES */


.section.sketches {
    min-height: 60rem;
    /* height: 100%; */

    display: flex;

    position: relative;
    overflow: hidden;
}

.section.sketches .slider {
    position: absolute;
    width: 250px;
    height: 250px;
    top: 10%;

    transform-style: preserve-3d;
    transform: perspective(1000px);

    animation: autoRun 50s linear infinite;
}

@keyframes autoRun {
    0%{
        transform: 
        perspective(1000px) 
        rotateX(-10deg) 
        rotateY(0deg);
    }
    50%{
        transform: 
        perspective(1000px) 
        rotateX(-10deg) 
        rotateY(360deg);
    }
    100%{
        transform: 
        perspective(1000px) 
        rotateX(-10deg) 
        rotateY(720deg);
    }
}

.section.sketches .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    
    transform: 
    rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
    translateZ(450px);
}

.section.sketches .slider .item img{
    image-rendering: auto;
    border-radius: 1.5rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width: 52rem){
    .section.sketches {
        margin-block: 4rem;
        height: fit-content;
        min-height: 35rem;
    }

    .section.sketches .slider {
        width: 200px;
        height: 200px;
    }

    .section.sketches .slider .item {
        transform: 
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(350px);
    }
}


/* PRICES */


.section.prices {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 1rem;
}

.section-header {
    font-size: 2rem;
}

.card-grid {
    padding: 2rem;
    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    /* gap: 1.5rem; */

    align-items: center;
    justify-content: center;
}

.card-wrapper svg {
    max-height: 2.5rem;
    margin: .5rem;
}

.card {
    text-decoration: none;
    color: var(--clr-dark);

    padding: .75rem;
    border: 1px solid var(--clr-dark);
    border-radius: 200rem;

    overflow: hidden;
}

.card > .container {
    border-radius: 50%;

    overflow: hidden;
}

.card img {
    width: clamp(16rem, 16vw, 18rem);

    transition: .35s ease-out;
}

.card:hover img{
    transform: scale(1.5);
}

.card h3 {
    font-family: 'NyghtSerif', serif;
    font-weight: bolder;
    font-size: 2rem;

    padding-block: 1rem;
    text-align: center;
}

.card p {
    text-align: center;
    padding-bottom: 2rem;
}

.card span {
    font-weight: bold;
}

@media(max-width: 52rem){
    .card-grid {
        padding: 1rem;
        gap: 1rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .card img {
        width: clamp(20rem, 25vw, 30rem);
    }

    .card h3 {
        font-size: 1.5rem;
    }
}


/* FACTS */


.section.facts {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 4rem;

}

.facts-container {
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */

    /* justify-content: center;
    align-items: baseline; */
}

.fact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: baseline;

    padding: 1rem;
    border-bottom: 1px solid var(--clr-dark);
}

.fact-line:first-child {
    border-top: 1px solid var(--clr-dark);
}

.fact-line .number {
    color: var(--clr-accent);
    font-size: 4rem;
    font-weight: bold;
}

.fact-line .measure {
    font-size: 3rem;
    font-weight: bold;
}

.fact-line .text {
    font-size: 1.25rem;
}

.diamond-arrows {
    display: flex;
}

.diamond-arrows svg {
    transform: rotate(270deg);

    max-height: 2.5rem;
    /* safary optimization */
    width: auto; /* Ensure SVG scales proportionally */
    height: 2.5rem; /* Ensure height is consistent */
    margin: 0; /* Remove any possible extra spacing */
    padding: 0;
}

@media(max-width: 52rem){
    .section-header {
        text-align: center;
    }

    .fact-line .measure {
        font-size: 2.5rem;
    }

    .diamond-arrows svg {
        transform: rotate(0deg);
    }
}


/* CONTACT */


.section.contacts {
    display: grid;
    grid-template-columns: 53% 47%;
    gap: clamp(5rem, 8vw, 8rem);

    padding-inline: 2rem;
    margin-inline: auto;
}

.section.contacts .section-header {
    font-family: 'NyghtSerif', serif;
    font-weight: lighter;
    text-align: right;

    font-size: clamp(5rem, 8vw, 8rem);
    line-height: clamp(4.5rem, 7.5vw, 7.5rem);

    margin-left: auto;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    margin-right: auto;
}

.form-group input,
.form-group .form-select,
.form-control,
.text-button {
    appearance: none;
    width: 100%;
    padding-block: .5rem;
    padding-inline: 1rem;

    border: none;
    border-radius: 0;
    background-color: var(--clr-light);
}

.form-group input,
.form-control {
    font-size: 1rem;
    border-bottom: 1px solid var(--clr-dark);
}

.form-group .form-select {
    text-align: center;
    border-radius: 200rem;
    color: var(--clr-dark);
    background-color: var(--clr-accent);

    transition: .3s ease-out;
}

.form-group .form-select:hover {
    box-shadow: 0 .25rem .75rem rgba(255, 22, 22, .5)
}

.form-group {
    position: relative;
}

.arrow-drop-down {
    position: absolute;
    fill: var(--clr-dark);
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

.form-control {
    resize: none;
}


@media(max-width: 52rem){
    .section.contacts {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section.contacts .section-header {
        font-size: clamp(4rem, 10vw, 7rem);
        line-height: clamp(3.5rem, 8vw, 6rem);

        margin-inline: auto;
        text-align: center;
    }

    .post-form {
        margin-inline: auto; 
    }
}


/* FOOTER */


.section.footer {
    padding-block: .1rem;
    margin-top: 6rem;
}
