@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

:root{
    --color-background: #101013;
    --color-navcolor: #969696;
}

body{
    background-color: var(--color-background);
    color: white;
    font-family: "Raleway", sans-serif;
}

/* background */

.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.sphere-1 {
    width: 40vw;
    height: 40vw;
    background: linear-gradient(40deg, rgb(22, 63, 80) 0%, rgb(38, 87, 58) 50%, rgb(105, 99, 38));
    top: -10%;
    left: -10%;
    animation: float-1 5s ease-in-out infinite alternate;
}

.sphere-2 {
    width: 45vw;
    height: 45vw;
    background: linear-gradient(240deg, rgb(19, 55, 70) 0%, rgb(32, 73, 49) 50%, rgb(95, 89, 33));
    bottom: -20%;
    right: -10%;
    animation: float-2 5s ease-in-out infinite alternate;
}

.sphere-3 {
    width: 30vw;
    height: 30vw;
    background: linear-gradient(120deg, rgb(42, 110, 155) 0%, rgb(87, 199, 165) 50%, rgb(237, 201, 83));
    top: 60%;
    left: 20%;
    animation: float-3 5s ease-in-out infinite alternate;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 5;
}

@keyframes float-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-10%, -5%) scale(1.15);
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-5%, 10%) scale(1.05);
        opacity: 0.6;
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: 2;
}

