
/* -- Svg for section titles -- */
:root {
    --title-svg: url(./media/title.svg);
    
    --font-small: 0.875rem;
    --font-normal: 1.25rem;
    --font-big: 2rem;
    --font-title-vaja: 3.125rem;

    --weight-extra-light: 200;
    --weight-light: 300;
    --weight-bold: 500;

    --color-normal: 170, 37, 225;
    --color-dark: 0, 0, 40;
    --color-nav-bg: 15, 3, 43;
    --color-plus-bg: 11, 5, 20;
    --color-progress-hover: 235, 45, 252;
    --color-progress-active: 252, 116, 221;
}


* {
    margin: 0;
}

html {
    background-color: rgb(var(--color-plus-bg));
}

/*-------------------------------------------------------------------------------*/
/*------------------------------- General Ruleset -------------------------------*/
/*-------------------------------------------------------------------------------*/

.copyright {
    font-family: Arial;
    padding-right: 0.3rem;
}

@media (max-width: 1024px) {
    #commissions a,
    #footer-top a, #footer-bottom a {
        text-decoration: underline;
    }
}

@media (min-width: 1024px) {
    #commissions a,
    #footer-top a, #footer-bottom a {
        text-decoration: none;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.material-symbols-outlined {
    font-size: inherit;
}

.icon-light {
    font-variation-settings: 'wght' 100;
}

body {
    background-image: url("./media/banner.gif");
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: Kanit;
    color: white;
}

/* ---- Underline Animation ---- */

@media (min-width: 1024px) {
    .underline {
        position: relative;
    }

    .underline::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 100%;
        background: white;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease-in-out;
    }

    .underline:hover::after {
        transform: scaleX(1);
    }   
}

/* ---- Frame Border ---- */

.frame {
    border: 2px solid rgba(var(--color-normal), 0.7);
    backdrop-filter: blur(2px);
    padding: 15px;
}

.frame img {
    border: 1px solid rgba(var(--color-normal), 0.6);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border: 2px solid rgb(var(--color-normal));
}

.frame::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
  transition: 0.4s ease-in-out;
}

.frame::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
  transition: 0.4s ease-in-out;
}

/*----- SVG Animation -----*/

#logo:hover .path {
    stroke-dashoffset: 0;
    animation: dash-infinite 4s ease-in-out forwards infinite;
}

