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

body {
    font-family: -apple-system, system-ui, sans-serif;
    color: #1d1d1f;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: #fbfbfd;
    background-image: radial-gradient(at 0% 0%, rgba(0, 242, 255, 0.3) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(191, 123, 255, 0.3) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 242, 255, 0.2) 0, transparent 50%),
    radial-gradient(at 0% 100%, rgba(191, 123, 255, 0.2) 0, transparent 50%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    border-bottom: none;
}

header .logo {
    display: flex;
    gap: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    transition: opacity 0.3s ease;
    align-items: center;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

header .logo .firstname {
    font-weight: 400;
    color: #86868b;
}

@media (hover: hover) {
    .logo-link:hover .logo {
        opacity: 0.7;
    }
}

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

header .logo .lastname {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(
            to right,
            #00f2ff,
            #bf7bff,
            #00f2ff
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.nav-links a:hover {
    color: #bf7bff;
    transition: color 0.3s ease;
}

.section-padding {
    padding: 8rem 0;
}

.hero {
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.btn.primary {
    background-color: #1d1d1f;
    color: #ffffff;
    border: none;
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.4);
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: 0.8rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: #f5f5f7;
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    color: #6e6e73;
    margin-bottom: 1.5rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
}

.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background-color: #e8e8ed;
}

.evolution-timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8e8ed;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
}

.timeline-item:nth-child(odd) {
    align-self: flex-start;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    padding-left: 40px;
    text-align: left;
}

.timeline-bubble {
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #1d1d1f;
    border-radius: 50%;
    z-index: 5;
}

.timeline-item:nth-child(odd) .timeline-bubble {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-bubble {
    left: -9px;
}

.timeline-content {
    position: relative;
    padding: 1.5rem;
    border-radius: 20px;
    background: #f5f5f7;
    transition: all 0.3s ease;
}

.timeline-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: pointer;
}

.project-toggle-check {
    display: none;
}

.timeline-img-container {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #d2d2d7;
}

.timeline-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-hidden-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    pointer-events: none;
}

.project-toggle-check:checked ~ .timeline-content .timeline-hidden-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
    pointer-events: auto;
}

.source-link {
    position: relative;
    z-index: 100;
    display: inline-block;
}

.project-toggle-check:checked + .timeline-bubble {
    background: #1d1d1f;
    transform: scale(1.4);
}

.site-footer {
    width: 100%;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid #e8e8ed;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-center {
    flex: 2;
    text-align: center;
    color: #86868b;
    font-size: 0.9rem;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-socials {
    display: flex;
    margin-bottom: 0.5rem;
    gap: 2rem;
    align-items: center;
}

.contact-section {
    padding: 8rem 0;
    text-align: center;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: 30px;
    background: #f5f5f7;
    transition: transform 0.3s ease;
}

.contact-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-card p {
    font-size: 1.2rem;
    color: #86868b;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
}

.btn-primary {
    display: inline-block;
    background: #1d1d1f;
    color: #ffffff;
    padding: 18px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .btn-primary:hover {
        transform: scale(1.05);
        background: #000000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 1rem;
    background: white;
    color: black;
    z-index: 2000;
    clip: auto;
    margin: 0;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    margin-bottom: 0.6rem;
    color: #424245;
}

.skill-category h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.project-details {
    display: none;
}

.btn-expand .text-close {
    display: none;
}

.project-toggle-check:checked ~ .project-details {
    display: block;
}

.project-toggle-check:checked ~ .project-header .text-open {
    display: none;
}

.project-toggle-check:checked ~ .project-header .text-close {
    display: inline;
}

.btn-expand {
    cursor: pointer;
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: 500;
    transition: opacity 0.2s;
}

@media (hover: hover) {
    .btn-expand:hover {
        text-decoration: underline;
    }
}

.blob-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #ffffff;
    contain: strict;
}

.blob {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    outline: 1px solid rgba(255, 255, 255, 0.2);
    outline-offset: -4px;
    box-shadow: inset 15px 15px 30px rgba(255, 255, 255, 0.6),
    inset -10px -10px 25px rgba(0, 0, 0, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.1);
    animation: floatingHigh 18s ease-in-out infinite alternate;
    will-change: transform, backdrop-filter;
    transform: translateZ(0);
}

@keyframes floatingHigh {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(100px, 50px) rotate(5deg);
    }
    66% {
        transform: translate(-50px, 120px) rotate(-5deg);
    }
    100% {
        transform: translate(40px, -60px) rotate(3deg);
    }
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -50px;
    left: -50px;
    background: radial-gradient(circle at 30% 30%,
    rgba(0, 242, 255, 0.3) 0%,
    rgba(0, 242, 255, 0.1) 70%);
    animation-duration: 40s;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: 5%;
    right: 2%;
    background: radial-gradient(circle at 30% 30%,
    rgba(191, 123, 255, 0.3) 0%,
    rgba(191, 123, 255, 0.1) 70%);
    animation-duration: 50s;
    animation-delay: -5s;
}

