/* Basic Reset and Global Styles */
body {
    font-family: 'Arial', sans-serif; /* Or a more modern font like 'Roboto', 'Open Sans' */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* A very light gray */
    color: #343a40; /* Dark gray for text */
}

.container {
    width: 85%; /* Slightly wider */
    max-width: 1200px; /* Limit maximum width */
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header */
header {
    background: #343a40; /* Dark gray for header */
    color: #ffffff;
    padding-top: 30px;
    min-height: 150px;
    border-bottom: #007bff 4px solid; /* Bright blue for accent */
    text-align: center;
}

header .profile-pic-header {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
    margin-bottom: 15px;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.8em;
    font-weight: bold;
}

header p {
    font-size: 1.1em;
    margin-top: 5px;
    margin-bottom: 15px;
}

header nav {
    margin-top: 20px;
    padding-bottom: 20px;
}

header nav ul {
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007bff;
}

/* Sections */
.section {
    padding: 50px 0;
    border-bottom: 1px solid #e9ecef; /* Light section separator */
}

.section:last-of-type { /* No border for the last section in main */
    border-bottom: none;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    color: #007bff; /* Section titles in blue */
}

/* Education, Research, Workshop Items */
.education-item, .research-item, .workshop-item {
    background: #ffffff;
    margin-bottom: 25px;
    padding: 20px;
    border-left: 5px solid #007bff;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.education-item h3, .research-item h3, .workshop-item h3 {
    margin-top: 0;
    color: #343a40;
}

.education-item p, .research-item p, .workshop-item p,
.research-item ul, .workshop-item ul {
    margin-bottom: 10px;
}
.research-item ul, .workshop-item ul {
    padding-left: 20px;
}


/* Project Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.project-card {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left; /* Align text left for better readability */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card img {
    width: 100%; /* Ensures image takes full card width */
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0056b3; /* A darker blue for project titles */
    font-size: 1.4em;
}
.project-card p {
    font-size: 0.95em;
    margin-bottom: 10px;
    flex-grow: 1; /* Allows description paragraph to grow */
}
.project-card p strong {
    color: #343a40;
}

.project-links {
    margin-top: 15px;
    text-align: right;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Skills Section */
.skills-category {
    margin-bottom: 20px;
}
.skills-category h4 {
    margin-bottom: 10px;
    color: #343a40;
    font-size: 1.2em;
}
.skills-list {
    list-style: none;
    padding: 0;
    text-align: left; /* or center if you prefer */
}

.skills-list li {
    display: inline-block;
    background: #e9ecef; /* Light background for skill bubbles */
    color: #343a40;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid #ced4da;
}

/* Contact Section */
#contact ul {
    list-style: none;
    padding: 0;
}

#contact ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
}
#contact ul li .fas,
#contact ul li .fab { /* For Font Awesome */
    margin-right: 10px;
    color: #007bff;
    width: 20px; /* To align text */
    text-align: center;
}

#contact ul li a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}

#contact ul li a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #343a40;
    color: #adb5bd; /* Lighter gray for footer text */
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
}
footer p {
    margin: 5px 0;
}

/* Responsive */
@media(max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2.2em;
    }
    header p {
        font-size: 1em;
    }
    header nav ul li {
        display: block;
        margin: 10px 0;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .section h2 {
        font-size: 1.8em;
    }
}
