/* start by setting some const for colors being used */
:root {
    --primary-grey: #7393B3;
    --primary-black: #333;
    --primary-button: #007bff;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe Print', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body Styles */
body {
    line-height: 1.6;
    color: var(--primary-black);
    background-color: white;
}

/* Header and Navigation Styles */
header {
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 01.125rem);

}

header nav ul li a {
    color: var(--primary-black);
    font-weight: bold;

}

nav ul {
    list-style: none;
    display: flex;
    justify-content: right;
}

/* Spaces the top */
nav ul li {
    padding: 0 20px;
}

/* Main Content Styles */
main {
    padding: 20px;
    text-align: center;
}

H1 {
    font-size: 35PX;
    text-align: center;
    margin-bottom: 2rem;
    margin-right: auto;
    /* adjust my name to be more centered with skills section and the about me content */
}

/* About Me Section Styles */
.about-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    gap: 3rem;
}

.about-me-content {
    flex: 3;
    margin-right: 3rem;

}

.about-me img {
    flex: 1;
    width: auto;
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    order: -1;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* For Smaller Screens, Where Layout Should Stacl */
@media (max-width: 768px) {
    .about-me {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-me-content,
    .about-me img {
        margin-left: 0;
        order: 0;
    }

    .about-me img {
        max-width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }
}

H2 {
    font-size: 55PX;
}

/* Skills Section Styles */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 0.5fr);
    grid-template-rows: auto auto auto;
    gap: 1rem;
    justify-content: center;
    align-items: start;
    padding: 2rem;
}

.skills-category h3 {
    background-color: var(--primary-grey);
    color: white;
    padding: 0.6rem;
    margin-bottom: 1rem;
}

.skills-category ul {
    list-style: none;
    text-align: center;
}

.skills-category li {
    background-color: white;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
}

/* For Smaller Screens */
@media screen and (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Project Section Styles */
#projects {
    padding: 2rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two columns */
    gap: 1rem;
    /* Space between grid items */
    margin-top: 3rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.project-item img {
    width: 100%;
    height: 200%;
    object-fit: fill;
    margin-bottom: 2rem;
}

/* Media Query for Tablets and Smaller Screens */
@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        /* Changes to a single column layout */
    }

    .project-item img {
        max-width: 100%;
        /* Adjust the image size for smaller screens */
        /* You can also adjust margin if needed */
    }
}

/* Features Styles */
#features {
    padding: 2rem;
    text-align: center;
}

#features h2 {
    margin-bottom: 1rem;
}

#features ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    margin: auto;
    max-width: 800px;
}

#features li {
    margin-bottom: 1.5rem;
}

#features strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
    #features {
        padding: 1rem;
    }

    #features ul {
        max-width: 100%;
    }

    #features li {
        margin-bottom: 1rem;
    }

    #features strong {
        font-size: 1rem;
    }
}

/* Contact Me Section Styles */
#contact {
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

#contact h2,
#contact p {
    margin-bottom: 2rem;
}

.get-in-touch h3 {
    margin-bottom: 3rem;
}

.get-in-touch {
    text-align: left;
}

.resume-button {
    display: inline-block;
    background-color: var(--primary-button);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: 1rem;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);

}

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

footer {
    background-color: var(--primary-grey);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* adding shadow to most of the element on the website */
.container {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.project-item {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#contact {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.project-item img,
.resume-button {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

strong {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

ul {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}