.btn {
    background-color: #90caf9;
    color: #121212;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.3s;
    margin-right: 0.5rem; /* Add horizontal spacing between buttons */
    margin-bottom: 0.5rem; /* Optional: vertical spacing for wrapping buttons */
}


.btn:hover {
    background-color: #64b5f6;
    color: #ffffff;
}

.btn-container {
    text-align: center;
    margin-top: 10px;
}

.btn-container .btn {
    display: inline-block;
}

/* Global Styles */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    position: relative;
    padding: 1rem;
    background-color: #1e1e1e;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Align the profile picture and text side by side */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* Align the profile picture and text side by side */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;  /* Increased spacing */
}

.profile-pic {
    width: 130px;    /* Increased size */
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
}

.header-text h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.header-text p {
    font-size: 1rem;
    margin: 0;
}

/* Mobile layout: Center nav items and contact buttons, keep them in two rows */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px; /* Space between nav links */
    }

    nav a {
        text-align: center;
    }
    
    .nav-contact {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .nav-contact .btn {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        display: inline-block;
    }
}

nav {
    background-color: #222;
    text-align: left;  /* Right align everything */
    padding: 0.7rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

nav a {
    color: #90caf9;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

nav a:hover {
    color: white;
    text-decoration: none;
}

/* Contact buttons in the nav */
.nav-contact {
    display: inline-block;
    float: right;
}

.nav-contact .btn {
    margin-left: 0.5rem;
    background-color: #90caf9;
    color: #121212;
}

.nav-contact .btn:hover {
    background-color: #64b5f6;
    color: #ffffff;
}

section {
    padding: 2rem;
}

h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #90caf9;
}

h3 {
    /* border-bottom: 2px solid #333; */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    color: #64b5f6;
    margin-bottom: 0.3rem;
}

.card::after {
    content: "";
    display: block;
    border-bottom: 1px solid #333;
    margin-top: 1rem;
}

.card {
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px #000;
    position: relative;
}

/* RIGHT-ALIGNED DATE */
.card .date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.95rem;
    color: #bbb;
    font-style: italic;
}

a {
    color: #81d4fa;
}

a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #1e1e1e;
    color: #bbb;
    font-size: 0.9rem;
}

.card p {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.card ul {
    padding-left: 0;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.card p + ul {
    margin-top: 0.2rem;
    margin-bottom: 1rem;
}

.role {
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #e0e0e0;
}


/* Mobile Responsiveness */
@media (max-width: 800px) {
    .nav-contact {
        float: none;
        display: block;
        margin-top: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .profile-pic {
        width: 100px;
        height: 100px;
    }
}

/* Collapsible More Info Styles */
.more-info {
    display: none;
    margin-top: 1rem;
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 5px;
}

.more-info-link {
    display: inline-block;
    margin-top: 1rem;
    color: #81d4fa;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.more-info-link:hover {
    color: #64b5f6;
}

h4 {
    color:#64b5f6;
}