@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&display=swap');

:root {
    --bg-deep: #020617;
    --bg-mid: #0b1220;
    --text-main: #f8fafc;
    --text-soft: #cbd5e1;
    --line-soft: rgba(255, 255, 255, 0.16);
    --accent-cyan: #22d3ee;
    --accent-amber: #f59e0b;
    --accent-green: #34d399;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#home, #about, #skills, #projects, #more-about, #contact {
    scroll-margin-top: 90px;
}

body{
    width: 100%;
    min-height: 100vh;
    font-family: 'Sora', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #0c0a1a 50%, #0b1220 75%, #020617 100%);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
}

.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 34vmax;
    height: 34vmax;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatBlob 20s ease-in-out infinite alternate;
}

.blob1 {
    background: linear-gradient(135deg, #1e40af 0%, #0369a1 100%);
    top: -8%;
    left: -10%;
}

.blob2 {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    top: 20%;
    right: -10%;
    animation-delay: 3s;
}

.blob3 {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    bottom: -16%;
    left: 24%;
    animation-delay: 6s;
}

@keyframes floatBlob {
    from {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    to {
        transform: translate(60px, -40px) scale(1.15) rotate(180deg);
    }
}

/* Gradient layers animation */
.gradient-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    inset: -50%;
    opacity: 0.6;
    mix-blend-mode: screen;
    filter: blur(120px);
}

.grad1 {
    background: linear-gradient(45deg, #1d4ed8 0%, #0369a1 25%, #1e40af 50%, transparent 85%);
    animation: gradientShift1 28s ease-in-out infinite;
    opacity: 0.7;
}

.grad2 {
    background: linear-gradient(135deg, #172554 0%, #0369a1 30%, transparent 70%);
    animation: gradientShift2 32s ease-in-out infinite;
    animation-delay: 4s;
    opacity: 0.5;
}

.grad3 {
    background: linear-gradient(225deg, #0ea5e9 0%, #0369a1 35%, #0f172a 60%, transparent 90%);
    animation: gradientShift3 30s ease-in-out infinite;
    animation-delay: 8s;
    opacity: 0.6;
}

.grad4 {
    background: linear-gradient(315deg, #1e40af 0%, #3b82f6 40%, transparent 75%);
    animation: gradientShift4 35s ease-in-out infinite;
    animation-delay: 2s;
    opacity: 0.5;
}

@keyframes gradientShift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(40px, -60px) rotate(90deg) scale(1.1); }
    50% { transform: translate(60px, 40px) rotate(180deg) scale(0.95); }
    75% { transform: translate(-40px, 50px) rotate(270deg) scale(1.05); }
}

@keyframes gradientShift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, 60px) scale(1.15); }
    66% { transform: translate(60px, -50px) scale(0.9); }
}

@keyframes gradientShift3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(70px, 30px) scale(1.1); }
}

@keyframes gradientShift4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-60px, -80px) rotate(180deg) scale(1.2); }
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.15);
    opacity: 0.5;
    animation: rotateShape 30s linear infinite;
}

.shape1 {
    width: 280px;
    height: 280px;
    border-radius: 20%;
    top: 8%;
    right: 5%;
    animation-duration: 45s;
    border-color: rgba(29, 78, 216, 0.35);
    background: radial-gradient(circle, rgba(29, 78, 216, 0.05), transparent);
}

.shape2 {
    width: 220px;
    height: 220px;
    border-radius: 40%;
    bottom: 20%;
    left: 8%;
    animation-duration: 40s;
    animation-direction: reverse;
    border-color: rgba(15, 133, 236, 0.3);
    background: radial-gradient(circle, rgba(3, 105, 161, 0.08), transparent);
}

.shape3 {
    width: 240px;
    height: 240px;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    top: 35%;
    right: 12%;
    border: none;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    animation-duration: 50s;
    animation-delay: 3s;
}

