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

:root {
    --text-bg: #666666;
    --text-accent: #555555;
}

/* header tab */
header {
    display: flex;
    justify-content: space-between; /* pushes name left, links right*/
    align-items: center;
    padding: 40px 20px;
    max-width: 800px; /* for preventing taking big screen */
    margin: 0 auto;
}

header h2 .home-link {
    text-decoration: none;
    color: inherit; /* uses the same text color as the h2 */
    transition: color 0.3s ease;
}
header h2 .home-link:hover {
    color: var(--text-accent);
    cursor: pointer;
}

/* navbar w/ link */
nav a {
    text-decoration: none; /* removed link underline for better visual */
    margin-left: 30px;
    color: var(--text-bg);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #000000; 
}

/* == MAIN FILE == */
.intro {
    display: flex;
    align-items: center; /* vertical */
    justify-content: space-between; /* pushes text on left, img on right */
    max-width: 700px;
    margin: 0 auto; /* 'auto' to center it left/right */
    padding: 0 20px;
    gap: 40px;
}

.intro h1 {
    margin: 10px 0;
}

.intro p {
    font-size: 1.2rem;
    color: #555555;
    line-height: 1.5; /* making multi-line text easier to read */
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.profile-pic {
    width: 200px;
    height: 200px;

    border-radius: 50%;

    object-fit: cover;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
/* social links section */
.action-links {
    display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    color: var(--text-bg);
    text-decoration: none; 
    margin: 0 10px;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.social-link:hover {
    color:#000000; /* to add that visual effect of seeing it */
}

.projects {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.projects h3 {
    font-size: 1.2rem;
    color: #888888; /* A subtle gray for section headers */
    border-bottom: 1px solid #EAEAEA; /* A delicate line to separate sections */
    padding-bottom: 10px;
    margin-bottom: 20px;
}


.project-list {
    display: flex;
    flex-direction: column; /* stacking the projects vertically */
    gap: 15px; 
}

.project-card {
    display: flex;
    text-decoration: none;
    flex-direction: column;
    justify-content: center;
    padding: 20px;

    margin: 0 auto; /* to center it in the middle */
    width: 100%;
    max-width: 800px;
    border-radius: 8px; 
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth hover effect! */
}

.project-card:hover {
    transform: translateY(-2px); /* Makes the card lift up slightly when hovered */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* soft drop shadow */
}

.project-card h4 {
    margin: 0 0 5px 0;
    color: #222222;
    font-size: 1.1rem;
}

.project-card p {
    margin: 0;
    color: var(--text-bg);
    font-size: 0.95rem;
}

/* == PROJECTS SECTION === */
.text-content p {
    margin-bottom: 20px;
}

.text-content p:last-of-type {
    margin-bottom: 0;
}

/* == FOOTER == */
footer {
    padding: 40px 20px;
    background-color: #FFFFFF; /* Ensures it matches your page background */
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Pushes copyright left, email right */
    align-items: center;
    max-width: 800px; /* Matches your header and projects width! */
    margin: 0 auto;
    border-top: 1px solid #EAEAEA; /* Optional: adds a nice subtle line above the footer */
    padding-top: 20px;
}

/* Style the copyright text */
.footer-content p {
    color: #999999;
    font-size: 0.9rem;
    margin: 0;
}

.footer-email {
    color: #999999;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: #555555;
}

/* == MOBILE THINGY == */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px
    }
    nav {
        display: flex;
        justify-content: center; /* horizontally centered */
        gap: 30px; /* gap in between the lines */ 
    }
    .profile-container {
        flex-direction: column-reverse; /* flip for picture on top nicer */
        text-align: center;
    }
    
    nav a {
        margin-left: 0; /* nice and centered :D */
    }
    /* making smaller just for phone */
    .profile-pic {
        width: 150px;
        height: 150px;
    }
}

/* == TECH STACK TAGS == */
.tech-tags {
    display: flex;
    gap: 10px; /* horizontal gap */
    margin-top: 15px;
    flex-wrap: wrap;
}

.tech-tags span {
    background-color: #F4F4F4;
    color: #666666;
    padding: 5px 12px;
    border-radius: 20px; /* giving a nice round look */
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-card p {
    line-height: 1.5;
    margin-top: 8px;
}