@import url('/header/header.css');
@import url('/global.css');

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

body,
html {
    height: 100%;
    overscroll-behavior: none;
}

body {
    padding-top: 60px;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 22px;
}


h1:not(.no-underline),
h2:not(.no-underline),
h3:not(.no-underline),
h4:not(.no-underline),
h5:not(.no-underline) {

    display: inline-block;
    border-bottom: 2px solid black;
    padding-bottom: 5px;
    padding-right: 20px;
}

p:not(.no-indent) {
    padding-left: 10px;
}

#landing-image {
    width: 100%;
    position: relative;
    z-index: 1;
}

.banner-container {
    width: 100%;
    height: 300px;
    position: relative;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    /* background-color: green; */
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0px;
    margin-top: 10px;
    z-index: 0;
    position: relative;
}

.column {
    padding: 20px;
}

.custom-link {
    text-decoration: none;
}

.link-wrapper {
    width: 110px;
    margin-top: 9px;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease, padding 0.3s ease;
    border: solid #9191db;
    border-width: 1px 1px;
}

.link-wrapper:hover {
    background-color: #9191db;
}

.site-anchor {
    color: #6418e7;
    padding-left: 10px;
    margin-top: 3px;
    margin-bottom: 3px;
    display: inline-block;
}

.right-column {
    width: 80%;
    margin: 0 auto;
    overflow-y: auto;
    padding-bottom: 20px;
    overflow-x: hidden;
}

.right-column::-webkit-scrollbar {
    display: none;
    /* Hides the scrollbar */
}


.discordButton {
    border: none;
    border-radius: 5px;
    font-size: 15px;
    width: 200px;
    padding: 15px 15px;
    align-self: center;
    justify-content: center;
    display: flex;
    align-items: center;
    color: white;
    background-color: var(--accentSecond);
    margin-top: 60px;
    cursor: pointer;
    transition: background-color 0.5s ease, transform 0.5s ease;
}

.content h2 {
    margin-bottom: 20px;
}

.content p {
    font-size: 1.2em;
}

.content ul {
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;

}

.content li {
    font-size: 1.2em;
}

.projects,
.experience,
.education,
.about {
    margin-bottom: 60px;
}

.types {
    gap: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    place-content: flex-start;
}

.project-title {
    font-size: 2em;
    margin: 0;
    font-weight: 600;
    /* depend de la font */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white
}

.project-type {
    background: #b2b2fd;
    color: #1a41cd;
    font-weight: bold;
    padding: 0.7em 0.7em;
    border-radius: 15px;
    font-size: 18px;
    letter-spacing: -0.6px
}

.project-type:hover {
    background: #1b1b81;
}

.secondary {
    background: transparent;
    color: #777;
    border: 1px solid #777;
}

.custom-date {
    margin-top: 8px;
    margin-bottom: 8px;
    font-style: italic;
    font-size: 16px;
    color: black;
    text-align: center;
}

.experience-column {
    height: 100%;
    flex: 90%;
    overflow: hidden;
}

.location {
    margin-bottom: 15px !important;
    color: #666;
    margin-left: 20px;
}

.experience-column-1 {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    color: black;
}

.work-list {
    display: block !important;
    /* undo flex */
    padding-left: 1.5rem;
    gap: 0 !important;
    /* remove gap */
}

.work-list li:not(:last-child) {
    margin-bottom: 0.75rem;
    /* or whatever spacing you want */
}

.work-list li {
    margin: 0;
    padding: 0;
    line-height: 1.0;
}

.job-title {
    margin-top: 15px;
    margin-bottom: 20px !important;
    margin-left: 10px;
}

.work-description {
    position: relative;
    padding-left: 30px;
    /* font-size: 16px; */
}

.inline-highlight {
    color: #7c3aed;
    font-weight: bold;
}

.side-by-side {
    display: flex;
    align-items: stretch;
    margin-bottom: 30px;
}

.time-column {
    padding-right: 20px;
}

.time-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.time-container {
    margin: 0px;
}

.time-container .horizontal-line {
    height: 1px;
    width: 13px;
    background-color: black;
}

.time-container .vertical-line {
    width: 1px;
    margin-left: 1px;
    background-color: black;
    flex: 1;
    align-self: center;
}

.slideshow-wrapper {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.slideshow-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
}

#slideshow {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-top {
    margin-top: 20px;
    padding-left: 70px;
    padding-right: 70px;
}

.project-content {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0px;
    z-index: 0;
    position: relative;
}

.project-content h2 {
    margin-bottom: 20px;
}

.project-content p {
    font-size: 1.2em;
}