.path {
    stroke: white;
    fill: none;
    stroke-width: 2.3pt;
    stroke-dasharray: 210;
    stroke-dashoffset: 210;
    stroke-linejoin: round;
    stroke-linecap: round;
    shape-rendering: geometricPrecision;
    animation: dash 2s ease-in-out forwards;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes dash-infinite {
    50% {
        stroke-dashoffset: 210;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/*--------------------------------------------------------------------------------*/
/*-------------------------------- Navigation Bar --------------------------------*/
/*--------------------------------------------------------------------------------*/

@media (max-width: 1024px) {

    .desktop-nav {
        display: none;
    }
}

@media (min-width: 1024px) {
    .menu-nav {
        display: none;
    }

    #menu-toggle {
        display: none;
    }
}

nav {
    position: fixed;
    width: 100%;
    background: rgba(var(--color-nav-bg), 0.4);
    transition: 0.3s;
    z-index: 99;
    transform: translateZ(0);
}

#nav-blur {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 10%;
    align-items: center;
    backdrop-filter: blur(5px);
}

nav #logo {
    width: 100%;
    max-width: 7rem;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.desktop-nav {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

nav ul {
    padding-left: 0;
    margin: 0;
}

nav li {
    display: block;
    font-weight: var(--weight-bold);
    list-style: none;
}

.desktop-nav li {
    font-size: var(--font-small);
}

nav a {
    text-decoration: none;
    color: white;
}

.desktop-nav a {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 34px;
}

/*-------- Dropdown Menu --------*/

.dropdown {
    position: relative;
}

/* Dropdown content */
.dropdown-content {
    box-shadow:
        -4px 4px 10px rgba(0, 0, 0, 0.2),  /* left */
        4px 4px 10px rgba(0, 0, 0, 0.2),  /* right */
        0 8px 20px rgba(0, 0, 0, 0.2);    /* bottom */
    width: 100%;
    display: none;
    text-align: center;
    position: absolute;
    background-color: rgba(var(--color-nav-bg), 0.7);
    top: 55px;
    z-index: 100;
    flex-direction: column;
    border-radius: 2px;
    z-index: 10;
}


/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown:hover > .underline::after {
    transform: scaleX(1);
}

/* Dropdown links */
.dropdown-content a {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: white;
    font-size: var(--font-small);
    font-weight: var(--weight-light);
    white-space: nowrap;
}

/*------ MENU ------*/

/* Mobile toggle button */

@media (max-width: 1024px) {
    #menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        display: block;
        position: absolute;
        top: 25px;
        right: 2.5rem;
        z-index: 9999;
        font-size: var(--font-big);
    }
    
    .desktop-nav {
        display: none;
    }

    /* Slide-down menu */
    .menu-nav {
        backdrop-filter: blur(5px);
        font-size: var(--font-normal);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(var(--color-nav-bg), 0.4);
        flex-direction: column;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .menu-nav.open {
        max-height: 90vh;
        overflow-y: auto;
    }

    .menu-nav li {
        min-height: 2rem;
        border-bottom: rgba(var(--color-normal), 0.6) solid 1px;
    }

    .menu-nav a, .menu-nav span {
        display: inline-block;
        width: 100%;
        height: 100%;
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-left: 1rem;
    }

    /* Mobile Projects submenu */
    .mobile-projects .project-submenu {
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: 0.5s ease-out;
    }

    .mobile-projects .project-submenu a {
        padding-left: 2rem;
        font-weight: var(--weight-light);
    }

    .mobile-projects.open .project-submenu {
        max-height: 500px;
        border-top: white 3px solid;
        border-bottom: white 3px solid;
    }

    .indicator {
        display: inline-block; /* needed for transform */
        transform-origin: center; /* adjust pivot point */
        white-space: nowrap;
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }
    .mobile-projects.open .indicator {
        transform: rotate(90deg);
    }
}


/*--------------------------------------------------------------------------------*/
/*---------------------------------- VajaVajush ----------------------------------*/
/*--------------------------------------------------------------------------------*/

@media (max-width: 540px) {
    #title h2 {
        font-size: var(--font-normal);
    }
}

@media (min-width: 540px) {
    #title h2 {
        font-size: var(--font-big);
    }
}

#title {
    position: relative;
    user-select: none;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#title div {
    text-align: center;
}

#title h1 {
    font-size: var(--font-title-vaja);
    font-weight: var(--weight-bold);
}

#title h2 {
    font-weight: var(--weight-extra-light);
}

#arrow-down {
    position: absolute;
    font-size: 8rem;
    bottom: -50px;
    animation: moveUpDown 2.5s ease-in-out infinite;
    transition: 0.3s;
    cursor: pointer;
}

.scrolled #arrow-down {
    pointer-events: none;
    opacity: 0;
    transition: 0.3s;
}

@keyframes moveUpDown {
      0%, 100% {
        transform: translate(0, 0px);
      }
      50% {
        transform: translate(0, 10px);
      }
    }

/*-----------------------------------------------------------------------------------*/
/*---------------------------------- About Section ----------------------------------*/
/*-----------------------------------------------------------------------------------*/

@media (max-width: 960px) {
    #about {
        padding: 3rem 0 3rem 0;
        flex-direction: column;
        gap: 5rem;
    }

    #about div {
        width: 80%;
    }
}

@media (min-width: 960px) {
    #about {
        padding: 8rem 0 8rem 0;
        flex-direction: row;
        gap: 15vw;
    }

    #about div {
        width: 25vw;
    }
}

#about {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

#about img {
    height: 100%;
    width: 290px;
    border-radius: 10%;
    user-select: none;
    pointer-events: none;
}

