@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100vh; 
    background: url("Images/background.png") no-repeat center / cover;
    padding: 5% 50px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

.container {
    width: 100%;
    position: relative;
    height: auto;
    background: rgba(255, 255, 255 .1);
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 30px;
    backdrop-filter: blur(30px);
    transform: scale(0);
    animation: zoom-in 1s ease forwards;
    margin-bottom: 100px;
}

.container h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin: 20px;
}

@keyframes zoom-in {
    100% {
        transform: scale(1);
    }
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    /*background: slateblue;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.animated {
    transform: translateY(30px);
    opacity: 0px;
    animation: slide-in 1s ease forwards;
    animation-delay: 1s;
}

@keyframes slide-in {
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.navbar a{
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    border-bottom: 2px solid transparent;
    transition: .5s;
}

.navbar a:hover, 
.navbar a.active {
    border-color: #fff;
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 50px;
    padding: 80px 10% 0;
    color: #fff;
    animation-delay: 1.5s;
    margin-bottom: 50px;
}

.home-detail h1 {
    font-size: 55px;
    line-height: 1;
}

.home-detail h2 {
    font-size: 32px;
}

.home-detail p {
    margin: 10px 0 20px;
}

.home-detail .download-social {
    display: flex;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 40px;
    box-shadow: 0 0 10px #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    box-shadow: none;
    color: #fff;
}

.home-detail .social-icons {
    margin-left: 20px;
}

.home-detail .social-icons a {
    display: inline-flex;
    padding: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    transition: .5s;
}

.home-detail .social-icons a:hover {
    background: #fff;
    box-shadow: 0 0 10px #fff;
    color: #333;
}

.home-img .img-box {
    position: relative;
    width: 28vw;
    height: 28vw;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #fff;
    overflow: hidden;
}

.home-img .img-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 100%;
    object-fit: cover;
}

.about {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    padding: 10px 5% 50px;
    color: #fff;
    animation-delay: 1.5s;
}

.about-text {
    flex: 1.5;
}

.about-text p {
    margin-bottom: 1em;
}

.about-img {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.about-img .img-box {
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px #fff;
    overflow: hidden;
    margin: 20px;
}

.about-img .img-box img {
    display: block; 
    width: 100%;
    max-width: 450px;
    height: auto;
    overflow: hidden;
}

.about-img .gpa h4 {
    margin: 10px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    padding: 10px 5% 50px;
    color: #fff;
    animation-delay: 1.5s;
}

.project {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: calc(50% - 30px);
    max-width: calc(50% - 25px);
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

.project-images img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.project h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: black;
}

.project p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

.project a {
    font-weight: 500;
    color: #0073e6;
    text-decoration: none;
    transition: 0.3s ease;
}

.project a:hover {
    text-decoration: underline;
}

.experience {
    text-align: left;
    margin: 0 auto;
    color: #fff;
    margin-bottom: 60px;
}

.experience .exp {
    text-align: left;
    margin-left: 80px;
}

.experience .exp h3 {
    font-size: 1.5em;
    margin-top: 20px;
}

.experience .exp ul {
    margin-left: 20px;
}

.experience .skills {
    text-align: left;
    margin-left: 80px;
    margin-top: 80px;
}

.experience .skills h3 {
    font-size: 1.5em;
    margin-top: 20px;
}


.contact {
    text-align: center;
    padding: 50px 0;
    margin: 0 auto;
    color: #fff;
}

.contact h2 {
    font-size: 2em;
}

.contact p {
    margin-bottom: 30px;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact form label {
    font-size: 1em;
    margin-bottom: 8px;
    text-align: left;
    width: 100%;
}

.contact form input,
.contact form textarea {
    padding: 10px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact form button:hover {
    background-color: #0056b3;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    color: #fff;
    position: relative;
    width: 100%;
    bottom: 0;
}

@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-img .img-box {
        width: 50vw;
        height: 50vw;
    }

    .projects {
        flex-direction: column;
    }

    .project {
        width: 100%;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }
}