.shape4 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: 60%;
    right: 8%;
    border-color: rgba(96, 165, 250, 0.25);
    animation-duration: 35s;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1), transparent);
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glow elements */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.glow1 {
    width: 350px;
    height: 350px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, #1e40af 0%, transparent 65%);
    animation: glowPulse 8s ease-in-out infinite;
}

.glow2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 10%;
    background: radial-gradient(circle, #3b82f6 0%, transparent 65%);
    animation: glowPulse 9s ease-in-out infinite;
    animation-delay: 2s;
}

.glow3 {
    width: 280px;
    height: 280px;
    top: 45%;
    right: 5%;
    background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
    animation: glowPulse 10s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.2; }
    50% { transform: scale(1.25) translate(15px, -20px); opacity: 0.45; }
}

/* Particle system */
.particle-system {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #3b82f6 0%, rgba(29, 78, 216, 0.4) 100%);
    box-shadow: 0 0 15px rgba(29, 78, 216, 0.8);
    opacity: 0.8;
}

.p1 { top: 15%; left: 20%; animation: floatParticle1 20s ease-in-out infinite; }
.p2 { top: 35%; left: 80%; animation: floatParticle2 24s ease-in-out infinite; animation-delay: 3s; }
.p3 { top: 65%; left: 45%; animation: floatParticle3 22s ease-in-out infinite; animation-delay: 6s; }
.p4 { top: 80%; left: 15%; animation: floatParticle4 26s ease-in-out infinite; animation-delay: 9s; }
.p5 { top: 25%; left: 65%; animation: floatParticle5 23s ease-in-out infinite; animation-delay: 4s; }

@keyframes floatParticle1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(50px, -80px) scale(1.3); opacity: 0.8; }
    50% { transform: translate(100px, 60px) scale(0.8); opacity: 0.5; }
    75% { transform: translate(-40px, 30px) scale(1.2); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
}

@keyframes floatParticle2 {
    0% { transform: translate(0, 0) scale(1.2); opacity: 0.4; }
    30% { transform: translate(-60px, 70px) scale(0.9); opacity: 0.8; }
    60% { transform: translate(80px, -50px) scale(1.4); opacity: 0.6; }
    100% { transform: translate(0, 0) scale(1.2); opacity: 0.4; }
}

@keyframes floatParticle3 {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0.5; }
    20% { transform: translate(70px, -90px) scale(1.5); opacity: 0.9; }
    50% { transform: translate(-50px, 100px) scale(0.7); opacity: 0.4; }
    80% { transform: translate(90px, 40px) scale(1.1); opacity: 0.8; }
    100% { transform: translate(0, 0) scale(0.9); opacity: 0.5; }
}

@keyframes floatParticle4 {
    0% { transform: translate(0, 0) scale(1.1); opacity: 0.6; }
    25% { transform: translate(-80px, 50px) scale(0.8); opacity: 0.9; }
    50% { transform: translate(60px, -80px) scale(1.3); opacity: 0.5; }
    75% { transform: translate(30px, 70px) scale(0.9); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(1.1); opacity: 0.6; }
}

@keyframes floatParticle5 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    40% { transform: translate(60px, -70px) scale(1.4); opacity: 0.8; }
    70% { transform: translate(-70px, 60px) scale(0.8); opacity: 0.6; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
}

.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 36px;
    margin: 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(2, 6, 23, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.name h1 {
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0;
}

.contact {
    display: flex;
    gap : 30px;
    justify-content: center;
    font-size: 17px;
}

.contact a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease, transform 0.25s ease;
}

.contact a:hover {
    color: #67e8f9;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    padding: 10px 9px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle span + span {
    margin-top: 6px;
}

.navbar.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


.section1{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 80px;
    gap: 60px;
    padding: 0 40px;
    position: relative;
}

.section1::before {
    content: "";
    position: absolute;
    width: min(680px, 90vw);
    height: 260px;
    left: 40px;
    top: -22px;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(59, 130, 246, 0.1) 40%, rgba(15, 23, 42, 0.08));
    filter: blur(1px);
    pointer-events: none;
    z-index: -1;
}

