@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/*==================== VARIABLES CSS ====================*/
:root {
    /*========== Colors ==========*/
    --header-height: 3rem;
    --hue-color: 210; /* Blue tone from the reference image */

    --primary-color: hsl(var(--hue-color), 79%, 57%);
    --primary-color-alt: hsl(var(--hue-color), 57%, 51%);
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 75%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 29%, 16%);
    --body-color: hsl(var(--hue-color), 28%, 12%);
    --container-color: hsl(var(--hue-color), 29%, 16%);

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== Margins Bottom ==========*/
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}


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

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
    padding: 4rem 0 2rem;
}

.subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--primary-color);
    margin-bottom: var(--mb-0-5);
}

.section > h2, .section > .subtitle{
    text-align: center;
}

.container {
    max-width: 968px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid {
    display: grid;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFF;
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .3s;
}

.btn:hover {
    background-color: var(--primary-color-alt);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}


/*==================== HEADER ====================*/
.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
    box-shadow: 0 1px 4px hsla(var(--hue-color), 4%, 15%, .1);
}

nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: color .3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/*==================== HERO SECTION ====================*/
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content h1 {
    font-size: var(--big-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-0-5);
}

.hero-content .highlight {
    font-size: var(--h1-font-size);
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--mb-1);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--mb-0-75);
}

.contact-info .fas {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color .3s;
}

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


/*==================== PROJECTS SECTION ====================*/
.project-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: var(--mb-2);
}

.project-card {
    background-color: var(--container-color);
    padding: 2rem 1.5rem;
    border-radius: .5rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    color: var(--title-color);
}

.project-card .tech-stack {
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1);
    color: var(--text-color-light);
}

.project-card ul {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.project-card ul li {
    margin-bottom: var(--mb-0-5);
}


/*==================== SKILLS SECTION (MODIFIED) ====================*/
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
    margin-top: var(--mb-2);
}

.skills-card, .skill-category {
    background-color: var(--container-color);
    padding: 2rem 1.5rem;
    border-radius: .5rem;
}

.skills-card h3, .skill-category h3 {
    margin-bottom: var(--mb-1-5);
    font-size: var(--h3-font-size);
    text-align: left;
}

/* Styling for the UL to act as a container for tags */
.skills-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mb-0-75);
    padding-left: 0; /* Remove default padding */
}

/* Styling LI as tags */
.skills-card ul li {
    background-color: var(--body-color);
    padding: .5rem 1rem;
    border-radius: .25rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    margin-bottom: 0; /* Override any previous margin */
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mb-0-75);
}

.skill-tags span {
    background-color: var(--body-color);
    padding: .5rem 1rem;
    border-radius: .25rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}


/*==================== EDUCATION SECTION ====================*/
.education-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: var(--mb-2);
}

.education-card {
    background-color: var(--container-color);
    padding: 2rem 1.5rem;
    border-radius: .5rem;
    text-align: left;
}

.education-card h3 {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1-5);
}

.education-card h4 {
    color: var(--title-color);
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb-0-25);
}

.education-card p {
    font-size: var(--small-font-size);
    line-height: 1.5;
}


/*==================== FOOTER ====================*/
.main-footer {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--container-color);
    margin-top: 4rem;
}

.main-footer p {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/*==================== MEDIA QUERIES ====================*/
@media screen and (max-width: 767px) {
    nav ul {
        display: none; /* Simple hiding for mobile, can be replaced with a burger menu */
    }
}

@media screen and (min-width: 768px) {
    body {
        margin: 0;
    }

    .section {
        padding: 6rem 0 2rem;
    }

    .hero-section {
        min-height: 100vh;
    }

    .hero-container {
        padding-bottom: 5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}