/* #region Global */
:root {
    font-size: 62.5%; /* 1rem = 10px */

    /* Variables */
    --text-color-main: #EAEAEA;
    --text-gradient-main: #b1b1b1;

    --text-color-mid: #C1C1C1;

    --text-color-sub: #a0a0a0;
    --text-gradient-sub: #5e5e5e;

    --color-main: 101, 33, 240; /* #6521F0 (Purple) */

    --color-background-light: #171717;
    --color-background-dark: #0B0B0B;

    --glassmorphic-border: rgba(255, 255, 255, 0.2);

    --section-distance: 128px;
    --background-grid-size: 50px;
    --debug-transparency: 0.0 /* Set to 0 for prod | Set to 0.5 for building */
}

/* All */
* { box-sizing: border-box; } /* All elements' sizes also count their margin and padding */ 

body,html {
    margin: 0; padding: 0;
    height: 100vh; width: 100vw;
    overflow-x: hidden; /* Don't show scroll bars when elements are out of the viewport */

    scroll-behavior: smooth;

    /* Font */
    font-size: 2rem;
    font-weight: 400; /* 100 ~ 900 */
    color: var(--text-color-main);
    /* Archivo Font */
    font-family: "Archivo", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-variation-settings: "wdth" 100;

    /* Background gradient */
    background: linear-gradient(to bottom right, var(--color-background-light),
                                                var(--color-background-dark));
}

/* #region Background grid */
body::before {
    content: "";
    position: absolute;
    inset: 0; /* Set top, left, width, and height to 0 */
    
    background-image: /* Background grid */
        repeating-linear-gradient( /* Horizontal lines */
            transparent 1px, transparent calc(var(--background-grid-size) - 1px),
            rgba(255, 255, 255, 0.03) var(--background-grid-size)),
        repeating-linear-gradient( /* Vertical lines */
            90deg, transparent 1px, transparent calc(var(--background-grid-size) - 1px),
            rgba(255, 255, 255, 0.03) var(--background-grid-size));

    /* Grid size */
    background-size: var(--background-grid-size) var(--background-grid-size);
    pointer-events: none;
}
/* #endregion */
/* #endregion */

/* #region Navbar */
.navbar {
    display: flex;
    overflow: hidden;
    position: fixed; /* Navbar follows */

    left: 50%; /* Center fixed element */
    transform: translate(-50%, -50%); /* Center fixed element */
    top: 3.6rem;

    z-index: 1000; /* Always in front */
    justify-content: center; align-items: center; text-align: center; /* Center everything */

    /* Size */
    width: 40%;
    height: 48px;
    border-radius: 16px;

    /* Background */
    background-color: rgba(100, 100, 100, 0.1);
    backdrop-filter: blur(10px);

    /* Border and Shadow */
    border: 1px solid var(--glassmorphic-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    /* Text */
    font-size: 1.8rem;
}

.nav-section {
    flex: 1; /* Makes each section take equal width */
    padding: 15px 0px; /* Creates space inside sections */
    position: relative; /* Needed for pseudo-element */

    border-radius: 16px;

    /* Text */
    text-decoration: none;
    color: var(--text-color-sub)
}
.nav-section:hover {
    cursor: pointer;
    box-shadow: inset 0px 0px 16px #9c6ef766; /* Color bleed */
}
.nav-section:active {
    box-shadow: inset 0px 0px 24px #9c6ef788; /* Color bleed */
}
/* Adding a thin separator with a small gap */
.nav-section:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 13%; /* Creates gap from the top */
    bottom: 13%; /* Creates gap from the bottom */
    right: 0; /* Aligns to the right */
    width: 1px; /* Thin separator */
    background-color: var(--glassmorphic-border); /* Subtle line */
}

.nav-icon {
    margin-right: 4px;
}
/* #endregion */
/* #region Navbar - Reponsive */
@media (max-width: 1450px) {
    .navbar {
        width: 40%;
        justify-self: center;
    }
    /* Disable Labels */
    .nav-section span {
        display: none;
    }
}
@media (max-width: 800px) {
    .navbar {
        width: 300px;
    }
}
/* #endregion */

