* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    list-style: none;
    text-decoration: none;
}

a {
    text-decoration: none !important;
}

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

:root {
    --bg-color: #1f1f21;
    --text-color: #fff;
    --main-color: #ffae00;
    --section-bg: #2a2a2c;
    --card-bg: #252527;

    --big-font: 4.5rem;
    --h2-font: 2.5rem;
    --h3-font: 1.8rem;
    --p-font: 1.1rem;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    max-width: 100vw;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 174, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 174, 0, 0.03) 0%, transparent 50%);
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Override Bootstrap styles */
.form-control {
    background: var(--card-bg);
    border: 1px solid #3b3b3b;
    color: var(--text-color);
    padding: 12px 20px;
}

.form-control:focus {
    background: var(--card-bg);
    border-color: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 174, 0, 0.25);
}

.form-control::placeholder {
    color: #888;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 15%;
    background: transparent;
    transition: all ease .45s;
}

header.scrolled {
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 15%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    color: var(--text-color);
    font-size: clamp(20px, 2.5vw + 10px, 32px);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.logo-img {
    height: clamp(35px, 4vw + 10px, 50px);
    width: auto;
    margin-right: clamp(8px, 1vw + 4px, 10px);
}

.navbar {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar a {
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--text-color);
    margin: 0 25px;
    transition: all ease .50s;
}

.navbar a:hover {
    color: var(--main-color);
}

.navbar a.active {
    color: var(--main-color);
}

.menu-btn {
    background: linear-gradient(130.08deg, #383528 0%, #191919 100%);
    box-shadow: 0px 20px 40px #00000070;
    border: 1px solid #3b3b3b;
    padding: 10px 20px;
    border-radius: 100px;
    display: none;
    /* Masqué par défaut */
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    z-index: 1001;
    position: relative;
}

.menu-btn span {
    font-size: clamp(11px, 1.2vw + 8px, 14px);
    font-weight: 600;
}

#menu-icon {
    font-size: clamp(20px, 2vw + 14px, 28px);
    margin-left: clamp(6px, 0.8vw + 4px, 10px);
    z-index: 1001;
    transition: transform 0.2s ease;
}

#menu-icon.bx-x {
    transform: rotate(180deg);
}

section {
    padding: clamp(60px, 8vw + 20px, 80px) 0;
}

section:nth-child(even) {
    background: var(--section-bg);
}

.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 15% 50px;
}

.home-img {
    width: 100%;
    max-width: clamp(280px, 30vw + 150px, 380px);
    margin: 0 auto;
}

.home-img img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--main-color);
}

.home-text span {
    padding: clamp(6px, 0.8vw + 4px, 8px) clamp(20px, 2.5vw + 15px, 30px);
    background: linear-gradient(130.08deg, #383528 0%, #191919 100%);
    box-shadow: 0px 20px 40px #00000070;
    border: 1px solid #3b3b3b;
    border-radius: 100px;
    color: var(--text-color);
    font-weight: 700;
    font-size: clamp(12px, 1vw + 8px, 14px);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.home-text h1 {
    font-size: clamp(24px, 2vw + 16px, 28px);
    margin: clamp(20px, 2vw + 12px, 25px) 0;
    line-height: 1.2;
}

.home-text p {
    font-size: var(--p-font);
    font-weight: 400;
    color: #c3c3c3;
    line-height: 1.8;
    margin-bottom: 15px;
}

.home-text .lead {
    font-size: 1.2rem;
    color: #e0e0e0;
    font-weight: 400;
    line-height: 1.8;
}

.home-text strong {
    color: var(--main-color);
    font-weight: 600;
}

/* .before-mg{
    margin-bottom: 50px;
} */
.btn {
    display: inline-block;
    padding: clamp(10px, 1.2vw + 8px, 14px) clamp(24px, 2.5vw + 18px, 34px);
    background-color: var(--main-color);
    color: var(--text-color);
    border: 2px solid var(--main-color);
    font-size: clamp(14px, 1vw + 10px, 16px);
    font-weight: 600;
    border-radius: clamp(6px, 0.5vw + 4px, 8px);
    transition: all 0.6s ease-in-out;
}

.btn:hover {
    transform: translateY(-5px);
    background: transparent;
    color: var(--main-color);
}

.main-btn {
    margin-top: 50px;
}

.two {
    background: #141414;
    border: 2px solid #141414;
    color: var(--text-color);
    margin-left: 25px;
}

.two:hover {
    color: #141414;
    background: var(--text-color);
    border: 2px solid var(--text-color);
}

.share {
    position: absolute;
    bottom: 3rem;
    left: 15%;
    display: flex;
    align-items: center;
}

.share p {
    font-size: 17px;
    color: var(--text-color);
    margin-right: 25px;
}

.social i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    background: linear-gradient(130.08deg, #383528 0%, #191919 100%);
    box-shadow: 0px 20px 40px #00000070;
    border: 1px solid #3b3b3b;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 20px;
    margin: 0 7px;
    transition: all 0.6s ease-in-out;
}

.social i:hover {
    transform: translateY(-10px);
}

/* Section Titles */
.section-title {
    font-size: clamp(20px, 2vw + 14px, 28px);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--main-color);
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--section-bg);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c3c3c3;
    margin-bottom: 30px;
}

