body {
    /* ─── Colour Palette ─────────────────────────────── */
    --white-smoke:      #F4F4F4;
    --sky-reflection:   #7BAFD4;
    --graphite:         #333333;
    --deep-space-blue:  #19374D;
    --soft-fawn:        #C9B083;

    /* ─── Typography ─────────────────────────────────── */
    --font-heading: "Inter", "Space Grotesk", "Satoshi", sans-serif;
    --font-body:    "IBM Plex Sans", "Source Sans Pro", "Manrope", sans-serif;

    /* ─── Radius / Shape Language ────────────────────── */
    --radius-base: 4px;
    --radius-sm:   2px;
    --radius-lg:   6px;




    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--white-smoke);
    
}

header {
    background-color: var(--white-smoke);
    color: var(--graphite);
    padding: 20px 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
    }

.header-content {
    display: flex; 
    align-items: baseline;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    }

h1 {
margin: 0; 
font-size: 2.5em;
font-family: var(--font-heading);
white-space: nowrap;
flex-shrink: 0;
}
h2 {
margin: 0;
font-size: 1.8em;
font-family: var(--font-heading);
}
h3 {
margin: 0;
font-size: 1.5em;
font-family: var(--font-heading);
}
h4 {
margin: 0;
font-weight: normal;
font-size: 1.2em;
font-family: var(--font-heading);
letter-spacing: 0.1em;
white-space: nowrap;
flex-shrink: 0;
}

.header-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    
}

#title-chevron {
    color: var(--sky-reflection);
    font-size: 2em;

    animation: slideIn 1s ease-in-out;
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-menu ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.header-menu a {
    text-decoration: none;
    color: var(--graphite);
    font-weight: bold;
    transition: color 0.3s ease;
}

.header-menu a:hover {
    color: var(--sky-reflection);
}


.sidebar {
    position: absolute;
    right: 0;
    width: 320px;
    height: 100%;
    background: var(--white-smoke);
    overflow-y: auto;
    z-index: 998;

    animation: slideOut auto linear;
    animation-timeline: scroll(root);
}


@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(200%);
        visibility: hidden;
    }
}

.sidebar-content {
    padding: 30px 20px;
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--sky-reflection);
}

.sidebar-name {
    font-size: 1.5em;
    font-family: var(--font-heading);
    color: var(--graphite);
    margin: 15px 0 10px;
}

.sidebar-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin: 0 0 20px;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--base-radius);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--deep-space-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--graphite);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--soft-fawn);
    color: white;
}

.btn-secondary:hover {
    background-color: #c4a76b;
    transform: translateY(-2px);
}

/* Mobile devices */
@media (max-width: 1185px) {
    header {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .header-content {
        justify-content: center;
        flex-wrap: wrap;
        flex-shrink: 1;
    }
    
    h1 {
        font-size: 1.8em;
        white-space: normal;
        flex-shrink: 1;
    }
    
    h4 {
        font-size: 0.9em;
        white-space: normal;
        flex-shrink: 1;
    }
    
    #title-chevron {
        font-size: 1.4em;
    }
    
    .header-menu {
        justify-content: center;
    }
    
    .header-menu ol {
        flex-direction: row;
        gap: 10px;
        text-align: center;
        font-size: 0.9em;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .sidebar {
        display: none;
    }
}

/* Main Content */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 2em;
    font-family: var(--font-heading);
    color: var(--deep-space-blue);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--sky-reflection);
    padding-bottom: 10px;
}

.content-section p {
    color: #666;
    line-height: 1.6;
    font-size: 1.05em;
}

footer {
    background-color: var(--deep-space-blue);
    color: var(--white-smoke);
    text-align: center;
    padding: 20px 30px;
}

footer .socials-links a {
    color: var(--white-smoke);
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

footer .socials-links a:hover {
    color: var(--sky-reflection);
}

/* ──────────────────────────────── Experience Cards ───────────────────────────── */
.experience-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 30px;
}

.experience-container h2 {
    font-size: 2em;
    font-family: var(--font-heading);
    color: var(--deep-space-blue);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--sky-reflection);
    padding-bottom: 10px;
}

.card-experience {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(25, 55, 77, 0.1);
    padding: 24px;
    margin-bottom: 20px;
    border-left: 5px solid var(--sky-reflection);
    transition: all 0.3s ease;
    position: relative;
}

.card-experience:hover {
    box-shadow: 0 6px 16px rgba(25, 55, 77, 0.15);
    transform: translateY(-2px);
}

