
/* Base page background — sits behind the fixed boids canvas */
html {
    background-color: var(--light-bg-color);
}

/* CSS Variables for easy theme adjustments */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #6c757d;
    --accent-color: #4c81af; /* A touch of green for accents */
    --light-bg-color: #f8f9fa;
    --project-image-text: rgba(255,255,255,0.45);
    --white: #ffffff; 
    --bkgnd: #cccccc; 
    --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) */
    font-size: 100%;
    /* Default 16px. 1rem = 16px */
}

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

body {
    font-family: "Lato", sans-serif; /* fallback font is the browser's system font */
    line-height: 1.6rem;
    color: var(--primary-color); /* affects the fonts */
    background-color: transparent;
    scroll-behavior: smooth;
}

.section-padding {
    /* border: 1px solid black; */
    padding: 5rem 1.25rem;      /* top bottom followed by left and right */
    max-width: 75rem; /*1rem = 16px therefore 75rem - 1200px. Note: default font size is 16px */ 
    margin: 0 auto;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* text-align: center; */
}

h2 {
    font-size: 2.5rem; /* Converted from 2.5em */
    text-align: center;
    margin-bottom: 3.75rem; /* Converted from 60px */
    color: var(--primary-color);
}

/* --- NAVIGATION --- */
nav {
    /* border: 1px solid black; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.25rem; /*1rem = 16px, px implies pixels */
    background-color: var(--white);
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* a targets all descendents */
nav a {
    /* border: 1px solid black; */
    margin: 0 0.9375rem;
    text-decoration: none; /* removes the old style underline hyperlink */
    color: var(--primary-color);
    font-weight: 600;
    /* font-weight: lighter; */
    transition: color var(--transition-speed); /* helps transition the color when mouse over the object */
}


nav a:link { /*!!! pseudo selector */
    /* color: var(--bkgnd); */
}


nav a:hover { /*!!! pseudo selector */
    color: var(--accent-color)
}


/* only applies to the landing identifiers or id="landing" */
#landing {
    min-height: 100dvh; /* full viewport — About Me only visible on scroll */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering within the 80dvh */
    align-items: center;
    text-align: center;
    border-radius: 0 0 2rem 2rem; /* top-left, top-right, btm-right, btm-left */
}

/* Boids canvas — fixed full-page background layer */
#boids-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}


/* to select all divs within landing - alternative */
/* #landing > div{
    background-color: #6c757d;
} */

/* safest most targeted approach */
.landing-content {
    display: flex; /* flex or block but flex is generally better at managing content */
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem;
}

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

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

/* Applies to all paragraphs within landing-content */
.landing-content p{
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

/* Applies and overrides initial paragraph specific styles for the first paragraph */
.landing-content p:first-of-type {
    font-size: 1.5rem;
}

/* Applies and overrides initial paragraph specific styles for the last paragraph */
.landing-content p:last-of-type {
    font-size: 1rem;
}

.landing-content a {
    color: var(--primary-color);
    transition: color var(--transition-speed); 
}

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


/* Teacher's example */
.cta-group a:first-child{          /* target 1st child of <a> tag in cta-group */
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-group a:first-child:hover{   /* hover effect for 1st child of <a> tag in cta-group */
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-group a:last-child{          /* target last child of <a> tag in cta group */
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-group a:last-child:hover{    /* target last child of <a> tag in cta group */
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}


/*
    style{
        property-1: value;                          top, bottom, left and right
        property-2: value1 value2;                  top-bottom, left and right
        property-3: value1 value2 value3;           left, right, top and bottom
        property-4: value1 value2 value3 value4;    tl, tr, br, bl
    }
*/


/************************************************************************************/
/* --- ABOUT ME SECTION --- */
/************************************************************************************/
#about {
}

    .about-grid {
    /* border: 1px solid #000000; */
    display: flex;
    gap: 2.5rem; /* space between columns */
    align-items: flex-start; /* aligns items to the top of the container */
    /* align-items: center; */ /* aligns items to the center of the container */
    /* align-items: flex-end; */ /* aligns items to the bottom of the container */
    }

    .about-image {
    /* border: 1px solid #ff0000; */
    flex: 1; /* takes up 1 part of the available space */
    }

    .about-image img {
    background: #000000;
    width: 100%;
    max-width: 18.75rem;;
    border-radius: var(--border-radius);
    display: block;
    margin: 0 auto;
    }

    .about-text {
    /* border: 1px solid #00ff00; */
    flex: 2; /* takes up 2 parts of the available space, making it twice as wide as the image */
    }

    .about-text h3 {
    font-size: 1.2rem;
    font-weight: light;
    font-style: italic;
    margin-bottom: 0.9375rem;
    }


    .info-card-container {
    /* border: 1px solid #000000; */
    display: flex;
    gap: 1.25rem;
    /* padding: 1.25rem; */
    margin: 1.525rem;
    }

    .info-card {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    background-color: var(--white);
    text-align: center;
    flex: 1;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 0.625rem;
    color: var(--accent-color);
}
/************************************************************************************/


/************************************************************************************/
/* --- Skills Section--- */
/************************************************************************************/
    
#skills {
}

.skills-container {
    display: flex;
    gap:2.5rem;
    /* align-items: center; /* vertical align inside row layout */
    justify-items: center; /* align content center horizontally */
}

.skills-card {
    border: 1px solid black;
    flex: 1;
    min-width: 18.75rem;
    padding: 1.875rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);
    text-align: center;
}

.skills-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5625rem;
    border-bottom: 0.125rem solid var(--accent-color);
    /* display: inline-block; /* if included, will for underline to only the text */
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    margin-top: 0.9375rem;
}

