/* insert styles here */
/* CSS Variables for easy theme adjustments */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #6c757d;
    --accent-color: #66a5fd;
    /* A touch of blue for accents */
    --light-bg-color: #eff7ff;
    --white: #ffffff;
    --border-radius: 0.5rem;
    /* Converted from 8px */
    --transition-speed: 0.3s;
    /* Optional: Set base font size for easier rem calculations (e.g., 62.5% = 10px) */
    /* Default 16px. 1rem = 16px */
    font-size: 100%;
}

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

    /* border: var(--accent-color) 1px dotted; */
}

body {
    font-family: Lato, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

.section-padding {
    padding: 5rem, 1.25rem;
    max-width: 75rem;
    margin: 0 auto;

    padding: .75rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.75rem;
    color: var(--primary-color);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.9375rem 1.25rem;
    background-color: var(--white);
    box-shadow: 0 0.125rem 0.25rem rgb(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    margin: 0 0.9375rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color var(--transition-speed);
}

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

/* --- 1. LANDING SECTION --- */
#landing {
    min-height: 80dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--light-bg-color);
    border-radius: 0 0 2rem 2rem;
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
}

.profile-pic-large {
    width: 9.375rem;
    height: 9.375rem;
    border-radius: 50%;
    object-fit: cover;
    border: 0.25rem solid var(--primary-color);
    margin-bottom: 0.625rem;
}

.landing-content h1 {
    font-size: 3.75rem;
    font-weight: 700;
}

.landing-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

.cta-group a {
    display: inline-block;
    padding: 0.625rem 1.5625rem;
    margin: 0 0.625rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
    border: 0.125rem solid var(--primary-color);
}

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

.primary-cta:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

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

.secondary-cta:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- 2. ABOUT ME SECTION --- */
#about {
    background-color: var(--white);
}

.about-grid {
    display: flex;
    gap: 2.5rem;
    /* Converted from 40px */
    align-items: flex-start;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 18.75rem;
    /* Converted from 300px */
    border-radius: var(--border-radius);
}

.about-text {
    flex: 2;

    padding: 1rem;
}

.about-text h3 {
    font-size: 1.8rem;
    /* Converted from 1.8em */
    font-weight: lighter;
    font-style: italic;
    margin-bottom: 0.9375rem;
    /* Converted from 15px */
}

.info-card-container {
    display: flex;
    gap: 1.25rem;
    /* Converted from 20px */
    margin: 1.5625rem 0;
    /* Converted from 25px 0 */
}

.info-card {
    flex: 1;
    padding: 1.25rem;
    /* Converted from 20px */
    border: 0.0625rem solid #ddd;
    /* Converted from 1px */
    border-radius: var(--border-radius);
    text-align: center;
    background-color: var(--light-bg-color);
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.05);
    /* Converted from 0 2px 5px */
}

.info-card h4 {
    font-size: 1.2rem;
    /* Converted from 1.2em */
    color: var(--accent-color);
    margin-bottom: 0.3125rem;
    /* Converted from 5px */
}

/* --- 3. EXPERIENCE SECTION --- */
#experience {
    background-color: var(--light-bg-color);
}

.experience-container {
    display: flex;
    gap: 2.5rem;
    /* Converted from 40px */
    justify-content: center;
}

.experience-card {
    flex: 1;
    min-width: 18.75rem;
    /* Converted from 300px */
    padding: 1.875rem;
    /* Converted from 30px */
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);
    /* Converted from 0 4px 10px */
    text-align: center;
}

.experience-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5625rem;
    /* Converted from 25px */
    border-bottom: 0.125rem solid var(--accent-color);
    /* Converted from 2px */
    padding-bottom: 0.625rem;
    /* Converted from 10px */
    display: inline-block;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    margin-top: 0.9375rem;
    /* Converted from 15px */
}

