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

body{
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    transition: all 0.2s;
    overflow-x: hidden;
    background-image: url(images/5485148-hd_1920_1080_25fps.mp4); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
    overflow-x: hidden;
}

.label-darkmode{
    width: 66px;
    height: 20px;
    position: relative;
    display: block;
    background:white;
    border-radius: 200px;
    box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4), inset 0px -5px 15px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    margin-right: 20px;
    transition: 0.3s;
}

.label-darkmode:after{
    content: "";
    width: 27px;
    height: 27px;
    position: absolute;
    top: -3px;
    left: -1px;
    background: linear-gradient(180deg, #353535,#261906);
    border-radius: 200px;
    box-shadow: 0px 0px 5px;
    transition: 0.15s cubic-bezier(0.15, 0.46, 0.6, 1.275);
}

.input-darkmode{
    visibility: hidden;
}

.input-darkmode:checked + .label-darkmode{
    background: #242424;
}

.input-darkmode:checked + .label-darkmode:after{
    left: 62px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #777,#3a3a3a);
}

:root{
    --primary-color: wheat;
    --secondary-color: #212121;
}

.dark-theme{
    --primary-color: #212121;
    --secondary-color: wheat;
}

.darkmode {
    display: flex;
    align-items: center;
    margin-left: 10px;   
    padding-left: 20px;   
    border-left: 1px solid rgba(255, 255, 255, 0.3); 
}

.dark-theme .header-image{
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dark-theme .header-image::before{
    opacity: 0.2;
}

.header-image {
    height: 600px;
    border-radius: 0 0 60px 60px;
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(109, 102, 102);
    z-index: 1; 
}

.header-image::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(images/6227297.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 0 0 60px 60px;

    opacity: 0.4;
}

.main-text {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    color: var(--secondary-color);
    font-size: 100px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    letter-spacing: 10px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-image {
    position: absolute;
    bottom: 0;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-info {
    position: absolute;
    bottom: 60px;
    left: 50%;
    text-align: right;
    z-index: 0;
    opacity: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    color: var(--secondary-color);
    font-family: sans-serif;
}

.header-image:hover .main-text{
    transform: translateX(-50%) translateY(-120px) scale(1.1);
    opacity: 1;
}

.header-image:hover .main-image {
    transform: translateX(-50%) translateY(5%) scale(0.9);
}

.header-image:hover .main-info {
    opacity: 1;
    transform: translateX(-360px);
}

.header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    text-decoration: none;
}

.navbar {
    z-index: 100;
    display: inline-flex;
    position: fixed;
    right: 0;
    margin: 20px;
    gap: 30px; 
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 14px 27px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar a {
    text-decoration: none;
    color: wheat;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%; 
}

.navbar a:hover {
    opacity: 0.8; 
}
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    padding: 100px 50px;
    width: 100%;
}
.about-lefttext, 
.about-righttext {
    width: 300px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-lefttext p{
    font-family: 'Inter', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
    text-align: right;
    margin: 0;
}

.about-righttext p {
    font-family: 'Inter', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

.about-lefttext:hover, 
.about-righttext:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    cursor: default;
}


.about-h1 {
    font-size: 80px;
    font-weight: 900;
    font-family: sans-serif;
    margin: 0 0 -25px 0;
    color: var(--secondary-color);
    transition: all 0.2s ease;
    letter-spacing: 5px;
}

.about-image {
    width: 350px;
    margin-top: 100px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);

}

.skills-h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px; 
    font-size: 80px;
    font-weight: 900;
    font-family: sans-serif;
    color: var(--secondary-color);
    letter-spacing: 5px;
    margin: 0;
}

.skills-image{
    width: 350px;
    margin-top: 100px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.skills-pictures{
    display: flex;
    justify-content: center;
    padding: 10px;
}

.skills-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    margin-top: 250px;
    padding: 100px 50px;
    width: 100%;
    position: relative; 
}

.skills-description{
    width: 500px;
    padding: 30px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.skills-description:hover{
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px 10px rgba(0, 0, 0, 0.2);
}

.skills-images{
    height: 100px;
    margin-right: 30px;
    border-radius: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.projects-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative; 
    padding-top: 150px;
     margin-top: 250px;
    padding-bottom: 100px;
}

.projects-title {
    font-size: 80px;
    font-weight: 900;
    font-family: sans-serif;
    color: var(--secondary-color);
    letter-spacing: 5px;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
}

.project-cards {
    width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.2);
    padding: 0; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    margin: 20px; 
    transition: all 0.3s ease;
}

.project-cards:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 15px 10px rgba(0, 0, 0, 0.3);
}

.project-images {
    height: 200px;
}

.project-images{
    cursor: pointer;
}

.project-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: top;
}

.dark-theme .project-images h1{
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.1);
}

.project-images h1 {
    z-index: 2;
    margin-left: 20px;
    font-weight: 760;
    text-shadow: 1px 0px 2px rgba(0, 0, 0, 0.3);
    color: var(--secondary-color);
    font-family: sans-serif;
}