.info-card {
    background: var(--card-bg);
    padding: clamp(20px, 2.5vw + 12px, 30px);
    border-radius: clamp(10px, 1vw + 6px, 15px);
    border: 1px solid #3b3b3b;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(255, 174, 0, 0.1);
}

.info-card h4 {
    color: var(--main-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p,
.info-card a {
    color: #c3c3c3;
    margin: 0;
}

.info-card a:hover {
    color: var(--main-color);
}

.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    padding: 15px 0;
    border-bottom: 1px solid #3b3b3b;
    font-size: 1.05rem;
    color: #c3c3c3;
}

.achievements-list li:last-child {
    border-bottom: none;
}

.achievements-list i {
    color: var(--main-color);
    font-size: 1.5rem;
    margin-right: 15px;
    vertical-align: middle;
}

/* Skills Section */
.skills {
    background: var(--bg-color);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item span {
    font-size: 1.05rem;
    color: var(--text-color);
    font-weight: 500;
}

.progress {
    height: 12px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--main-color) 0%, #ffd700 100%);
    transition: width 1.5s ease;
}

.soft-skill-item {
    background: var(--card-bg);
    padding: clamp(18px, 2vw + 10px, 25px);
    border-radius: clamp(10px, 0.8vw + 6px, 12px);
    border: 1px solid #3b3b3b;
    transition: all 0.3s ease;
}

.soft-skill-item:hover {
    border-color: var(--main-color);
    transform: translateX(10px);
}

.soft-skill-item i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.soft-skill-item h5 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.soft-skill-item p {
    color: #888;
    margin: 0;
    font-size: 0.95rem;
}

.languages .language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid #3b3b3b;
}

.languages .language-item span:first-child {
    font-weight: 500;
    color: var(--text-color);
}

/* Experience Section */
.experience {
    background: var(--section-bg);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--main-color);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
}

.timeline-badge {
    position: absolute;
    left: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-badge i {
    font-size: 20px;
    color: var(--bg-color);
}

.timeline-panel {
    background: var(--card-bg);
    padding: clamp(20px, 2.5vw + 12px, 30px);
    border-radius: clamp(10px, 1vw + 6px, 15px);
    border: 1px solid #3b3b3b;
    transition: all 0.3s ease;
}

.timeline-panel:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(255, 174, 0, 0.1);
}

.timeline-heading h4 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.timeline-heading .company {
    color: var(--main-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-heading .text-muted {
    color: #888 !important;
    font-size: 0.95rem;
}

.timeline-body ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.timeline-body li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #c3c3c3;
}

.timeline-body li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--main-color);
}

/* Education Section */
.education {
    background: var(--bg-color);
}

.education-item {
    padding: 20px 0;
}

.education-date {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--main-color);
    text-align: center;
}