.card-experience .extra-info {
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 1.2s ease;
    font-family: var(--font-body);
    color: #666;
}

.card-experience:hover .extra-info {
    visibility: visible;
    max-height: 500px;
    transition: all 2s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 20px;
}

.card-experience h3 {
    font-family: var(--font-heading);
    color: var(--deep-space-blue);
    font-size: 1.3em;
    margin: 0;
}

.duration {
    font-size: 0.9em;
    color: var(--sky-reflection);
    font-weight: 600;
    white-space: nowrap;
}

.employer {
    color: var(--graphite);
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.responsibilities {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    color: #666;
    line-height: 1.7;
}

.responsibilities li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.responsibilities li:before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--sky-reflection);
    font-weight: bold;
}

/* Mobile devices */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
    }
    
    .duration {
        white-space: normal;
    }
    
    .card-experience {
        padding: 20px;
        border-left: 4px solid var(--sky-reflection);
    }
}

/*---- skills-container ----*/
.skills-container {
        max-width: 900px;
    margin: 0 auto;
    padding: 40px 30px;
}

.skills-container li {
    font-size: 1.05em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.card-skills {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(25, 55, 77, 0.1);
    padding: 24px;
    margin-bottom: 20px;
    border-left: 5px solid var(--sky-reflection);
}

.card-skills h2 {
    font-family: var(--font-heading);
    color: var(--deep-space-blue);
    font-size: 1.3em;
    margin: 0 0 16px 0;
}

.card-skills ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-skills li:before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--sky-reflection);
    font-weight: bold;
}

/* ----- */

main h2 {
    font-size: 2.5em;
    font-family: var(--font-heading);
    color: var(--deep-space-blue);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--sky-reflection);
    padding-bottom: 10px;
}

/* --- contact form --- */
.form-contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
}

.form-contact h3 {
    font-size: 2em;
    font-family: var(--font-heading);
    color: var(--deep-space-blue);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--sky-reflection);
    padding-bottom: 10px;
}

.form-contact label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-contact input,
.form-contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1em;
    margin-bottom: 20px;
}

.form-contact button {
    background-color: var(--sky-reflection);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.form-contact button:hover {
    background-color: var(--deep-space-blue);
}

@media (max-width: 768px) {
    .form-contact {
        padding: 20px;
        align-items: center;
    }
    .form-contact h3 {
        font-size: 1.5em;
        text-align: center;
    }
    .form-contact button {
        width: 100%;
        align-self: center;
    }

    .form-contact form {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        margin-right: 20px;
    }

    .form-contact input,
    .form-contact textarea {
        padding: 10px;
        width: 100%;
        border-radius: var(--radius-lg);
    }
}

/* ──────────────────────────────── Projects Grid ───────────────────────────── */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
}

.projects-container h2 {
    font-size: 2.5em;
    font-family: var(--font-heading);
    color: var(--deep-space-blue);
    margin-bottom: 40px;
    border-bottom: 3px solid var(--sky-reflection);
    padding-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.project-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(25, 55, 77, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
}

.project-card:hover {
    box-shadow: 0 8px 16px rgba(25, 55, 77, 0.15);
    transform: translateY(-4px);
}

.project-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.project-image,
.project-image-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    background-color: #E8F0F6;
}

.project-image-placeholder {
    background: linear-gradient(135deg, var(--sky-reflection) 0%, var(--deep-space-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.project-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title a {
    font-size: 1.3em;
    font-family: var(--font-heading);
    color: var(--deep-space-blue);
    margin: 0 0 12px 0;
    font-weight: 600;
    text-decoration: none;
}

.project-title a:hover {
    color: var(--sky-reflection);
    text-decoration: underline;
}
.project-description {
    color: #666;
    font-size: 0.95em;
    margin: 0 0 16px 0;
    flex-grow: 1;
    line-height: 1.5;
}


.project-image {
    width: 100%;
    height: 180px;
    object-fit: fill;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    align-self: right;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    background-color: #E8F0F6;
    color: var(--deep-space-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

@media (max-width: 1185px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-container h2 {
        font-size: 2em;
    }
}

/* ──────────────────────────────── Project Page ───────────────────────────── */
.project-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(25, 55, 77, 0.1);
    display: flex;
    flex-direction: column;
}

.project-content {
    width: 100%;
    overflow-x: hidden;
}



@media (max-width: 768px) {
    .project-container {
        padding: 30px 20px;
    }

}