#about h1 {
    font-size: var(--font-big);
    font-weight: var(--weight-bold);
    padding-bottom: 10px;
}

#about p {
    line-height: 2rem;
    font-weight: var(--weight-extra-light);
    font-size: var(--font-normal);
    padding-bottom: 20px;
}

/*--------------------------------------------------------------------------------------*/
/*---------------------------------- General Sections ----------------------------------*/
/*--------------------------------------------------------------------------------------*/

#experience,
#projects,
#commissions,
#gallery {
    color: rgb(var(--color-normal));
}
/*+ + + + + + + + + + + + + + + + + +*/
/*+ + + + + + +Background + + + + + +*/
/*+ + + + + + + + + + + + + + + + + +*/
#error,
#video,
#experience,
#gallery {
    position: relative;
    background-color: rgb(var(--color-plus-bg));
    background-image: url(media/plus.png);
    background-repeat: repeat;
    box-shadow: 300px 0 400px -4px rgba(var(--color-plus-bg), 0.8) inset, -300px 0 400px -4px rgba(var(--color-plus-bg), 0.8) inset;
}

/* ---- Section title LEFT ---- */
#experience h1,
#gallery h1 {
    font-weight: var(--weight-bold);
    margin-left: 20%;
    font-size: var(--font-big);
}

/* ---- Section title LEFT SVGs ---- */
#experience h1::before,
#gallery h1::before {
    content: "";
    display: inline-block;
    width: 74px;
    height: 201px;
    background-image: var(--title-svg);
    vertical-align: -25px;
    margin-right: -45px;
}

/* ---- Section title RIGHT ---- */
#projects h1,
#commissions h1 {
    text-align: right;
    font-weight: var(--weight-bold);
    margin-right: 20%;
}

/* ---- Section title RIGHT SVGs ---- */
#projects h1::after,
#commissions h1::after {
    content: "";
    display: inline-block;
    width: 74px;
    height: 201px;
    background-image: var(--title-svg);
    vertical-align: -25px;
    margin-left: -45px;
    transform: scaleX(-1);
}

/*--------------------------------------------------------------------------------*/
/*---------------------------------- Experience ----------------------------------*/
/*--------------------------------------------------------------------------------*/

@media (max-width: 1024px) {
    #experience #programs {
        width: 200px;
        text-align: center;
        align-self: center;
    }

    #experience #programs h2 {
        position: relative;
        padding: 25px 0;
    }

    #experience #programs h2::after {
        content: "Tap to see more!";
        display: block;
        text-align: center;
        margin-top: 20px;
        font-size: var(--font-big);
    }

    #experience #programs h2,
    #experience #programs h3 {
        text-align: center;
    }

    #experience #programs span {
        transform: translate(5px, -27px);
    }

    #experience .program {
        width: 100%;
    }

    #experience .exp-desc {
        position: relative !important;
        left: 50% !important;
        transform: translate(-50%, 0) !important;
        width: 90vw !important;
        padding: 0;
        border: none;
        text-align: left;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        margin-top: 10px;
    }

    #experience .exp-desc.open {
        padding-top: 10px;
        opacity: 1;
        max-height: 1000px;
    }
}

@media (min-width: 1024px) {
    #experience #programs {
        align-self: flex-end;
        margin-top: -40px;
        margin-right: 12%;
    }

    #experience .exp-desc {
        position: absolute;
        top: 300px;
        text-align: left;
        width: 600px;
        opacity: 0;
        transition: 0.3s;
    }

    .progress-bar {
        margin-left: -40px;
    }

    #experience #programs span {
        transform: translate(-35px, -27px);
    }

    #experience #programs h2 {
        padding-bottom: 50px;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    #experience .exp-desc {
        left: 7%;
    }

    #experience #programs {
        margin-right: 7%;
    }
}

@media (min-width: 1280px) and (max-width: 1500px) {
    #experience .exp-desc {
        left: 15%;
    }

    #experience #programs {
        margin-right: 15%;
    }
}

