:root {
    --bg: #07111f;
    --bg-soft: #0c1728;
    --surface: rgba(15, 29, 48, .78);
    --surface-strong: #101f34;
    --text: #eef5ff;
    --muted: #a7b7cb;
    --line: rgba(255, 255, 255, .11);
    --accent: #65e6c7;
    --accent-2: #8aa7ff;
    --primary-color: #f5f8fc;
    --secondary-color-light: #8aa7ff;
    --secondary-color-dark: #5874d8;

}

html {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background-color: transparent;
    line-height: 1.7rem;
}

body {
    padding: 0;
    margin: 0;
}

body .container {
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 10% 0%, rgba(101, 230, 199, .09), transparent 28rem), radial-gradient(circle at 90% 12%, rgba(138, 167, 255, .12), transparent 30rem), #f5f8fc;
}


/***********************************
*
* Header Section
*
************************************/
header h1,
header h2 {
    margin: 0;
}

.header-container {

    background-color: rgba(7, 17, 31, .72);
    color: white;
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    width: 100%;
    justify-content: center;
    z-index: 4;

    /* 🔑 required for Firefox */
    transform-origin: top center;
    will-change: transform;
    overflow-y: hidden;
}

.header-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    height: 110vh;
    /* adjust to your header size */
    z-index: 4;
}

.header-container {
    transform-origin: top center;
    will-change: transform;
}



.picture-container h1 {
    font-weight: 800;
    text-align: center;
}

.picture-container h2 {
    font-weight: 400;
}

.header-container header .picture-container {
    margin-top: 0;
}

header .header-container.expanded .picture-container {
    width: 100%;
    margin: 0 auto;
    margin-top: 3em;
    text-align: center;
    display: flex;
    flex-direction: row;
    font-size: 70%;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

#my-picture {
    border-radius: 100%;
    box-shadow: 1px 1px 10px 1px grey;
    width: 130px;
    height: 150px;
    margin: 0 auto;


}

.arrow-container {
    align-self: center;
}



nav h2,
nav h3 {
    text-align: center;

}

.social-links-container {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 15px;
    align-items: center;
}

.social-links-container a {
    margin: 0;
    color: white;
    transition: color 0.2s ease, fill 0.2s ease;
}

.social-links-container a:hover,
.social-links-container a:focus,
.social-links-container a:active {
    color: lightgrey;
}


.portfolio-icon box-icon {
    margin-right: 10px;
    color: white;
    fill: white;
}

.portfolio-icon box-icon {
    transition: color 0.2s ease, fill 0.2s ease;
}

.portfolio-icon:hover box-icon {
    color: lightgrey;
    fill: lightgrey;
}

/***********************************
*
* Content/Sections
*
************************************/
section {
    padding: 5px;
}

.main-content-container {
    padding: 10px;
    flex-grow: 1;
    margin: 120px auto 10px auto;
    width: 85%;
}

.main-content-container.expanded {
    margin: 90vh auto 10px auto;
}


.main-content-container h1 {
    margin: 15px;
}

.content-body {
    position: relative;
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(20, 36, 58, .08);
}

h3.section-heading {
    text-align: center;
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem;
    padding: 0;
    border: 0;
    color: #111c2e;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 750;
    letter-spacing: -.04em;
}

h3.section-heading::after {
    content: "";
    display: block;
    width: 2.6rem;
    height: 3px;
    margin: .55rem auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}



/***********************************
*
* Expertise Section
*
************************************/
.expertise-container {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.expertise-container i {
    font-size: 3rem;
    height: auto;
    color: rgb(0, 0, 0);
}

.badge-background {
    width: 86px;
    height: 86px;
    margin: 0;
    border: 1px solid #e0e7ef;
    background: #fff;
    border-radius: 18px;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    text-align: center;
    align-content: center;

}

.badge-background:hover,
.badge-background:active,
.badge-background:focus {
    background: #fff;
    transform: translateY(-4px);
    border-color: #c9d5e5;
    box-shadow: 0 12px 28px rgba(20, 36, 58, .10);
}

/***********************************
*
* Education Section
*
************************************/
.education-container p
{
    text-align: center;
}

/***********************************
*
* Timeline
*
************************************/
.timeline__item-content h3 {
    font-weight: 500;
}

.timeline__item-content h4 {
    font-weight: 400;
}

.timeline__item-content h5 {
    font-weight: 400;
}

.timeline__item-content h3,
.timeline__item-content h4,
.timeline__item-content h5 {

    margin-left: 15px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.timeline__headings {

    background-color: #f7f9fc;
    text-align: start;
    border-radius: 5px;
    border-bottom: 1px solid #e7edf4;
    padding: 1rem 1.25rem;
}

.timeline-container {

    margin-left: 5px;
    border-left: 10px solid #dbe4ef;
    position: relative;
}

.timeline__item {
    position: relative;
    margin: 0 0 1.25rem;
    padding: 0;
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(20, 36, 58, .07);
    overflow: hidden;
}


.timeline-container__symbol {
    position: relative;
}

.timeline__item-content {
    margin-top: 0px;

}

.timeline__outer-circle {
    position: absolute;
    top: 32px;
    left: -20px;
    width: 20px;
    height: 20px;
    border-radius: 50px;
    background-color: rgb(255, 255, 255);
    border: 5px solid #dbe4ef;
    z-index: 1;
}

/***********************************
*
* Train Timeline
*
************************************/
@keyframes move-train-up {

    from {
        bottom: 0
    }

    to {
        bottom: 95%;
    }
}

@keyframes shaking {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        display: none;
    }
}


#timeline-train {
    position: absolute;
    bottom: 0%;
    left: 0%;
    width: 19.5px;
    height: 50px;
    background: #f8f5f5;
    border-radius: 0% 100% 0% 0% / 0% 10% 0% 0%;
    z-index: 3;
    animation: move-train-up 10s, shaking 10s;
    border: 1px solid black;
}

