/* ======================================
   Global Reset & Base Styles
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #eaeaea;
    position: relative;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Add a translucent dark overlay for readability */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.65);
    z-index: -1;
}

/* ======================================
   Profile Container Layout
====================================== */
.profile-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    padding: 80px 100px;
    padding-top: 140px;
    flex-wrap: wrap;
}

/* ======================================
   Left Section (Photo, Affiliation, Socials)
====================================== */
.profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.15);
}

/* Profile Image */
.profile-left img {
    width: 100%;
    max-width: 220px;
    border-radius: 12px;
    border: 2px solid rgba(0, 200, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-left img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 200, 255, 0.35);
}

/* Name Tag */
.name-tag {
    margin-top: 18px;
    background: linear-gradient(90deg, #00c8ff, #00c8ff);
    color: #fff;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 10px;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.5);
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Affiliation */
.affiliation {
    font-size: 14px;
    margin-top: 10px;
    font-weight: 600;
    color: #cfcfcf;
}

/* ======================================
   Social Icons
====================================== */
.social-icons {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icons a {
    color: #ffffff;
    font-size: 20px;
    transition: 0.3s ease-in-out;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.social-icons a:hover {
    transform: scale(1.25);
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.8);
}

/* Hover Colors */
.social-icons a:nth-child(1):hover { color: #4267B2; }
.social-icons a:nth-child(2):hover { color: #00c8ff; }
.social-icons a:nth-child(3):hover { color: #E1306C; }
.social-icons a:nth-child(4):hover { color: #4285F4; }
.social-icons a:nth-child(5):hover { color: #ffe600; }
.social-icons a:nth-child(6):hover { color: #4CAF50; }
.social-icons a:nth-child(7):hover { color: #2867B2; }
.social-icons a:nth-child(8):hover { color: #00ff9d; }

/* Optional Conditional Hiding */
.professor .social-icons a:nth-child(3) { display: none; }
.phd3 .social-icons a:nth-child(2) { display: none; }

/* ======================================
   Right Section (Bio & Content)
====================================== */
.profile-right {
    flex: 2;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    min-width: 300px;
}

/* Headings */
.profile-right h2 {
    font-size: 1.9rem;
    margin-bottom: 20px;
    border-left: 6px solid #00c8ff;
    padding-left: 12px;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.5);
}

.profile-right h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: ;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.5);
}

/* Paragraphs */
.profile-right p {
    text-align: justify;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #e8e8e8;
}

/* Lists */
.profile-right ul {
    list-style: none;
    padding-left: 0;
}

.profile-right ul li {
    margin: 10px 0;
    padding-left: 26px;
    position: relative;
}

.profile-right ul li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #00c8ff;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0, 200, 255, 0.7);
}

/* Closing Paragraph */
.profile-right .closing {
    margin-top: 1rem;
    font-style: italic;
    color: #bfcfd0;
}

/* ======================================
   Responsive Layout
====================================== */
@media screen and (max-width: 1024px) {
    .profile-container {
        gap: 40px;
        padding: 60px 40px;
    }

    .profile-right {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        padding-top: 100px;
    }

    .profile-left {
        max-width: 100%;
        width: 90%;
    }

    .profile-right {
        width: 95%;
        padding: 25px;
    }

    .profile-right h2 {
        font-size: 1.6rem;
    }

    .profile-right h3 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .profile-right {
        padding: 20px;
    }

    .name-tag {
        font-size: 14px;
        padding: 8px 14px;
    }

    .social-icons a {
        font-size: 18px;
    }

    .profile-right p {
        font-size: 14px;
    }
}