.project-content ul {
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;

}

.project-content li {
    font-size: 1.2em;
}

.project-content {
    flex-direction: column;
}


.project-column {
    /* background-color: yellow; */
    width: 100%;
    overflow-y: auto;
    padding-bottom: 20px;
    overflow-x: hidden;
    padding-top: 20px;
}

.project-column::-webkit-scrollbar {
    display: none;
    /* Hides the scrollbar */
}

.technology-grouping {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.technology-type-lang {
    background: #1ed8de;
    color: #022526;
    font-weight: bold;
    padding: 0.7em 0.7em;
    border-radius: 15px;
    font-size: 18px;
    letter-spacing: -0.6px
}

.technology-type-framework {
    background: #9b5091;
    color: #2f0631;
    font-weight: bold;
    padding: 0.7em 0.7em;
    border-radius: 15px;
    font-size: 18px;
    letter-spacing: -0.6px
}

.technology-type-field {
    background: #c60000;
    color: #250404;
    font-weight: bold;
    padding: 0.7em 0.7em;
    border-radius: 15px;
    font-size: 18px;
    letter-spacing: -0.6px
}

.book-recap-div {
    display: flex;
    flex-direction: row;
    gap: 55px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-summary {
    height: 250px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0 5%;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    padding: 2rem;
    align-items: start;
    transition: box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);


}

.project-summary:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.project-thumbnail {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.project-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}


.stack-s>*+* {
    margin-top: var(--space-300, 1rem);
}

.stack-xs>*+* {
    margin-top: var(--space-200, 0.5rem);
}

.project-title {
    font-weight: 700;
    font-size: 2rem;
    line-height: 2.5rem;
    margin: 0;
    color: var(--text-primary, #000);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-width: 0;
}

.project-description {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5rem;
}

.project-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.keyword {
    display: inline-block;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    color: #7c3aed;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.2s ease;
}

.keyword:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    transform: translateY(-1px);
    border-color: rgba(168, 85, 247, 0.4);
}

.uni-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    height: 140px;
    margin-bottom: 40px;
}

.stat-card {
    flex: 1;
    text-align: left;
    min-width: 150px;
    max-width: 270px;
    flex-basis: 33%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 7px;
    transition: box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px 16px 16px 12px;
}

.stat-label {
    font-size: small !important;
    margin: 0;
    color: #666;
}

.stat-value-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.stat-value {
    font-size: 26px !important;
    color: black;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
    padding: 10px;
    font-weight: 600;
}

.image-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-end;
    padding: 20px 0;
    flex-wrap: wrap;
}

.image-row figure {
    text-align: center;
}

.image-row img {
    width: 100%;
    max-width: 350px;
    height: 400px;
    object-fit: contain;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    justify-items: center;
    padding-top: 20px;
}

.favorites-grid figure {
    width: 150px;
    text-align: center;
}

.favorites-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* If mobile screens */
@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .image-row {
        flex-direction: column;
        align-items: center;
    }

    .image-row img {
        width: 100%;
        max-width: 300px;
    }

    .project-summary {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        grid-template-rows: 200px auto;
        /* Image takes 200px, text takes remaining */
        gap: 1rem 0;
        /* Vertical gap instead of horizontal */
        height: auto;
        /* Let height adjust automatically */
    }

    .book-recap-div {
        flex-direction: column;
    }

    .technology-grouping {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .column {
        padding-top: 0px;
        padding-bottom: 10px;
    }

    .link-wrapper {
        padding: 2px;
    }

    .content {
        margin-top: 30px;
    }

    .uni-stats {
        flex-direction: column;
        align-items: center;
        height: auto;
        margin-bottom: 40px;
    }

    .stat-card {
        flex-basis: auto;
        width: 100%;
        margin-bottom: 20px;
    }


    .top-blurb {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .content {
        flex-direction: column;
    }

    .right-column {
        width: 100%;
        overflow-y: visible;
        max-height: none;
    }

    .custom-date {
        font-size: 10px;
    }

    .time-column {
        padding-right: 10px;
    }


    .card svg {
        scale: 0;
    }

    .card .card__content {
        transform: rotateX(0deg);
    }

    .card {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
    }

    /* Hide the time-column */
    .time-column {
        display: none;
    }

    /* Show custom-date at the top of each experience item */
    .experience-column .experience-column-1 {
        position: relative;
    }

    .experience-column .experience-column-1::before {
        content: attr(data-date-range);
        display: block;
        font-style: italic;
        color: #fff;
        text-align: center;
        margin-bottom: 10px;
    }
}