.card-content{
    margin-top: 20px;
    font-family: sans-serif;
    padding: 30px;
    line-height: 1.6;
    color: var(--secondary-color);
}

.contacts-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-top: 200px;
    padding-bottom: 100px;
    width: 100%;
}

.contact-title {
    font-size: 80px;
    font-weight: 900;
    position: absolute;
    font-family: sans-serif;
    color: var(--secondary-color);
    letter-spacing: 5px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.contact-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 90px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
    border-color: wheat;
}

.contact-icon {
    width: 60px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-box:hover .contact-icon {
    transform: scale(1.1);
}

.contact-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.backtotop{
    width: 100%;
    left: 50%;
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.backtotop-button{
    text-decoration: none;
    font-family: sans-serif;
    padding: 15px;
    color: var(--secondary-color);
    font-weight: 750;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 90px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.backtotop-button:hover{
    transform: scale(1.1);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .footer{
    opacity: 0.6;
}

.footer{
    padding: 60px 20px;
    background: #212121;;
    margin: 0;
    backdrop-filter: blur(10px);
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: wheat;
    font-family: 'Inter', sans-serif;
}

.copyright p{
    opacity: 1;
    font-size: 20px;
}

.copyright-name{
    opacity: 0.8;
    margin-left: 4px;
    letter-spacing: 5px;
}

.container{
    display: flex;
    font-size: 20px;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    font-family: sans-serif;
    font-weight: 900;
    margin-bottom: 150px;
}

.form-btn{
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 90px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px;
    margin-top: 10px;
    color: var(--secondary-color);
    font-weight: 800;
    font-family: sans-serif;
    cursor: pointer;
    left: 0;
}

.form-btn:hover{
    transform: scale(1.1);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.form-leftside{
    display: flex;
    flex-direction: column;
    margin: 10px;
    align-items: center;
}

.form-leftside p{
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center
}
.form-input{
    background: rgba(255, 255, 255, 0.0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 18px;
    font-size: 20px;
    margin-top: 15px;
    color: var(--secondary-color);
}


.form-input-message{
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    padding: 10px;
    font-size: 22px;
    color: var(--secondary-color);
}


@media (max-width: 768px) {
    html {
    transition: all 0.6s;
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
    overflow-x: hidden;
    }

    .main-text {
        color: var(--secondary-color);
        font-size: 50px;
    }

    .main-image {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 160px;
        z-index: 2;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .main-info {
        text-align: center;
        color: var(--secondary-color);
        font-family: sans-serif;
        position: absolute;
        bottom: 75px;
        transform: translateX(-50%); /* Adds perfect centering */
        text-align: center;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }


    .header-image:hover .main-text {
        transform: translateX(-50%) translateY(-190px) scale(1.1);
        opacity: 1;
    }

    .header-image:hover .main-image {
        transform: translateX(-50%) translateY(10%) scale(0.8);
    }

    .header-image:hover .main-info{
        opacity: 1;
        transform: translateY(-50%) translateX(-100px);
    }

    .navbar {
        position: fixed;
        width: 100%;
        max-width: 400px; 
        justify-content: space-between; 
        padding: 8px 15px; 
    }

    .navbar a {
        font-size: 12px;
        padding: 0 2px; 
        gap: 0; 
    }

    .darkmode {
        margin-left: 5px;
        padding-left: 8px; 
    }

    .navbar .darkmode .label-darkmode {
        width: 40px;  
        height: 20px;
    }
    
    .navbar .darkmode label:after {
        width: 16px;
        height: 16px;
        top: 2px;
        left: 2px;
        box-shadow: none; 
    }

    .navbar .darkmode input:checked + label:after {
        left: 100%;
        transform: translateX(-100%) translateX(-2px);
    }

    .about-section {
        flex-direction: column;
        padding: 50px 20px;
        gap: 40px;
    }

    .about-text {
        order: -1; 
        margin-bottom: 20px;
    }

    .about-lefttext,
    .about-righttext {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .about-h1 {
        font-size: 50px;
    }
    .about-image {
        width: 80%;
        max-width: 250px;
    }

    .skills-description{
        width: 100%;
    }

    .skills-section {
        flex-direction: column;
        padding: 50px 20px;
        gap: 40px;
    }

    .skills-text {
        order: -1;
        margin-bottom: 20px;
        text-align: center;
    }

    .skills-image {
        width: 80%;
        margin-top: 20px;
    }

    .skills-pictures{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .skills-h1 {
        font-size: 50px;
    }

    .projects-title{
        font-size: 50px;
    }

    .contact-title {
        font-size: 50px;
    }

    .contacts-section{
        flex-direction: column;
    }

    .contact-box {
        width: 140px;
        height: 140px;
    }

    .footer{
    padding: 60px 20px;
    background: #212121;;

    backdrop-filter: blur(10px);
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: wheat;
    font-family: 'Inter', sans-serif;
}

    .copyright p{
        font-size: 15px;
    }
}