.section1-1{
    display: flex;
    flex-direction: column;
    gap: 28px;
    color: white;
    flex: 1;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    background: linear-gradient(160deg, rgba(2, 6, 23, 0.52), rgba(15, 23, 42, 0.32));
    backdrop-filter: blur(9px);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    transform: translateY(-8px);
    margin-bottom: -2px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.4);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(29, 78, 216, 0.16));
    color: #dbeafe;
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.38);
    animation: fadeInDown 0.8s ease backwards;
}

.section1-1 h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease 0.2s backwards, heroShine 8s linear infinite;
    background-size: 220% auto;
}

@keyframes heroShine {
    0% { background-position: 0% center; }
    100% { background-position: 220% center; }
}

.section1-1 p{
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 500;
    animation: fadeInDown 0.8s ease 0.4s backwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section1-1-2{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.section1-2 {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease 0.3s backwards;
    position: relative;
    isolation: isolate;
}

.section1-2::before,
.section1-2::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.section1-2::before {
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(125, 211, 252, 0.42);
    background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.45), rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.45));
    filter: blur(0.5px);
    animation: rotateHalo 12s linear infinite;
    z-index: -1;
}

.section1-2::after {
    width: 430px;
    height: 430px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(56, 189, 248, 0.24);
    animation: rotateHaloReverse 18s linear infinite;
    z-index: -2;
}

@keyframes rotateHalo {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateHaloReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

.section1-2 img{
    border-radius: 50%;
    height: 340px;
    width: 340px;
    border: none;
    box-shadow: none;
    object-fit: contain;
    background-color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.5);
}

.section1-2 img:hover {
    transform: scale(1.04) rotateZ(-2deg);
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.62);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.btn1{
    padding: 14px 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(51, 65, 85, 0.1) 100%);
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.btn1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn1:hover::before {
    transform: translateX(100%);
}

.btn2{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 50%, #0ea5e9 100%);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(3, 105, 161, 0.4);
}

.btn3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.45);
    background: rgba(3, 7, 18, 0.35);
    color: #dbeafe;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.hero-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.32);
    background: linear-gradient(130deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.68));
    color: #cbd5e1;
    font-size: 13px;
}

.hero-metrics strong {
    color: #7dd3fc;
    font-size: 14px;
}

.btn2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn2:hover::after {
    transform: translateX(100%);
}

.btn1,
.btn2,
.btn3,
.btn-submit {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn1:hover,
.btn1:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(51, 65, 85, 0.15) 100%);
}

.btn2:hover,
.btn2:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(3, 105, 161, 0.55);
}

.btn3:hover,
.btn3:focus {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.85);
    box-shadow: 0 14px 32px rgba(56, 189, 248, 0.22);
}

.btn-submit:hover,
.btn-submit:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(29, 78, 216, 0.45);
}

.section2-1{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 64px;
}

.section2-1 h1{
    color: white;
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section2-1 p{
    width: 65%;
    font-size: clamp(16px, 2vw, 20px);
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.section2-2{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 48px;
    width: min(1100px, 94%);
    margin-left: auto;
    margin-right: auto;
}

.cercle-group {
    animation: revealCard 0.6s ease backwards;
}

.section2-2 .cercle-group:nth-child(1) { animation-delay: 0.1s; }
.section2-2 .cercle-group:nth-child(2) { animation-delay: 0.2s; }
.section2-2 .cercle-group:nth-child(3) { animation-delay: 0.3s; }
.section2-2 .cercle-group:nth-child(4) { animation-delay: 0.4s; }

.cercle-group{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: linear-gradient(165deg, rgba(12, 16, 45, 0.8), rgba(6, 9, 30, 0.6));
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    min-width: 220px;
}

.cercle-group:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(165deg, rgba(12, 16, 45, 0.95), rgba(6, 9, 30, 0.75));
    box-shadow: 0 12px 32px rgba(3, 105, 161, 0.22);
    transform: translateY(-6px);
}

.cercle{
    height: 72px;
    width: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(3, 105, 161, 0.15));
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.cercle-group:hover .cercle {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(3, 105, 161, 0.25));
}

