* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Jersey 10", sans-serif;
}

/* All Header Styles */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    gap: 1rem;
    font-size: 1.5rem;
    background-color: rgb(24, 24, 24);
}


.nav-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}


.icon-link img {
    width: 350px;
    overflow: hidden;
    position: relative;
    top: 0.1rem;
}


.text-link {
    display: flex;
    text-decoration: none;
    gap: 0.25rem;
    color: white;
}


.text-link:hover {
    color: rgb(80, 68, 145);
}


.text-link-dots {
    vertical-align: super;
    position: relative;
    top: -0.25em;
}

.highlighted-nav-text {
    color: rgb(80, 68, 145);
}

/* All Main Body Styles */
body {
    background: black;
    color: white;
}

main {
    min-height: 100vh;
    position: relative;
}


.portfolio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-container > p,
.gallery-container > p {
    font-size: clamp(1.5rem, 4vw, 3rem);
    margin: clamp(1rem, 3vw, 2rem) 0;
    text-align: center;
}

.demoreel-container-contents {
    vertical-align: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.demoreel-container-contents video {
    max-width: 100%;
    width: min(960px, 100%);
    height: auto;
}

.demoreel-container-contents span {
    font-size: 15px;
}

.animation-container {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 5rem);
    width: 100%;
    max-width: min(100%, 1400px);
    padding: clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
    font-size: 35px;
}


.youtube-video-embed {
    width: 175px;
    height: 98px;
    flex-shrink: 0;
}

.youtube-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-video-embed-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 1.2rem;
    font-size: 15px;
}

.youtube-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.25rem;
}

.youtube-video-title {
    font-size: 1.1em;
    margin: 0;
}

.gallery-container {
    width: 100%;
    max-width: 1400px;
    padding: clamp(1rem, 3vw, 2rem);
    text-align: center;
}

.img-gallery {
    width: 100%;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 30px);
    padding: 2rem 0;
}

.img-gallery img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.img-gallery img:hover {
    transform: scale(1.02);
}

.full-img {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.full-img.active {
    display: flex;
}

.full-img img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.full-img span {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    line-height: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
        font-size: 1.2rem;
    }

    .nav-container {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .icon-link img {
        width: 200px;
    }

    .text-link {
        font-size: 0.9rem;
    }

    .animation-container {
        flex-direction: column;
        gap: clamp(1.5rem, 4vw, 3rem);
        padding: clamp(0.5rem, 2vw, 1rem);
    }

    .demoreel-container-contents video {
        width: 100%;
    }

    .youtube-video-embed-entry {
        flex-direction: column;
        gap: 1rem;
    }

    .img-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .portfolio-container > p,
    .gallery-container > p {
        font-size: clamp(1.2rem, 3.5vw, 2.5rem);
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 0.75rem;
        gap: 1rem;
        font-size: 1rem;
    }

    .nav-container {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
    }

    .icon-link img {
        width: 150px;
    }

    .text-link {
        font-size: 0.85rem;
        justify-content: center;
    }

    .animation-container {
        gap: 1rem;
        padding: 0.5rem;
    }

    .youtube-video-embed-entry {
        flex-direction: column;
        gap: 0.75rem;
    }

    .img-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        margin: 30px auto;
    }

    .portfolio-container > p,
    .gallery-container > p {
        font-size: clamp(1rem, 3vw, 2rem);
        margin: clamp(0.75rem, 2vw, 1.5rem) 0;
    }

    .full-img img {
        max-width: 95%;
        max-height: 85vh;
    }

    .full-img span {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}