/* Global Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe, #93c5fd);
    background-attachment: fixed; /* Optional: keep it stationary */
    background-repeat: no-repeat;
    background-size: cover;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #555;
    color: #fff;
    border-radius: 5px;
}

nav ul li a.active {
    color: red;  /* Highlight color for the active link */
    font-weight: bold;
}

/* Mobile-Friendly Navigation (Media Query) */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;  /* Stack the links vertically */
        align-items: center;     /* Center the links */
    }

    nav ul li {
        margin: 10px 0;          /* Add space between links */
    }

    nav ul li a {
        padding: 15px 30px;      /* Increase padding for easier tapping */
        width: auto;             /* Ensure links aren't full-width */
        text-align: center;      /* Center the text */
    }
}


/* Sections */
section {
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Style for individual sections inside the flex container */
.flex-container section {
    flex: 1 1 45%; /* Allow sections to grow and take up ~45% of the container */
    padding: 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 10px;
    /*max-width: 600px; /* Optional: Set a max width to prevent sections from getting too wide */
}

/* Home Section */
.intro {
    text-align: center;
    margin-top: 50px;
}

.intro h1 {
    font-size: 2.5em;
}

.intro p {
    font-size: 1.2em;
}

/* About, Research, and Contact Sections */
h2 {
    font-size: 2em;
    color: #333;
}

/* Footer */
/* Make sure the html and body take up the full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column; /* Arrange content in a column */
}

/* Flex-grow to the main content, so it pushes the footer down */
main {
    flex: 1;
}

/* Footer styling */
footer {
    background-color: #333;
    color: white;
    padding: 2px 0;
    text-align: center;
    position: relative;
    width: 100%;
}

/* Optional: Ensuring footer stays at the bottom even with short content */
footer {
    flex-shrink: 0; /* Ensures the footer doesn't shrink */
}


.intro img.profile-image {
    width: 300px;  /* Adjust to the desired width */
    height: 300px;  /* Adjust to the desired height */
    border-radius: 50%;  /* Makes the image circular */
    object-fit: cover;  /* Ensures the image fits within the circle */
    margin-bottom: 1px;  /* Adds space between image and text */
}

/* Base Styles for the CV Embed */
.cv-embed iframe {
    width: 50%;            /* Make the iframe take the full width of its container */
    height: 600px;          /* Default height */
    max-width: 100%;        /* Prevents overflow on wider screens */
    border: none;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .cv-embed iframe {
        height: 100vh;      /* Make iframe height fill the screen on smaller devices */
    }
}

/* Flexbox container for Home and About sections */
.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around; /* Ensure there's space around the sections */
    align-items: stretch; /* Ensure sections stretch to the same height */
    gap: 20px; /* Adds spacing between the two sections */
    padding: 20px;
}

/* Add some margin to space the content within the sections */
section h1, section h2, section p {
    margin-bottom: 15px;
}

/* Profile image styling */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

/* Responsive design for small screens */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column; /* Stack vertically on smaller screens */
    }
    .flex-container section {
        max-width: 100%; /* Take up full width on smaller screens */
    }
}


.contact-label {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
}

.social-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain; /* ensures they don't stretch weirdly */
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}