.contact-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-mail {
    width: 30px;
    height: 30px;
}

.logo-github,
.logo-discord {
    width: 42px;
    height: 42px;
}

.cercle-group:hover .contact-logo {
    transform: scale(1.1);
}

.innercercle{
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    transition: all 0.3s ease;
}

.cercle-group:hover .innercercle{
    width: 28px;
    height: 28px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

.textcercle{
    text-align: center;
    font-size: 15px;
    color: #cbd5e1;
}

.textcercle h3 {
    margin: 0 0 8px;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
}

.section3-titre{
    margin-top: 80px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section3{
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 300px));
    justify-content: center;
    gap: 28px;
    width: min(1100px, 92%);
    margin: 18px auto 0;
}

.section3-1 p{
    color: var(--text-main);
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.22);
}

.section3-1{
    min-height: 430px;
    border: 1px solid rgba(30, 144, 255, 0.7);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(6, 18, 40, 0.96), rgba(8, 26, 49, 0.94));
    box-shadow: 0 18px 40px rgba(0, 4, 18, 0.45);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: revealCard 0.8s ease both;
    transform: perspective(900px) rotateX(3deg);
}

.section3-1:nth-child(even) {
    transform: perspective(900px) rotateX(3deg) rotateY(-2deg);
}

.section3-1:nth-child(odd) {
    transform: perspective(900px) rotateX(3deg) rotateY(2deg);
}

.section3-1::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(34, 211, 238, 0.55), rgba(14, 116, 144, 0.08) 45%, rgba(56, 189, 248, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.project-card--progress::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(245, 158, 11, 0.18) 50%, transparent 80%);
    transform: translateX(-120%);
    animation: projectSweep 3.2s ease-in-out infinite;
    z-index: 0;
}

.section3-1:hover{
    transform: perspective(900px) translateY(-12px) rotateX(0deg) rotateY(0deg);
    box-shadow: 0 24px 48px rgba(0, 5, 20, 0.55), 0 0 0 1px rgba(30, 144, 255, 0.65) inset;
    border-color: rgba(56, 189, 248, 0.95);
}

.section3-1:hover::before {
    opacity: 1;
}

.project-media {
    position: relative;
    height: 200px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.26);
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.1) brightness(0.82);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.section3-1:hover .project-media img {
    transform: scale(1.04);
    filter: saturate(1.2) brightness(0.92);
}

.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(5, 10, 27, 0.82) 100%);
}

.project-media--placeholder {
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.2), transparent 58%),
        linear-gradient(140deg, rgba(8, 20, 44, 0.95), rgba(8, 26, 49, 0.9));
}

.project-media--placeholder img {
    object-fit: contain;
    padding: 42px;
    filter: brightness(1.15);
}

.project-media--retro > img {
    object-fit: contain;
    padding: 8px;
}

.project-media--r > img {
    object-fit: contain;
    padding: 18px;
}

.project-overlay-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 12px;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.section3-1:hover .project-overlay-actions,
.section3-1:focus-within .project-overlay-actions {
    opacity: 1;
    pointer-events: auto;
}

.project-action-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: #0ea5e9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(14, 165, 233, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.project-action-btn::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.45);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-action-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.6);
}

.project-action-btn:hover::after {
    opacity: 1;
    transform: scale(1.06);
}

.project-action-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

.project-action-btn--link span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #032338;
}

.project-action-btn--github img {
    width: 34px;
    height: 34px;
    filter: none;
    object-fit: cover;
    clip-path: circle(38% at 50% 50%);
}

.project-media--retro .project-action-btn--github img {
    width: 40px;
    height: 40px;
}

.project-body {
    position: relative;
    z-index: 1;
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: calc(100% - 200px);
}

.project-status,
.project-track,
.project-description,
.section3-1 p {
    position: relative;
    z-index: 1;
}