/* #region Assets */
.glass-div {
    width: fit-content; height: fit-content;

    /* Display */
    display: flex;

    /* Background */
    background-color: rgba(100, 100, 100, 0.1);
    backdrop-filter: blur(10px);

    /* Border and Shadow */
    border-radius: 16px;
    border: 1px solid var(--glassmorphic-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.5));

    /* Text */
    color: var(--text-color-mid);
    font-size: 2rem;
    font-weight: 300;
    text-decoration: none;
    letter-spacing: 0.08rem;
    line-height: 2.4rem;
    
    padding: 24px;
}

.grid-square {
    --grid-item-size: 64px;

    width: fit-content; height: 100%;
    display: grid;

    grid-template-columns: repeat(4, minmax(var(--grid-item-size), auto)); /* Dynamic column amount */
    grid-auto-rows: var(--grid-item-size); /* Row height */
    gap: 16px; /* Optional gap between items */
    justify-content: left; /* Grid is anchored to the left */

    /* Debug */ background-color: rgba(140, 0, 60, var(--debug-transparency));
}
/* #endregion */

/* #region Info Card */
.info-card-title-half {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    /* Debug */ background-color: rgba(0, 150, 100, var(--debug-transparency));
}

.info-card-title {
    display: block;
    margin-left: 2rem;
    /* Debug */ background-color: rgba(150, 150, 0, var(--debug-transparency));
}
.info-card-title a:first-child { /* Title */
    display: block;
    font-size: 3.6rem;
    font-weight: 800;
    /* Debug */ background-color: rgba(150, 0, 0, var(--debug-transparency));
}
.info-card-title a:last-child { /* Subtitle */
    display: block;
    margin-top: 1rem;
    color: var(--text-color-sub);
    font-size: 2rem;
    font-weight: 300;
    /* Debug */ background-color: rgba(0, 150, 0, var(--debug-transparency));
}

.info-card-icon {
    width: 120px;
    height: 120px;
    padding: 12px;
    border-radius: 12px;
    flex-shrink: 0; /* Avoid being squished at small window width */
}
.info-card-icon img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
/* #endregion */

/* #region Hyperlinks */
.hyperlink {
    color: var(--text-color-main);
    text-decoration: none;
    transition-duration: 0.1s;
}

.hyperlink:hover {
    filter: drop-shadow(0.3rem 0.3rem 0.3rem #181818);
    cursor: pointer;
}
/* #endregion */

/* #region Text Styling */
.text-color-main {
    color: var(--text-color-main);
}

.text-color-sub {
    color: var(--text-color-sub)
}

.text-gradient-main {
    background-image: linear-gradient(to Bottom right, var(--text-color-main) 0%, var(--text-gradient-main) 100%);
    background-clip: text;
    color: transparent;
}

.text-gradient-sub {
    background: linear-gradient(to Bottom right, var(--text-color-sub) 0%, var(--text-gradient-sub) 100%);
    color: transparent;
    background-clip: text;
}
/* #endregion */

/* #region Hero */
.hero-section {
    margin-left: auto;
    margin-right: auto;
    margin-top: 7.2rem;

    width: 80%;
    height: 80%;
    
    display: flex;
    justify-content: space-between;

    /* Debug */ background-color: rgba(100, 100, 100, var(--debug-transparency));
}

/* #region Info Half */
.hero-info-half {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column; /* Align the children vertically */

    /* Debug */ background-color: rgba(0, 0, 140, var(--debug-transparency));
}

.hero-text-container {
    display: flex;
    flex: 40; /* Take up x% of the container's height */
    flex-direction: column; /* Make both text sections stack vertically */

    /* Debug */ background-color: rgba(140, 140, 0, var(--debug-transparency));
}

.hero-text-container div { /* Text boxes within the hero text section */
    display: flex;
    height: 100%;
    
    /* Debug */ background-color: rgba(140, 140, 140, var(--debug-transparency));
}

.hero-text-title {
    font-size: 4.8rem;
    font-weight: 900;
    align-items: center;
    flex: 10;
}

.hero-text-sub {
    font-size: 2.4rem;
    margin-top: 1rem; /* Gap between the two lines */
    flex: 100;
}

.hero-languages-container {
    display: flex;
    flex: 25;
    align-items: center;

    /* Debug */ background-color: rgba(140, 140, 140, var(--debug-transparency));
}

.hero-cta-container {
    display: flex;
    flex: 35; /* Take up x% of the container's height */

    /* Debug */ background-color: rgba(0, 140, 140, var(--debug-transparency));
}
/* #endregion */

/* #region Photo Half */
.hero-photo-half {
    width: 50%;
    height: 85%;
    display: flex;

    margin-top: auto;
    margin-bottom: auto;

    /* Debug */ background-color: rgba(0, 140, 0, var(--debug-transparency));
}

.hero-photo {
    margin: auto;

    /* Image is restrained to whichever axis is smaller */
    object-fit: cover;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;

    border-radius: 100%; /* Rounding image */

    border: 3px solid rgba(255, 255, 255, 0.2); /* Border */
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.5); /* Shadow */
}
/* #endregion */

