/*- Global Styles -*/
:root {
    --primary-bg-color: #f4f7fa;
    --secondary-bg-color: #ffffff;
    --primary-text-color: #333;
    --secondary-text-color: #555;
    --accent-color: #007bff;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

h1, h2, h3 {
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

/*- Header & Navigation -*/
header {
    background-color: var(--secondary-bg-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

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

.nav-links a {
    color: var(--primary-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/*- Hero Section -*/
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding-top: 80px; /* Offset for fixed header */
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    max-width: 600px;
    text-align: center;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
}

.hero-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    object-fit: cover;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/*- About Section -*/
#about .container {
    max-width: 800px;
}

#about p {
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
    text-align: center;
}

/*- Skills Section -*/
.skills-category-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category-item {
    background-color: var(--secondary-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.skill-category-item h3 {
    text-align: left; /* Align category title to left */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.3rem;
}

.skill-category-item h3 .icon-placeholder {
    color: var(--accent-color);
    margin-right: 0.8rem;
    font-size: 1.5rem;
}

.skills-container { /* This is for the skill tags within each category */
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start; /* Align tags to the left within their category */
    margin-top: 1rem;
}

.skill-tag {
    background-color: var(--primary-bg-color); /* Lighter background for tags */
    color: var(--primary-text-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 400; /* Slightly lighter font weight */
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--accent-color);
    color: #fff;
}

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

.project-card {
    background-color: var(--secondary-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.project-card ul {
    list-style: none;
    padding-left: 0;
}

.project-card li {
    color: var(--secondary-text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.project-card li:before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/*- Contact Section -*/
.contact-info {
    background-color: var(--secondary-bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info p strong {
    min-width: 100px;
    color: var(--primary-text-color);
}

/*- Footer -*/
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--secondary-bg-color);
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

/*- Media Queries for Responsiveness -*/
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    #hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .nav-links {
        display: none; /* Simple hiding for small screens, can be replaced with a burger menu */
    }
}
#about p {
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
    text-align: center;
}

.project-card ul {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

#contact .container p {
    text-align: center;
}