/*
 * General Styles
 */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; /* A light, soft background color */
    color: #334155; /* A dark gray for good readability */
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/*
 * Header Section
 * I use Flexbox to create a responsive and centered header.
 */
header {
    background: linear-gradient(135deg, #4c5d80, #2c3e50); /* A subtle gradient */
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease; /* Smooth transition for padding changes */
}

header .container {
    display: contents;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.header-logo {
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

header h1, header h4 {
    margin: 0;
    font-weight: 300;
}

header h1 {
    font-size: 2.5em;
    letter-spacing: 2px;
    transition: font-size 0.3s ease; /* Smooth transition for font size changes */
}

header h4 {
    font-size: 1em;
    font-weight: 400;
    opacity: 0.8;
}

/* Navigation Menu */
header nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
}

header nav a:hover {
    color: #a0c4ff; /* Lighter color on hover */
    transform: scale(1.1); /* Subtle zoom effect */
}

/*
 * Section Styling
 * Common styles for all sections for a consistent look.
 */
section {
    padding: 4rem 0;
    border-bottom: 1px solid #e2e8f0;
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5em;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #4c5d80;
    border-radius: 2px;
}

/*
 * About Section
 * The profile picture will be a prominent circular image.
 */
#about {
    text-align: center;
    padding-top: 6rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

#about p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
}

/*
 * Skills Section
 * Organized skill groups with clean styling.
 */
#skills .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-group {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-group:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.skill-group h3 {
    text-align: center;
    color: #4c5d80;
    margin-top: 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    font-size: 1.5em;
}

.skill-group ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.skill-group ul li {
    background: #e2e8f0;
    color: #4c5d80;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.skill-group ul li:hover {
    background-color: #d1d9e6;
}

/*
 * Education and Interests Sections
 */
#education .education-item,
#interests p {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#education h3 {
    color: #2c3e50;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 0;
}

#education ul {
    list-style: none;
    padding: 0;
}

#education ul li {
    margin-bottom: 10px;
}

.cv-download {
    text-align: center;
    margin-top: 30px;
}

.cv-download a {
    background-color: #4c5d80;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cv-download a:hover {
    background-color: #3b4a6b;
    transform: translateY(-2px);
}

/*
 * Projects Section
 */
.project-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-item h3 {
    margin-top: 0;
    color: #4c5d80;
}

.project-item a {
    display: inline-block;
    margin-top: 15px;
    background-color: #4c5d80;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project-item a:hover {
    background-color: #3b4a6b;
}

/*
 * Contact Section
 */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-links a {
    color: #4c5d80;
    text-decoration: none;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
    background: #fff;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-links a:hover {
    color: #2c3e50;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.contact-links i {
    margin-right: 10px;
    font-size: 1.3em;
}

form {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}

form input[type="text"],
form input[type="email"],
form input[type="subject"],
form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #4c5d80;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button {
    background: #4c5d80;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background: #3b4a6b;
    transform: translateY(-2px);
}

/*
 * Footer Section
 */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 30px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/*
 * Media Queries for Responsiveness
 */
@media (max-width: 768px) {
    header {
        padding: 1rem 0; /* Reduced padding for smaller screens */
    }

    header h1 {
        font-size: 1.8em; /* Smaller font size for mobile header */
    }

    header h4 {
        display: none; /* Hides the subtitle on small screens to save space */
    }
    
    header nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    section h2 {
        font-size: 2em;
    }

    #skills .container {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    header nav a {
        font-size: 0.9em;
    }
}
