:root {
    --primary: #4472C4;
    --secondary: #233b64;
    --black: #000000;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
}

section {
    & img {
        display: block;
        margin: 0 auto;   
        max-width: 250px; 
        margin-bottom: 1em;
    }
}



/* Navigation */
nav {
    display: flex;
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

h2 a {
    color: var(--primary);
    transition: color 0.3s ease;
}
h2 a:hover {
    color: var(--secondary);
}
.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    & img {
        height: 80px;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/*Header Section*/
header {
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /*padding: 2rem;*/
    height: 175px;
}

.head-content h1 {
    font-size: 2.5rem;
}

.head-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--black);
    color: var(--white);
}

/* Sections*/
section {
    padding: 2rem 1.5rem;
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Cards*/
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border: 2px solid var(--primary);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto; 
    max-width: 1100px;
    margin-bottom: 0.5em; 
}

/*.card:hover {*/
/*    transform: translateY(-5px);*/
/*}*/

.card-link {
    text-decoration: none;
    color: var(--black);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* Contact*/
.contact {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

p {
    text-align: center;
}
.contact a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    height: 250px;
}

/* Footer*/
footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

/* Tablet*/
@media (min-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1200px;
        margin: auto;
    }
    .logo {
        margin-bottom: 0;
        & img {
        height: 161px;
        }
    }
    
    header {
        height: 250px;
    }
    
    .head-content h1 {
        font-size: 4rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        & img {
            max-width: 450px; 
        }
}
}

/* Desktop*/
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 3rem;
    }
}

/* ============================
   Resumé page additions
   Append to main.css — reuses existing
   variables, .card, .card-grid, .btn, .contact
   ============================ */

.skills-grid {
    max-width: 1100px;
    margin: 0 auto;
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(68, 114, 196, 0.2);
    text-align: left;
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Timeline */
.timeline {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.timeline-entry {
    position: relative;
    margin-bottom: 2rem;
    margin: 0px auto;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

.timeline-entry .card {
    max-width: none;
    margin: 0;
    text-align: left;
    max-width: 1100px;
}

.entry-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.entry-head h3 {
    color: var(--secondary);
}

.entry-dates {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.entry-org {
    color: var(--primary);
    font-weight: bold;
    text-align: left;
    margin-bottom: 0.75rem;
}

.timeline-entry .card ul,
#education .card ul {
    text-align: left;
    padding-left: 1.2rem;
}

.timeline-entry .card li {
    margin-bottom: 0.4rem;
}

#completed {
    max-width: 500px;
}