.project-status {
    position: static;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.55);
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.55), rgba(245, 158, 11, 0.38));
    color: #fffbeb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    overflow: hidden;
    white-space: normal;
    line-height: 1.2;
    animation: statusButtonFloat 2.8s ease-in-out infinite;
}

.project-status::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.45) 48%, transparent 78%);
    transform: translateX(-130%);
    animation: statusShine 3s ease-in-out infinite;
}

.project-status--live {
    border: 1px solid rgba(52, 211, 153, 0.65);
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.62), rgba(16, 185, 129, 0.36));
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.status-dot--live {
    background: #34d399;
    box-shadow: 0 0 0 rgba(52, 211, 153, 0.65);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 rgba(245, 158, 11, 0.65);
    animation: statusPulse 1.8s ease-out infinite;
}

.project-track {
    margin-top: auto;
    color: #7dd3fc;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-description {
    color: #d3e5f5;
    font-size: 18px;
    line-height: 1.5;
    margin-top: 0;
}

.section3-1:nth-child(2) {
    animation-delay: 0.12s;
}

.section3-1:nth-child(3) {
    animation-delay: 0.24s;
}

.section3-1:nth-child(4) {
    animation-delay: 0.36s;
}

.section3-1:nth-child(5) {
    animation-delay: 0.48s;
}

@keyframes revealCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statusPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes projectSweep {
    0%,
    100% {
        transform: translateX(-120%);
    }
    50% {
        transform: translateX(120%);
    }
}

@keyframes statusButtonFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes statusShine {
    0%,
    100% {
        transform: translateX(-130%);
    }
    45%,
    70% {
        transform: translateX(130%);
    }
}

.section4-titre{
    margin-top: 80px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section4-subtitle {
    margin: -14px auto 24px;
    width: min(760px, 92%);
    text-align: center;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.5;
}

.section35-titre {
    margin-top: 80px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section35 {
    width: min(1160px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 24px;
}

.about-more-card {
    min-height: 210px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 20px;
    padding: 26px;
    background: linear-gradient(155deg, rgba(7, 13, 34, 0.9), rgba(2, 6, 23, 0.8));
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: revealCard 0.8s ease both;
}

.about-more-card:hover {
    transform: translateY(-8px);
    border-color: rgba(125, 211, 252, 0.8);
    box-shadow: 0 20px 38px rgba(14, 116, 144, 0.28);
}

.about-more-card h3 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 30px);
    color: #f8fafc;
}

.about-more-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.65;
    font-size: clamp(15px, 1.8vw, 17px);
}

@media (max-width: 1100px) {
    body {
        background-attachment: scroll;
    }

    .navbar {
        padding: 16px 22px;
    }

    .contact {
        gap: 20px;
        font-size: 16px;
    }

    .section1 {
        gap: 34px;
        padding: 0 24px;
    }

    .section1-2 img {
        width: min(300px, 34vw);
        height: min(300px, 34vw);
    }

    .section2-1 p {
        width: min(760px, 86%);
    }

    .section3 {
        width: min(1100px, 94%);
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }

    .section4,
    .section35 {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }

    .section5 {
        max-width: 92%;
    }
}

.about-more-card:nth-child(2) {
    animation-delay: 0.12s;
}

.about-more-card:nth-child(3) {
    animation-delay: 0.24s;
}

.section4{
    width: min(1160px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
}

.skill-card {
    min-height: 160px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, 0.35);
    background:
        radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.18), transparent 38%),
        linear-gradient(165deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.84));
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: revealCard 0.7s ease both;
}

.skill-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(130deg, rgba(56, 189, 248, 0.6), rgba(30, 64, 175, 0.22) 45%, rgba(56, 189, 248, 0.08));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.8;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(125, 211, 252, 0.7);
    box-shadow: 0 20px 36px rgba(2, 6, 23, 0.6), 0 0 24px rgba(56, 189, 248, 0.2);
}

.skill-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #e2e8f0;
    position: relative;
    z-index: 1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.skill-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.66));
    color: #dbeafe;
    font-size: 14px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.14);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.skill-tags span i {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-tags span:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #93c5fd;
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.98), rgba(37, 99, 235, 0.34));
    color: #ffffff;
}

