:root {
    --background-color: #141419;
    --background-accent: #1c1c1f;
    --text-color: #eae7e7;
    --primary-color: rgba(15, 126, 92, 255);
    --secondary-color: rgba(15, 89, 134, 255);
    --field-color: rgba(255, 255, 255, 0.05);
    --field-active-color: #00eaff11;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box;
    overflow-x: hidden;

}

html {
    scroll-behavior: smooth;
    padding: 3rem;
    min-height: 100dvh;
    width: 100dvw;
}


h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

/* section */
#welcome {
    position: relative;
    height: calc(100dvh - 3rem);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;

    >.container {
        width: 50%;
        height: 100%;
        position: relative;

        >.titlecontainer {
            position: absolute;
            top: 50%;
            left: 25%;
            transform: translate(-50%, -50%);
            text-align: center;
            padding-left: 10vw;

            >h1 {
                font-size: 4vw;
                margin-bottom: 1rem;
                color: var(--primary-color);
                text-shadow: 0 0 10px var(--primary-color);
            }

            >h2 {
                font-size: 2vw;
                color: var(--secondary-color);
                text-shadow: 0 0 10px var(--secondary-color);
            }

            >h3 {
                font-size: 1.5vw;
                color: var(--text-color);
                margin-top: 1rem;
            }
        }
    }
}

#about {
    position: relative;
    height: 100dvh;
    width: 100%;
    display: flex;

    >div.container {
        width: 50%;
        padding: 2rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        >#profile-pic {
            width: 70%;
            aspect-ratio: 1 / 1;
            border-radius: 50%;
            background: url('Assets/Images/20250819_111203.jpg') no-repeat center center/cover;
            box-shadow: 0 0 30px var(--primary-color), 0 0 33px var(--secondary-color);
        }

        >.about-container {
            >h2 {
                font-size: 3vw;
                margin-bottom: 1rem;
                color: var(--primary-color);
                text-shadow: 0 0 7px var(--primary-color);
            }

            >p {
                font-size: 1vw;
                line-height: 1.5;
                color: var(--text-color);
                text-shadow: 0 0 2px var(--text-color);
            }

        }
    }
}

#computer-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    aspect-ratio: 16 / 9;
    border-radius: 1vw;
    box-shadow: 0 0 20px var(--primary-color), 0 0 20px var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

#computer-inner {
    width: 95%;
    height: 95%;
    left: 4%;
    top: 10%;
    background: var(--background-accent);
    border-radius: 1vw;
    box-shadow: inset 0 0 10px var(--background-accent);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

#screen {
    position: relative;
    width: 100%;
    white-space: nowrap;
    /* preserves spacing like in real code */
    height: 100%;

    >div>p {
        position: relative;
        font-family: 'Courier New', Courier, monospace;
        width: 100%;
        display: block;
        font-size: 1.1vw;
        margin-top: 0.2vw;
    }


}

/* CSS for course container */
#studies>h2 {
    font-size: 2.5vw;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 7px var(--primary-color);

}

#courses {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 20px;
}

#courses {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

/* === SEMESTER GRID === */
#courses {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

/* === SEMESTER CARD === */
.semester {
    background-color: var(--background-accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1vw;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    padding: 1.5rem;
    z-index: 1;
}

.semester:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 234, 255, 0.3);
    border-color: var(--primary-color);
}

.semester h3 {
    font-size: 1.2vw;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.2rem;
    width: 100%;
}

/* === CLASSES LIST === */
#classes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#classes-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    transition: background 0.2s ease, transform 0.1s ease, border 0.2s ease;
    cursor: pointer;
}

#classes-list li:hover {
    background: rgba(0, 234, 255, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

#classes-list h4 {
    font-size: 1vw;
    color: var(--text-color);
    margin: 0;
}

/* === END OF SEMESTER CARD === */

/*=== START OF FOOTER === */
footer {
    position: relative;
    text-align: center;
    padding: 1rem;
    background-color: var(--background-accent);
    color: var(--text-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
    margin-top: 2rem;

}

/*=== END OF FOOTER === */
/*=== experience === */
#experience {
    position: relative;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    margin-top: 10vh;
    z-index: 1;

    >div>h2 {
        font-size: 3vw;
        margin-bottom: 1rem;
        color: var(--primary-color);
        text-shadow: 0 0 7px var(--primary-color);
    }
}


