/* General Style */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

p{
    color: rgb(85,85,85);
}
/* Transition */

a, 
.btn {
    transition: all 300ms ease;
}
/* Desktop NAV */

/* General Navigation Styles */
#desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 1rem 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li {
    position: relative; /* Required for dropdown positioning */
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: grey;
}

/* Dropdown Styles */
.dropdown-menu {
    display: block; /* Always part of the DOM */
    position: absolute;
    top: 100%; /* Align below the parent <li> */
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for aesthetics */
    border-radius: 0.5rem;
    z-index: 10; /* Ensure it appears on top */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Hidden from view */
    transform: translateY(-10px); /* Slight upward position for animation */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu li {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.dropdown-menu li a {
    text-decoration: none;
    color: black;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
    color: grey;
}

/* Show dropdown on hover with animation */
.dropdown:hover .dropdown-menu {
    opacity: 1; /* Make it visible */
    visibility: visible; /* Ensure it's visible */
    transform: translateY(0); /* Move into position */
}

nav,
 .nav-links{
    display: flex;
}
nav{
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}
.nav-links{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: regv(181,181,181);

}

.logo{
    font-size: 2rem;
}
.logo:hover{
    cursor: default;
}

/* Hamburger menu */

#hamburger-nav{
    display: none;
}

.hamburger-menu{
    position: relative;
    display: inline-block;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}

.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}
.menu-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li{
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}
.hamburger-icon span:first-child{
    transform: none;
}
.hamburger-icon span:first-child{
   opacity: 1;
}
.hamburger-icon span:first-child{
    transform: none;
}

/* Sections */
section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}
.section-container{
    display: flex;
}

.details-container p strong {
    font-weight: bold;
    color: #000000; /* Adjust color as needed */
}
.company-logo {
    width: 250px; /* Set a consistent width for the logo */
    height: auto; /* Maintain aspect ratio */
}
.education-details {
    display: flex;
    align-items: center; /* Vertically aligns logo and text */
    margin-top: 10px;
    line-height: 1.6;
}

.school-logo1 {
    width: 100px; /* Adjust the size of the logo */
    height: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Spacing between logo and text */
    margin-left: 10px;
}
.school-logo {
    width: 200px; /* Adjust the size of the logo */
    height: auto; /* Maintain aspect ratio */
    margin-right: -20px; /* Spacing between logo and text */
    margin-left: -40px;
}

.about-paragraph-container {
    display: block; /* Ensure it takes full width and behaves as a block element */
    width: 100%; /* Allow the container to take full width */
     /* Optional: Restrict the paragraph's maximum width */
    padding: 15px; /* Add padding for inner spacing */
    line-height: 1.8; /* Improve readability */
    background-color: #f9f9f9; /* Optional: Add a background color */
    border-radius: 5px; /* Optional: Add rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    margin: 20px auto; /* Center the container and add space above/below */
    position: relative; /* Ensure it stays in the document flow */
    z-index: 1; /* Avoid overlap with other elements */
    clear: both; /* Ensure it doesn't interact with floated elements */
}


.education-details p {
    margin: 0; /* Remove default margin for better alignment */
}
#about {
    margin-bottom: 100px; /* Add spacing between the 'About' and 'Experience' sections */
    margin-top: 200px;
}

/* Profile */
#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
    
}



.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}


.section__text {
    align-self: center;
    text-align: center;
}

.section__text p{
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}
.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title{
    font-size: 3rem;
    text-align: center;
    margin-top: 0;
}

#social-container{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* Icons */

.icon{
    cursor:pointer;
    height: 2rem;
}

/*Buttons */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}
.btn-color-1, .btn-color-2 {
    border: rgb(53,53,53) 0.1rem solid;
}
.btn-color-1, .btn-color-2:hover {
    background: rgb(53,53,53);
    color: white;
}

.btn-color-1:hover {
    background: rgb(0,0,0);
}
.btn-color-2 {
    background:none;

}
.btn-color-2:hover {
    background: rgb(255,255,255) 0.1rem solid;
}
.btn-container {
    gap: 1rem;
}

/* ABOUT Section */
#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
    margin-top: 500px;

}

.about-containers, .about-details-container {
    display: flex;
}
#about {
    display: flex; /* Flexbox layout for alignment */
    flex-direction: column; /* Stack items vertically */
    gap: 0px; /* Add spacing between elements */
    padding: 20px; /* Add inner spacing */
    margin-bottom: 200px; /* Ensure space below this section */
}



.about-pic {
    border-radius: 2rem; /* Keeps rounded corners */
    width: 30rem; /* Fixed width */
    height: 30rem; /* Fixed height */
    object-fit: cover; /* Ensures the image fills its container properly without distortion */
    margin: 0 auto; /* Centers the image horizontally */
    display: block; /* Ensures the image behaves like a block element */
    position: relative; /* Allows positioning adjustments */
    top: 0px; /* Moves the image up by 20px */
}
.circle-img {
    width: 100%; /* Ensure it fills the container */
    height: 100%; /* Ensure it fills the container */
    border-radius: 50%; /* Makes the image a circle */
    object-fit: cover; /* Ensures the image scales properly without distortion */
}


.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}
.details-container {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53,53,53) 0.1rem solid;
    border-color: rgb(163,163,163);
    text-align: center;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* Experience */