.skill-card:nth-child(2) { animation-delay: 0.08s; }
.skill-card:nth-child(3) { animation-delay: 0.16s; }
.skill-card:nth-child(4) { animation-delay: 0.24s; }
.skill-card:nth-child(5) { animation-delay: 0.32s; }
.skill-card:nth-child(6) { animation-delay: 0.4s; }

.section5-titre{
    margin-top: 80px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section5 {
    margin-top: 40px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section5-1 {
    display: flex;
    flex-direction: column;
}

.section5-1 input,
.section5-1 textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: rgb(255, 255, 255);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
}

.section5-1 input::placeholder,
.section5-1 textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.section5-1 input:focus,
.section5-1 textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.12);
}

.section5-1:nth-child(5) {
    grid-column: 1 / -1;
}

.section5-1 textarea {
    min-height: 140px;
    resize: vertical;
}

.btn-submit {
    grid-column: 1 / -1;
    padding: 14px 40px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 50%, #0ea5e9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.35);
    width: fit-content;
    margin: 20px auto 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-feedback {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 10px;
    display: none;
}

.form-feedback.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.lien-linkedin{
    color: white;
    text-decoration: none;
}

.contact-ribbon {
    width: min(1160px, 94%);
    margin: 0 auto 80px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.76));
    border: 1px solid rgba(125, 211, 252, 0.24);
    box-shadow: 0 20px 38px rgba(2, 6, 23, 0.46);
}

.contact-pill {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 82px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(59, 130, 246, 0.32);
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.68));
    backdrop-filter: blur(6px);
    min-width: 0;
    transform: perspective(700px) rotateX(6deg);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.contact-pill:hover {
    transform: perspective(700px) rotateX(0deg) translateY(-5px);
    border-color: rgba(125, 211, 252, 0.78);
    box-shadow: 0 14px 28px rgba(30, 64, 175, 0.28);
}

.contact-pill:nth-child(even) {
    transform: perspective(700px) rotateX(6deg);
}

.contact-pill:nth-child(even):hover {
    transform: perspective(700px) rotateX(0deg) translateY(-5px);
}

.contact-pill-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-pill-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-top: 1px;
}

.contact-pill-text span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a5f3fc;
    line-height: 1.1;
}

.contact-pill-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9, #34d399);
    width: 0%;
    z-index: 100;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    transition: width 0.15s ease;
}

/* ============ NAVBAR SCROLL STATE ============ */
.navbar.scrolled {
    background: rgba(2, 6, 23, 0.65);
    border-bottom-color: rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(12px);
}

/* ============ FLOATING ACTIONS MENU ============ */
.float-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 50%, #0ea5e9 100%);
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
    line-height: 1;
}

.float-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(29, 78, 216, 0.5);
}

.float-toggle:active {
    transform: scale(0.96);
}

.toggle-icon {
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-toggle.active .toggle-icon {
    transform: rotate(45deg);
}

/* ============ FLOATING ACTIONS ============ */
.floating-actions {
    position: fixed;
    bottom: 80px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 40;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-actions.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.float-action {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.15));
    border: 1.5px solid rgba(125, 211, 252, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.4);
    opacity: 0;
    transform: scale(0.7) translateY(-10px);
}

.floating-actions.show .float-action {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.float-action:nth-child(1) {
    transition-delay: 0.05s;
}

.float-action:nth-child(2) {
    transition-delay: 0.1s;
}

.float-action:nth-child(3) {
    transition-delay: 0.15s;
}

.float-action img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.float-action:hover {
    transform: translateY(-6px) scale(1.12);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(34, 211, 238, 0.25));
    border-color: rgba(125, 211, 252, 0.7);
    box-shadow: 0 12px 36px rgba(59, 130, 246, 0.35);
}

.float-action:hover img {
    transform: scale(1.15);
}

.float-action:active {
    transform: translateY(-2px) scale(0.95);
}

