*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent scroll on HTML */
    background-color: #ffffff;
}

body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Scroll only on Body */
    overflow-x: hidden;
    position: relative;
    /* Canvas scrolls with body */
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    /* Theme Variables */
    --primary-color: #76c7c0;
    --secondary-color: #a3dbf5;
    --accent-color: #ff9999;
    --text-color: #111;
    --bg-color: #ffffff;
}

/* Global Custom Cursor Support */
* {
    cursor: none !important;
}

/* Restore pointer cursor for interactive elements */
a,
button,
.interactive-link,
.icon-btn,
.color-btn,
input,
textarea,
.footer-scissors-container,
.logo,
.browser-mockup,
#menu-btn {
    cursor: pointer !important;
}

/* Custom Cursor Hidden State */
.custom-cursor.hidden {
    opacity: 0;
}

.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-image: url('assets/cursors/stylo.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(0, -100%);
    /* Align bottom-left tip to mouse */
    transition: background-image 0.2s ease, transform 0.1s;
}

.custom-cursor.erasing {
    background-image: url('assets/cursors/gomme.png');
    transform: translate(-50%, -50%);
    /* Center the eraser */
    /* Center the eraser */
}

/* Navigation & Secret Easter Egg */

/* Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
    margin-left: 20px;
    /* Added spacing from links */
    padding-left: 30px;
    /* Increased internal spacing */
    border-left: 1px solid #999;
    /* Darker border */
}

.control-btn {
    background: none;
    border: none;
    /* Removed border */
    padding: 4px 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    /* For icon alignment */
    align-items: center;
}

.control-btn:hover,
.control-btn.active {
    opacity: 0.6;
}

.color-picker-container {
    display: flex;
    gap: 5px;
}

.color-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn:hover {
    transform: scale(1.2);
}

#main-canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    /* Above everything */
    pointer-events: none;
    /* Let clicks pass through to window listener */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewport="0 0 24 24" fill="%23000000"><text y="20" font-size="20">✏️</text></svg>') 0 20, auto;
}

/* Fix for the accented é being too large in the Nanum Pen Script font */
.fix-accent {
    font-size: 0.8em;
    position: relative;
    top: -5px;
}



/* Container for all scrollable content */
#content-scroll-container {
    position: relative;
    width: 100%;
    z-index: 5;
    /* Below canvas mostly, but we handle interactive elements separately */
    pointer-events: none;
    /* Let clicks pass through mainly to canvas */
}

body.revealing-active #content-scroll-container {
    z-index: 20 !important;
    /* Above canvas so children can be clicked */
    pointer-events: none;
    /* Container itself doesn't block canvas */
}



/* Apply pencil cursor globally during Easter Egg */
body.revealing-active {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewport="0 0 24 24" fill="%23000000"><text y="20" font-size="20">✏️</text></svg>') 0 20, auto;
}

/* Hero Section */
#hero-section {
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    background: #ffffff;
    overflow: hidden;
    /* Prevent floating items from causing scrollbars */
}

/* Mesh Gradient Background */
.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.mesh-gradient {
    position: absolute;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: mesh-move 20s infinite alternate ease-in-out;
}

.mesh-1 {
    background: #76c7c0;
    top: -15%;
    left: -10%;
    animation-duration: 25s;
}

.mesh-2 {
    background: #a3dbf5;
    bottom: 5%;
    right: -5%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.mesh-3 {
    background: #ff9999;
    top: 30%;
    left: 25%;
    animation-delay: -10s;
    animation-duration: 22s;
}

@keyframes mesh-move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* Floating Icons Styling */
.floating-elements-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.float-item {
    position: absolute;
    width: 100px;
    /* Much larger for impact */
    height: 100px;
    opacity: 1;
    /* Solid visibility */
    transition: opacity 0.5s;
    object-fit: contain;
}

.item-1 {
    top: 25%;
    left: 25%;
    animation: float-rotate 8s infinite ease-in-out;
}

.item-2 {
    top: 28%;
    right: 25%;
    animation: float-bounce 10s infinite ease-in-out -2s;
}

.item-3 {
    bottom: 12%;
    left: 15%;
    animation: float-rotate 12s infinite ease-in-out -4s;
}

.item-4 {
    bottom: 15%;
    right: 18%;
    animation: float-bounce 9s infinite ease-in-out -1s;
}

.item-5 {
    top: 55%;
    left: 5%;
    animation: float-rotate 15s infinite ease-in-out -6s;
}

.item-6 {
    top: 48%;
    right: 8%;
    animation: float-rocket 7s infinite ease-in-out;
}

.item-7 {
    top: 25%;
    left: 48%;
    width: 150px;
    /* 1.5x enlargement */
    height: 150px;
    animation: float-bounce 11s infinite ease-in-out -3s;
}

.item-8 {
    bottom: 8%;
    left: 45%;
    animation: float-rotate 13s infinite ease-in-out -5s;
}

@keyframes float-rotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(15deg);
    }
}

