/* Base styling */
:root {
    --primary-color: #434343; 
    --secondary-color: #93a5cf; 
    --background-color: #ffffff;
    --icon-color: #6f86d6;

}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    background-image: linear-gradient(45deg, #93a5cf 0%, #e4efe9 100%);

}

/* Card styling */
.card {
    display: flex;
    align-items: center;
    position: relative; 
    width: 80vw; 
    max-width: 650px; 
    padding: 40px 30px; 
    background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
    border-radius: 24px;
    box-shadow: 0 8px 12px rgba(0.2, 0.2, 0.2, 0.2); 
    gap: 20px;
    
}

/* Image container */
.card img {
    max-width: 280px; 
    width: 32vw; 
    height: 270px;
    object-fit: cover;
    margin-left: -65px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0.2, 0.2, 0.2, 0.2); 
    border: 4px solid #e6e9f0; 
    
}

/* Icon styling */
#icon {
    position: absolute;
    top: 20px; 
    right: 20px; 
    font-size: 28px;
    color: var(--icon-color); 
    transition: transform 0.3s ease, color 0.3s ease; 
}



#icon:hover {
    transform: scale(1.5); 
    color: #accbee; 
    animation: shake 0.5s ease-in-out forwards;
}


@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-5px, 0); }
    50% { transform: translate(5px, 0); }
    75% { transform: translate(-5px, 0); }
    100% { transform: translate(0); }
}

.highlight {
    font-weight: 600;
    color: var(--icon-color);
    text-transform: uppercase;
}

/* Profile Details */
.profile-details {
    margin-left: 30px; 
    flex: 1; 
}


.name {
    font-weight: bold;
    font-size: 28px; 
    color: var(--primary-color); 
    margin-bottom: 8px;
}

.position {
    font-weight: 600;
    font-size: 21px; 
    color: var(--icon-color);
    margin-top: 0px; 
}

.description {
    margin: 10px 0 40px; 
    color: var(--primary-color); 
}

/* Stats and buttons */
.card .stats {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    font-size: 24;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.card .stats var {
    display: block;
    font-style: normal;
    font-size: 24px; 
    font-weight: bold;
    color: var(--secondary-color);
}

/* Buttons */
.card .buttons {
    display: inline-flex;
    gap: 15px;
}

.card button {
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--icon-color);
    font-family: inherit;
    padding: 12px 18px; 
    font-size: 16px;
    border-radius: 5px;
    min-width: 120px;
    transition: background 0.3s, box-shadow 0.3s;
    cursor: pointer; 
}

.card button:hover {
    background-color: rgba(37, 36, 34, 0.1); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card button.primary {
    background: var(--primary-color);
    color: #f9f9f9;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px; 
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 24px; 
    transition: color 0.3s; 
}

.social-icons a:hover {
    color: var(--primary-color); 
}

/* Responsive design for smaller devices */
@media (max-width: 720px) {

    body {
        align-items: center;
        
    }
    .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 40px 40px 40px;
        width: 100%;
        margin: 0 20px;
        
    }

    .card .profile-details {
        padding-right: 25px;
    }

    .card img {
        margin: 0 0 30px 0;
        width: 100%; 
        max-width: 800px; 
        height: auto;
        
    }

    #icon {
        bottom: 20px; 
        right: 20px;  
        top: auto; 
        font-size: 35px; 
        color: var(--icon-color);
        z-index: 10; 
    }
    .name {
        margin: 0px;
        padding: 0px;
    }

    .stats {
        flex-direction: column;
        gap: 0px;

    }

    .card button {
        min-width: 160px;
    }

    .card .stats  {
        gap: 15px
    }
}

/* Responsiveness for larger screens */
@media (min-width: 1200px) {
    .card {
        max-width: 800px; 
    }
}