@media (min-width: 1500px) {
    #experience .exp-desc {
        left: 20%;
    }

    #experience #programs {
        margin-right: 20%;
    }
}


/*---- General ----*/

#experience {
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: default;
    padding-bottom: 99px;
}

#experience #programs {
    text-align: right;
}

/*---- General Text behaviour ----*/
#experience #programs h2 {
    font-weight: var(--weight-bold);
}

#experience #programs h3 {
    padding-top: 12px;
    padding-bottom: 3px;
    font-size: 1.3rem;
    font-weight: var(--weight-bold);
}

#experience #programs span {
    position: absolute;
    font-size: var(--font-normal);
    font-weight: var(--weight-extra-light);
}

#experience .program {
    width: 200px;
}

#experience .exp-title {
    cursor: pointer;
    transition: 0.3s;
}

#experience .exp-title:hover:not(.active) {
    color: rgb(var(--color-progress-hover));
    transition: 0.3s;
}

#experience .exp-title:hover:not(.active) .progress {
    background: rgb(var(--color-progress-hover));
    transition: 0.3s;
}

#experience .exp-title.active {
    color: rgb(var(--color-progress-active));
}

#experience .program img {
    height: 100%;
    width: 100%;
    pointer-events: none;
}

#experience .program .first p {
    text-align: center;
    font-weight: var(--weight-bold);
    font-size: var(--font-big);
    padding-top: 15px;
    padding-bottom: 10px;
}

#experience .first img {
    border: none;
}

/*---- Skill description ----*/

#experience .exp-desc p {
    font-weight: var(--weight-light);
    font-size: var(--font-normal);
    line-height: 1.8rem;
}

#experience .exp-desc.active {
    opacity: 1;
    transition: 0.3s;
}

/*-------- effects --------*/

.mouse-parallax {
    transition: transform 0.1s ease-out;
    will-change: transform;
    perspective: 1000px;
}

/* ---- Skills Progress ---- */

.progress-bar {
    width: 200px;
    height: 20px;
    background-color: #422272;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: rgb(var(--color-normal));
    border-radius: 0;
    transition: background 0.3s, width 0.5s linear;
}

.progress.active {
    background: rgb(var(--color-progress-active));
    transition: 0.3s;
}

/* ---- Glass Wave Effect ---- */
.progress {
    position: relative; /* needed for ::before */
    overflow: hidden;   /* hide shimmer edges */
}

.progress::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%
    );
    animation: wave 2s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

/* Wave animation */
@keyframes wave {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

/* ---- Automatic Staggering ---- */
/* Each nth-child shifts the animation start slightly */
.program:nth-child(2) .progress::before { animation-delay: 0s; }
.program:nth-child(3) .progress::before { animation-delay: 0.1s; }
.program:nth-child(4) .progress::before { animation-delay: 0.2s; }
.program:nth-child(5) .progress::before { animation-delay: 0.3s; }
.program:nth-child(6) .progress::before { animation-delay: 0.4s; }
.program:nth-child(7) .progress::before { animation-delay: 0.5s; }
.program:nth-child(8) .progress::before { animation-delay: 0.6s; }
.program:nth-child(9) .progress::before { animation-delay: 0.7s; }
.program:nth-child(10) .progress::before { animation-delay: 0.8s; }


/*------------------------------------------------------------------------------*/
/*---------------------------------- Projects ----------------------------------*/
/*------------------------------------------------------------------------------*/

@media (min-width: 1024px) {
    /*---- Animation ----*/

    #projects .frame:hover img {
        transform: translate(0, -220px);
        transition: 0.3s ease-in-out;
    }

    #projects .frame:hover h2 {
        transform: translate(0, -200px);
        transition: 0.4s ease-in-out;
    }

    #projects .project h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: rgba(var(--color-normal), 0.8);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
    }

    #projects .frame:hover h2::after {
        transform: scaleX(1);
    }

    #projects .frame:hover p {
        opacity: 1;
        transform: translate(0, -180px);
        transition: 0.4s ease-in-out;
    }

    #projects .frame:hover .project::after {
        bottom: 0;
        transition: 0.4s ease-in-out;
    }

    #projects .frame:hover::before {
        width: 50%;
        height: 50%;
    }

    #projects .frame:hover::after {
        width: 50%;
        height: 50%;
    }
}