.education-date i {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.education-date p {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

.education-content {
    background: var(--card-bg);
    padding: clamp(20px, 2.5vw + 12px, 30px);
    border-radius: clamp(10px, 1vw + 6px, 15px);
    border: 1px solid #3b3b3b;
    transition: all 0.3s ease;
    height: 100%;
}

.education-content:hover {
    border-color: var(--main-color);
    transform: translateX(10px);
}

.education-content h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.education-content .school {
    color: var(--main-color);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.education-content p {
    color: #c3c3c3;
    margin: 0;
}

/* Tech Watch Section */
.tech-watch {
    background: var(--section-bg);
}

/* Volunteer Section */
.volunteer {
    background: var(--bg-color);
}

.volunteer-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #3b3b3b;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.volunteer-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 15px 40px rgba(255, 174, 0, 0.15);
}

.volunteer-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--main-color) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volunteer-icon i {
    font-size: 2.5rem;
    color: var(--bg-color);
}

.volunteer-card h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.volunteer-date {
    color: var(--main-color);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.volunteer-card p {
    color: #c3c3c3;
}

/* Hobbies */
.hobbies {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hobby-item {
    text-align: center;
    transition: all 0.3s ease;
}

.hobby-item:hover {
    transform: scale(1.1);
}

.hobby-item i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 10px;
    display: block;
}

.hobby-item p {
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--section-bg);
}


.contact-info-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #3b3b3b;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(255, 174, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--main-color) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--bg-color);
}

.contact-info-card h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info-card p,
.contact-info-card a {
    color: #c3c3c3;
    margin: 0;
}

