@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0 10px;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #000000;
    background-image: url('background.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

section,
.home,
.about,
.education,
.skills,
.projects,
.contact {
    scroll-margin-top: 100px;
}

.navigation {
    background-color: #e7e5e545;
    backdrop-filter: blur(10px);
    border-bottom: 4px solid #ffffff;
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    border-radius: 15px;
    padding: 20px 40px;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navigation {
        justify-content: flex-end;
        padding: 15px 20px;
    }

    .menu-icon {
        display: block;
        z-index: 1001;
    }

    .navlist {
        pointer-events: auto;
        position: absolute;
        top: 20px;
        right: -100%;
        left: auto;
        width: 60%;
        height: auto;
        min-height: 500px;
        padding: 40px 20px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 30px;
        transition: 0.4s ease;
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-right: 20px;
    }

    .navlist.open {
        right: 0;
    }

    .navlist li {
        display: block;
        padding: 0;
        margin: 0;
    }

    .navlist li a {
        font-size: 1.5rem;
        display: block;
    }
}



.navlist {
    list-style: none;
    display: flex;
    gap: 40px;
}

.navlist li {
    font-weight: bold;
    color: rgb(255, 255, 255);
}

.navlist li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.navlist li a:hover,
.navlist li a.active {
    color: #FF6D1F;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: row;
}

.hometext {
    font-size: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 3%;
}

.hometext h1 {
    color: #ffffff;
}


.img {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 4px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3%;
}

.img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
}

.about {
    color: #ffffff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abouttext {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    background-color: #ffffffb5;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border-bottom: 4px solid #ffffff;
}

.abouttext h1 {
    font-size: 1rem;
    padding: 10x;
}

.abouttext .text-slider {
    display: inline-block;
    color: #000000;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 1;
    transform: translateY(0);
    font-size: 4rem;
    margin-top: 30px;
    padding: 20px;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: italic;
}

.details {
    font-size: 1.2rem;
    padding: 30px;
    color: #000000;
    text-align: center;
}

.text-slider.slide-out-down {
    opacity: 0;
    transform: translateY(20px);
}

.text-slider.hidden-top {
    opacity: 0;
    transform: translateY(-20px);
}

.text-slider.no-transition {
    transition: none !important;
}

.education {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    min-height: 100vh;
    background-color: #00000000;
    color: #ffffff;
    border-radius: 15px;
}

.education h1 {
    font-size: 1rem;
    padding: 10px;
    color: #ffffff;
    margin-top: 3%;
}

.educationtext {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 40px;
}

.edu-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 4px solid #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 500px;
    height: 250px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.edu-card:hover {
    transform: translateY(-10px);
    background-color: #ffffffb5;
    color: #000000;
}

.edu-card:hover h2 {
    color: #000000;
}

.edu-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.edu-card p {
    margin: 5px 0;
    font-size: 1rem;
}

.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    min-height: 100vh;
    background-color: #00000000;
    color: #ffffff;
    border-radius: 15px;
}

.skills h1 {
    font-size: 1rem;
    padding: 10px;
    color: #ffffff;
    margin-top: 3%;
}

.skillstext {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 40px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 4px solid #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 500px;
    height: 250px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.skill-boards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.skill-card:hover {
    transform: translateY(-10px);
    background-color: #fefefed4;
    color: #000000;
}

.skill-card:hover h2 {
    color: #000000;
}

.skill-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fefefed4;
}

.skill-boards p {
    margin: 5px 0;
    font-size: 1rem;
}


.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #00000001;
    color: #ffffff;
    border-radius: 15px;
}

.projects h1 {
    font-size: 1rem;
    padding: 10px;
    color: #ffffff;
    margin-top: 6%;
}

.sticky-card {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    padding-top: 150px;
    align-items: center;
    flex-direction: column;
    margin-top: -70px;
}

.project-content {
    background: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.421);
    border-bottom: 4px solid #ffffff;
    border-radius: 15px;
    padding: 0;
    margin-top: -50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 1100px;
    height: 580px;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    transition: transform 0.3s ease;
    gap: 0;
    overflow: hidden;
}