@media (max-width: 650px) {
    #projects .column {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1290px) {
    #projects .content {
        flex-direction: column;
    }
}


#projects {
    position: relative;
    overflow: hidden;
    background-color: black;
    padding-bottom: 100px;
    text-align: center;
}

#projects .content {
    padding-top: 40px;
    display: flex;
    justify-content: center;
    gap: 80px;
}

#projects .column {
    justify-content: center;
    display: flex;
    gap: 80px;
}

#projects .frame {
    background-color: rgb(var(--color-dark));
}

#projects .project {
    position: relative;
    width: 200px;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

/*---- Background Image ----*/



/* Background image */
#projects .project-wrapper::before {
    content: "";
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: var(--background);
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    filter: blur(5px);
    transition: 0.5s;
}

#projects .project-wrapper:hover::before {
    opacity: 0.3;
}

#projects .project-wrapper > a {
    position: relative;
    z-index: 1;
}

#projects h1,
#projects .project-wrapper > a .frame,
#projects .project-wrapper > a .frame .project {
    position: relative;
    z-index: 2;
}

/*---- Text Values ----*/

#projects a {
    z-index: 1;
    text-decoration: none;
    color: rgb(var(--color-normal));
}

#projects .project img {
    display: block;
    width: 100%;
    height: 80%;
    object-fit: cover;
    box-sizing: border-box;
    transition: 0.4s ease-in-out;
}

#projects .project h2 {
    font-size: var(--font-big);
    font-weight: var(--weight-bold);
    transition: 0.3s ease-in-out;
}

#projects .project p {
    position: inherit;
    opacity: 0;
    font-size: var(--font-normal);
    font-weight: var(--weight-light);
    line-height: 1.5rem;
    transition: 0.4s ease-in-out;
}

#projects .project::after {
    content: "Click to learn more";
    display: inline-block;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    font-size: var(--font-normal);
    font-weight: var(--weight-bold);
    transition: 0.3s ease-in-out;
}

/*--------------------------------------------------------------------------------*/
/*---------------------------------- Commissions ----------------------------------*/
/*--------------------------------------------------------------------------------*/

@media (max-width: 1240px) {
    #commissions .content {
        flex-direction: column;
        margin: 0 auto;
        align-items: center;
    }

    #commissions #img-cont {
        max-width: 95%;
    }

    #commissions #com-text {
        text-align: left;
        max-width: 90%;
    }

    .slider-arrow {
        opacity: 1;
    }

}

@media (min-width: 1240px) {
    #commissions .content {
        flex-direction: row;
    }

    .slider-arrow {
        opacity: 0;
    }

    .slider-wrapper {
        max-width: 650px;
    }
}

#commissions {
    background-image: url("./media/commsbg.gif");
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    padding-bottom: 60px;
}

#commissions .content {
    padding-top: 50px;
    display: flex;
    justify-content: center;
    gap: 5%;
}

/*-------- Images --------*/

#img-cont {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.com-img {
    min-width: 100%;
    text-align: center;
}

.com-img img {
    border: 1px solid rgb(var(--color-normal));
    width: 99.7%;
    height: auto;
}

/* Arrows */
.slider-arrow {
    font-family: Material Symbols Outlined;
    position: absolute;
    bottom: 50%;
    font-variation-settings: 'wght' var(--weight-extra-light);
    mix-blend-mode: difference;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 3rem;
    transition: 0.3s;
    z-index: 2;
}

.slider-arrow.prev {
    left: 5px;
}

.slider-arrow.prev:hover {
    left: 0;   
}