.skills-list li{
    /* border: 1px solid black; */
    display: flex;
    width: calc(50% - 0.625rem);
    margin-bottom: 0.9375rem;
    font-weight:400;
    align-items: center;
}

.skills-list li:before { /* before the list item, after is after list item (so bullets end up in right if we use after */
    content: "•";
    color: var(--accent-color);
    font-size: 1.2rem; /* Converted from 1.2em */
    margin-right: 0.625rem; /* Converted from 10px */
}



/************************************************************************************/
/* --- Projects --- */
/************************************************************************************/

/* #projects {
    background-color: var(--secondary-color);
} */

.projects-grid {
    /* border: 1px solid #000000; */
    display: flex;
    flex-wrap: wrap;
    gap: 1.875rem;
    justify-content: center;
}

.project-card {
    flex-basis: calc(33.333% - 1.25rem); /* 3 cards per row (due to 33.33 percent) */
    min-width: 17.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid var(--light-bg-color);
    transition: transform var(--transition-speed);
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-0.3125rem);
    transform: translate(0.3125rem,-0.3125rem);
}

.project-image {
    width: 100%;
    height: 10rem;
    background-color: #ddd;
    display: flex;
    align-items: center; /* Horizontal Alignment */
    justify-content: center; /* Vertical Alignment */
    font-size: 0.9375rem;
    color: var(--project-image-text);
    text-shadow: 0.0625rem rbga(0,0,0,1);
}

.project-image1 {
    background-image: url("../imgs/optionslens.png");
    background-size: cover;
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: center center; /* keep center in view */
}

.project-image2 {
    background-image: url("../imgs/silverguide.png");
    background-size: cover;
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: center center; /* keep center in view */
}

.project-image3 {
    background-image: url("../imgs/agentic-scaffold.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.project-details {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
    text-align: left;  
}

.project-details p {
    color: var(--secondary-color);
    margin-bottom: 0.625rem;
    font-size: 0.95rem;
}

.project-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    padding-top: 1rem;
}

.project-links a {
    text-decoration: none;
    font-weight: 600;;
    transition-duration: var(--transition-speed);
    color: var(--accent-color)
    /* color: var(--white); */
    /* background-color: var(--accent-color);
    border-radius: var(--border-radius); */
    /* padding: 0.125rem 0.5rem; */
}

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

/************************************************************************************/





/************************************************************************************/
/* --- Contacts --- */
/************************************************************************************/
#contact {
    text-align: center;
}

#contact p {
    font-size: 1.2rem;
    margin-bottom: 1.875rem;
    color: var(--secondary-color);

}

.contact-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 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:hover:first-of-type { /* other methods: a:hover:nth-child(1),  a:after:hover*/
    background-color: #504c4c;
}

.contact-links a:hover:nth-of-type(2) { /* a:hover:nth-child(2) */
    background-color: #0072b1;
}

.contact-links a:hover:nth-of-type(3) {
    background-color: #24292e; /* GitHub dark */
}

.contact-links a span {
    margin-right: 0.625rem;
    font-size: 1.5rem;
}

/************************************************************************************/


/************************************************************************************/
/* --- Boids Info Badge --- */
/************************************************************************************/

#boids-info {
    position: fixed;
    top: 4.5rem;   /* clears the sticky nav bar */
    right: 1.25rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* right-align the card under the pill */
    gap: 0.5rem;
    cursor: default;
}

