/* Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #333;
}

/* Container */
.container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Navigation Bar */
#navbar {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #d9e2ec;
}

#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#navbar .logo {
    font-size: 24px;
    color: #102a43;
    font-family: 'Montserrat', sans-serif;
}

#navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#navbar ul li {
    display: inline-block;
    margin-left: 20px;
}

#navbar ul li a {
    text-decoration: none;
    color: #627d98;
    font-size: 16px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 5px;
}

#navbar ul li a:hover {
    color: #334e68;
    border-bottom: 2px solid #334e68;
}

/* Landing Section */
#landing {
    padding: 100px 0;
    background: none;
    position: relative;
}

#landing .container {
    display: flex;
    align-items: center;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #d9e2ec;
    margin-right: 30px;
    display: block;
}

.intro-text {
    flex: 1;
}

#landing h1 {
    font-size: 56px;
    margin-bottom: 20px;
    color: #102a43;
    font-family: 'Montserrat', sans-serif;
}

.summary {
    font-size: 20px;
    color: #243b53;
}

/* Fix for scrolling issue with fixed navbar */
section {
    scroll-margin-top: 80px; /* Adjust this value based on navbar height */
}

/* Section Background Colors */
.section-light {
    background-color: #f0f4f8;
}

.section-dark {
    background-color: #d9e2ec;
}

/* Education Section */
#education {
    padding: 50px 0;
}

#education .education-item {
    margin-bottom: 30px;
}

#education h2 {
    font-size: 32px;
    color: #102a43;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

#education h3 {
    font-size: 24px;
    color: #334e68;
    margin-bottom: 10px;
}

#education p {
    font-size: 16px;
    color: #627d98;
}

/* Current Research Section */
#current-research {
    background-color: #ffffff;
    padding: 50px 0;
    border: 2px solid #334e68; /* Draws a box around the section */
    margin: 30px 0;
}

#current-research h2 {
    font-size: 40px; /* Makes the title large */
    text-align: center; /* Centers the title */
    color: #102a43;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

#current-research .description {
    font-size: 18px;
    color: #334e68;
    text-align: center; /* Centers the description */
    margin-bottom: 30px;
}

#current-research .video-item {
    text-align: center;
}

#current-research .video-item video {
    width: 100%; /* Full page width */
    height: auto;
    border-radius: 8px;
}

#current-research .video-title {
    font-size: 16px;
    color: #334e68;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

/* Adjust navigation to include Current Research */
#navbar ul li a[href="#current-research"] {
    /* Add any specific styles for the navigation link if needed */
}

/* Publications Section */
#publications {
    padding: 50px 0;
}

#publications h2 {
    font-size: 32px;
    color: #102a43;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.publication-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.publication-item h3 {
    font-size: 24px;
    color: #334e68;
    margin-bottom: 10px;
}

.publication-item .publication-date {
    font-size: 14px;
    color: #627d98;
    margin-bottom: 5px;
}

.publication-item .summary {
    font-size: 16px;
    color: #334e68;
    margin-bottom: 20px;
}

.publication-item .button-link {
    display: inline-block;
    background-color: #334e68;
    color: #fff;
    padding: 10px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.publication-item .button-link:hover {
    background-color: #102a43;
}

/* Section Separator */
.section-separator {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.section-separator::before,
.section-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #627d98;
}

.section-separator:not(:empty)::before {
    margin-right: 10px;
}

.section-separator:not(:empty)::after {
    margin-left: 10px;
}

.separator-text {
    font-size: 18px;
    color: #627d98;
}

/* Video Grid */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.video-grid.first-row .video-item {
    flex: 1 1 45%;
    margin: 10px;
}

.video-grid.second-row .video-item {
    flex: 1 1 80%;
    margin: auto;
}

.video-item {
    text-align: center;
    margin-bottom: 20px;
}

.video-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-title {
    font-size: 16px;
    color: #334e68;
    margin-top: 5px;
    font-weight: bold;
}

/* Image Grid */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.image-grid .image-item {
    flex: 1 1 45%;
    margin: 10px;
    text-align: center;
}

.image-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-title {
    font-size: 16px;
    color: #334e68;
    margin-top: 5px;
    font-weight: bold;
}

/* Experience Section */
#experience {
    padding: 50px 0;
}

#experience h2 {
    font-size: 32px;
    color: #102a43;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.experience-item {
    margin-bottom: 30px;
}

.experience-item h3 {
    font-size: 24px;
    color: #334e68;
    margin-bottom: 10px;
}

.experience-item p {
    font-size: 16px;
    color: #627d98;
    margin-bottom: 10px;
}

.experience-item .button-link {
    display: inline-block;
    background-color: #334e68;
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.experience-item .button-link:hover {
    background-color: #102a43;
}

/* Contact Section */
#contact {
    padding: 50px 0;
    text-align: center;
}

#contact h2 {
    font-size: 32px;
    color: #102a43;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

#contact p {
    font-size: 16px;
    color: #627d98;
    margin-bottom: 10px;
}

#contact a {
    color: #334e68;
    text-decoration: none;
    font-weight: bold;
}

#contact a:hover {
    text-decoration: underline;
}

/* AI Section */
#ai {
    padding: 50px 0;
    text-align: center;
}

/* AI Section Fade-in Animation */
.ai-fade-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ai-fade-in.visible {
    opacity: 1;
    transform: scale(1);
}

.ai-quote {
    font-size: 20px;
    color: #102a43;
    margin-bottom: 20px;
}

/* Footer */
/* You can add footer styles here if needed */

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    #landing .container {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        margin-right: 0;
        margin-bottom: 20px;
    }

    #landing h1 {
        font-size: 40px;
    }

    .summary {
        font-size: 18px;
        max-width: 100%;
    }

    #navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    #navbar ul {
        margin-top: 10px;
    }

    #navbar ul li {
        display: block;
        margin-left: 0;
        margin-bottom: 5px;
    }

    #education, #current-research, #publications, #experience, #contact, #ai {
        padding: 30px 0;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .video-grid.first-row .video-item,
    .video-grid.second-row .video-item,
    .image-grid .image-item {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    .video-item {
        margin: 10px 0;
    }

    .section-separator::before,
    .section-separator::after {
        display: none;
    }

    .separator-text {
        font-size: 18px;
        color: #627d98;
    }

    /* Current Research Section Adjustments */
    #current-research h2 {
        font-size: 32px;
    }

    #current-research .description {
        font-size: 16px;
    }
}