#door-red-one {
    position: absolute;
    top: 34%;
    left: 0%;
    width: 20px;
    height: 20px;
    background: #ff0000;
    z-index: 1;
}

#door-red-two {
    position: absolute;
    top: 100%;
    left: 0%;
    width: 20px;
    height: 20px;
    background: #ff0000;
    z-index: 2;
}

#train-end {
    position: absolute;
    top: 100%;
    width: 19.5px;
    left: -3%;
    height: 50px;
    background: #ffffff;
    border-radius: 0% 0% 100% 0% / 0% 0% 10% 0%;
    border: 1px solid black;
    z-index: -1;
}

#blue-highlight {
    position: absolute;
    top: 2%;
    left: 2%;
    width: 2px;
    height: 100px;
    background: #0537ff;
    z-index: 2;
}

#window-inner-one {
    position: absolute;
    top: 40%;
    left: 30%;
    width: 10px;
    height: 13px;
    background: #c7f4ff;
    z-index: 2;
    border-radius: 3px;
}

#window-inner-two {
    position: absolute;
    top: 107%;
    left: 30%;
    width: 10px;
    height: 13px;
    background: #c7f4ff;
    z-index: 2;
    border-radius: 3px;
}

.train-hide {
    top: 0;
    bottom: 95%;
    display: none;
    opacity: 0;
}

/***********************************
*
* Projects Section
*
************************************/
.projects-list {

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    justify-content: center;
    margin: 0;
}

.projects-list-item__title {
    padding: 1.1rem 1.25rem .65rem;
    background-color: rgb(247, 249, 252);

}

.projects-list-item {
    width: auto;
    max-width: none;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e9f1;
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(20, 36, 58, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.projects-list-item h3 {
    margin: 0;
    color: #142138;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 750;
    text-align: left;
}


.projects-list-item h4 {
    margin: 0.3em auto;
    color: #7b899b;
    text-align: left;
    font-size: .82rem;
    font-weight: 500;
}

.projects-list-item a,
.projects-list-item a:visited {
    text-decoration: none;
    background-color: var(--secondary-color-dark);
    color: white;
    padding: 0.5em;
    margin-top: 0.3em;
    border-radius: 5px;
    display: block;
    text-align: center;
}

.projects-list-item a:hover,
.projects-list-item a:active,
.projects-list-item a:focus {
    background-color: var(--secondary-color-light);
}


.projects-list-item img {
    overflow: visible;
    width: 100%;
}

.project-details {
    width: 75%;
    margin: 0 auto;
}

.project-details a {
    text-align: center;
    display: block;
    color: white;
    border-radius: 5px;
    padding: 0.5em;
    background-color: var(--secondary-color-dark);
    text-decoration: none;
}

.project-details a:hover,
.project-details a:active,
.project-details a:focus {
    background-color: var(--secondary-color-light);
}

.content-body.project-details h3.section-header {

    display: block;
    text-align: center;
}


/****************************
*
* Swiper Styles
*
*****************************/
.swiper {
    height: 280px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
}


.introduction-picture-container {
    display: flex;
    flex-grow: 2;
    flex-direction: column;
    margin: 0 auto;
    height: 50%;
    line-height: 1.2;
    align-content: center;

    will-change: opacity, transform;
}

.line-1-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap:0.5em;
}

.line-1 {
    display:inline-block;
    text-align: center;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 800;
    color: #fff;
}

.line-1--highlight {
    color: var(--secondary-color-light);
}

.line-2 {
    text-align: center;
}


.line-2::after {
    content: "";
    display: block;
    width: 2.6rem;
    height: 3px;
    margin: .55rem auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}



.line-3 {
    text-align: center;    
    width: 50%;
    margin: 2em auto;
    /* margin-top: 1em; */
}


/* Animation */
.anim-fade-in {
    animation: fade-down 0.5s steps(44) 1s 1 normal both;
}

.anim-slot-move-down {
    position: relative;
    animation: slot-cycle 4s ease-in-out infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}



@keyframes fade-down {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes blinkTextCursor {
    from {
        border-right-color: rgba(255, 255, 255, .75);
    }

    to {
        border-right-color: transparent;
    }
}

/***********************************
*
* Mobile responsive
*
************************************/

@media (max-width: 800px) {

    html {
        font-size: 1rem;
    }

    /* Responsive layout - makes a one column layout instead of a two-column layout */
    body .container {
        flex-direction: column;
    }

    h3.section-heading {
        font-size: 1.4rem;
    }

    .expertise-container {
        width: 100%;
    }

    .expertise-container i {
        font-size: 2rem;
        height: auto;
        color: rgb(0, 0, 0);
    }

    .badge-background {
        width: 50px;
        height: 50px;
    }

    .project-details {
        width: 95%;
    }
}