/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography & Colors */
body {
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    line-height: 1.6;
    background: #fafafa;
    color: #212121;
}

/* Container */
header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* space between image and text */
    flex-wrap: wrap; /* allows wrapping on small screens */
    text-align: center; /* aligns text to the left */
}

header .container > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 350px;      /* limits the width of the text block */
    padding: 0 1rem;       /* adds horizontal padding */
    box-sizing: border-box;
    text-align: left;
}

/* Header */
header {
    color: #000000;
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s;
}

header:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

header .profile-pic {
    width: 225px;
    height: 300px;
    margin-bottom: 0;
    border-radius: 18px; /* keep commented if you want a rectangle */
    /* border: 4px solid #fff; */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

header h2 {
    color: #9aa4c3;      /* grey */
    font-size: 1.2rem;
    font-weight: 550;    /* make it a bit bolder than body h2 */
    opacity: 1;          /* ensure full opacity */
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.4); /* lighter primary */
    padding: 0.8rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
    backdrop-filter: blur(8px); /* optional: adds a blur effect */
    -webkit-backdrop-filter: blur(8px); /* for Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* subtle border */
}

nav:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

nav .navbar-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2f2f2f;
    margin-right: auto; /* pushes links to the right */
    text-transform: none;
    margin-left: 5rem;   /* add this line for left margin */
}

nav a {
    color: #202020;
    margin: 0 20px;
    text-decoration: none;
    font-weight: bold;
    text-transform: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #0044cb;
}

nav .container a:last-child {
    margin-right: 5rem; /* Increase as needed */
}

/* Sections */
main section {
    background: #fff;
    margin: 2rem 1rem;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 85, 69, 0.277);
    transition: box-shadow 0.2s;
    max-width: 1200px;
    margin-left: auto;     /* Center horizontally */
    margin-right: auto;
}

main section:hover {
    box-shadow: 0 4px 12px rgba(0, 38, 162, 0.353);
}

main h2 {
    color: #292929;
    margin-bottom: 1rem;
    font-weight: bold;
    padding-bottom: 0.2rem;
    width: auto;
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

main h2::after {
    content: "";
    display: block;
    margin: 0.5rem auto 0 auto;
    width: 80px;              /* Set the length of the divider */
    height: 4px;              /* Set the thickness */
    background: #002fd9;      /* Set the color */
    border-radius: 5px;
}

#research p {
    text-align: center;
    color: #767676; /* Dark gray for better readability */
    max-width: 1000px;      /* Limit width */
    margin-left: auto;     /* Center horizontally */
    margin-right: auto;
}

/* Lists */
ul {
    margin-left: 1.2rem;
    list-style-type: disc;
}

li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    background: #081684;
    color: #fff;
    padding: 1.2rem 0;
    margin-top: 2rem;
    font-size: 1rem;
}

main section.four-blocks {
    background: none;
    margin: 0.5rem 2rem 0 2rem; /* less top margin, no bottom margin */
    padding: 2rem;
    border-radius: none;
    box-shadow: none;
    transition: none;
    margin: auto;
}

.four-blocks {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin: 0 0 1rem 0; /* less top margin, no bottom margin */
}

.four-blocks .block {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
    flex: 1 1 180px;
    min-width: 150px;
    max-width: 220px;
    text-align: center;
    border: none;
    font-size: 2rem;         /* Larger text */
    font-weight: bold;       /* Bold text */
    color: #000bd9;          /* Blue text */
    position: relative;
    box-shadow: 0 2px 8px rgba(14, 0, 85, 0.277);
    transition: box-shadow 0.2s;
}

.four-blocks .block-subtext {
    font-size: 0.8rem;           /* Smaller than main text */
    font-weight: normal;       /* Not bold */
    color: #686868;               /* Dark gray for contrast */
    margin-top: 0.5rem;
    letter-spacing: 0.5px;     /* Slight spacing */
}

.four-blocks .block:hover {
    box-shadow: 0 4px 12px rgba(0, 13, 162, 0.353);
}

.research-areas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0 1rem 0;
}

.research-areas .research-area {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
    flex: 1 1 180px;
    min-width: 150px;
    max-width: 220px;
    text-align: left;
    border: none;
    font-size: 85%;         /* Larger text */
    font-weight: normal;       /* Bold text */
    color: #0016d9;          /* Blue text */
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 85, 69, 0.277);
    transition: box-shadow 0.2s;
}

.research-areas .research-area:hover {
    box-shadow: 0 4px 12px rgba(0, 22, 162, 0.353);
}

.research-areas .research-area-subtext {
    font-size: 0.8rem;           /* Smaller than main text */
    font-weight: normal;       /* Not bold */
    color: #686868;               /* Dark gray for contrast */
    margin-top: 0.5rem;
    letter-spacing: 0.5px;     /* Slight spacing */
}

.research-areas .topic-pic {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    border-radius: none; /* keep commented if you want a rectangle */
    /* border: 4px solid #fff; */
    box-shadow: none;
    margin: 10px auto;
    display: block;
}

#contact p {
    color: #767676; /* Dark gray for better readability */
    max-width: 300px;      /* Limit width */
}