@keyframes float-bounce {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -40px);
    }
}

@keyframes float-rocket {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(-50px) translateX(20px) rotate(48deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 40px;
}

.hero-content h1 {
    font-size: 8vw;
    line-height: 1;
    font-weight: 900;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -2px;
    user-select: none;
}

.hero-content p {
    font-size: 1.4rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: none;
    font-weight: 500;
    font-family: 'Indie Flower', cursive;
}

.hero-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.hero-icon-left {
    left: -60px;
    animation: hero-float-left 4s ease-in-out infinite;
}

.hero-icon-right {
    right: -60px;
    animation: hero-float-right 4.5s ease-in-out infinite;
}

@keyframes hero-float-left {

    0%,
    100% {
        transform: translateY(-50%) rotate(-5deg);
    }

    50% {
        transform: translateY(-70%) rotate(5deg);
    }
}

@keyframes hero-float-right {

    0%,
    100% {
        transform: translateY(-50%) rotate(5deg);
    }

    50% {
        transform: translateY(-30%) rotate(-5deg);
    }
}

@keyframes hero-float-right {

    0%,
    100% {
        transform: translateY(-50%) rotate(10deg);
    }

    50% {
        transform: translateY(-30%) rotate(-5deg);
    }
}

/* Section Divider */
.section-divider {
    position: absolute;
    bottom: -1px;
    /* Tiny overlap to prevent hair-line gap */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    z-index: 20;
    /* Above all background effects */
    opacity: 1;
    pointer-events: none;
    line-height: 0;
    /* Remove potential inline-block spacing */
}

.section-divider img {
    width: 100%;
    height: auto;
    max-height: 120px;
    min-width: 1440px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    /* Sharpening for some browsers */
}

/* About Section */
#about-section {
    /* Auto height, no min-height to reduce spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: transparent;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
}

.about-text {
    flex: 1;
    pointer-events: none;
    /* Text itself isn't clickable, let canvas handle it */
}

.about-text h2 {
    font-size: 3.5rem;
    line-height: 1.3;
    font-weight: 600;
    color: #111;
    margin-bottom: 30px;
}

