:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --text-color: #2d3436;
    --background-color: #ffffff;
    --section-padding: 5rem 2rem;
}
.about {
    padding: var(--section-padding);
    text-align: center; /* Centers the heading */
    max-width: 800px; /* Controls the maximum width of the content */
    margin: 0 auto; /* Centers the entire section horizontally */
}

.about h2 {
    margin-bottom: 2rem;
}

.about-content {
    text-align: left; /* Keeps the text left-aligned for better readability */
    background-color: #f8f9fa; /* Optional: adds a subtle background */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: adds subtle shadow */
}

.about-text {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.experience h3 {
    margin-bottom: 1.5rem;
}

.experience-item {
    margin-bottom: 1.5rem;
}

.experience-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.experience-item ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 50vh;
    padding: 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding);
}

.profile-img {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    margin-bottom: 2rem;
    object-fit: cover;
}

.social-links {
    margin-top: 5rem;
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
    background-color: #f8f9fa;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tech-stack {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-stack span {
    background-color: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.skill-category ul {
    list-style: none;
    margin-top: 1rem;
}

.skill-category li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.skill-category li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background-color: #f8f9fa;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-links a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.credly-icon {
    height: 22px; /* Adjust this value to match your other icons */
    width: auto;
    vertical-align: middle;
    /* Optional: add filter to change color on hover */
    transition: filter 0.3s ease;
}

.credly-icon:hover {
    filter: brightness(90%);
}

/* Common styling for centered sections */
.projects, .skills {
    padding: var(--section-padding);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Project section specific */
.project-grid {
    text-align: left; /* Keep project card content left-aligned */
    margin-top: 2rem;
}

.project-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem; /* Add space between cards */
}

/* Skills section specific */
.skills-grid {
    text-align: left; /* Keep skill lists left-aligned */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section headings */
.projects h2, .skills h2 {
    margin-bottom: 2rem;
}

/* Optional: if you want to limit the width of individual project cards */
.project-card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.logo-img {
    height: 50px; /* Adjust based on your navbar height */
    width: auto;
}