.glass-card {
    will-change: transform, backdrop-filter;
    transform: translateZ(0);
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .glass-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.5);
    }
}

.glass-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 55%
    );
    transform: rotate(30deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .glass-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.5);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    }

    .glass-card:hover::after {
        left: 100%;
        top: 100%;
    }
}

.evolution-card {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.05);
}

.site-footer .logo {
    display: flex;
    gap: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
}

.site-footer .logo .firstname {
    font-weight: 400;
    color: #86868b;
}

.site-footer .logo .lastname {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.15rem;
    background: linear-gradient(
            to right,
            #00f2ff,
            #bf7bff,
            #00f2ff
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

.footer-left .logo-link {
    text-decoration: none;
    display: inline-block;
}

@media (hover: hover) {
    .footer-left .logo-link:hover {
        opacity: 0.7;
    }
}

.footer-right .copyright {
    font-size: 0.8rem;
    color: #86868b;
    margin-top: 0.5rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.logo-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-right: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f2ff, #bf7bff);
    opacity: 0.3;
    animation: dotPulse 2s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.4s;
}

.dot:nth-child(3) {
    animation-delay: 0.8s;
}

.dot:nth-child(4) {
    animation-delay: 1.2s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #00f2ff, #bf7bff, #00f2ff);
    background-size: 200% auto;
    animation: shine 10s linear infinite;
}

@media (hover: hover) {
    .btn.primary:hover {
        opacity: 0.85;
    }
}

@media (hover: hover) {
    .btn.secondary:hover {
        background-color: rgba(255, 255, 255, 0.6);
        border-color: rgba(0, 0, 0, 0.2);
    }
}

.btn:active {
    transform: scale(0.98);
}

body > header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem 0;
}

body > header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #00f2ff, #bf7bff, #00f2ff);
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

.project-header {
    position: relative;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #86868b;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.icon-social {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .social-link:hover {
        color: #1d1d1f;
    }
}

@media (hover: hover) {
    .social-link:hover .icon-social {
        opacity: 1;
        transform: translateY(-2px);
        stroke: #00f2ff;
    }
}

.icon-email {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .btn.primary:hover .icon-email {
        transform: scale(1.1);
        transition: transform 0.2s ease;
    }
}

.hero .cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1d1d1f;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
}

.mobile-controls {
    display: none;
}