.skill-list li {
    width: calc(50% - 0.625rem);
    /* Converted from 10px */
    margin-bottom: 0.9375rem;
    /* Converted from 15px */
    font-weight: 400;
    display: flex;
    align-items: center;
}

.skill-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.2rem;
    /* Converted from 1.2em */
    margin-right: 0.625rem;
    /* Converted from 10px */
}

/* --- 4. PROJECTS SECTION --- */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.875rem;
    /* Converted from 30px */
    justify-content: center;
}

.project-card {
    flex-basis: calc(33.333% - 1.25rem);
    /* Converted from 20px */
    min-width: 17.5rem;
    /* Converted from 280px */
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.1);
    /* Converted from 0 4px 15px */
    overflow: hidden;
    transition: transform var(--transition-speed);
}

.project-card:hover {
    transform: translateY(-0.3125rem);
    /* Converted from -5px */
}

.project-image {
    width: 100%;
    height: 12.5rem;
    /* Converted from 200px */
    background-color: var(--light-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* Converted from 1.5em */
    color: var(--secondary-color);
}

.project-details {
    padding: 1.25rem;
    /* Converted from 20px */
}

.project-details h3 {
    font-size: 1.5rem;
    /* Converted from 1.5em */
    margin-bottom: 0.625rem;
    /* Converted from 10px */
    text-align: left;
}

.project-details p {
    color: var(--secondary-color);
    margin-bottom: 0.9375rem;
    /* Converted from 15px */
    font-size: 0.95rem;
    /* Converted from 0.95em */
}

.project-links a {
    display: inline-block;
    margin-right: 0.9375rem;
    /* Converted from 15px */
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.project-card .project-image {
    background-image: url("https://placehold.co/100x100/orange/white?text=Image Placeholder");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    width: 100%;
    height: 10rem;

}


/* --- 5. CONTACT ME SECTION --- */
#contact {
    text-align: center;
    background-color: var(--light-bg-color);
}

#contact p {
    font-size: 1.2rem;
    /* Converted from 1.2em */
    margin-bottom: 1.875rem;
    /* Converted from 30px */
    color: var(--secondary-color);
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5625rem;
    /* Converted from 12px 25px */
    margin: 0 0.9375rem;
    /* Converted from 15px */
    border: 0.125rem solid var(--primary-color);
    /* Converted from 2px */
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-speed);
}

.contact-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-links a span {
    margin-right: 0.625rem;
    /* Converted from 10px */
    font-size: 1.2rem;
    /* Converted from 1.2em */
}

/* --- 6. FOOTER --- */
footer {
    text-align: center;
    padding: 1.25rem;
    /* Converted from 20px */
    border-top: 0.0625rem solid #eee;
    /* Converted from 1px */
    background-color: var(--white);
}

.footer-nav a {
    margin: 0 0.625rem;
    /* Converted from 10px */
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

.copyright {
    margin-top: 0.625rem;
    /* Converted from 10px */
    font-size: 0.8rem;
    /* Converted from 0.8em */
    color: var(--secondary-color);
}

@media (max-width: 56.25rem) {
    /* Converted from 900px */

    h2 {
        font-size: 2rem;
        /* Converted from 2em */
    }

    .about-grid {
        flex-direction: column;
    }

    .about-image {
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
        /* Converted from 30px */
    }

    .info-card-container {
        flex-direction: column;
    }

    .experience-container {
        flex-direction: column;
    }
}

@media (max-width: 37.5rem) {

    /* Converted from 600px */
    .section-padding {
        padding: 3.125rem 0.9375rem;
        /* Converted from 50px 15px */
    }

    nav {
        flex-wrap: wrap;
    }

    .about-grid {
        flex-direction: column;
    }

    /* .about-image {
    margin: 0 auto;
    } */

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
    }

    .cta-group a {
        margin: 0;
        width: 100%;
    }

    .contact-links a {
        margin: 0.3125rem;
        /* Converted from 5px */
    }


}