/* Handwritten Highlights */
.highlight-circle {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.highlight-circle::after {
    content: '';
    position: absolute;
    top: -25%;
    /* Shift up more */
    left: -12%;
    /* Shift left more */
    width: 120%;
    /* Increase width */
    height: 150%;
    /* Increase height */
    /* Smoother, high-quality vector paths for a clean hand-drawn look */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500' preserveAspectRatio='none' fill='none' shape-rendering='geometricPrecision'%3E%3Cpath d='M50,250 Q75,50 500,50 T950,250 T500,450 T50,250 M75,275 Q150,75 525,75' stroke='%23a3dbf5' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    z-index: -1;
    transform: rotate(-2deg) scale(1.1) translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.highlight-underline {
    position: relative;
    display: inline-block;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -5%;
    width: 110%;
    height: 15px;
    /* Cleaner, less jagged underline */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' fill='none'%3E%3Cpath d='M5,10 Q50,15 100,10 T195,12' stroke='%23ff9999' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    transform: rotate(1deg);
}

.about-links {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.interactive-link {
    color: #333;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    font-weight: 600;
    cursor: pointer;
    /* CRITICAL: Bring links ABOVE canvas */
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.interactive-link:hover {
    color: #000;
    background: #f0f0f0;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#dev-sketch {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    pointer-events: none;
}

.character-container {
    position: relative;
    display: inline-block;
}

.eye {
    position: absolute;
    width: 22px;
    /* Reduced from 30px */
    height: 22px;
    /* Reduced from 30px */
    background: transparent;
    border-radius: 50%;
    /* border: 2px solid #000; Removed */
    top: calc(10% + 15px);
    /* Moved down by 20px total */
    margin-left: 20px;
    /* Shifted right by 20px as requested */
    z-index: 10;
    /* overflow: hidden; Removed to prevent pupil clipping */
}

.eye-left {
    left: 45%;
    /* Shifted right from 42% */
}

.eye-right {
    right: calc(29% - 17px);
    /* Shifted right by 17px total */
}

.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Start centered */
    width: 9px;
    /* Increased to 9px as requested */
    height: 9px;
    /* Increased to 9px as requested */
    background: #000;
    border-radius: 50%;
}

/* Specific adjustment per user request */
.eye-left .pupil {
    margin-left: 5px;
    /* Increased from 3px (moved right by 2px) */
}

.eye-right .pupil {
    margin-left: -2px;
    /* Moved left by 2px */
}

/* Detailed Bio Section (The part that was missing) */
#bio-section {
    padding: 80px 20px 120px;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

.bio-container {
    max-width: 1000px;
    width: 100%;
}

.bio-header {
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.bio-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
}

.handwritten-annotation {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 2rem;
    color: #76c7c0;
    /* Teal/Greenish color from image */
    position: absolute;
    top: -25px;
    right: -60px;
    transform: rotate(-10deg);
    white-space: nowrap;
    /* Prevent wrapping */
}

.bio-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* Header & Nav */
#main-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

/* Konami Code Arrows */
#arrow-container {
    margin-left: 20px;
    /* Shift right */
    display: inline-flex;
    align-items: center;
    transform-origin: left center;
}

.arrow-sequence span {
    font-size: 1.5rem;
    /* Increase size */
    font-weight: bold;
    margin: 0 4px;
    display: inline-block;
}

.logo {
    position: relative;
    /* For hidden arrows */
    color: #000;
    pointer-events: auto;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
}

.logo img {
    position: relative;
    z-index: 2;
    /* Signature on top */
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
}

.logo img.dragging {
    cursor: grabbing !important;
    z-index: 10 !important;
    opacity: 0.8;
}

.logo:hover {
    transform: scale(1.1);
    /* Slightly larger zoom on hover */
}

.icon-btn {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    pointer-events: auto;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    /* Stabilize size */
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #000;
}

@media (hover: hover) {
    .icon-btn:hover {
        background: #000;
        color: #fff;
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

.icon-btn.active {
    background: #000;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-btn svg {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navigation Overlay (Premium Glass Capsule) */
#main-nav {
    position: absolute;
    top: 25px;
    right: 5%;



    width: auto;
    min-width: 680px;
    max-width: 94vw;
    height: auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    z-index: 10000;
    /* Au-dessus du canvas de dessin */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 30px;
    gap: 20px;
    /* Espacement même quand le menu grandit */
    opacity: 0;
    pointer-events: none;
    transform-origin: right center;
    transform: translateX(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

@media (min-width: 1350px) {
    #main-nav {
        right: calc(50% - 600px + 20px);
    }
}

#main-nav.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav-links li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
}

.nav-links li::before {
    content: "•";
    margin-right: 8px;
    color: #000;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Animation d'entrée décalée pour les liens */
#main-nav.active .nav-links li {
    animation: navItemFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

#main-nav.active .nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

#main-nav.active .nav-links li:nth-child(2) {
    animation-delay: 0.2s;
}

#main-nav.active .nav-links li:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes navItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    background: #000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    /* Stabilize size */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 10px;
}

.close-btn:hover {
    background: #333;
    transform: rotate(90deg) scale(1.1);
}

/* Nav Controls Stability & Styling */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 15px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    min-width: 45px;
    /* Fixed minimum width to prevent shifts */
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.color-picker-container {
    display: flex;
    gap: 8px;
}

.color-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.color-btn:hover {
    transform: scale(1.2);
}

/* Responsive - tablette */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .bio-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* En-tête de section commun */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #111;
    line-height: 1.1;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    z-index: 1;
}

/* Sous-titre manuscrit */
.section-header p {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 2.2rem;
    color: #76c7c0;
    /* accent turquoise */
    margin-top: 5px;
    transform: rotate(-2deg);
    display: block;
    position: relative;
    z-index: 2;
}




/* Projects Section */
#projects-section {
    padding: 100px 20px 150px;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

.projects-container {
    max-width: 1200px;
    width: 100%;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.project-row:hover {
    opacity: 1;
}

/* Les lignes paires sont inversées (zigzag) */
.project-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Côté visuel (mockup navigateur) */
.project-visual {
    flex: 1.2;
    position: relative;
}

.browser-mockup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.4s ease;
}

.project-row:hover .browser-mockup {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
}

.browser-header {
    height: 30px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding-left: 15px;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.placeholder-content {
    height: 300px;
    width: 100%;
}

/* Côté texte / détails du projet */
.project-details {
    flex: 0.8;
}

.project-details h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: -30px;
}

.project-details p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn-pill {
    display: inline-block;
    padding: 14px 32px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
    pointer-events: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #111;
    letter-spacing: 0.5px;
}

.btn-pill:hover {
    background: #333;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: #333;
}

.btn-pill:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}


/* Responsive - mobile (projets) */
@media (max-width: 900px) {

    .project-row,
    .project-row:nth-child(even) {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .project-details {
        order: 2;
    }

    .project-visual {
        order: 1;
        width: 100%;
    }

    .projects-list {
        gap: 80px;
    }
}

/* Section Contact */
#contact-section {
    padding: 120px 20px 260px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.contact-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.contact-content {
    flex: 1;
}

.contact-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.send-icon-svg {
    width: 150px;
    height: 150px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.8;
}

/* L'avion bouge quand on survole la section */
.contact-container:hover .send-icon-svg {
    transform: translate(15px, -15px) rotate(-5deg) scale(1.1);
    opacity: 1;
}

.email-cta-btn:hover~.contact-visual .send-icon-svg {
    transform: translate(30px, -30px) rotate(-10deg) scale(1.2);
    animation: send-wiggle 0.5s ease-in-out infinite alternate;
}

@keyframes send-wiggle {
    from {
        transform: translate(30px, -30px) rotate(-10deg) scale(1.2);
    }

    to {
        transform: translate(35px, -35px) rotate(-8deg) scale(1.2);
    }
}


/* L'avion s'envole au survol */
.contact-container:hover .paper-plane {
    animation-play-state: paused;
    /* Pause float so it can fly away */
    transform: rotate(15deg) translate(20px, -20px) scale(1.1);
}

.plane-trail {
    position: absolute;
    bottom: -20px;
    left: -40px;
    width: 120px;
    height: 60px;
    opacity: 0.6;
    z-index: -1;
}

.contact-subtitle {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 1.8rem;
    color: #76c7c0;
    margin-bottom: -5px;
    /* Tighter spacing */
    transform: rotate(-5deg);
    display: inline-block;
}

#contact-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 25px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    display: inline-block;
    /* Required for transform */
    cursor: default;
    position: relative;
    /* For floating icon */
}

.floating-contact-icon {
    position: absolute;
    left: -210px;
    /* Floating closer to the text */
    top: 50%;
    transform: translateY(-40%);
    width: 200px;
    height: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    /* Ensure image fits within bounds without distortion */
}

.bio-header-el {
    position: relative;
    display: inline-block;
}

.floating-cap-icon {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 40px;
    height: 40px;
}

#contact-section h2:hover {
    transform: scale(1.05) rotate(2deg);
    color: #000;
}