.experience-item {
    background-color: var(--background-accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1vw;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    margin-bottom: 1.5rem;
    z-index: 1;

    >div>h3 {
        font-size: 1.5vw;
        margin-bottom: 0.5rem;
        color: var(--secondary-color);
        border-bottom: 2px solid var(--secondary-color);
        display: inline-block;
        padding-bottom: 0.2rem;
        width: 100%;

    }

    >div {
        padding: 1.5rem;
        border-radius: 1vw;

        background-color: var(--background-accent);
    }

    >div>p {
        font-size: .8vw;
        line-height: 1.5;
        color: var(--text-color);
        text-shadow: 0 0 1px var(--text-color);
        margin-bottom: 0.5rem;
    }
}

.experience-item:hover {
    z-index: 1;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 234, 255, 0.3);
    border-color: var(--primary-color);
    background-color: var(--field-active-color);
    transition: .2s;
}

/*=== contact === */
#contact {
    position: relative;
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5vw;
}

.container {
    width: 50% !important;
}

#contact-form {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    >#form-outer {
        width: 80%;
        height: 50%;
        position: absolute;
        border-radius: 1vw;
        box-shadow: 0 0 20px var(--primary-color), 0 0 20px var(--secondary-color);

        >#form-inner {

            margin: 2rem;
            width: 90%;
            height: 96%;
            position: relative;
            top: 4%;
            background-color: var(--background-accent);
            border-radius: 1vw;
            box-shadow: inset 0 0 10px var(--background-accent);
            padding: 20px;

            >#contactForm {
                display: flex;
                flex-direction: column;
                gap: 1rem;
                height: 100%;
                box-sizing: border-box;
            }
        }
    }


}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background-color: var(--field-color);
    color: var(--text-color);
    font-size: 1rem;
    resize: vertical;
    position: relative;
    font-size: 1vw;
    transition: .2s;
    box-sizing: border-box;
}

#info-container {
    color: var(--text-color);

    >label {
        font-size: 1vw;
        color: var(--text-color);
    }
}

#message-container {
    height: 50%;

    >label {
        font-size: 1vw;
        color: var(--text-color);
    }
}

textarea {
    height: 80% !important;
    resize: none;
}

input:active,
textarea:active,
button:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    background-color: var(--field-active-color);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    background-color: var(--field-active-color);
}

button {
    padding: 0.8rem;
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--field-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    font-size: 1vw;
    transition: .2s;
}

#contact-container {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    >div>h2 {
        font-size: 3vw;
        margin-bottom: 1rem;
        color: var(--primary-color);
        text-shadow: 0 0 7px var(--primary-color);
    }

    >div>p {
        font-size: 1vw;
        line-height: 1.5;
        color: var(--text-color);
        text-shadow: 0 0 1px var(--text-color);

        >a {
            color: var(--secondary-color);
            text-decoration: none;
            text-shadow: none;
        }
    }


}


/* Blob */
#blob {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 10%;
    height: 10%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    filter: blur(200px);
    opacity: 0.3;
    animation: blobAnimation 20s infinite;
    transform: scale(1.5);
    translate: -50% -50%;
    transition: 0.1s;

}

@keyframes blobAnimation {

    0%,
    100% {
        width: 5%;
        height: 8%;
    }

    25% {
        width: 8%;
        height: 9%;
    }

    50% {
        width: 8%;
        height: 5%;
    }

    75% {
        width: 10%;
        height: 10%;
    }

}

#blob-container {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
}

.visible {
    opacity: 1 !important;
    transition: opacity 0.5s ease-in;



}

.hidden {
    opacity: 0 !important;
    transition: opacity 0.5s ease-out;

}