/* ============ STICKY CTA BUTTON ============ */
.sticky-cta {
    position: fixed;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 52px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 50%, #0ea5e9 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    z-index: 40;
    opacity: 0;
    transform: translateY(120px) scale(0.8);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sticky-cta.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sticky-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(29, 78, 216, 0.55);
    background: linear-gradient(135deg, #1e40af 0%, #0369a1 50%, #0284c7 100%);
}

.sticky-cta:active {
    transform: translateY(-2px) scale(0.98);
}

.sticky-cta svg {
    width: 18px;
    height: 18px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============ FORM IMPROVEMENTS ============ */
.section5-1 input,
.section5-1 textarea {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section5-1 textarea {
    min-height: 120px;
}

.section5-1 input:disabled,
.section5-1 textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit {
    min-height: 48px;
    font-size: 15px;
}

/* ============ FOCUS STATES & ACCESSIBILITY ============ */
.section5-1 input:focus,
.section5-1 textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 0 0 1px rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.14);
}

.menu-toggle:focus,
.btn-submit:focus,
.float-action:focus,
.float-toggle:focus,
.sticky-cta:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Keyboard navigation visible focus */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Touch-friendly tap feedback */
@media (hover: none) and (pointer: coarse) {
    .btn1,
    .btn2,
    .btn-submit,
    .float-action,
    .float-toggle,
    .sticky-cta,
    .section3-1,
    .skill-card,
    .contact-pill,
    .about-more-card,
    .menu-toggle {
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    }

    .project-overlay-actions {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============ LOADING SPINNER ============ */
.btn-submit.loading {
    cursor: wait;
}

.loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============ FOOTER ============ */
.footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 1px solid rgba(125, 211, 252, 0.2);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.4), rgba(15, 23, 42, 0.3));
    backdrop-filter: blur(8px);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    margin: 4px 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.footer-content p:first-child {
    color: #e2e8f0;
    font-weight: 500;
}

/* RESPONSIVE - Mobile (< 768px) */
@media (max-width: 767px) {
    .floating-actions {
        display: flex;
        bottom: 80px;
        right: 12px;
    }

    .float-toggle {
        display: flex;
        bottom: 12px;
        right: 12px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .sticky-cta {
        bottom: 74px;
        right: 12px;
    }

    .footer {
        margin-top: 60px;
        padding: 28px 14px;
    }

    .footer-content p {
        font-size: 12px;
        margin: 3px 0;
    }

    .navbar {
        position: sticky;
        top: 0;
        z-index: 20;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 12px 14px;
        margin: 0;
    }

    .name h1 {
        font-size: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .contact {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        width: min(260px, calc(100vw - 24px));
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        font-size: 15px;
        padding: 8px;
        border-radius: 14px;
        border: 1px solid rgba(125, 211, 252, 0.28);
        background: rgba(2, 6, 23, 0.94);
        box-shadow: 0 18px 36px rgba(2, 6, 23, 0.58);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.24s ease, transform 0.24s ease;
    }

    .contact a {
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .navbar.is-open .contact {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .section1 {
        flex-direction: column;
        align-items: center;
        margin-top: 24px;
        gap: 24px;
        padding: 0 14px;
    }

    .section1::before {
        width: 94%;
        left: 3%;
        top: -12px;
        height: 210px;
    }

    .section1-1 {
        gap: 20px;
        width: 100%;
        padding: 16px;
    }

    .section1-1-1 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section1-1 h1{
        text-align: center;
        font-size: clamp(34px, 11vw, 48px);
    }

    .section1-1 p {
        font-size: 16px;
        text-align: center;
    }

    .hero-kicker {
        display: flex;
        width: fit-content;
        margin: 0 auto 6px;
        text-align: center;
        justify-content: center;
        align-self: center;
        transform: none;
    }

    .hero-metrics {
        justify-content: center;
    }

    .section1-2 img {
        margin-top: 0;
        height: min(70vw, 270px);
        width: min(70vw, 270px);
    }

    .section1-2::before,
    .section1-2::after {
        display: none;
    }

    .section1-1-2 {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .btn1, .btn2, .btn3 {
        width: 100%;
        max-width: 320px;
    }

    .section2-1 p {
        width: 94%;
        font-size: 16px;
        line-height: 1.7;
    }

    .contact-ribbon {
        width: 94%;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        margin-bottom: 50px;
    }

    .contact-pill {
        min-height: 72px;
        transform: none;
    }

    .contact-pill:nth-child(even) {
        transform: none;
    }

    .contact-pill-text strong {
        font-size: 14px;
    }

    .section3-titre, .section35-titre, .section4-titre {
        font-size: 28px;
        margin-top: 56px;
        margin-bottom: 24px;
    }

    .section4-subtitle {
        margin: -8px auto 18px;
        width: 90%;
        font-size: 14px;
    }

    .section3 {
        width: 94%;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-overlay-actions {
        top: auto;
        left: auto;
        right: 10px;
        bottom: 10px;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        gap: 8px;
    }

    .section3-1 {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        min-height: unset;
        transform: none;
    }

    .project-media {
        height: 180px;
    }

    .project-body {
        height: auto;
        padding: 16px 16px 18px;
        gap: 10px;
    }

    .section3-1 p {
        font-size: clamp(22px, 7vw, 30px);
    }

    .project-description {
        font-size: 15px;
        line-height: 1.45;
    }

    .project-status {
        font-size: 10px;
        padding: 6px 10px;
    }

    .project-action-btn {
        width: 48px;
        height: 48px;
    }

    .project-action-btn img {
        width: 22px;
        height: 22px;
    }

    .project-action-btn--github img {
        width: 30px;
        height: 30px;
    }

    .project-media--retro .project-action-btn--github img {
        width: 34px;
        height: 34px;
    }

    .section4 {
        width: 94%;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section35 {
        width: 94%;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-more-card {
        min-height: unset;
        padding: 18px;
    }

    .about-more-card h3 {
        font-size: 22px;
    }

    .skill-card {
        min-height: unset;
        padding: 18px;
    }

    .skill-card h3 {
        font-size: 20px;
    }

    .skill-tags span {
        font-size: 13px;
    }

    .section5 {
        grid-template-columns: 1fr;
        max-width: 94%;
        gap: 15px;
        margin-bottom: 44px;
        padding: 0;
    }

    .section5-1:nth-child(5) {
        grid-column: 1;
    }

    .btn-submit {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    #home, #about, #skills, #projects, #more-about, #contact {
        scroll-margin-top: 120px;
    }

    .section3-titre, .section35-titre, .section4-titre, .section5-titre {
        font-size: 24px;
    }

    .project-overlay-actions {
        right: 8px;
        bottom: 8px;
        gap: 6px;
    }

    .project-media {
        height: 160px;
    }

    .project-body {
        padding: 14px 14px 16px;
    }

    .project-description {
        font-size: 14px;
        line-height: 1.4;
    }

    .section4-subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .contact-pill {
        padding: 12px;
        gap: 10px;
    }

    .contact-pill-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        padding: 2px;
    }

    .contact-pill-text strong {
        font-size: 13px;
    }

    /* ============ MOBILE FLOATING ACTIONS ============ */
    .floating-actions {
        bottom: 74px;
        right: 12px;
    }

    .float-action {
        width: 48px;
        height: 48px;
    }

    .float-action img {
        width: 22px;
        height: 22px;
    }

    /* ============ MOBILE STICKY CTA ============ */
    .sticky-cta {
        bottom: 12px;
        right: 12px;
        padding: 10px 16px;
        font-size: 12px;
        min-height: 48px;
    }

    .sticky-cta span {
        display: none;
    }

    .sticky-cta:has(svg) {
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 50%;
        background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 50%, #0ea5e9 100%);
    }

    .float-toggle {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .footer {
        margin-top: 40px;
        padding: 20px 10px;
    }

    .footer-content p {
        font-size: 11px;
        margin: 2px 0;
    }
}