.boids-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#boids-toggle {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(37, 50, 72, 0.15);
    border-radius: 2rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-color);
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
}

#boids-toggle:hover {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--accent-color);
}

#boids-toggle.off {
    color: var(--secondary-color);
    opacity: 0.7;
}

.boids-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(37, 50, 72, 0.55);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(37, 50, 72, 0.15);
    border-radius: 2rem;
    padding: 0.25rem 0.75rem;
    transition: color var(--transition-speed), background var(--transition-speed);
    user-select: none;
}

.boids-desc {
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(37, 50, 72, 0.9);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(37, 50, 72, 0.15);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    max-width: 17rem;
    /* hidden until hover */
    opacity: 0;
    transform: translateY(0.4rem);
    pointer-events: none;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

#boids-info:hover .boids-label {
    color: rgba(37, 50, 72, 0.9);
    background: rgba(255, 255, 255, 0.82);
}

#boids-info:hover .boids-desc {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/************************************************************************************/




/************************************************************************************/
/* --- Footer --- */
/************************************************************************************/

footer {
    text-align: center;
    font-size: 1.25rem;
    border-top: 0.0625rem solid var(--light-bg-color);
    margin-top: 0.625rem;
}

footer div a{
    text-decoration: none;
    color: var(--secondary-color);
    margin: 0 0.0625rem;
}

footer div a:hover{
    color: var(--accent-color)
}

footer p {
    font-size: 0.75rem;
    margin-top: 0.625rem;
    color: var(--secondary-color);
}

/************************************************************************************/






/* --- Timeline (Grouped Layout by Default) --- */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2.5rem 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: 0;
    z-index: 1;
    opacity: 1;
}

.timeline-item {
    padding: 1.25rem 20px 1.25rem 50px;
    position: relative;
    background-color: inherit;
    width: 100%;
    text-align: left;
}

/* Base Dot (Left-aligned for Grouped) */
.timeline-dot {
    position: absolute;
    width: 1rem;
    height: 1rem;
    background-color: var(--white);
    border: 3px solid var(--accent-color);
    top: 1.5rem;
    border-radius: 50%;
    z-index: 10;
    left: 12px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.timeline-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-top: 0.5rem;
    overflow: visible; /* Ensure bullets/shadows aren't clipped */
}

.timeline-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.timeline-content p {
    margin: 0;
    color: var(--secondary-color);
    font-style: italic;
}

.concurrent-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    text-align: inherit;
}

.concurrent-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.concurrent-list li strong {
    display: inline-block;
    color: var(--primary-color);
}

.concurrent-list li em {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-left: 0.5rem;
    font-style: italic;
}

/* Specific styling for achievements/impact within roles */
.timeline-content .impact-snippet {
    display: block;
    margin: 0.5rem 0 0.5rem 5rem !important; /* Specificity and extra depth - Updated to 5rem */
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--secondary-color);
    font-style: normal;
    position: relative;
    width: auto;
}

.timeline-content .impact-snippet::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

/* --- Timeline V2 (Alternating Layout for Desktop) --- */
@media (min-width: 56.26rem) {
    .timeline-v2.timeline-container::after {
        left: 50%;
        margin-left: -1.5px;
        width: 3px;
    }

    .timeline-v2 .timeline-item {
        width: 50%;
        padding: 1.25rem 3.125rem;
    }

    .timeline-v2 .timeline-item.left {
        left: 0;
        text-align: right;
    }

    .timeline-v2 .timeline-item.right {
        left: 50%;
        text-align: left;
    }

    .timeline-v2 .timeline-item.left .timeline-dot {
        right: -0.5rem;
        left: auto;
    }

    .timeline-v2 .timeline-item.right .timeline-dot {
        left: -0.5rem;
    }
}

/************************************************************************************/
/* --- Responsive Design (Media Queries)--- */
/************************************************************************************/
/* Applies only to 900px (56.25rem) and below  */
@media (max-width: 56.25rem) {
    
    .landing-content h1 {
    white-space: nowrap;
    }

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

    /* Timeline Mobile Reset */
    .timeline-container::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left !important;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    .skills-list li {
    width: 100%;
    }

    .about-grid {
    flex-direction: column;
    }
    
    .about-image {
    margin: 0 auto;
    }

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

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


}

/* Applies only to 900px (56.25rem) and below  */
@media (max-width: 37.5rem) {
    
    nav {
    flex-wrap: wrap;
    flex-direction: row;
    }

    /* Note: deviation from example */
    .project-card {
    flex-basis: 100%;
    }

}
/************************************************************************************/