@media (max-width: 768px) {
    /* 1. HEADER & NAVIGATION */
    body > header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    header .logo {
        margin-left: 0 !important;
        padding-left: 0;
    }

    main {
        margin-top: 80px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 30%;
        min-width: 200px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
        z-index: 1500;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    }

    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 2100;
    }

    .glass-card,
    .project-card,
    .timeline-content,
    .contact-card,
    .evolution-card {
        transform: none !important;
        transition: none !important;
    }

    .glass-card::after, .project-card::after {
        display: none !important;
    }

    .glass-card:hover, .project-card:hover {
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    }

    .hero .glass-card {
        padding: 2.5rem 1.2rem !important;
    }

    .hero .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 !important;
        text-align: center;
        padding: 16px 24px;
        -webkit-tap-highlight-color: transparent;
    }

    .btn.secondary {
        background-color: rgba(0, 0, 0, 0.05) !important;
        color: #1d1d1f !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    #dark-mode:checked ~ * .btn.secondary {
        background-color: rgba(255, 255, 255, 0.05) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .projects-grid, .project-gallery {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .project-gallery {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        height: auto !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    .project-gallery img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-fit: contain !important;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .project-description {
        padding-top: 1rem;
    }

    .project-description ul {
        padding-left: 1.2rem;
        margin-bottom: 2rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100% !important;
        padding-left: 50px !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-bubble,
    .timeline-item:nth-child(even) .timeline-bubble {
        left: 11px;
    }

    .footer-layout {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    #dark-mode:checked ~ header .nav-links {
        background: rgba(11, 15, 25, 0.98);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    #dark-mode:checked ~ header .nav-links a {
        color: #ffffff;
    }

    #dark-mode:checked ~ header .hamburger span {
        background: #ffffff;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-controls {
        display: block;
        width: 100%;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-btns-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .mobile-btns-wrapper .btn-theme {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #dark-mode:checked ~ * .mobile-controls {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .cta-group {
        padding: 0 1.5rem !important;
    }
}

@media (max-width: 1150px) {
    .container,
    .hero.container,
    nav.container {
        padding: 0 1.5rem !important;
        width: 100%;
        max-width: 100%;
    }

    .hero {
        padding: 0 1.5rem;
    }

    .hero .glass-card {
        margin: 0 auto;
        width: 100%;
        padding: 3rem 2rem !important;
        max-width: 900px;
    }

    section {
        margin-bottom: 5rem !important;
    }

    header .logo {
        padding-left: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .blob-1 {
        width: 400px;
        height: 400px;
        top: -100px;
    }

    .blob-2 {
        width: 300px;
        height: 300px;
        bottom: 2%;
        right: -5%;
    }

    .footer-layout {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        flex: 1 1 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-right .copyright {
        text-align: center;
        margin-top: 0.5rem;
    }

}

.theme-controls {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.btn-theme {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #86868b;
}

.btn-theme svg {
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .btn-theme:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #1d1d1f;
        transform: translateY(-2px);
    }
}

.theme-logic {
    display: none;
}

#light-mode:checked ~ header .to-light {
    display: none;
}

#dark-mode:checked ~ header .to-dark {
    display: none;
}

#dark-mode:checked ~ header .btn-theme:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00f2ff;
}

#dark-mode:checked ~ body,
#dark-mode:checked ~ * {
    --bg-boreal: #0b0f19;
    --text-main: #f5f5f7;
    --text-secondary: #a1a1a6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

#dark-mode:checked ~ .blob-canvas {
    background-color: #05070a;
}

#dark-mode:checked ~ header {
    background: rgba(11, 15, 25, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#dark-mode:checked ~ main,
#dark-mode:checked ~ .site-footer {
    color: var(--text-main);
}

#dark-mode:checked ~ * .glass-card,
#dark-mode:checked ~ * .project-card,
#dark-mode:checked ~ * .timeline-content,
#dark-mode:checked ~ * .contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

#dark-mode:checked ~ * p,
#dark-mode:checked ~ * .firstname,
#dark-mode:checked ~ * .footer-center,
#dark-mode:checked ~ * .timeline-date {
    color: var(--text-secondary);
}

#dark-mode:checked ~ * h1,
#dark-mode:checked ~ * h2,
#dark-mode:checked ~ * h3,
#dark-mode:checked ~ * h4 {
    color: #ffffff;
}

#dark-mode:checked ~ * .btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#dark-mode:checked ~ .blob-canvas .blob-1 {
    background: radial-gradient(circle at 30% 30%, rgba(0, 242, 255, 0.4) 0%, transparent 70%);
}

#dark-mode:checked ~ .blob-canvas .blob-2 {
    background: radial-gradient(circle at 30% 30%, rgba(191, 123, 255, 0.4) 0%, transparent 70%);
}

#dark-mode:checked ~ header::after {
    opacity: 0.6;
    height: 2px;
    filter: drop-shadow(0 0 5px #00f2ff);
}

#dark-mode:checked ~ header .nav-links a {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#dark-mode:checked ~ header .nav-links a:hover {
    opacity: 1;
    color: #00f2ff;
}

#dark-mode:checked ~ * .skill-category li {
    color: #e2e2e6;
}

#dark-mode:checked ~ * .skill-category h3 {
    color: #ffffff;
}

#dark-mode:checked ~ * .social-link {
    color: #a1a1a6;
}

#dark-mode:checked ~ * .social-link:hover {
    color: #ffffff;
}

#dark-mode:checked ~ * .social-link:hover .icon-social {
    stroke: #00f2ff;
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.5));
}

#dark-mode:checked ~ * .about-content p,
#dark-mode:checked ~ * .project-preview-text p,
#dark-mode:checked ~ * .timeline-content p {
    color: #d2d2d7;
}

#dark-mode:checked ~ header .logo-link:hover .dot {
    opacity: 1;
    background: #bf7bff;
    box-shadow: 0 0 10px rgba(191, 123, 255, 0.6);
    transition: all 0.3s ease;
}

#dark-mode:checked ~ header .dot {
    background: #bf7bff;
    opacity: 0.6;
}

#dark-mode:checked ~ .site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-fr {
    display: none;
}

#lang-switch:checked ~ * .lang-en {
    display: none;
}

#lang-switch:checked ~ * .lang-fr {
    display: inline-block;
}

.lang-btn {
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(134, 134, 139, 0.3);
    margin-left: 0.8rem;
    width: 32px;
    height: 32px;
}

#dark-mode:checked ~ header .lang-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