.contact-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 450px;
    /* Limit text width for readability */
}

.email-cta-btn {
    display: inline-block;
    padding: 18px 36px;
    background: transparent;
    border: 2px solid #111;
    color: #111;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.email-cta-btn:hover {
    background: #111;
    color: #fff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: #000;
}

/* Footer */
#main-footer {
    padding: 100px 20px 0;
    background: #ffffff;
    color: #111;
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    position: relative;
    border-top: 4px dashed #111;
    overflow: visible;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    z-index: 5;
}

/* Dégradé de fond du footer */
.footer-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}



.mesh-footer-1 {
    background: #76c7c0;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    animation-duration: 35s;
}

.mesh-footer-2 {
    background: #ff9999;
    bottom: -15%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    animation-delay: -5s;
    animation-duration: 30s;
}

.mesh-footer-3 {
    background: #a3dbf5;
    top: 30%;
    left: 35%;
    width: 35vw;
    height: 35vw;
    opacity: 0.15;
    animation-delay: -12s;
    animation-duration: 25s;
}

.footer-top {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 0;
    z-index: 10;
    position: relative;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    /* Small spacing */
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 13px;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.footer-btn {
    text-decoration: none;
    color: #111;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
}

.footer-btn:hover {
    color: #000;
    transform: translateY(-3px);
}

.footer-btn::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #111;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-btn:hover::after {
    width: 100%;
}

