/* Importing font from google fonts */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

/* Reset */
*{
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
    border-radius: 20px;
    border: none;
}

::-webkit-scrollbar-track {
    background:#101010;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
    border: 3px solid #bbb;
    background:var(--primary);
    border-radius:999px;
}

/* Background blur glow effect */
.container::before{
    content:"";
    position:fixed;
    width:500px;
    height:500px;
    background:#8B5CF620;
    border-radius:50%;
    filter:blur(170px);
    top:-180px;
    left:-180px;
    z-index:1;
    pointer-events: none;
}

.container::after{
    content:"";
    position:fixed;
    width:500px;
    height:500px;
    background:#6d28d950;
    background:#8B5CF620;
    border-radius:50%;
    filter:blur(170px);
    bottom:-20px;
    right:-10px;
    z-index: 0;
    pointer-events: none;
}

.container{
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    color: white;
    display: grid;
    grid-template-rows: auto 1fr;
    background:
    radial-gradient(circle at top left,
    rgba(139,92,246,.12),
    transparent 35%),

    radial-gradient(circle at bottom right,
    rgba(192,132,252,.08),
    transparent 35%),

    var(--bg);
    font-family: "Josefin Sans", serif;
}

/* Navigation */
.top-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom:1px solid transparent;
    transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}

.nav-container {
    width: 97%;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-btn, .arrow-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.home-btn:hover, .arrow-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glass-glow);
}

.nav-title {
    letter-spacing: 2px;
    font-size: 1rem;
    font-family:"JetBrains Mono",monospace;
    color:var(--mist);
    display: block;
}

/* Menu bar (Hamburger menu) */
.menu-btn{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    color: var(--text-muted);
    cursor: pointer;
}

.menu-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glass-glow);
}

.menu {
    font-size: 20px;
}

.mobile-menu{
    position:fixed;
    top:0;
    right:-100%;
    width:280px;
    height:100vh;
    background:rgba(10,10,15,.9);
    backdrop-filter:blur(20px);
    border-left:1px solid rgba(255,255,255,.1);
    display:flex;
    flex-direction:column;
    padding:100px 35px;
    gap:28px;
    transition:.4s ease;
    z-index:1000;
    font-family:"Inter",sans-serif;
    line-height:1.6;
}

.mobile-menu.active{
    right:0;
}

.mobile-menu a{
    color: #ffffff;
    text-decoration:none;
    font-size:18px;
    transition:.3s;
}

.mobile-menu a:hover{
    color:var(--amethyst);
    transform:translateX(6px);
}

.close-btn{
    position:absolute;
    top:25px;
    right:25px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    color: var(--text-muted);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glass-glow);
}

.close {
    font-size: 20px;
}

.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:999;
}

.overlay.active{
    opacity:1;
    visibility:visible;
}

/* Main section */
.container-elements {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow-y: hidden;
    height: 100%;
    width: 100%;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    margin: 0 20px 0 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    z-index: 100;
    justify-self: center;
    width: 97%;
}

.topbar-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 200;
}

.project-info {
    margin: 20px;
    /* max-height: calc(100vh - 160px); */
    height: 95%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    overflow: hidden;
}

.project-info h2 {
    font-size:30px;
    margin: 20px 0 10px 0;
}

.project-info p {
    margin: 10px;
    font-size: 20px;
    font-weight: 250;
    line-height: 25px;
}

.project-info ul {
    margin: 0 20px 20px 20px;
}

.project-info li {
    font-size: 20px;
    font-weight: 250;
    margin: 10px;
}

.project-info-text {
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
    backdrop-filter:blur(18px);
    border-radius:24px;

    &::-webkit-scrollbar {
        width: 3px;
    }

    &::-webkit-scrollbar-track{
        margin: 20px 2px 20px 0;
    }
}

.tools {
    margin: 10px 20px 5px 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    &::-webkit-scrollbar{
        display: none;
    }
}

