/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0073e6;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    background: #0073e6;
    color: white;
}

/* Welcome Panel */
.welcome-panel {
    height: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to right, #0052D4, #4364F7, #6FB1FC);
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

/* Section Styling */
.flex-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
    width: 100%;
    min-height: auto;
    flex-grow: 1;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.profile-container {
    flex: 0 0 180px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 20%;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
    text-align: left;
}

/* Section Headers */
.section-header {
    font-size: 1.8rem;
    font-weight: 600;
    color: #0073e6;
    margin-bottom: 15px;
    border-bottom: 3px solid #0073e6;
    padding-bottom: 5px;
    width: 100%;
}

/* Publications List */
.publications-list {
    list-style-type: none;
    padding: 0;
}

.publications-list li {
    background: #f4f4f4;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 4px solid #0073e6;
    border-radius: 5px;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 30px;
    background: #333;
    color: #0073e6;
    margin-top: 50px;
    border-radius: 10px;
}

.contact-container h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: blue;
}

.footer-social-links {
    margin-top: 10px;
}

.footer-social-links a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.5rem;
    color: blue;
    transition: color 0.3s ease-in-out;
}

.footer-social-links a:hover {
    color: gray;
}


/* Mobile Responsiveness Additions */
@media screen and (max-width: 768px) {
    /* Navbar Adjustments */
    .nav-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        width: 100%;
    }

    /* About Section Mobile Layout */
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        text-align: center;
        margin-top: 15px;
    }

    .about-text {
        text-align: center;
    }

    /* Make sections full-width on mobile */
    .flex-panel {
        padding: 30px 15px;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }

    /* Adjust font sizes for mobile */
    .logo {
        font-size: 1.5rem;
    }

    .section-header {
        font-size: 1.5rem;
    }

    section {
        scroll-margin-top: 80px; /* Adjust this value to match the height of your navbar */
    }

    /* Social Links Adjustment */
    .footer-social-links a {
        margin: 0 5px;
        font-size: 1.3rem;
    }
}

/* Additional Touch-Friendly Improvements */
body {
    touch-action: manipulation; /* Prevent double-tap zoom on mobile */
}

input, select, textarea, button {
    touch-action: manipulation;
}

/* Prevent text scaling on mobile rotation */
@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