/* Texte géant en bas du footer */
.footer-signature-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 14vw;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

.footer-signature-text {
    font-family: 'Inter', sans-serif;
    font-size: 19vw;
    font-weight: 900;
    line-height: 0.7;
    color: #111;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    user-select: none;
    display: block;
    transform: translateY(50%);
    margin: 0;
}

/* Local Responsive for Contact */
@media (max-width: 800px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .contact-visual {
        order: 0;
        margin-bottom: 0;
        margin-top: 30px;
    }

    .contact-text {
        margin: 0 auto 40px;
    }
}

/* Sur desktop, on cache le bouton menu quand il est actif (le nav est visible) */
@media (min-width: 901px) {
    #menu-btn.active {
        opacity: 0;
        pointer-events: none;
        background: #fff !important;
        color: #000 !important;
        transform: none !important;
        /* Force white so it doesn't flash black during transition */
    }
}

.arrow-trigger-container {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 1;


    display: grid;
    place-items: center start;
    pointer-events: none;
}

/* Ciseaux draggables dans le footer */
#footer-scissors-container {
    position: absolute;
    top: -32px;
    /* Centered on border-top (60/2) + 2px up */
    left: 20%;
    /* Start at 1/5th of the line */
    width: 60px;
    height: 60px;
    z-index: 50;
    cursor: grab;
    touch-action: none;
    /* Prevent scroll while dragging */
    pointer-events: auto;
    /* Ensure clickable */
}

#footer-scissors-container:active {
    cursor: grabbing;
}

.scissors-icon {
    width: 100%;
    height: 100%;
    fill: #fff;
    /* Fill for visibility against potential content behind */
    transition: transform 0.1s;
}

/* Animation de coupe */
.box-1,
.box-2 {
    transform-origin: 12px 12px;
    /* Pivot around center screw */
    transition: transform 0.1s;
}

@keyframes cut-top {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(35deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes cut-bottom {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-35deg);
    }

    100% {
        transform: rotate(0deg);
    }
}



#footer-scissors-container.dragging .box-1 {
    animation: cut-top 0.3s infinite ease-in-out;
}

#footer-scissors-container.dragging .box-2 {
    animation: cut-bottom 0.3s infinite ease-in-out;
}




.broom-cleaner {
    grid-area: 1 / 1;
    font-size: 24px;
    position: relative;
    right: -100px;
    /* Offset to 'clean' the logo */
    opacity: 0;
    pointer-events: none;
    line-height: 1;
    z-index: 10;
}

.arrow-sequence-wrapper {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-sequence {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 10px;
    /* Smaller for navbar */
    display: flex;
    gap: 1px;
    color: #111;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.4;
}

/* Boutons cachés dans la section projets (Easter Egg) */
body.revealing-active .project-visual {
    z-index: 50;
    /* Lift above background but below fixed overlays */
}

.magic-project-reveal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    /* Above canvas (10), below mockup (100) */
    display: grid;
    place-items: center;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* Mockups déplaçables (Easter Egg) */
#taptok-mockup,
#focusfox-mockup,
#huetab-mockup {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

body.revealing-active #taptok-mockup,
body.revealing-active #focusfox-mockup,
body.revealing-active #huetab-mockup {
    pointer-events: none;
    z-index: 100 !important;
}

body.revealing-active #taptok-mockup.unlocked,
body.revealing-active #focusfox-mockup.unlocked,
body.revealing-active #huetab-mockup.unlocked {
    cursor: grab !important;
    pointer-events: auto !important;
}

#taptok-mockup.dragging,
#focusfox-mockup.dragging,
#huetab-mockup.dragging {
    cursor: grabbing !important;
    z-index: 101 !important;
    opacity: 0.9;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: none;
}

.magic-btn {
    grid-area: 1 / 1;
    background: linear-gradient(145deg, #ff4757, #cc0000);
    border: 4px solid #800000;
    border-radius: 5px;
    padding: 6px 12px;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #800000, 0 8px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.9);
}

body.revealing-active .magic-btn.revealed {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

body.revealing-active .project-row:hover #taptok-mockup,
body.revealing-active .project-row:hover #focusfox-mockup,
body.revealing-active .project-row:hover #huetab-mockup {
    transform: none;
    /* Disable hover lift when active */
}

.magic-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, #ff6b81, #d60000);
}

.magic-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 0 #800000, 0 5px 10px rgba(0, 0, 0, 0.3);
    background: #800000;
}

