/* General styles */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 0rem; /* optional spacing from top */
    margin-bottom: 4rem; /* Add this line or increase value */
  }
  
  .about-side {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem; /* move image down a bit */
  }
  
  .profile-photo {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* margin-bottom: 5rem; */
    margin-top: 7rem; /* Add this */
  }
  
  .about-text {
    flex: 1 1 65%;
    text-align: justify;

  }
  
 /* Style icon links under the photo */
 .connect-links a {
    color: #708090;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
 }

 .connect-links a:hover {
    color: #ccc;
 }
  
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    width: 100%;

}
#about, #connect {
    margin-top: 0; /* No margin above the About section */
    padding-top: 0px; /* Small padding on top if needed */
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-container {
    height: auto; /* Same height as .hero-image */
    width: 100vw; /* Full width */
    max-width: 100vw;
    overflow-x: hidden;
}

/* Hero Image Section */
.hero-image {
    position: relative;
    width: 100%;
    height: 60vh;
    background-image: url('./images/Composition_VIII_1923.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents horizontal scrolling */
}
.image-caption {
    position: absolute;
    /* bottom: 1px; */
    right: 1;
    color: black; /* Black text */
    font-size: 1rem;
    font-style: italic; /* Elegant artistic touch */
    text-shadow: none; /* Remove any unwanted shadow */
    background: none !important; /* Ensure no background */
    padding: 10px; /* Remove padding if unnecessary */
    margin: 0;
    box-sizing: border-box; 
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    margin-top: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Navigation Bar */
nav {
    /* position: relative; */
    /* top: 0; */
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    padding: 1rem;
    z-index: 1000;
    background-color:#f2f2f2;
    box-sizing: border-box;
    background: #333;
    color: #fff;
    padding: 1rem;
}

h1 {
    margin-left: 2vw; /* Adjust this value to move the title towards the center */
    font-size: 1.5rem; /* Adjust as needed */
    margin: 0;
    flex-shrink: 0; /* Prevents shrinking of the title */
    white-space: nowrap; 
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

nav li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    /* transition: background-color 0.3s ease, color 0.3s ease; */
}

nav li a:hover {
    /* background-color: rgba(0, 123, 255, 0.2); */
    color: #ccc;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #007bff;
}


/* Main Content */

main {
    max-width: 1200px;
    margin: auto;
    width: 100%; /* More flexible on different screens */
    margin-top: 6rem;
    padding: 4rem 2rem;
    margin-top: 0;
}


h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 2px solid #333;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Research Highlights Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.project-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.project-box h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}

.project-box p {
    font-size: 1rem;
    color: #666;
    margin: 10px 0;
}

.project-link {
    display: inline-block;
    padding: 8px 12px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: #0056b3;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 900px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-container {
        grid-template-columns: repeat(1, 1fr);
    }
}
.email-contact a {
    color: #888888; /* or simply use 'gray' */
    text-decoration: none;
}

.email-contact a:hover {
    text-decoration: underline;
    color: #666666; /* darker grey on hover (optional) */
}