.tools span {
    background-color: white;
    color: black;
    padding: 10px;
    border-radius: 15px;
    margin: 0 5px 0 5px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

.project-info-image {
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: start;
    flex-direction: column;
    padding: 20px;
    border-radius: 24px;
    grid-row: 1/3;
    grid-column: 2/3;
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
    backdrop-filter:blur(18px);
    border-radius:24px;
}

.project-info-image h2 {
    margin: 20px 0px 0px 0px;
}

.project-info-image-elements {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.project-info-image img {
    width: 95%;
    margin: 10px 0 10px 0;
    border-radius: 20px;
    opacity: 0;
    animation: scaleUp 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

.project-info-image img:first-child {
    margin: 0px 0px 10px 0px;
}

.project-info-image img:last-child {
    margin: 10px 0px 0px 0px ;
}

.project-info-link {
    border-radius: 24px;
    padding: 10px 10px 10px 20px;
    display: flex;
    flex-direction: column;
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
    backdrop-filter:blur(18px);
    border-radius:24px;
}

.link-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.link-holder a {
    text-decoration: none;
}

.project-info-link .links {
    background-color: white;
    color: black;
    padding: 14px;
    border-radius: 15px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: fit-content;
    transition: 0.2s;

    &:hover {
        box-shadow: 0 0 5px white, 0 0 10px white, 0 0 20px white;
    }
}

.link {
    font-size: 20px;
}

.links img {
    margin: 0 5px 0 5px;
}

/* Animations */

/* Slide down animation */
@keyframes slideDown {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.slideDown {
    animation: slideDown 1s ease forwards;
}

/* Slide left animation */
@keyframes slideLeft {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-animation {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: calc(0.3s * var(--i));
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        scale: 0;
        opacity: 0;
    }
    to {
        scale: 1;
        opacity: 1;
    }
}

/* Responsive */
@media only screen and (min-width: 300px) and (max-width: 400px) {

    .container {
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto auto;
    }

    .nav-container {
        padding: 0.5rem 0;
        width: 95%;
    }

    .nav-title {
        font-size: 0.8rem;
    }

    .home-btn, .arrow-btn {
        width: 30px;
        height: 30px;
    }

    .home, .arrow {
        font-size: 12px;
    }

    .container-elements {
        font-size: 12px;
        height: auto;
    }

    .topbar-text {
        font-size: 15px;
    }

    .project-info {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        max-height: none;
        height: auto;
    }

    .project-info h2 {
        font-size: 25px;
        margin: 10px 0 10px 0;
    }

    .project-info p {
        font-size: 15px;
        line-height: 20px;
    }

    .project-info li {
        font-size: 15px;
    }

    .tools span {
        border-radius: 10px;
    }

    .project-info-image{
        grid-column: 1/1;
        grid-row: 2/2;
        height: auto;
    }

}

@media only screen and (min-width: 400px) and (max-width: 600px) {

    .container {
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto auto;
    }

    .nav-container {
        padding: 0.6rem 0;
        width: 91%;
    }

    .home, .arrow {
        font-size: 15px;
    }

    .container-elements {
        font-size: 15px;
        height: auto;
    }

    .topbar {
        width: 91%;
    }

    .topbar-text {
        font-size: 20px;
    }

    .project-info {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        max-height: none;
        height: auto;
    }

    .project-info h2 {
        font-size: 25px;
        margin: 10px 0 10px 0;
    }

    .project-info p {
        font-size: 18px;
        line-height: 25px;
    }

    .project-info li {
        font-size: 18px;
    }

    .tools span {
        border-radius: 10px;
        font-size: 15px;
    }

    .project-info-image{
        grid-column: 1/1;
        grid-row: 2/2;
        height: auto;
    }

}

@media only screen and (min-width: 600px) and (max-width: 800px) {

    .container {
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto auto;
    }

    .nav-container {
        padding: 0.6rem 0;
        width: 95%;
    }

    .home, .arrow {
        font-size: 15px;
    }

    .container-elements {
        font-size: 20px;
        height: auto;
    }

    .topbar {
        width: 95%;
    }

    .topbar-text {
        font-size: 25px;
    }

    .project-info {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        max-height: none;
        height: auto;
        gap: 15px;
    }

    .project-info h2 {
        font-size: 30px;
        margin: 10px 0 10px 0;
    }

    .project-info p {
        font-size: 23px;
        line-height: 30px;
    }

    .project-info li {
        font-size: 23px;
    }

    .tools span {
        border-radius: 10px;
        font-size: 18px;
    }

    .project-info-image{
        grid-column: 1/1;
        grid-row: 2/2;
        height: auto;
    }

}

@media only screen and (min-width: 800px) and (max-width: 992px) {

    .container {
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto auto;
    }

    .nav-container {
        padding: 0.6rem 0;
        width: 95%;
    }

    .home, .arrow {
        font-size: 15px;
    }

    .container-elements {
        font-size: 20px;
        height: auto;
    }

    .topbar {
        width: 95%;
    }

    .topbar-text {
        font-size: 25px;
    }

    .project-info {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        max-height: none;
        height: auto;
    }

    .project-info h2 {
        font-size: 30px;
        margin: 10px 0 10px 0;
    }

    .project-info p {
        font-size: 23px;
        line-height: 30px;
    }

    .project-info li {
        font-size: 23px;
    }

    .tools span {
        border-radius: 10px;
        font-size: 18px;
    }

    .project-info-image{
        grid-column: 1/1;
        grid-row: 2/2;
        height: auto;
    }

}

@media only screen and (min-width: 992px) and (max-width: 1200px) and (min-height: 1200px) {

    .nav-container {
        padding: 0.6rem 0;
        width: 96%;
    }

    .home, .arrow {
        font-size: 15px;
    }

    .topbar {
        width: 96%;
    }

    .topbar-text {
        font-size: 30px;
    }

    .project-info {
        gap: 15px;
        font-size: 20px;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .project-info-image {
        height: 100%;
    }
    
    .project-info p {
        font-size: 25px;
        line-height: 30px;
    }

    .project-info li {
        font-size: 25px;
    }

    .project-info-link .links {
        margin: 10px;
    }

}


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

    .nav-container {
        padding: 0.6rem 0;
        width: 95%;
    }

    .home, .arrow {
        font-size: 15px;
    }

    .topbar {
        width: 95%;
    }

    .topbar-text {
        font-size: 30px;
    }

    .project-info {
        gap: 15px;
        font-size: 25px;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .project-info h2 {
        font-size: 40px;
    }
    
    .project-info p {
        font-size: 30px;
        line-height: 35px;
    }
    
    .project-info li {
        font-size: 30px;
    }

    .project-info-image {
        height: 100%;
    }

    .project-info-link .links {
        margin: 10px;
    }

}

@media only screen and (max-height:420px) {

    .container {
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto auto;
    }

    .project-info {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        max-height: none;
        height: auto;
    }

    .project-info-image{
        grid-column: 1/1;
        grid-row: 2/2;
        height: auto;
    }
}