/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set background gradient */
body {
    background: linear-gradient(to bottom right, #0E1C2E, #637183);
    font-family: 'Nunito', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Wrapper */
.wrapper {
    margin: 0 20px;
    flex: 1;
}

/* Header */
.header {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: 50% 40%;
    background-repeat: no-repeat;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    transition: background-position 0.8s ease-out;
}


/* Portrait */
.portrait {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center center;
    padding: 25px;
    border-radius: 50%;
    overflow: hidden;
}

/* Title */
h1 {
    font-size: 36px;
    font-weight: bold;
    margin-top: 20px;
}

/* Bio */
.bio {
    margin: 50px 0;
    text-align: center;
    color: #fff;
    font-size: 18px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Social icons */
.social {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 25px;
    width: 100%;
}

.social a {
    margin-right: 25px;
    /* Add this line to create spacing between the buttons */
}

.social a:last-child {
    margin-right: 0;
    /* Remove the margin from the last button */
}

/* Icon styles */
.icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 10px 0;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: all 0.3s ease;
}

/* Email */
.email {
    background: linear-gradient(to bottom right, #5D5858, #3E3A3A);
}

/* GitHub */
.github {
    background: linear-gradient(to bottom right, #171515, #0F0E0E);
}

/* LinkedIn */
.linkedin {
    background: linear-gradient(to bottom right, #0A66C2, #064481);
}

/* Telegram */
.telegram {
    background: linear-gradient(to bottom right, #1C93E3, #126297);
}

/* Icon styles */
.icon i {
    margin-left: 10px;
    margin-right: 5px;
}

/* Hover styles */
.icon:hover {
    transform: translateY(-2px);
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.5);
}

/* Remove hyperlink underline */
a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

/* Photo styles */
.photos {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo {
    width: 100%;
    /* Adjust the width as needed */
    max-width: 900px;
    /* Adjust the maximum width as needed */
    border: 10px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    margin-top: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    z-index: 1001;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: transparent;
    text-align: center;
    padding: 20px 0;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Mobile layout */
@media (max-width: 767px) {
    .header {
        flex-direction: column;
        background-position: center center;
    }
    
    .social {
        flex-direction: column;
    }

    .social a {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .social a:last-child {
        margin-bottom: 0;
    }

    .icon {
        font-size: 24px;
    }
}