.confirm-btn {
    background: linear-gradient(145deg, #cc0000, #800000);
}

.warning-btn {
    background: linear-gradient(145deg, #800000, #440000);
}

.final-warning-txt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    /* Large central impact */
    font-weight: 900;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #000000;
    z-index: 10000;
    white-space: nowrap;
    animation: text-menace 0.3s infinite alternate;
}

@keyframes text-menace {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }

    to {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}



.confirm-btn:hover {
    transform: scale(1.1);
}

/* Effet de tremblement d'écran */
body.shake-active {
    animation: screen-shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes screen-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Blocage des interactions pour la fin de l'Easter Egg */
body.lock-interaction #content-scroll-container,
body.lock-interaction #main-header,
body.lock-interaction #main-nav {
    pointer-events: none !important;
    user-select: none !important;
}

/* Animations de révélation (déclenchées par la classe body) */
body.revealing-active .arrow-sequence-wrapper {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

body.revealing-active .magic-elements-container .magic-btn:not(.confirm-btn) {
    animation: magic-pop 0.6s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
}

@keyframes magic-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes arrows-exit-left {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }

    20% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }

    40% {
        transform: scale(0.9);
        opacity: 0.8;
        filter: blur(2px);
    }

    60% {
        transform: scale(0.7);
        opacity: 0.4;
        filter: blur(5px);
    }

    80% {
        transform: scale(0.3);
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}



/* Icônes des titres de projets */
.project-title-icon {
    height: 120px;
    /* Adjusted size (1.5x) */
    width: auto;
    max-width: 120px;
    /* Double safety */
    vertical-align: middle;
    margin-left: -25px;
    object-fit: contain;
    transition: transform 0.2s;
}

.project-title-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Couleurs des titres de projets */
.title-taptok,
.title-santos,
.title-tchoos {
    color: #76c7c0 !important;
}

/* Override curseur pour les éléments interactifs */
.footer-scissors-container,
.footer-scissors-container *,
.logo,
.logo *,
.browser-mockup,
.browser-mockup *,
#menu-btn,
#menu-btn *,
#main-nav,
#main-nav * {
    cursor: pointer !important;
}

/* Curseur 'grab' lors du drag */
body.is-dragging-signature,
body.is-dragging-signature * {
    cursor: grabbing !important;
}