.slider-arrow.next {
    right: 5px;
}

.slider-arrow.next:hover {
    right: 0;   
}

.slider-wrapper:hover .slider-arrow {
    opacity: 1;
}

/* Dots */
.slider-dots {
    text-align: center;
}

.slider-dots .dot {
    display: inline-block;
    height: 8px;
    width: 8px;
    margin: 0 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots .dot.active {
    background-color: rgb(var(--color-normal));
}

/*-------- Text --------*/

#com-text {
    align-items: flex-start;
    position: relative;
    text-align: left;
    max-width: 500px;
    font-size: var(--font-normal);
    font-weight: var(--weight-extra-light);
}

#com-text a {
    color: rgb(var(--color-normal));
}

#com-text .underline::after {
    background: rgb(var(--color-normal));
}

#com-text p {
    right: 150px;
    max-width: 500px;
    padding-bottom: 20px;
}

#com-text b {
    font-weight: var(--weight-bold);
}


/*-----------------------------------------------------------------------------*/
/*---------------------------------- Gallery ----------------------------------*/
/*-----------------------------------------------------------------------------*/

@media (min-width: 1024px) {
    #gallery .content .img-cont:hover img {
    transform: scale(1.05);
    filter: blur(1px) brightness(0.95);
    transition: 0.3s;
}

    #gallery .content .img-cont:hover::after,
    #gallery .content .img-cont:hover::before {
        opacity: 1;
        transition: 0.3s;
    }

    #gallery .content .img-cont:hover span {
        opacity: 1;
    }
}

#gallery {
    padding: 0 10px;
}

#gallery .content {
    column-width: 250px;
    column-gap: 10px;
    padding: 60px 0 50px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

#gallery .img-cont {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid rgb(var(--color-normal));
    cursor: pointer;
    position: relative;
    overflow: hidden;
    vertical-align: top;
}

#gallery .img-cont img {
    width: 100%;
    display: block;
    border-radius: 2px;
    transition: 0.4s;
    break-inside: avoid;
}

#gallery span {
    font-size: var(--font-normal);
    font-weight: var(--weight-extra-light);
    position: absolute;
    bottom: 3px;
    left: 8px;
    opacity: 0;
    transition: 0.3s;
    color: white;
    z-index: 10;
    width: 80%;
}

#gallery .img-cont::after {
    content: "";
    position: absolute;
    mask: linear-gradient(transparent, black, black);
    backdrop-filter: blur(3px);
    background-color: rgba(var(--color-plus-bg), 0.4);
    bottom: 0;
    width: 100%;
    height: 50%;
    opacity: 0;
    transition: 0.4s;
}

#gallery .img-cont::before {
    content: "\f830";
    font-family: Material Symbols Outlined;
    color: white;
    font-size: var(--font-title-vaja);
    font-variation-settings: 'wght' var(--weight-extra-light);
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    opacity: 0;
    transition: 0.4s;
}

/*---------- Fullscreen Image ----------*/

#fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

#fullscreen-view::after {
    content: "\e5cd";
    font-family: Material Symbols Outlined;
    color: white;
    font-size: 4rem;
    font-variation-settings: 'wght' var(--weight-extra-light);
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 10;
    opacity: inherit;
    cursor: pointer;
}

#fullscreen-view span {
    position: absolute;
    font-size: var(--font-normal);
    font-weight: var(--weight-light);
    bottom: 10px;
    left: 10px;
    z-index: 10;
}

#fullscreen-view img {
    user-select: none;
    max-width: 90%;
    max-height: 90%;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

/*----------------------------------------------------------------------------*/
/*---------------------------------- Footer ----------------------------------*/
/*----------------------------------------------------------------------------*/

@media (max-width: 500px) {
    
    #footer-top {
        flex-direction: column;
        gap: 50px;
        padding-top: 50px;
        padding-bottom: 25px;
    }
    
    #footer-top #top {
        flex-direction: row;      
    }

    #footer-top #bottom {
        flex-direction: row;
        gap: 15px;
    }
}