/* === RESPONSIVE BREAKPOINTS === */
/* tablets */
@media (max-width: 1300px) {
    #welcome>.container>.titlecontainer>h1 {
        font-size: 5vw;
    }

    #welcome>.container>.titlecontainer>h2 {
        font-size: 2vw;
    }

    #about>.container>.about-container>h2 {
        font-size: 4vw;
    }

    #about>.container>.about-container>p {
        font-size: 1.3vw !important;
        text-shadow: none;
    }

    #studies>h2 {
        font-size: 3vw;
    }

    #experience>#experience-list>.experience-item>p {
        font-size: 1vw;
    }

    #contactForm {
        position: relative;
    }

    #info-container>input,
    #message-container>textarea,
    #contact-form>#form-outer>#form-inner>#contactForm>button {
        font-size: 1.3vw !important;

    }

    #message-container>textarea {
        height: 60% !important;
    }


}

/* Tablet (2 per row) */
@media (max-width: 900px) {
    #courses {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (1 per row) */
@media (max-width: 600px) {
    #courses {
        grid-template-columns: 1fr;
    }

    #studies h2 {
        font-size: 1.6rem;
    }

    .semester {
        padding: 1rem;
    }

    #classes-list li {
        padding: 0.6rem 0.8rem;
    }
}

@media (orientation: portrait) {
    #welcome {
        flex-direction: column;
        justify-content: center;
        align-items: center;

        >#container1 {
            height: 30dvh;
        }

        >.container {
            width: 90% !important;

            >.titlecontainer {
                left: 50% !important;
                padding-left: 0vw !important;

                >h1 {
                    font-size: 5vh !important;
                }

                >h2 {
                    font-size: 2.5vh !important;
                }

                >h3 {
                    font-size: 2vh !important;
                }
            }

            >#computer-outer {
                width: 100% !important;
                aspect-ratio: 16 / 9 !important;
                top: auto !important;
                left: auto !important;
                transform: none !important;
                margin-top: 2rem !important;
                translate: 0 50%;

                >#computer-inner {
                    padding: 10px !important;

                    >#screen {
                        >div>p {
                            font-size: 2vw !important;
                        }
                    }
                }
            }

        }

    }

    #about {
        flex-direction: column !important;

        >.container {
            width: 100% !important;
            padding: 0 !important;
            height: 50%;

            >#profile-pic {
                width: 90% !important;
                margin-bottom: 2rem !important;
            }

            >.about-container {
                >h2 {
                    font-size: 7vw !important;
                    width: 100% !important;
                    text-align: center !important;
                }

                >p {
                    font-size: 3vw !important;
                }
            }
        }
    }

    #courses {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;

        >.semester {
            flex: 0 0 85% !important;
            /* card width when snapped */
            min-width: 85% !important;
            width: auto !important;
            scroll-snap-align: start;

            >.class {
                >h3 {
                    font-size: 4vw !important;
                }

                >#classes-list>li>h4 {
                    font-size: 3vw !important;
                }
            }
        }

        /* Optional nicer scrollbar on WebKit */
        >::-webkit-scrollbar {
            height: 8px;
        }

        >::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 4px;
        }
    }

    #experience {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        justify-content: start !important;
        



        >.experience-item {
            margin-top: 10px;
            flex: 0 0 90% !important;
            /* card width when snapped */
            min-width: 90% !important;
            width: auto !important;
            scroll-snap-align: start;

            >div>h3 {
                font-size: 4vw !important;
            }

            >div>p {
                font-size: 3vw !important;
            }
        }

        >#experience-title {
            /* margin-top: ; */
            flex: 0 0 50% !important;
            /* card width when snapped */
            min-width: 50% !important;
            width: auto !important;
            scroll-snap-align: start;

            >h2 {
                font-size: 5vw !important;
            }
        }

    }

    #contact {
        flex-direction: column !important;
        gap: 3vw !important;
        >.container {
            width: 90% !important;
            text-align: center !important;

            >div>h2 {
                font-size: 5vw !important;
            }

            >div>p {
                font-size: 3vw !important;
            }

            label {
                font-size: 2vw !important;
            }

            input,
            textarea,
            button {
                font-size: 2vw !important;
            }

            textarea {
                height: 70% !important;
            }
        }
    }
}