#experience {
    position: relative;
    padding: 2rem; /* Add padding for better spacing */
    margin-top: 500px;
}
.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center; /* Center-align for better readability */
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem; /* Add spacing between experience sections */
}

.article-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 2.5rem; /* Space between items */
    justify-content: space-around; /* Distribute items evenly */
    text-align: initial;
    width: 100%; /* Occupy full width of parent */
    max-width: 1200px; /* Limit maximum width for larger screens */
    margin: 0 auto; /* Center the container on the page */
    padding: 1rem; /* Add some inner spacing */
    box-sizing: border-box; /* Include padding in width calculation */
}

article {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center-align content */
    width: 12rem; /* Slightly increase width for balance */
    gap: 0.5rem;
    text-align: center; /* Center-align text within articles */
    padding: 1rem;
    background-color: #f9f9f9; /* Add light background for better visibility */
    border: 1px solid #ddd; /* Add border for separation */
    border-radius: 0.5rem; /* Round corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
    transition: transform 0.3s ease; /* Add hover effect */
}

/* Align icon next to h3 */
article .icon + div h3 {
    display: flex;
    align-items: center; /* Vertically align icon and text */
    gap: 0.75rem; /* Space between icon and text */
}

/* Workplace/School Names Formatting */
h9, .workplace {
    font-size: 1.25rem; /* Slightly larger than normal text */
    font-weight: 500; /* Medium weight to stand out */
    color: rgb(50, 50, 50); /* Darker color for emphasis */
    margin-bottom: 1rem; /* Add spacing below the workplace */
    text-align: center; /* Center-align workplace text */
    font-style: italic; /* Optional: Add italics for a distinct look */
}

/* Responsiveness */
@media (max-width: 768px) {
    h9, .workplace {
        font-size: 1.15rem; /* Slightly smaller for tablets */
    }
}

@media (max-width: 480px) {
    h9, .workplace {
        font-size: 1rem; /* Smaller size for mobile */
        margin-bottom: 0.5rem; /* Reduce margin */
    }
}

article:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

article .icon {
    cursor: inherit;
    width: 2rem; /* Adjust icon size */
    height: 2rem;
    margin-bottom: 0.5rem;
}

/* Media Query for Tablets (768px and smaller) */
@media (max-width: 768px) {
    .article-container {
        flex-direction: column; /* Stack articles vertically */
        gap: 1.5rem; /* Reduce gap */
        justify-content: center; /* Center content */
    }

    article {
        width: 90%; /* Make articles take most of the screen width */
        margin: auto; /* Center-align articles */
    }

    .experience-sub-title {
        font-size: 1.5rem; /* Adjust font size */
    }
}

/* Media Query for Mobile (480px and smaller) */
@media (max-width: 480px) {
    .experience-details-container {
        gap: 1rem; /* Reduce gap further for smaller screens */
    }

    article {
        width: 100%; /* Use full width */
        padding: 0.75rem; /* Reduce padding */
        gap: 0.4rem; /* Adjust gap between elements */
    }

    .experience-sub-title {
        font-size: 1.25rem; /* Smaller title size for small screens */
        margin-bottom: 1rem; /* Adjust spacing */
    }

    article .icon {
        width: 1.5rem; /* Reduce icon size */
        height: 1.5rem;
    }
}
/* Research */
#research {
    position: relative;
    padding: 2rem; /* Add padding for better spacing */
    
}
.details-container {
    margin-bottom: 2rem; /* Adds spacing between each teaching experience */
}
.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}
/* teaching */
#teaching {
    position: relative;
    padding: 2rem; /* Add padding for better spacing */
}
.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}


/* Projects */
#projects{
    position: relative;
}
.color-container{
    border-color: rgb(163,163,163);
    background: rgb(255,255,255);
}
.project-img{
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}
.project-title {
    margin: 1rem;
    color: black;
}
.project-btn{
    color: black;
    border-color: rgb(163,163,163);
}
/* awards */
#awards {
    position: relative;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: rgb(255, 255, 255);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    margin: 1rem auto; /* Add spacing between items */
}

.award-img {
    border-radius: 2rem;
    width: 90%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
}

.experience-sub-title.project-title {
    margin: 1rem 0;
    color: black;
    font-weight: bold;
    text-align: center;
}

.btn-color-2.award-btn {
    color: black;
    border-color: rgb(163, 163, 163);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-color-2.award-btn:hover {
    background: rgb(163, 163, 163);
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #awards {
        padding: 1rem;
    }

    .experience-details-container {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        gap: 1.5rem; /* Add spacing between containers */
    }

    .color-container {
        width: 100%; /* Full width on mobile */
        margin: 0 auto; /* Center container */
    }

    .award-img {
        width: 100%; /* Full width of the container */
        height: auto; /* Maintain aspect ratio */
    }
}

/* contact */
#contact{
    display: flex;
    justify-self: center;
    flex-direction: column;
    height: 30vh;
}
.contact-info-upper-container{
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53,53,53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
    margin: 2rem auto;
    padding: 0.5rem;


}
.contact-info-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem;
}
.contact-info-container p{
    font-size: larger;
}
.contact-icon {
    cursor: default;

}
.email-icon{
    height: 2.5rem;
}
/* footer */
footer{
    height: 26vh;
    margin: 0 1rem;
}
footer p{
    height:0vh;
    text-align: center;
}

/* try */
