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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    background: #f5f1e8;
    color: #6b5b4d;
}

.container {
    max-width: 2 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile {
    padding: 40px 0 60px 0;
    text-align: center;
    position: relative;
}

.sine-wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    z-index: 1;
    pointer-events: none;
}

.photo-container {
    position: relative;
    width: 350px;
    height: 550px;
    margin: 0 auto;
    z-index: 2;
}

.profile-photo {
    width: 350px;
    height: 550px;
    border: 2px solid #c2714e;
    border-radius: 95px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.profile-text-container {
    margin-top: 40px;
    position: relative;
    z-index: 62;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-text {
    font-size: 1.8rem !important;
    color: #6b5b4d !important;
    font-weight: 400;
    text-align: center;
}

.projects {
    padding: 0px 0 80px 0;
}

.project-card {
    background: #faf7f0;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 50px;
    border: 2px solid #daa097;
    transition: transform .5s ease, box-shadow 0.5s ease;
    text-decoration: none;
    display: block;
    width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(139, 109, 68, 0.15);
}

.project-card h3 {
    font-size: 1.8rem;
    color: #8b6d44;
    font-weight: 400;
    text-align: center;
}

.contact {
    background: #ede4d3;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #d4c4a8;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #8b6d44;
    font-weight: 400;
}

.contact-info p {
    font-size: 1.1rem;
    color: #7a6b5d;
}

footer {
    background: #d4c4a8;
    color: #8b6d44;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #c7b491;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.resume-pdf {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
}

@media (max-width: 768px) {
    .photo-container {
        position: relative;
        width: 167px;
        height: 250px;
        margin: 0 auto;
        z-index: 2;
    }

    .profile-photo {
        width: 167px;
        height: 250px;
        border-radius: 40px;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        image-rendering: auto;
        image-rendering: -webkit-optimize-contrast;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .project-card {
        padding: 30px;
        border-radius: 35px;
    }
    
    .project-card h3 {
        font-size: 1.7rem;
        text-align: center;
    }

    .contact {
        padding: 40px 0;
    }
    
    .profile-description {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .profile {
        padding: 0px 0 30px 0;
    }

    .photo-container {
        position: relative;
        width: 133px;
        height: 200px;
        margin: 0 auto;
        z-index: 2;
    }

    .profile-photo {
        width: 133px;
        height: 200px;
        border-radius: 20px;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        image-rendering: auto;
        image-rendering: -webkit-optimize-contrast;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .projects {
        padding: 1px 0 40px 0;
    }

    .project-card {
        padding: 25px;
        border-radius: 25px;
        margin-bottom: 20px;
        width: 80%;
    }

    .project-card h3 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .contact {
        padding: 40px 0;
    }
    
    .profile-description {
        font-size: 1.6rem;
    }

    .sine-wave-canvas {
        position: absolute;
        z-index: -100;
        width: 100%;
        height: 60%;
    }
}