html {
    scroll-behavior: smooth;
}

/* General Body Styles */
body {
    background-color: #FAF9F6; /* Sophisticated off-white */
    color: #333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    color: #2c3e50;
}

h1 {
    font-size: 3em;
    margin-bottom: 0;
}

h2 {
    font-size: 1.8em;
    font-weight: 300;
    margin-top: 0;
}

h3 {
    font-size: 2em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h4 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

/* Hero/Header Section */
.hero {
    background: #F5F5DC; /* A slightly different, complementary light brown-white */
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    scroll-margin-top: 70px; /* Offset for scroll-to */
}

/* Navigation Bar */
nav {
    background: #fdfcfb;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 70px;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 100%;
}

nav .nav-logo {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 1.5em;
    color: #2c3e50;
    text-decoration: none;
}

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

nav ul li a {
    display: block;
    padding: 0 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 70px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

/* Section Styling */
section {
    padding: 40px 0;
    scroll-margin-top: 70px; /* Offset for scroll-to */

    /* Animation setup */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px; /* More space for a bigger picture */
}

.profile-pic {
    width: 280px;
    height: 350px;
    border-radius: 8px; /* Soft rectangular corners */
    object-fit: cover;
    object-position: center; /* Center the image */
    border: 4px solid #e0e0e0;
    flex-shrink: 0;
}

.about p {
    font-size: 1.1em;
    text-align: justify;
}

/* Education Section */
.education-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid #27ae60;
}

.education-institution, .education-date {
    font-style: italic;
    color: #555;
    margin: 5px 0;
}

/* --- Experience Section --- */
/* Experience Section */
.experience-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid #3498db;
}

.experience-location {
    font-style: italic;
    color: #555;
    margin: 5px 0;
}

.experience-location a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.experience-location a:hover {
    color: #3498db;
}

.experience-date {
    font-size: 0.9em;
    color: #777;
}

.details {
    color: #777;
    font-style: italic;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category h4 {
    font-size: 1.3em;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    padding: 8px 0;
    font-size: 1.05em;
    border-bottom: 1px solid #f0f0f0;
}

/* Featured Project Section */
.featured-project {
    background-color: #f8f5f2; /* A slightly different background to make it stand out */
}

.featured-project-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.featured-project-content--reverse {
    flex-direction: row-reverse;
}

.featured-project-image {
    flex: 1;
}

.featured-project-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.featured-project-details {
    flex: 1;
}

.featured-project-details h4 {
    font-size: 1.3em;
    color: #555;
    font-weight: 400;
}

.featured-project-details p {
    font-size: 1.1em;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

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

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.project-card-content {
    padding: 20px;
}

.project-card-content h5 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.project-card-content p {
    font-size: 1em;
    margin: 0;
    line-height: 1.5;
}

/* Learning Hub Section */
.learning-hub-list {
    list-style: none;
    padding: 0;
}

.learning-hub-list li a {
    text-decoration: none;
    color: #3498db;
    font-size: 1.1em;
}

/* Contact/Footer Section */
.contact {
    background: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 30px 0;
}

.contact h3 {
    color: #ecf0f1;
    border-bottom: none;
}

.contact a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.2em;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #3498db;
}

/* Responsive Design */
@media(max-width: 768px) {
    header.hero,
    section {
        scroll-margin-top: 60px;
    }

    .container {
        width: 90%;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.8em;
    }

    nav {
        height: 60px;
    }

    nav ul li a {
        padding: 0 10px;
        line-height: 60px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about p {
        text-align: center;
    }

    .featured-project-content {
        flex-direction: column;
    }
}

@media(max-width: 580px) {
    body {
        padding-top: 0;
    }

    nav {
        position: relative;
        height: auto;
    }

    nav .container {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul {
        margin-top: 10px;
    }

    header.hero, section {
        scroll-margin-top: 0;
    }
}

@media(max-width: 500px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1.5em;
    }

    .hero {
        padding: 40px 0;
    }

    section {
        padding: 20px 0;
    }
}

@media(max-width: 350px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
