/* General Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.content {
    padding: 40px;
}


h2 {
    font-size: 28px;
    color: #2c3e50;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 10px;
    margin-bottom: 25px;
    letter-spacing: 0.8px;
}

h3 {
    font-size: 22px;
    color: #34495e;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Stylish Paragraph Text */
p {
    font-size: 16px;
    color: #0d0c4f;
    line-height: 1.75;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

p em {
    color: #2980b9;
    font-weight: 500;
}

strong {
    color: #0b770e;
    font-weight: 500;
}

p.highlight {
    background-color: #f4f4f4;
    border-left: 4px solid #2980b9;
    padding: 10px 15px;
    color: #2c3e50;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
}

/* Text shadow for emphasis */
p.stylish {
    font-size: 16px;
    color: #7f8c8d;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.75px;
}

ul {
    list-style-type: disc;
    margin-left: 40px;
    color: #7f8c8d;
}

ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.center-text {
    text-align: center;
}
/* Navbar Styles */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar h1 {
    font-size: 30px;
    margin: 0;
    letter-spacing: 1.5px;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar nav ul li {
    margin-left: 25px;
}

.navbar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar nav ul li a:hover {
    color: #2980b9;
}

/* Section Styles */
section {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

section h2 {
    margin-bottom: 20px;
    color: #2980b9;
    font-weight: 400;
}

section h3 {
    color: #34495e;
    margin-top: 25px;
}

/* Paragraphs in Sections */
section p {
    color: #2c3e50;
    font-weight: 400;
    line-height: 1.85;
}

section p strong {
    color: #0b770e;
    font-weight: 500;
}

/* List styles in Sections */
section ul {
    margin-left: 20px;
    list-style-type: square;
}

section ul li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #34495e;
}

/* Education Section Styles */
.education-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap:20px;
    
}

.university-logo {
    width: 100px;
    height: auto;
    margin-right: 20px;
}

.research-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.research-item {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    
}

.projects-container {
    display: flex;
    flex-direction: column;
}

.project.item {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-image {
    width: 100px;
    height: auto;
    margin-left: 20px;
}

.project-links {
    margin-top: 10px;
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-item {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    
}

.contact {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.icon {
    font-size: 32px;
    color: #2980b9;
    margin: 0 30px;
    text-decoration: none;
    transition: color 0.3s;
}

.icon:hover {
    color: #1a5276;
}

/* Media Query for Mobile Screens */


/* Home Container Styles */
.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.full-photo {
    width: 35%;
    height: auto;
    border-radius: 10px;
}

.about-contact {
    width: 55%;
    padding-left: 20px;
}

/* Add subtle hover effect to project titles */
section h3:hover {
    color: #2980b9;
    transition: color 0.3s ease-in-out;
}

/* Flexbox layout for the education section */
.education-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-item {
    display: flex;
    align-items: center;
    padding: 10px;
    
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.university-logo {
    width: 100px;
    height: auto;
    margin-right: 20px;
}

.education-item div {
    flex: 1;
}

.education-item h3 {
    font-size: 22px;
    color: #34495e;
    margin-bottom: 10px;
    font-weight: 500;
}

.education-item p {
    font-size: 16px;
    color: #0d0c4f;
    line-height: 1.75;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
}


.courses {
    display: flex;           /* Use flexbox to arrange items in a row */
    flex-wrap: wrap;        /* Allow items to wrap to the next line */
    gap: 10px;              /* Space between course items */
    margin-top: 10px;       /* Space above the courses section */
}

.course {
    padding: 5px 10px;      /* Add some padding around each course item */
    background-color: #e0f7fa; /* Optional: Add a background color for visibility */
    border-radius: 5px;  
    flex: 0 1 auto;             /* Allow the width to vary */
    box-sizing: border-box;      /* Include padding and border in width */
    margin: 5px;     
    height: 40px;           /* Ensure consistent spacing */
    overflow: hidden;           /* Hide overflow content */
    display: flex;              /* Use flexbox for centering text */
    align-items: center;        /* Center content vertically */
    justify-content: center;   /* Optional: Rounded corners for course items */
}
/* Mobile-friendly styles for screen widths 768px and below */
/* Mobile-friendly styles for screen widths 768px and below */
@media (max-width: 768px) {
    /* Navbar adjustments for smaller screens */
    .navbar {
        flex-direction: column; /* Keep this if you want the navbar to stack on very small screens */
        padding: 10px;
    }

    .navbar h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .navbar nav ul {
        display: flex;              /* Use flexbox to arrange items */
        flex-wrap: wrap;           /* Allow wrapping to the next line */
        justify-content: flex-start; /* Align items to the start */
        align-items: center;       /* Center items vertically */
    }

    .navbar nav ul li {
        margin: 5px 10px;         /* Space between items */
    }

    /* General layout adjustments */
    .content, .about-contact {
        padding: 20px;
    }

    /* Home container - stacking layout */
    .home-container {
        flex-direction: column;
        align-items: center;
    }

    .full-photo, .about-contact {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    /* Section padding and typography scaling */
    section {
        padding: 20px;
    }

    section h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    section h3 {
        font-size: 18px;
        margin-top: 20px;
    }

    strong{
        font-size: 14px;
    }
    section p {
        font-size: 14px;
    }

    section p ul li{
        font-size: 14px;
    }

    section ul li{
        font-size: 14px;
    }

    /* Education section */
    .education-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
        font-size: 14px;
    }

    .university-logo {
        width: 80px;
        margin-bottom: 10px;
    }

    /* Research and projects containers */
    .research-container, .projects-container, .experience-container {
        gap: 15px;
    }

    .research-item, .project.item, .experience-item {
        padding: 15px;
    }

    /* Icon size adjustments */
    .icon {
        font-size: 24px;
        margin: 0 15px;
    }
}
/* Mobile-friendly styles for screen widths 768px and below */
@media (max-width: 768px) {
    .courses {
        flex-wrap: wrap;               /* Allow items to wrap to new lines */
        gap: 5px;                     /* Reduce gap for mobile */
        padding: 5px;                 /* Reduce padding for mobile */
    }

    .course {
        height: 40px;                 /* Adjust height for mobile */
        flex: 0 1 auto;               /* Allow width to vary */
        padding: 5px;                 /* Adjust padding for smaller screens */
        margin: 3px;                  /* Adjust margin for mobile */
        font-size: 14px;              /* Adjust font size for better readability */
    }
}

/* Additional adjustments for very small screens (max-width 480px) */
@media (max-width: 480px) {
    .course {
        height: 35px;                 /* Further adjust height for very small screens */
        font-size: 12px;              /* Reduce font size for very small screens */
    }
}
/* Additional adjustments for very small screens (max-width 480px) */
@media (max-width: 480px) {
    .navbar h1 {
        font-size: 20px;
    }

    .navbar nav ul li a {
        font-size: 14px;
    }

    section h2 {
        font-size: 20px;
    }

    section h3 {
        font-size: 16px;
    }


    strong{
        font-size: 13px;
    }
    
    section p {
        font-size: 13px;
    }

    section p ul li {
        font-size: 13px;
    }

    section ul li {
        font-size: 13px;
    }

    .content, section {
        padding: 15px;
    }

    /* Adjust font sizes and spacing for easier readability on small screens */
    h2, h3, p {
        line-height: 1.5;
    }
}