@media (min-width: 500px) {
    #footer-top {
        flex-direction: row;
        gap: 35vw;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    #footer-top #top {
        flex-direction: column;      
    }

    #footer-top #bottom {
        flex-direction: column;      
    }
}

#footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
}

#footer-top #logo {
    height: auto;
    width: 7rem;
}

#footer-top #top {
    display: flex;
    gap: 60px;
}

#footer-top #top h2 {
    font-size: var(--font-big);
    font-weight: var(--weight-light);
}

#footer-top #top h3 {
    font-size: var(--font-normal);
    font-weight: var(--weight-extra-light);
}

#footer-top #bottom {
    font-weight: var(--weight-extra-light);
    font-size: var(--font-normal);
    line-height: 40px;
    display: flex;
}

#footer-top a {
    color: lightgray;
    transition: 0.3s;
}

#footer-top a:hover {
    color: white;
}


#footer-top .underline::after {
    transform-origin: left;
}

#footer-top .underline::after, #footer-bottom .underline::after {
    height: 1px;
}

/*----- Bottom -----*/

#footer-bottom {
    font-size: var(--font-small);
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: var(--weight-extra-light);
    padding-top: 10px;
    padding-bottom: 10px;
}

#footer-bottom a {
    color: lightgray;
    transition: 0.3s;
}

#footer-bottom a:hover {
    color: white;
}

/*---------------------------------------------------------------------------------*/
/*---------------------------------- Back to Top ----------------------------------*/
/*---------------------------------------------------------------------------------*/

@media (min-width: 1024px) {
    #arrow {
        display: flex;
    }
}

@media (max-width: 1024px) {
    #arrow {
        display: none;
    }
}

#arrow {
    justify-content: center;
    align-items: center;
    opacity: 0;
    position: fixed;
    bottom: 50px;
    right: 60px;
    z-index: 99;
    color: rgb(var(--color-normal));
    border: 3px rgb(var(--color-normal)) solid;
    border-radius: 20%;
    cursor: default;
    text-align: center;
    padding: 10px;
    transition: 0.3s;
}

#arrow {
    user-select: none;
    font-size: 2rem;
}

#arrow:hover {
    background-color: rgba(var(--color-normal), 0.2);
}

.scrolled #arrow {
    cursor: pointer;
    opacity: 1;
    transition: 0.3s;
}

/*----------------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------------*/
/*------------------------------------ PROJECTS ------------------------------------*/
/*----------------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------------*/

#vencina-title {
    background-image: linear-gradient(to bottom, rgb(var(--color-dark)), transparent), url(./media/vencina/banner.png);
}

#rescale-title {
    background-image: linear-gradient(to bottom, rgb(var(--color-dark)), transparent), url(./media/rescale/banner.png);
}

#reloop-title {
    background-image: linear-gradient(to bottom, rgb(var(--color-dark)), transparent), url(./media/reloop/banner.png);
}

#EF-title {
    background-image: linear-gradient(to bottom, rgb(var(--color-dark)), transparent), url(./media/EF/banner.png);
}

@media (max-width: 1024px) {
    .project-title h1 {
        padding-left: 10%;
    }

    #project-about span, #project-about p {
        padding-left: 10%;
    }
}

@media (min-width: 1024px) {
    .project-title h1 {
        padding-left: 25%;
    }

    #project-about span, #project-about p {
        padding-left: 25%;
    }
}

.project-title {
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center -300px;
    height: 55vh;
    user-select: none;
    display: flex;
    justify-content: left;
    align-items: end;
}

.project-title h1 {
    padding-bottom: 2.5rem;
    font-size: var(--font-title-vaja);
    font-weight: var(--weight-bold);
}

/*-----------------------------------------------------------------------------------*/
/*---------------------------------- About Section ----------------------------------*/
/*-----------------------------------------------------------------------------------*/

#project-about {
    scroll-margin-top: 80px;
    padding-top: 4em;
    background-color: black;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}