.contact-info-card a:hover {
    color: var(--main-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #3b3b3b;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(130.08deg, #383528 0%, #191919 100%);
    box-shadow: 0px 20px 40px #00000070;
    border: 1px solid #3b3b3b;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 28px;
    transition: all 0.4s ease;
}

.social-links a:hover {
    transform: translateY(-10px) rotate(360deg);
    border-color: var(--main-color);
    color: var(--main-color);
}

/* Footer */
.footer {
    background: #141414;
    border-top: 1px solid #3b3b3b;
}

.footer p {
    margin: 5px 0;
    color: #888;
}

.footer i {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Floating Code Symbols */
.code-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.code-symbol {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--main-color);
    opacity: 0.25;
    font-size: 2rem;
    animation: float 20s infinite ease-in-out;
}

.code-symbol:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; font-size: 3rem; color: #ff4444; }
.code-symbol:nth-child(2) { left: 80%; top: 10%; animation-delay: 2s; font-size: 2.5rem; color: #4a9eff; }
.code-symbol:nth-child(3) { left: 20%; top: 60%; animation-delay: 4s; font-size: 2rem; color: var(--main-color); }
.code-symbol:nth-child(4) { left: 70%; top: 50%; animation-delay: 1s; font-size: 3.5rem; color: #ff6b6b; }
.code-symbol:nth-child(5) { left: 40%; top: 30%; animation-delay: 3s; font-size: 2.2rem; color: #5fa8ff; }
.code-symbol:nth-child(6) { left: 85%; top: 70%; animation-delay: 5s; font-size: 2.8rem; color: #ffae00; }
.code-symbol:nth-child(7) { left: 15%; top: 80%; animation-delay: 2.5s; font-size: 2.3rem; color: #4a9eff; }
.code-symbol:nth-child(8) { left: 60%; top: 25%; animation-delay: 4.5s; font-size: 3rem; color: #ff5555; }
.code-symbol:nth-child(9) { left: 30%; top: 90%; animation-delay: 1.5s; font-size: 2rem; color: #6bb6ff; }
.code-symbol:nth-child(10) { left: 90%; top: 40%; animation-delay: 3.5s; font-size: 2.6rem; color: #ffae00; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.25;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-40px) rotate(-5deg);
        opacity: 0.20;
    }
    75% {
        transform: translateY(-20px) rotate(3deg);
        opacity: 0.30;
    }
}

@media (max-width: 768px) {
    .code-symbol {
        font-size: 1.5rem;
        opacity: 0.18;
    }
    .code-symbol:nth-child(1) { font-size: 2rem; }
    .code-symbol:nth-child(2) { font-size: 1.8rem; }
    .code-symbol:nth-child(4) { font-size: 2.2rem; }
    .code-symbol:nth-child(6) { font-size: 2rem; }
    .code-symbol:nth-child(8) { font-size: 2.1rem; }
}


@media (max-width: 1850px) {
    header {
        padding: 15px 8%;
        transition: .2s;
    }

    section {
        padding: 0 8%;
        transition: .2s;
    }

    .share {
        left: 8%;
        transition: .2s;
    }
}

@media (max-width: 1470px) {
    header {
        padding: 15px 4%;
        transition: .2s;
    }

    section {
        padding: 0 4%;
        transition: .2s;
    }

    .share {
        left: 4%;
        transition: .2s;
    }

    :root {
        --big-font: 5.5rem;
        --p-font: 1rem;
        transition: .2s;
    }
}

@media (max-width: 1020px) {
    .navbar a {
        margin: 0 15px;
    }

    :root {
        --big-font: 5rem;
        --p-font: 1rem;
        transition: .2s;
    }
}

@media (max-width: 950px) {
    .share {
        display: none;
    }

    section {
        padding: 70px 4%;
    }

    header {
        padding: 11px 4%;
        background: #2d2d2d;
    }

    .home {
        height: auto;
        display: flex;
        flex-wrap: wrap;
    }

    .home-text {
        order: 2;
    }

    .home-img {
        margin: auto;
        height: auto;
        width: auto;
    }

    .home-img img {
        max-width: 400px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 8%;
    }

    header.scrolled {
        padding: 15px 8%;
    }

    .menu-btn {
        display: flex;
        /* Visible uniquement sur mobile */
        padding: 8px 16px;
    }

    .menu-btn span {
        font-size: 12px;
    }

    #menu-icon {
        font-size: 24px;
        margin-left: 8px;
    }

    .navbar {
        position: fixed;
        width: 240px;
        height: auto;
        max-height: calc(100vh - 100px);
        padding: 15px 15px;
        top: 75px;
        right: -300px;
        left: auto;
        display: flex;
        flex-direction: column;
        background: rgba(45, 45, 45, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.2s ease-out;
        z-index: 999;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid #3b3b3b;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar a {
        display: block;
        color: #c3c3c3;
        padding: 8px 0;
        margin: 0;
        font-size: 0.95rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .navbar a:last-child {
        border-bottom: none;
    }

    .navbar a:hover,
    .navbar a.active {
        color: var(--main-color);
        padding-left: 10px;
    }

    .navbar.open {
        right: 20px;
    }

    .home-img {
        max-width: 320px;
    }

    .home-text span {
        font-size: 13px;
        padding: 7px 25px;
    }
}

@media (max-width: 500px) {
    :root {
        --big-font: 3rem;
        --p-font: 15px;
        transition: .2s;
    }

    .btn {
        padding: 9px 28px;
        font-size: 14px;
    }

    header {
        padding: 15px 5% !important;
    }

    section {
        padding: 60px 5% !important;
    }

    .home {
        padding: 100px 5% 50px !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .menu-btn {
        padding: 6px 12px;
    }

    .menu-btn span {
        font-size: 11px;
    }

    #menu-icon {
        font-size: 20px;
        margin-left: 6px;
    }

    .navbar {
        padding: 15px 12px;
        width: 200px;
        max-height: calc(100vh - 90px);
    }

    .navbar a {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .main-btn {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .btn.two {
        margin-left: 0;
        margin-top: 0;
    }

    .home-img {
        margin-top: 30px !important;
        max-width: 280px;
    }

    .home-text span {
        font-size: 12px;
        padding: 6px 20px;
    }
}

.home-img img {
    animation: imgg 2s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes imgg {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-22px);
    }

    100% {
        transform: translateY(0);
    }
}