@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');
:root {
    background-color: #0b0f14;
    color: white;
    font-family: "Righteous", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
    margin: 0;
    overscroll-behavior-y: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(11, 15, 20);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(107, 215, 179, 0.2);
    border-top: 4px solid aquamarine;
    border-right: 4px solid aquamarine;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.container {
    margin: 0 clamp(30px, 20%, 3000px) 0 clamp(30px, 20%, 600px);
}

.banner {
    background-image: url(/static/IMG/tokio.jpg);
    background-size: cover;
    background-position: center;

}
.banner div {
    backdrop-filter: brightness(0.75);
    display: grid;
    place-items: center;
    width: 100%;
    height: 90vh;
    align-content: center;
}

.scroll-indicator {
    height: 10vh;
    display: grid;
    place-items: center;
    color: #7a7a7a;
    font-size: clamp(1.3rem, 1.2vw, 3rem);
    cursor: pointer;

    animation: hovering 2s ease-in-out infinite;
    animation-delay: .4s;
}

.portfolio {
    align-items: center;
    margin: 2.5% 0 10% 0;
    line-height: 1.5;
    color: #d1d1d1;
    display: flex;
    gap: 30px;
}


.portfolio-text {
    flex-basis: 60%;
}

h3 {
    opacity: 0;
    transform: translateY(40px);
}

h3.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    transition-delay: .1.5s;
}
.text {
    opacity: 0;
    transform: translateY(40px);
}
.text.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    transition-delay: .2s;
}

.item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); /* Szebb, ruganyosabb mozgás */
}

.items.show .item {
    opacity: 1;
    transform: translateY(0);
}

.items.show .item:nth-child(1) { transition-delay: .23s; }
.items.show .item:nth-child(2) { transition-delay: .23s; }
.items.show .item:nth-child(3) { transition-delay: .36s; }
.items.show .item:nth-child(4) { transition-delay: .36s; }
.items.show .item:nth-child(5) { transition-delay: .4s; }

.portfolio-img {
    flex-basis: 40%;
}

.portfolio img {
    height: 500px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 20%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.portfolio img.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    transition-delay: .2s;
}

.item {
    display: flex;
}
.item p:first-child {
    flex-basis: max(20%, 130px);
    flex-shrink: 0;
}
.item p {
    margin: 6px 0;
}

.subitem {
    color: #acacac;
}


.work {
    margin-top: 30px;
    background-color: transparent;
    border: 2px solid aquamarine;
    color: aquamarine;
    padding: 8px 16px;
    font-size: clamp(0.7rem,0.8vw, 1.5rem);
    cursor: pointer;
}

table {
    margin: 10px 0 10px 0;
    font-size: clamp(0.5rem, 1vw, 1rem);
    word-wrap: break-word;
    border-collapse: collapse;

    
}

.tablediv {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.active {
    max-height: 100vh;
    opacity: 1;
    
}

table, th, td {
    box-shadow: 0 0 0.3em aquamarine;
    border: 1px solid aquamarine;
    padding: 10px;
}


.icon {
    color: rgb(107, 215, 179);
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s 0.2s forwards; 
}






@keyframes slideIn {
    from {
        transform: translateY(-10%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes hovering {
    0% {
        transform: translateY(0);
        color: #7a7a7a;
    }
    50% {
        transform: translateY(8px);
        color: rgb(107, 215, 179);
    }
    100% {
        transform: translateY(0);
        color: #7a7a7a;
    }
}


.icon:hover {
    filter: brightness(1.7);
}
.icons {
    column-gap: 20px;
    display: flex;
}

footer {
    font-size: clamp(.85rem, 1vw, 2rem);
    text-align: center;
    color: #7a7a7a;
    background-color: #19232e;
    padding: max(30px, 3%) 0 max(30px, 3%) 0;
}


/* In test phase */

.anime-row {
    filter: grayscale() brightness(0.6);
    width: 100%;
    height: 100px;
    background-color: #18191b;

    background-image: url(/static/IMG/anime-girl-eyes-pattern-comics-600nw-2490948099.webp);
    background-repeat:repeat;
    background-size: 300px;
    animation: movePattern 35s linear infinite;
    border-top:2px solid rgb(95, 95, 95);
    border-bottom:2px solid rgb(95, 95, 95);
}


@keyframes movePattern {
    from{ background-position: 0 0; }
    to{ background-position: -1000px -1000px; }
}

/* In test phase */

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes opacity {
    to {
        opacity: 1;
    }
}

h1, h2 {
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s 0.2s forwards; 
}
h1 {
    font-size: clamp(3rem, 4vw, 8rem);
    color: #E6ECED;
}
h2 {
    font-size: clamp(1.4rem, 2vw, 5rem);
    color: #dfe4e5bb;
    font-weight: 400;
}
h3 {
    position: relative;
    font-size: 2rem;
}
h3::after {
    content: "";
    width: 50px;
    height: 2px;
    left: 0;
    bottom: -5px;
    background-color: aquamarine;
    position: absolute;
}


hr {
    box-shadow: 0 0 0.3em currentColor;
    border: 1px solid aquamarine;
    margin: 0;
}


.neon {
    text-shadow: 0 0 1em currentColor;
}

@media (max-width: 768px) {
    .portfolio {
        flex-direction: column;
    }
    .portfolio-img, .portfolio-text {
        flex-basis: 100%;
    }
    .portfolio img {
        max-width: 250px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 1250px) {
    .container {
        margin: 0 clamp(20px, 5%, 600px) 0 clamp(20px, 5%, 600px);
    }

}