.glow {
    position: absolute;
    width: 40vw;
    height: 40vh;
    background: radial-gradient(circle, rgba(72, 0, 255, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: pulse 8s infinite alternate;
    filter: blur(30px);
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* navbar */

nav{
    z-index: 10;
}

.logo{
    z-index: 999;
    width: 50px;
    position: absolute;
    top: 5px;
    left: 5px;
    transition: 0.7s;
    padding: 3px;
    border-radius: 10px;
}

.logo:hover{
    background-color: #2c2c38;
    transition: 0.7s;
}

.nav-span{
    color: var(--color-navcolor);
    padding: 15px 20px;
    border-radius: 10px;
    letter-spacing: 1.1px;
    transition: 0.7s;
    font-size: 13px;
}

.nav-span:hover{
    color: white;
    background-color: #1f1f27;
    transition: 0.7s;
}

.activeNav{
    color: white;
    background-color: #1f1f27;
    transition: 0.7s;
}

/* landing page */

.landing-page{
    margin-top: 25vh;
    z-index: 10;
    position: relative;
}

.landing-page-text{
    color: #969696;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-page-text h1{
    font-size: 2.7rem;
    margin-bottom: 15px;
    font-weight: bolder;
    color: white;
}

.landing-page-img{
    float: right;
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media only screen and (max-width: 425px) {
    .landing-page{
        margin-top: 8vh;
        padding: 0 1rem;
    }
    .landing-page-img{
        float: none;
        max-width: 140px;
        width: 60%;
        margin: 0.5rem auto;
    }
    .landing-page-text{
        margin-top: 6px;
        align-items: center;
        text-align: center;
    }
    .landing-page-text h1{
        font-size: 1.6rem;
    }
    .nav-span{
        float: none;
        padding: 6px 8px;
        letter-spacing: 1px;
        font-size: 12px;
    }
    .landing-page-btn{
        width: auto;
        padding: 10px 16px;
        font-size: 14px;
    }
    footer{
        position: static;
        padding: 1rem 0;
    }
    body{
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 768px) {
    .landing-page{
        margin-top: 12vh;
    }
    .landing-page-img{
        max-width: 220px;
        width: 80%;
        margin: 0.5rem auto;
    }
    .landing-page-text h1{
        font-size: 2rem;
    }
    .logo{
        width: 44px;
    }
    .landing-page-btn{
        width: auto;
    }
    footer{
        position: static;
        padding: 1rem 0;
    }
}

@media only screen and (max-width: 1024px) {
    .landing-page-img{
        max-width: 260px;
    }
}

.landing-page-btn{
    display: inline-block;
    color: white;
    padding: 8px 20px;
    border-radius: 10px;
    letter-spacing: 1.1px;
    transition: 0.5s;
    font-size: 15px;
    border: 1px solid white;
    width: 200px;
}

.landing-page-btn:hover{
    color: white;
    background-color: #1f1f27;
    transition: 0.5s;
}

/* footer */

footer{
    position: fixed;
    bottom: 0;
    left: 50;
    text-align: center;
    width: 100%;
    z-index: 10;
}

footer a{
    font-size: 25px;
    text-decoration: none;
    color: var(--color-navcolor);
    transition: 0.5s;
    z-index: 10;
}

footer a:hover{
    color: white;
    transition: 0.5s;
}

.footer-nav{
    display: flex;
    justify-content: center;
    gap: 30px;
}

.sidePages{
    position: static;
}

/* projeact.html */

.projects{
    text-align: left;
    margin-top: 4rem;
}

.gradient-text{
    background: linear-gradient(90deg, rgba(42,123,155,1) 0%, rgba(87,199,133,1) 50%, rgba(237,221,83,1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    font-weight: bold;
    font-size: 5rem;
    letter-spacing: 0.2rem;
}

.projectsList{
    margin-top: 2rem;
}

.project{
    position: relative;
    padding: 2rem;
    background-color: #131318;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px #0a0a0c;
    margin-right: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    --border-width: 1.5px;
    z-index: 10;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(.2,.9,.3,1), box-shadow 0.3s ease;
    will-change: transform;
}

.nameOfProject{
    font-size: 2.2rem;
}

.project img{
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
}

.project img{
    transition: transform 0.45s cubic-bezier(.2,.9,.3,1);
    will-change: transform;
    transform-origin: center center;
}

.project .project-caption{
    position: absolute;
    right: 1rem;
    bottom: 1.2rem;
    color: white;
    background: rgba(0,0,0,0.45);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
    z-index: 12;
}

.project.is-hovered .project-caption{
    opacity: 1;
    transform: translateY(0);
}

.project.is-hovered{
    box-shadow: 0 30px 60px rgba(59, 59, 59, 0.678);
}

@media (hover: none) and (pointer: coarse) {
    .project{ transition: none; }
    .project img, .project .project-caption { transition: none; }
}

@media only screen and (min-width: 992px) {
    .project{
        max-width: 25rem;
    }
    .project img{
        max-height: 220px;
    }
}

@media only screen and (max-width: 426px) {
    .projects{
        text-align: center;
    }
    .project{
        max-width: 90vw;
        margin: 0 auto;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    .gradient-text{
        font-size: 4.5rem;
    }
}

@media only screen and (max-width: 321px) {
    .project{
        width: 100%;
        margin: 0 auto;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    .gradient-text{
        font-size: 3.5rem;
    }
}

.project p{
    color: #ababcc;
    font-size: 0.9rem;
}

.button{
    background-color: #22222c;
    color: white;
    font-weight: bold;
    transition: 1;
    font-size: 1.2rem;
}

.button:hover{
    border: 1px solid #ababcc;
    background-color: #131318;
    color: #ababcc;
    transition: 1;
}

/* about */

.about{
    text-align: left;
    margin-top: 4rem;
    z-index: 10;
}

.about h2{
    display: block; 
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.informations p{
    font-size: 1.1rem;
}

/* contact */

.contact{
    text-align: left;
    margin-top: 4rem;
    z-index: 10;
}

.contact h2{
    font-size: 1.5rem;
}

form{
    display: flex;
    flex-direction: column;
}

.mail{
    color: rgba(87,199,133,1);
    text-decoration: none;
}

label{
    margin-top: 2rem;
    margin-bottom: 0.2rem;
}

input, textarea{
    background-color: #101013;
    border: 1px solid rgba(87,199,133,1);
    padding: 1rem;
    border-radius: 5px;
    color: white;
}

input:focus, textarea:focus{
    outline: none;
    border: 1px solid rgb(185, 255, 214);
}

textarea{
    box-sizing: border-box;
    resize: none;
    height: 10rem;
}

.submit{
    margin-top: 1rem;
    background-color: rgba(87,199,133,1);
    font-weight: bold;
    color: black;
    transition: 0.3s;
}

.submit:hover{
    border: 1px solid rgba(87,199,133,1);
    background-color: rgba(87, 199, 134, 0.26);
    color: white;
    transition: 0.3s;
}

/* slider */

.carousel{
    width: 100%;
    overflow: hidden;
    background-color: #131318;
    padding: 20px 0;
    border-radius: 20px;
    border: 1px solid #333;
    z-index: 10;
}

.carousel-track{
    display: flex;
    gap: 40px;
    animation: scroll 20s linear infinite;
}

.carousel-track img{
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.carousel-track img:hover{
    transform: scale(1.15);
}

@keyframes scroll{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-50%);
    }
}

/* timeline */

.timeline {
    margin: 20px auto;
    z-index: 10;
}

.card {
    position: relative;
    background-color: transparent;
    max-width: 400px;
    z-index: 10;
}

.card:nth-child(odd) {
    padding: 30px 0 30px 30px;
}

.card:nth-child(even) {
    padding: 30px 30px 30px 0;
}

.card::before {
    content: "";
    position: absolute;
    width: 50%;
    border: solid rgb(0, 255, 149);
}

.card:nth-child(odd)::before {
    left: 0px;
    top: -7px;
    bottom: -7px;
    border-width: 5px 0 5px 5px;
    border-radius: 50px 0 0 50px;
}

@media only screen and (max-width: 400px) {
    .card:nth-child(odd)::before {
        top: -5px;
        bottom: -5px;
    }
}

.card:nth-child(even)::before {
    right: 0;
    top: 0;
    bottom: 0;
    border-width: 5px 5px 5px 0;
    border-radius: 0 50px 50px 0;
}

.card:first-child::before {
    border-top: 0;
    border-top-left-radius: 0;
}

.card:last-child:nth-child(odd)::before {
    border-bottom: 0;
    border-bottom-left-radius: 0;
}

.card:last-child:nth-child(even)::before {
    border-bottom: 0;
    border-bottom-right-radius: 0;
}

.info {
    display: flex;
    flex-direction: column;
    background: #333;
    color: gray;
    border-radius: 10px;
    padding: 10px;
}

.title {
    background: linear-gradient(90deg, rgba(42,123,155,1) 0%, rgba(87,199,133,1) 50%, rgba(237,221,83,1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    font-weight: bold;
}

.title::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background-color: var(--color-background);
    border: 3px solid rgb(0, 255, 149);
}

.card:nth-child(even) > .info > .title {
    text-align: right;
}

.card:nth-child(even) > .info > p {
    text-align: right;
}

.card:nth-child(odd) > .info > .title::before {
    left: -47px;
}

.card:nth-child(even) > .info > .title::before {
    right: -47px;
}

/* animations */

.animate__animated.animate__fadeIn{
    --animate-duration: 3s;
}

.project::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 0;
    background: linear-gradient(270deg, rgba(42,123,155,1) 0%, rgba(87,199,133,1) 50%, rgba(237,221,83,1) 100%);
    background-size: 400% 400%;
    animation: borderGradient 8s ease infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask:
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
}

.project::before {
    padding: var(--border-width);
    border-radius: calc(10px + var(--border-width));
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}