:root {
    --primary-color: #8b81fa;
    --secondary-color: #f853a6;
    --tertiary-color: #6070fd;
    --quaternary-color: #5bbdff;
    --text-color: white;
    --background-blur: rgba(139, 129, 250, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: rgba(139, 129, 250, 0.1);
    border-radius: 10px;
}

html::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 3px solid rgba(139, 129, 250, 0.1);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(139, 129, 250, 0.1);
}

.main-section {
    position: relative;
    overflow: hidden;
}

.main-section .custom-scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    width: 12px;
    height: 100%;
    background: rgba(139, 129, 250, 0.1);
    border-radius: 10px;
}

.main-section .custom-scrollbar-thumb {
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 3px solid rgba(139, 129, 250, 0.1);
    position: absolute;
}

body {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    padding: 30px 0;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.back-vid {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-aspect-ratio: 16/9) {
    .back-vid {
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9) {
    .back-vid {
        width: 100%;
        height: auto;
    }
}

.main-section {
    display: flex;
    flex-direction: column;
    width: 90%;
    height: 90vh;
    background-color: var(--background-blur);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 5px 5px 20px 1px var(--primary-color);
    overflow-y: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
}

nav h1 {
    color: var(--text-color);
    font-size: 30px;
    font-weight: 900;
}

nav ul {
    list-style: none;
    display: flex;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: 0.2s;
    padding: 0 25px;
}

nav a:hover,
.active {
    color: var(--primary-color);
    text-decoration: underline;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 10%;
    color: var(--text-color);
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 100px;
}

.hero h1 {
    font-size: 60px;
}

.hero h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 30px;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--tertiary-color), var(--quaternary-color), var(--primary-color));
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

.gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--tertiary-color), var(--quaternary-color), var(--primary-color));
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

.hero div {
    max-width: 450px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.hero ul {
    list-style-type: "» ";
    padding-left: 20px;
    margin-top: 10px;
}

.hero ul li {
    margin-bottom: 5px;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.Buttons {
    display: flex;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 40px;
    box-shadow: 0 0 10px var(--primary-color);
    font-size: 16px;
    font-weight: 900;
    color: #0e1217;
    cursor: pointer;
    margin-right: 15px;
    transition: 0.3s;
    text-wrap: nowrap;
}

.btn:hover {
    background-color: transparent;
    box-shadow: none;
    color: var(--primary-color);
}

.ul-icons {
    display: flex;
    align-items: center;
    margin-left: -30px;
}

.ul-icons li {
    list-style: none;
    margin-left: 10px;
}

.ul-icons a {
    display: inline-flex;
    padding: 8px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 7px;
    transition: 0.3s;
}

.ul-icons a:hover {
    background: var(--primary-color);
    color: #0e1217;
    box-shadow: 0 0 10px var(--primary-color);
}

.hero-img {
    width: clamp(300px, 25vw, 400px);
    height: clamp(300px, 25vw, 400px);
    background-color: transparent;
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px var(--primary-color);
    transition: 0.5s;
    flex-shrink: 0;
    aspect-ratio: 1;
}

@media (min-width: 1220px) {
    body {
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    .info-sec {
        margin-top: 30px;
    }
}

@media (max-width: 980px) {
    body {
        height: fit-content;
        overflow: auto;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    nav ul li {
        padding: 10px 0;
    }

    .Buttons {
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        padding: 0 5%;
    }

    .hero-img {
        width: 350px;
        height: 350px;
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .projects {
        font-size: 20px;
        padding: 0 5%;
    }

    nav {
        padding: 20px 20px;
    }
}

@media (max-width: 440px) {
    .hero-img {
        width: 300px;
        height: 300px;
    }

    .hero h1 {
        font-size: 32px;
    }

    nav h1 {
        font-size: 24px;
    }

    nav a {
        font-size: 16px;
        padding: 0 15px;
    }
}

@media (max-width: 980px) {
    .hero {
        flex-direction: column;
        align-items: center;
        padding: 0 5%;
    }
}

.hero-img:hover {
    box-shadow: 0 0 25px var(--primary-color);
}

.hero-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.info-sec {
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 0 10%;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 50px;
}

.info-card {
    display: flex;
    width: 100%;
    align-items: center;
    max-width: fit-content;
}

.info-sec h1 {
    font-size: 55px;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--tertiary-color), var(--quaternary-color), var(--primary-color));
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
    margin-right: 10px;
}

.info-sec p {
    color: var(--text-color);
    font-size: 20px;
}

.card-footer {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    font-size: 14px;
    font-style: italic;
    color: var(--text-color);
}

.hero2 {
    margin-left: 10%;
    margin-top: 3%;
}

.projects {
    margin-top: 3%;
    font-size: 24px;

}

.link {
    margin-bottom: 2%;
}

.app-desc {
    margin-top: 1%;
    font-size: 18px;
}

.projects a {
    color: var(--primary-color);
}

.projects p {
    margin-top: 1%;
    font-size: 18px;
    max-width: 90%;
}