.project-image {
    flex: 0 0 50%;
    margin: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.project-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.project-details {
    flex: 0 0 50%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    padding: 40px;
}

.project-details h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.project-details p {
    font-size: 1.2rem;
}

.project-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: #000000;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.project-btn:hover {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
}

.project-btn i {
    margin-left: 8px;
}


.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background-color: #00000000;
    color: #ffffff;
    padding: 10px 20px;
}

.contact h1 {
    font-size: 3rem;
    padding: 10px;
    color: #ffffff;
    margin-bottom: 10px;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: italic;
    margin-top: 0;
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    padding-left: 20px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}

.contact-form {
    flex: 1;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 4px solid #ffffff;
    border-radius: 20px;
    padding: 40px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    color: #000000;
    border: 2px solid transparent;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form .btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

#form-status {
    margin-top: 15px;
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
}

.contact-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-top: 20px;
}

.email h2,
.social-cards h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;

}

.email p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.email-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icons a,
.glass-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.icons a:hover,
.glass-icon:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-5px);
}

.contact-info p {
    font-size: 1.2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 10px;
    }
}


.footer {
    background-color: #000000;
    color: #888888;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cv {
    margin-top: 20px;
}

.cv-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #ffffff;
    color: #000000;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 15px;
    transition: 0.3s;
    border: 2px solid transparent;
}

.cv-btn:hover {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
}

.cv-btn i {
    margin-left: 10px;
}


@media (max-width: 768px) {
    * {
        margin: 0;
        box-sizing: border-box;
    }

    .navigation {
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 15px 20px;
        justify-content: flex-end;
        pointer-events: none;
    }

    .menu-icon {
        pointer-events: auto;
    }

    .home {
        flex-direction: column;
        padding-top: 80px;
        height: auto;
        min-height: auto;
        padding-bottom: 20px;
    }

    .hometext {
        font-size: 5rem;
        align-items: flex-start;
        text-align: left;
        min-height: 85vh;
        justify-content: center;
        padding-top: 20px;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
    }

    .hometext h1 {
        font-size: 3rem;
    }

    .img {
        margin-top: 50px;
        width: 90%;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 30px;
        align-self: center;
    }

    .about {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }

    .abouttext {
        width: 95%;
        margin-bottom: 20px;
    }

    .education,
    .skills {
        min-height: auto;
        padding: 20px 0;
    }

    .abouttext .text-slider {
        font-size: 1.5rem;
    }

    .details {
        font-size: 0.9rem;
        padding: 15px;
    }

    .educationtext,
    .skillstext {
        padding: 10px;
        width: 100%;
        gap: 15px;
    }

    .edu-card,
    .skill-card {
        width: 90%;
        margin: 10px auto;
        height: 200px;
        padding: 20px 10px;
    }

    .edu-card h2,
    .skill-card h2 {
        font-size: 1.4rem;
    }

    .edu-card p,
    .skill-boards p {
        font-size: 0.9rem;
    }

    .projects {
        padding: 20px 0;
    }

    .projects h1 {
        margin-bottom: 50px;

    }

    .sticky-card {
        padding-top: 100px;

        height: 100vh;
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .project-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 600px;
        background: #000;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .project-image {
        height: 180px;

        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        background-size: cover;
        background-position: center;
    }

    .project-details {
        padding: 15px;

    }

    .project-details h2 {
        font-size: 1.2rem;

    }

    .project-details p {
        font-size: 0.85rem;

    }

    .project-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .contact-info p,
    .contact-info a {
        font-size: 1rem;
    }

    .contact-info {
        align-items: center;
        text-align: center;
        width: 100%;

    }

    .email-content {
        justify-content: center;
        width: 100%;
    }

    .icons {
        justify-content: center;
        width: 100%;
    }

    .email h2,
    .social-cards h2 {
        font-size: 1.2rem;
    }
}