/* #region CTA Button */
.hero-cta-button {
    /* Size */
    width: 70%;
    height: 50%;
    max-height: 8rem;
    max-width: 40rem;

    /* Display */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Background */
    background-color: rgba(var(--color-main), 0.8);
    backdrop-filter: blur(10px);

    /* Border and Shadow */
    border-radius: 24px;
    border: 2px solid var(--glassmorphic-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0px 0px 24px #9c6ef766; /* Color bleed */

    transition-duration: 0.1s;

    /* Text */
    color: var(--text-color-main);
    font-size: 2.4rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;

    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.5));
}
.hero-cta-button:hover {
    cursor: pointer;
    filter: drop-shadow(0px 0px 16px #9164EC55)
            drop-shadow(0px 4px 4px #000000);
} 
.hero-cta-button:active {
    transition-duration: 0.05s;
    translate: 0px 3px;
    filter: drop-shadow(0px 0px 8px #9164EC55)
            drop-shadow(0px 4px 6px #000000);
}
/* #endregion */

/* #endregion */
/* #region Hero - Responsive */
@media (max-width: 1300px) {
    .hero-section {
        width: 95%;
    }
}
@media (max-width: 950px) {
    .hero-cta-button {
        font-size: 2rem;
    }
}
@media (max-width: 800px) {
    .hero-section {
        flex-direction: column;
        height: fit-content;
        margin-top: 72px;
    }

    .hero-photo-half {
        width: 100%;
        order: -1;
    }
    .hero-photo {
        object-fit: cover;
        width: auto;
        height: auto;
        max-width: 50%;
    }

    .hero-info-half {
        width: 100%;
        margin-top: 2.4rem;
    }
    .hero-text-title {
        text-align: center;
        justify-content: center;
    }
    .hero-text-sub {
        text-align: center;
        justify-content: center;
    }
    .hero-languages-container {
        margin-top: 4.8rem;
        justify-content: center;
    }

    .hero-cta-container {
        margin-top: 3.2rem;
        justify-content: center;
    }
    .hero-cta-button {
        height: 8rem;
        max-height: 1000rem;
        font-size: 2.4rem;
        white-space: wrap;
    }
}
/* #endregion */

/* #region Language Icons */
.language-icon {
    display: flex;
    width: var(--grid-item-size);
    height: var(--grid-item-size);
    padding: 4px;
    
    /* background-color: #202020; */
    /* outline: 4px solid #141414; */
    filter: drop-shadow(0rem 0rem 0.75rem rgba(50, 50, 50, 0.75));
    border-radius: 0.5rem;
}
.language-icon img {
    object-fit: cover;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}
/* #endregion */

/* #region Parcours */
.parcours-section {
    margin-left: auto; margin-right: auto;
    margin-top: var(--section-distance);

    width: 80%;
    height: fit-content;
    
    display: block;

    /* Debug */ background-color: rgba(100, 100, 100, var(--debug-transparency));
}

.section-title-container {
    height: 25%;

    font-size: 4.6rem;
    font-weight: 900;

    padding-bottom: 30px;

    /* Debug */ background-color: rgba(100, 0, 0, var(--debug-transparency));
}

.section-content-container {
    display: flex;
    height: 75%;
    margin-top: 2%;
    /* Debug */ background-color: rgba(0, 0, 100, var(--debug-transparency));
}

.parcours-grid {
    width: 100%;
    height: 100%;
    justify-items: center;

    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: 42px;
    grid-row-gap: 64px;
}

.parcours-info-card {
    width: 50%
}

.parcours-date {
    color: var(--text-color-mid);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
}
/* #endregion */
/* #region Parcours - Responsive */
@media (max-width: 1300px) {
    .parcours-section {
        width: 95%;
    }
    .parcours-info-card {
        width: 100%;
    }
}
@media (max-width: 631px) {
    .parcours-card-title {
        font-size: 2.4rem;
    }
}
/* #endregion */

/* #region Competences */
.competences-section {
    margin-left: auto; margin-right: auto;
    margin-top: var(--section-distance);

    width: 80%;
    height: fit-content;
    
    display: block;

    /* Debug */ background-color: rgba(100, 100, 100, var(--debug-transparency));
}

.competences-grid {
    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 42px;
    grid-row-gap: 64px;
}
/* #endregion */
/* #region Competences - Responsive */
@media (max-width: 1300px) {
    .competences-section {
        width: 95%;
    }
    .competences-grid {
        grid-column-gap: 16px;
    }
}
@media (max-width: 1050px) {
    .competences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 750px) {
    .competences-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* #endregion */

/* #region Expérience */
.expander {
  width: 80vw;
  background: rgba(0,0,0,0);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(6,24,80,0.06);
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition-duration: 0.2s;
}
.expander:hover {
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.expander__head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-weight: 600;
  color: #EAEAEA;
}
.expander__content {
  padding: 12px;
  display: none; /* start hidden */
}
.chev {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}
.rotated {
  transform: rotate(180deg);
}
/* #endregion */

/* #region Contact */
.contact-section {
    margin-left: auto; margin-right: auto;
    margin-top: var(--section-distance);

    width: 80%;
    height: fit-content;
    
    display: block;

    /* Debug */ background-color: rgba(100, 100, 100, var(--debug-transparency));
}

.contact-container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.contact-container .email-address {
    text-decoration: underline;
    letter-spacing: 1px;
    color: var(--text-color-main);
    font-size: 2.4rem;
    font-weight: 500;
    margin-top: 4rem;
}
.contact-container .hero-cta-button {
    margin-left: auto; margin-right: auto;
    margin-top: 4rem;
    word-spacing: -0.5rem;
}

.contact-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 6rem;
}
.contact-icons a {
    text-decoration: none;
    font-size: 4rem;
    color: var(--text-color-sub);

    transition: color 0.3s ease-in-out;
}
.contact-icons a:hover {
    color: var(--text-color-main);
}

.contact-alert {
    border: 1px solid #ebd620;
    text-align: left;
    max-width: 60rem;
    margin-left: auto; margin-right: auto;

    margin-bottom: 6rem;
}
.contact-alert i {
    color: #ebd620;
    margin-right: 1rem;
}

/* #endregion */
/* #region Contact - Responsive */
@media (max-width: 950px) {
    .contact-section {
        width: 95%;
    }
}
@media (max-width: 950px) {
    .contact-container .hero-cta-button {
        font-size: 2.4rem;
    }
}
/* #endregion */

/* #region Modifiers */
.no-rounding img {
    border-radius: 0px;
}
/* #endregion */