* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

body {
    background: black;
    color: white;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.header-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.navbar {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    background: rgba(211, 211, 211, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 30px;
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    transition: all 0.3s ease;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}
.navbar.expanded {
    background: rgba(211, 211, 211, 0.1);
    backdrop-filter: blur(10px);
}

.navbar.collapsed {
    width: 60px;
    height: 60px;
    left: 30px;
    transform: translateX(0);
    cursor: pointer;
    background: rgba(211, 211, 211, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar.collapsed.active {
    width: 60%;
    background: rgba(211, 211, 211, 0.1);
    backdrop-filter: blur(10px);
}

.menu-icon span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.collapsed ul {
    opacity: 0;
    pointer-events: none;
}

.menu-icon {
    display: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
}

.navbar.collapsed .menu-icon {
    display: block;
    width: 24px;
    margin-left: 39px;
    margin-top: 5px;
}

.menu-icon span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 3px;
}

.navbar ul li {
    display: inline-flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.navbar ul li.dropdown {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 12px);
    background: rgba(211, 211, 211, 0.15);
    backdrop-filter: blur(12px);
    border: 2px solid white;
    border-radius: 18px;
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 1100;
}

.dropdown-menu::before,
.dropdown-menu::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-menu::before {
    top: -12px;
    border-style: solid;
    border-width: 12px 14px 0 14px;
    border-color: white transparent transparent transparent;
}

.dropdown-menu::after {
    top: -10px;
    border-style: solid;
    border-width: 11px 13px 0 13px;
    border-color: rgba(211, 211, 211, 0.15) transparent transparent transparent;
}

.dropdown-menu a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 24px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.navbar.collapsed .dropdown-menu {
    display: none;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px 0 70px 0;
    margin-bottom: 25px;
    background: rgba(211, 211, 211, 0.1);
    backdrop-filter: blur(5px);
    width: 95%;
    padding: 20px;
    border-radius: 0 20px 20px 0;
    margin-right: auto;
    position: relative;
}
.photo {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    margin-right: 20px;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    color:black
}

.text-container.text-left {
    align-items: flex-start;
}

.text-2 {
    font-size: 18px;
    color: white;
    padding: 10px;
    border-radius: 10px;
}

.text-1 {
    display: none;
}

.text-container.light-text {
    color: white;
    gap: 12px;
}


.project-number {
    font-size: 19px;
    background: rgba(128, 128, 128, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 25px;
    border-radius: 50px;
    position: absolute;
    top: -20px;
    left: 15px;
}

footer {
    background-color: #333333;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.footer-section {
    text-align: center;
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section:first-child {
    text-align: center;
}

.footer-section:first-child img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section a {
    color: white;
    text-decoration: underline;
}

.footer-section a:hover {
    color: #cccccc;
    text-decoration: underline;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item img {
    width: 20px;
    height: 20px;
}

.contact-item span {
    vertical-align: middle;
}

.right-content {
    margin-left: auto;
    margin-right: 0;
    border-radius: 20px 0 0 20px;
    margin-top: 50px;
}

.projects-container {
    display: flex;
    gap: 20px;
    /* Keep cards clear of the preceding image */
    margin: 60px 20px 20px 20px;
    justify-content: center;
}

.project-box {
    flex: 1;
    width: 45%;
    border-radius: 20px;
}

.image-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 95%;
    margin: 20px auto 0 auto;
}

.image-row img {
    width: 100%;
    max-width: 50%;
    border-radius: 20px;
    display: block;
    object-fit: cover;
}

.centered-content {
    width: 70%;
    margin: 50px auto;
    border-radius: 20px;
    background: rgba(211, 211, 211, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.centered-content .text-container {
    text-align: center;
    width: 100%;
}

.centered-content .text-2 ul {
    color: white;
    list-style-position: inside;
    margin-top: 15px;
    text-align: left;
    display: inline-block;
}

.hypixel-logo {
    width: 150px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.skills-container {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid white;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    color: white;
    margin: 10px 0;
    padding: 5px;
    text-align: left;
}

.skills-list li a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.skills-list li a:hover,
.skills-list li a:focus {
    text-decoration: underline;
}

/*-------------------- Project cards styles --------------------*/
.project-card {
    background: rgba(211, 211, 211, 0.1);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 15px;
    margin: 50px auto;
    position: relative;
    width: 95%;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.project-card.from-left {
    transform: translateX(-60px);
    opacity: 0;
}

.project-card.from-right {
    transform: translateX(60px);
    opacity: 0;
}

.project-card.in-view {
    transform: translateX(0);
    opacity: 1;
}

.project-card.out-reverse.from-left {
    transform: translateX(60px);
    opacity: 0;
}

.project-card.out-reverse.from-right {
    transform: translateX(-60px);
    opacity: 0;
}

.reseau .project-card {
    border-radius: 20px 0 0 20px;
    margin-left: auto;
    margin-right: 0;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 95%;
}

.dev-web .project-card {
    border-radius: 0 20px 20px 0;
    margin-right: auto;
    margin-left: 0;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 95%;
}

.category {
    background: rgba(128, 128, 128, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 25px;
    font-size: 19px;
    border-radius: 50px;
    position: absolute;
    top: -20px;
    left: 15px;
}

.project-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}

.project-info {
    backdrop-filter: none;
}

.project-lines {
    border-left: 2px solid white;
    padding-left: 20px;
    margin-left: 10px;
}

.project-btn {
    font-size: 19px;
    background: gray;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    position: absolute;
    bottom: -20px;
    right: 15px;
}

.table-section {
    min-height: calc(100vh - 200px);
    padding: 240px 5% 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-window {
    width: min(1100px, 100%);
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 32px;
    padding: 32px;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    color: #111;
}

.glass-window__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.glass-window__eyebrow {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.glass-window h1 {
    color: white;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.download-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, color 0.2s ease;
}

.download-link:hover,
.download-link:focus {
    background: white;
    color: black;
}

.pdf-viewer {
    width: min(100%, 900px);
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    aspect-ratio: 1 / 1.414;
    background: white;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.certifications-section {
    min-height: calc(100vh - 200px);
    padding: 180px 5% 120px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.certifications-section + .certifications-section {
    padding-top: 60px;
}

.glass-bubble {
    width: min(1200px, 100%);
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 32px;
    padding: 32px;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.certifications-intro {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.pdf-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pdf-card h2 {
    font-size: 1.25rem;
    color: white;
}

.pdf-card iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 16px;
    background: white;
}

.pdf-card.full-row {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 520px;
    justify-self: center;
}

@media (max-width: 768px) {
    .pdf-grid {
        grid-template-columns: 1fr;
    }

    .image-row {
        flex-direction: column;
    }

    .image-row img {
        max-width: 100%;
    }

    .glass-bubble {
        padding: 24px;
    }

    .pdf-card iframe {
        height: 260px;
    }
}

.stages-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px 20px 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.stages-title::before,
.stages-title::after {
    content: "";
    flex: 1;
    height: 3px;
    background-color: white;
}