/* Responsive mobile (< 768px) */
@media (max-width: 768px) {

    /* Global */
    section {
        overflow-x: clip;
        /* Prevent overflow from hanging elements */
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 14vw;
        padding: 0 10px;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    /* Reduce Floating Icons */
    .floating-elements-container .float-item {
        width: 50px;
        height: 50px;
        opacity: 0.6;
        /* Fade them out a bit on mobile to reduce clutter */
    }

    /* Adjust positions to avoid overlap center text */
    .item-1 {
        top: 35%;
        /* Lowered from 15% */
        left: 10%;
    }

    .item-2 {
        top: 38%;
        /* Lowered from 18% */
        right: 10%;
    }

    .item-7 {
        width: 80px;
        height: 80px;
        top: 30%;
        /* Lowered from 10% */
        left: 40%;
    }

    /* Brain/Cloud icon */

    /* About Section */
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .about-image {
        order: -1;
        /* Image first on mobile */
        margin-bottom: 20px;
    }

    #dev-sketch {
        max-height: 300px;
    }

    /* Manual Eye Adjustment for Mobile */
    .eye {
        top: 13% !important;
        /* Moved up 10px more */
        margin-left: 5px !important;
        /* Moved left 10px more */
        width: 10px;
        /* Reduced size */
        height: 10px;
    }

    .pupil {
        width: 6px;
        height: 6px;
    }

    /* Bring eyes closer together on mobile */
    .eye-left {
        left: 50% !important;
        /* Move right (towards center) */
    }

    .eye-right {
        right: 24% !important;
        /* Move left (towards center) */
    }

    /* Bio Section */
    .bio-container {
        padding: 0 15px;
    }

    .bio-header {
        text-align: center;
        display: block;
    }

    /* Fix Inline Style for Cap Icon */
    .floating-cap-icon {
        width: 80px !important;
        height: auto !important;
        margin: 0 auto 10px auto !important;
        /* Centered and pushed down */
        display: block !important;
        /* Stack vertically */
        position: static !important;
        transform: none !important;
    }

    .handwritten-annotation {
        position: static;
        display: block;
        transform: rotate(-5deg);
        margin-top: 10px;
        text-align: center;
    }

    .bio-content-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: justify;
    }

    /* Projects Section */
    .section-header h2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    /* Fix Inline Style for Star Eyes Icon */
    .section-header h2 img {
        position: static !important;
        transform: none !important;
        display: block;
        margin: 15px auto 0 !important;
        width: 100px !important;
        left: auto !important;
        top: auto !important;
    }

    .projects-list {
        gap: 80px;
    }

    .project-row,
    .project-row.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .project-row.reverse {
        flex-direction: column-reverse;
        /* Keep visual first? Usually standard stack is better */
        flex-direction: column;
    }

    .project-visual {
        width: 100%;
        margin-bottom: 20px;
    }

    .project-details {
        width: 100%;
        text-align: center;
        padding: 0 10px;
    }

    .project-details h3 {
        justify-content: center;
        display: flex;
        align-items: center;
        font-size: 1.8rem;
        margin-bottom: 30px;
        /* Added spacing */
    }

    .project-title-icon {
        height: 50px;
        width: auto;
        margin-left: 10px;
    }

    /* Contact Section */
    .contact-container {
        flex-direction: column;
        padding: 40px 20px;
    }

    .contact-content {
        text-align: center;
        /* Center everything in contact on mobile */
    }

    /* Center "Et ensuite ?" */
    .contact-subtitle {
        display: block;
        text-align: center;
        margin-bottom: 5px;
        transform: rotate(-3deg);
        /* Mild rotation, kept for style */
    }

    /* Center "Contactez-moi" and Title */
    #contact-section h2 {
        display: inline-block;
        /* Ensure it behaves like a text block for centering */
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        position: relative;
    }

    /* Fix Phone Icon Visibility & Position */
    /* Fix Phone Icon Visibility & Position */
    .floating-contact-icon {
        position: static !important;
        /* Remove absolute to make it flow */
        display: inline-block !important;
        /* Inline to sit next to text */
        margin: 0 10px 0 0 !important;
        /* Right margin to separate from text */
        vertical-align: middle;
        transform: none !important;
        width: 80px !important;
        /* Adjusted size */
        height: auto !important;
        left: auto !important;
        top: auto !important;
    }



    .contact-visual {
        display: none;
        /* Hide paper plane on mobile to save space/reduce clutter */
    }

    /* Footer */
    .footer-top {
        align-items: flex-start !important;
        padding-top: 10px;
        padding-bottom: 60px;
    }

    .footer-logo {
        margin-bottom: 0 !important;
    }

    .footer-signature-text {
        font-size: 18vw;
        /* Even bigger relative on mobile */
        transform: translateY(50%) !important;
        margin-bottom: -1vw !important;
    }

    /* Adjust container height for mobile font size */
    .footer-signature-container {
        height: 13vw !important;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        bottom: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    /* Scissors Position for Mobile */
    #footer-scissors-container {
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
    }

    /* Disable Eye Movement on Mobile */
    .pupil {
        transform: translate(-50%, -50%) !important;
    }

    /* Vertical Navigation Menu */
    #main-nav {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;

        /* Reset positioning for centered modal feel */
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;

        width: 85vw !important;
        min-width: auto !important;
        max-width: 90vw !important;
        height: auto !important;
        min-height: 300px;

        padding: 40px 20px 30px !important;
        border-radius: 30px !important;

        /* Transform override for centering */
        transform: translate(-50%, -50%) scale(0.9) !important;
        transform-origin: center center !important;
    }

    #main-nav.active {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .nav-links {
        flex-direction: column !important;
        gap: 20px !important;
        width: 100%;
        margin-bottom: 30px !important;
        text-align: center;
    }

    .nav-links li {
        justify-content: center;
        font-size: 1.5rem !important;
        /* Larger text for touch */
    }

    /* Remove bullet points in vertical mode for cleanliness */
    .nav-links li::before {
        content: none !important;
    }

    .nav-controls {
        width: 100%;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        gap: 15px;
    }

    /* Absolute Close Button */
    .close-btn {
        display: none !important;
    }

    /* Disable Drawing Features on Mobile */
    #main-canvas {
        display: none !important;
    }

    .color-picker-container,
    #eraser-btn {
        display: none !important;
    }

    /* Disable Easter Eggs on Mobile */
    #arrow-container,
    .magic-project-reveal-container {
        display: none !important;
    }
}