/* ROOT */

:root {
    --primary-color: #456fad;
}

/* animations */

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-110%);
        /* Snaps back seamlessly at full width */
    }
}

body {
    animation: fade-in 0.5s;
    overflow-x: hidden;
}

p {
    font-weight: 650;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif;
}

html {
    scroll-behavior: smooth;
}

a:any-link {
    text-decoration: none;
    cursor: pointer;
}


/* NAV */

nav {
    width: 100%;
    min-height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links {
    flex: 1;
    text-align: center;
}

.nav-links ul {
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: black;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
}

.nav-links ul li::after {
    content: ' ';
    width: 0;
    height: 2px;
    background: var(--primary-color);
    display: block;
    margin: 4px auto 0;
    transition: width 0.3s ease;
}

.nav-links ul li:hover::after {
    width: 100%;
}


@media screen and (min-width: 1024px) {
    nav {
        min-height: 70px;
        padding: 12px 3%;
        justify-content: flex-end;
    }

    .nav-links {
        flex: 1;
        text-align: right;
    }

    .nav-links ul {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .nav-links ul li {
        display: inline-block;
    }
}

/* TEXT */
.copy-box {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding-top: 50px;
}


.copy-box p {
    font-size: 16px;
    color: #3a3a3a;
    font-weight: 400;
    line-height: 22px;
    padding: 10px;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
}

.back-to-top {
    font-weight: 700;
    font-size: 1rem;
    color: black;
    transition: 0.5s all ease;
    display: flex;
    justify-content: center;
    margin: 80px 0 40px;
}

.back-to-top:hover {
    color: var(--primary-color);
}


/* HERO */
.hero-container {
    background-color: white;
    color: black;
}

.hero-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.hero-content h1 {
    color: var(--primary-color);
    letter-spacing: 0.12rem;
    font-weight: 700;
    font-size: 40px;

}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.hero-content img {
    width: 350px;
    max-width: 90%;
    height: auto;
}

.hero-btn {
    display: inline-block;
    margin-top: 35px;
    border: 3px solid black;
    border-radius: 10px;
    color: black;
    padding: 10px 30px;
    transition: 0.7s all ease;
    font-size: 20px;
}

.hero-btn:hover {
    background-color: black;
    color: white;
    transform: scale(1.15);
}

.three-words {
    margin: 15px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.three-words p {
    font-weight: 400;
}

@media screen and (min-width: 1024px) {

    .hero-container {
        height: calc(100vh - 70px - 57px);
    }

    .hero-content {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }

    .hero-text {
        width: 50%;
    }

    .hero-content img {
        width: 450px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btn {
        font-size: 25px;
    }

    .hero-content h1 {
        font-size: 60px;
    }

    .hero-text p {
        font-size: 20px;
    }
}

/* MARQUEE */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    background: white;
    color: black;
    padding: 1rem 0;
    font-weight: 700;
}

.marquee-track {
    display: flex;
    width: max-content;
    flex-shrink: 0;
    animation: scroll-left 75s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
}

.marquee-content span {
    padding: 0 5px;
}

.tech-stack-item {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0 40px;
}

.tech-stack-item img {
    width: 15px;
}



/* FEATURED */

.featured-container {
    text-align: center;
    background-color: black;
    color: white;
}

.featured-content {
    margin-top: 80px;
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.featured-content h1 {
    margin-top: 10%;
    letter-spacing: 0.25rem;
    font-style: bold;
    font-size: 30px;
    margin-bottom: 10%;
}


.featured-gallery a {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    color: black;
    transition: all 0.4s ease;
    overflow: hidden;
    margin-bottom: 15%;
}

.featured-gallery a img {
    width: 300px;
    height: 200px;
    margin-bottom: 15px;
}

.featured-gallery a:hover {
    transform: scale(1.05);
}

.secondary-btn {
    display: inline-block;
    border: 3px solid white;
    color: white;
    transition: 1s all ease;
    border-radius: 10px;
    font-size: 2rem;
    margin-bottom: 5%;
    padding: 10px 30px;
}

.secondary-btn:hover {
    margin-top: 7%;
    background-color: white;
    color: black;
    transform: scale(1.15);
}

@media screen and (min-width: 1024px) {
    .featured-container {
        padding-bottom: 45px;
    }

    .featured-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }

    .featured-content h1 {
        width: 100%;
        font-size: 2.5rem;
        margin-top: 45px;
        margin-bottom: 30px;
    }

    .featured-content  div {
        flex: 1;
        min-width: 0;
    }

    .featured-gallery a {
        width: 100%;
        height: 320px;
        margin-bottom: 0;
    }

    .featured-gallery a img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        margin-bottom: 10px;
    }

    .secondary-btn {
        display: block;
        width: fit-content;
        padding: 10px 40px;
        margin: 35px auto 0;
        font-size: 1.5rem;
    }

    .secondary-btn:hover {
        margin: 35px auto 0;
    }
}

/* EXPLORE */

.explore-container {
    text-align: center;
    background-color: white;
    color: black;
}

.explore-content {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 30px 10px;
}

.explore-content h1 {
    letter-spacing: 0.25rem;
    font-style: bold;
    font-size: 40px;
    margin-bottom: 10%;
}


.explore-gallery a {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    color: black;
    transition: all 0.4s ease;
    overflow: hidden;
    margin-bottom: 15%;
    border: 3px solid black;

}

.explore-gallery a img {
    width: 300px;
    height: 200px;
    margin-bottom: 15px;
}

.explore-gallery a:hover {
    transform: scale(1.05);
}

@media screen and (min-width: 1024px) {


    .explore-content {
        width: 90%;
        max-width: 1200px;
        padding: 60px 0 80px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .explore-content h1 {
        grid-column: 1 / -1;
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .explore-content br {
        display: none;
    }

    .explore-gallery {
        grid-column: span 2;
    }

    .explore-gallery a {
        width: 100%;
        height: 320px;
        margin-bottom: 0;
    }

    .explore-gallery a img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        margin-bottom: 10px;
    }
}

model-viewer {
    width: 400px;
    height: 400px;
    margin-right: 3%;
    margin-bottom: 10%;
    border-radius: 25px;
    transition: 0.5s;
}
/* ABOUT */

.about-container {
    background: white;
    text-align: center;
    color: black;
}

.about-content h1 {
    color: black;
    letter-spacing: 0.25rem;
    font-style: bold;
    font-size: 40px;
    margin-top: 40px;
}


.images-about {
    /* Prevent vertical gaps */
    line-height: 0;

    -webkit-column-count: 5;
    -webkit-column-gap: 0px;
    -moz-column-count: 5;
    -moz-column-gap: 0px;
    column-count: 5;
    column-gap: 0px;

    margin-top: 3rem;
}

.images-about img {
    /* Just in case there are inline attributes */
    width: 100% !important;
    height: auto !important;
}


@media (max-width: 1200px) {
    .images-about {
        -moz-column-count: 4;
        -webkit-column-count: 4;
        column-count: 4;
    }
}

@media (max-width: 1000px) {
    .images-about {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .images-about {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }

    .img-about {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
        position: absolute;
        top: 275px;
        right: 10%;
        box-shadow: 0 0 30px 0px rgba(6, 44, 83, 0.5);
    }
}


/* FOOTER */

.footer {
    width: 100%;
    padding: 30px 0;
    background-color: black;
    text-align: center;
}

.footer h4 {
    margin-top: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    margin-left: 10px;
    color: white;
}

.footer p {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 15px;
    color: white;
}

.footer-links {
    all: unset;
    cursor: pointer;
    display: inline-block;
    color: white;
    flex: 1;
}

.footer-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.footer-links ul li::after {
    content: ' ';
    width: 0%;
    height: 2px;
    background: #fff292;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.footer-links ul li:hover::after {
    width: 100%;
}

/* models page */

@media screen and (min-width: 1024px) {


    .header-item .featured-content {
        width: 90%;
        max-width: 900px;
        flex-direction: column;
        gap: 0;
    }

    .header-item .featured-content h1 {
        margin-top: 40px;
        margin-bottom: 0;
        text-align: center;
    }

    .header-item .copy-box {
        padding-top: 30px;
    }

    .models-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 60px 8%;
    }

    model-viewer {
        width: 100%;
        height: 400px;
        margin-right: 0;
        margin-bottom: 0;
    }
}