#project-about span, #project-about p {
    font-weight: var(--weight-extra-light);
    font-size: var(--font-normal);
}

#project-about span {
    line-height: 2.5rem;
}

#project-about p {
    padding-right: 25%;
    padding-top: 2rem;
}

#project-about a {
    color: white;
    text-decoration: none;
}

#project-about .underline::after {
    height: 1px;
}

/*---------------------------------------------------------------------------*/
/*---------------------------------- Video ----------------------------------*/
/*---------------------------------------------------------------------------*/

@media (max-width: 1024px) {
    #video {
        height: calc(90vw / 2);
    }

    .video-container {
        width: 80%;
        height: calc(80vw / 2);
    }
}

@media (min-width: 1024px) {
    #video {
        height: 100vh;
    }

    .video-container {
        width: 60%;
        height: calc(65vw / 2);
    }
}

#video {
  padding: 50px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  position: relative;
  border: 1px solid rgb(var(--color-normal));
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(var(--color-nav-bg));
}

.video-container iframe {
  width: 100%;
  height: 100%;
}

#play-btn {
  padding: 10px 20px;
  font-size: var(--font-normal);
  border: none;
  border-radius: 8px;
  background: rgb(var(--color-normal));
  color: #fff;
  cursor: pointer;
}

/*----------------------------------------------------------------------------*/
/*---------------------------------- Slides ----------------------------------*/
/*----------------------------------------------------------------------------*/

@media (max-width: 1024px) {
    #slides-wrapper::before,
    #slides-wrapper::after {
        width: 40px;
    }

    #slides-container {
        height: 50vh;
    }

    .arrow {
        opacity: 0.3;
    }

    .left {
        left: 8px;
    }

    .right {
        right: 0px;
    }
}

@media (min-width: 1024px) {
    #slides-wrapper::before,
    #slides-wrapper::after {
        width: 100px;
    }

    #slides-container {
        height: 75vh;
    }

    .arrow {
        opacity: 0;
    }

    .arrow:hover {
        opacity: 1;
    }

    .left {
        left: 10px;
    }

    .right {
        right: 10px;
    }
}

#slides {
    scroll-margin-top: 100px;
}

#slides-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    --shadow-color: rgb(var(--color-dark));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

#slides-wrapper::before,
#slides-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
}

#slides-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--shadow-color) 0%, transparent 100%);
}

#slides-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--shadow-color) 0%, transparent 100%);
}

#slides-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

#slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

#slides img {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.arrow {
  font-family: Material Symbols Outlined;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  font-variation-settings: 'wght' var(--weight-extra-light);
  color: white;
  border: none;
  font-size: 3.5rem;
  width: 50px;
  height: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.3s ease;
}

#slides-wrapper:hover .arrow {
  opacity: 1;
}

/* Hide scrollbar */
#slides-container::-webkit-scrollbar {
    display: none;
}
#slides-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#slides-container.dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
}


/*------------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------*/
/*------------------------------------ MISC ------------------------------------*/
/*------------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------*/


#error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#error h2 {
    color: white;
    font-size: var(--font-big);
    font-weight: var(--weight-extra-light);
    text-shadow: 0 3px rgb(var(--color-normal));
}

#error img {
    image-rendering: pixelated;
    width: 40%;
    height: auto;

}

#vajer-container {
    position: relative;
    width: 100%;
    height: 60px;
    overflow-x: hidden;
}

#vajer {
    position: absolute;
    bottom: 0;
    left: -10vw;
    animation: vajerWalk 120s linear infinite;
    transform-origin: center bottom;
}

@keyframes vajerWalk {
    0%, 33.33% {
        transform: translateX(0) scaleX(1);
    }

    50% {
        transform: translateX(110vw) scaleX(1);
    }

    66.66% {
        transform: translateX(110vw) scaleX(-1);
    }

    83.33% {
        transform: translateX(0) scaleX(-1);
    }

    100% {
        transform: translateX(0) scaleX(1);
    }
}