html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}
.profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 50px 40px; 
    
    /* RESPONSIVE SIZE TUNING */
    width: 100%;         /* Takes up full width on small screens */
    max-width: 400px;    /* Won't grow larger than 400px on desktop */
    min-height: 450px;   /* Maintains the increased height */
    box-sizing: border-box; /* Ensures padding doesn't break the width calculation */
    
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* CENTER IT HORIZONTALLY */
    display: block;
    margin: 40px auto; 
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* This creates the circular (radius) image form */
.avatar-container {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border-radius: 50%; /* Perfect circle */
    overflow: hidden;
    border: 4px solid #3498db;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image distortion */
}

.profile-name {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 10px 0 5px 0;
}

.profile-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 20px;
}

.profile-bio {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* OPTIONAL: Extra optimization for very small mobile screens */
@media (max-width: 480px) {
    .profile-card {
        padding: 40px 20px; /* Reduces padding slightly so text has more room */
        min-height: auto;   /* Lets the height naturally adjust to text on tiny screens */
    }
}