/* =========================================================
   PORTFOLIO - GUETABA NIRBHAO
   STYLE.CSS COMPLET
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {

    --bg: #070a12;

    --bg-secondary: #0c101a;

    --card: #101622;

    --card-hover: #151d2c;

    --text: #f5f7fa;

    --text-secondary: #9da8b8;

    --accent: #00e5ff;

    --accent-secondary: #6c63ff;

    --border: rgba(255, 255, 255, 0.10);

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    --transition:
        all 0.35s ease;

    --radius: 18px;

    --max-width: 1180px;
}


/* =========================================================
   2. MODE CLAIR
   ========================================================= */

body.light-mode {

    --bg: #f5f7fb;

    --bg-secondary: #ffffff;

    --card: #ffffff;

    --card-hover: #f0f3f8;

    --text: #101522;

    --text-secondary: #5c6675;

    --border: rgba(0, 0, 0, 0.10);

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   3. RESET
   ========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

    scroll-padding-top: 90px;

}


body {

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        var(--bg);

    color:
        var(--text);

    line-height: 1.6;

    overflow-x: hidden;

    transition:
        background 0.4s ease,
        color 0.4s ease;

}


body.no-scroll {

    overflow: hidden;

}


a {

    text-decoration: none;

    color: inherit;

}


button,
input,
textarea {

    font-family: inherit;

}


button {

    border: none;

    cursor: pointer;

}


img {

    display: block;

    max-width: 100%;

}


ul {

    list-style: none;

}


/* =========================================================
   4. CONTENEUR
   ========================================================= */

.container {

    width: min(
        92%,
        var(--max-width)
    );

    margin:
        0 auto;

}


/* =========================================================
   5. PRELOADER
   ========================================================= */

.preloader {

    position: fixed;

    inset: 0;

    background:
        var(--bg);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    z-index: 9999;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;

}


.preloader.hide {

    opacity: 0;

    visibility: hidden;

}


.loader {

    display: flex;

    gap: 8px;

    margin-bottom: 20px;

}


.loader span {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background:
        var(--accent);

    animation:
        loaderBounce 0.8s infinite alternate;

}


.loader span:nth-child(2) {

    animation-delay:
        0.2s;

}


.loader span:nth-child(3) {

    animation-delay:
        0.4s;

}


.preloader p {

    color:
        var(--text-secondary);

    font-size:
        14px;

}


@keyframes loaderBounce {

    from {

        transform:
            translateY(0);

        opacity:
            0.4;

    }

    to {

        transform:
            translateY(-10px);

        opacity:
            1;

    }

}


/* =========================================================
   6. CURSEUR
   ========================================================= */

.cursor,
.cursor-follower {

    position: fixed;

    pointer-events: none;

    z-index: 10000;

    border-radius: 50%;

    transform:
        translate(-50%, -50%);

}


.cursor {

    width: 7px;

    height: 7px;

    background:
        var(--accent);

}


.cursor-follower {

    width: 32px;

    height: 32px;

    border:
        1px solid var(--accent);

    opacity:
        0.6;

    transition:
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease;

}


body.cursor-hover
.cursor-follower {

    width: 50px;

    height: 50px;

    background:
        rgba(0, 229, 255, 0.08);

}


@media (max-width: 768px) {

    .cursor,
    .cursor-follower {

        display: none;

    }

}


/* =========================================================
   7. HEADER
   ========================================================= */

.header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 1000;

    background:
        rgba(7, 10, 18, 0.75);

    backdrop-filter:
        blur(18px);

    border-bottom:
        1px solid transparent;

    transition:
        var(--transition);

}


body.light-mode .header {

    background:
        rgba(255, 255, 255, 0.80);

}


.header.scrolled {

    border-bottom-color:
        var(--border);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12);

}


.navbar {

    width: min(
        92%,
        var(--max-width)
    );

    min-height:
        78px;

    margin:
        auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

}


.logo {

    width:
        48px;

    height:
        48px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid var(--accent);

    border-radius:
        50%;

    font-size:
        16px;

    font-weight:
        800;

    color:
        var(--text);

    transition:
        var(--transition);

}


.logo span {

    color:
        var(--accent);

}


.logo:hover {

    transform:
        rotate(360deg);

    box-shadow:
        0 0 25px
        rgba(0, 229, 255, 0.25);

}


/* =========================================================
   8. NAVIGATION
   ========================================================= */

.nav-menu {

    display:
        flex;

    align-items:
        center;

    gap:
        28px;

}


.nav-link {

    position:
        relative;

    color:
        var(--text-secondary);

    font-size:
        14px;

    font-weight:
        500;

    padding:
        8px 0;

    transition:
        var(--transition);

}


.nav-link::after {

    content:
        "";

    position:
        absolute;

    left:
        0;

    bottom:
        0;

    width:
        0;

    height:
        2px;

    background:
        var(--accent);

    transition:
        width 0.3s ease;

}


.nav-link:hover,
.nav-link.active {

    color:
        var(--accent);

}


.nav-link:hover::after,
.nav-link.active::after {

    width:
        100%;

}


/* =========================================================
   9. ACTIONS NAVBAR
   ========================================================= */

.nav-actions {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

}


.theme-toggle {

    width:
        42px;

    height:
        42px;

    border:
        1px solid var(--border);

    border-radius:
        50%;

    background:
        transparent;

    color:
        var(--text);

    font-size:
        17px;

    transition:
        var(--transition);

}


.theme-toggle:hover {

    color:
        var(--accent);

    border-color:
        var(--accent);

    transform:
        rotate(25deg);

}


/* =========================================================
   10. MENU MOBILE
   ========================================================= */

.menu-toggle {

    display:
        none;

    width:
        42px;

    height:
        42px;

    background:
        transparent;

    flex-direction:
        column;

    justify-content:
        center;

    align-items:
        center;

    gap:
        5px;

}


.menu-toggle span {

    width:
        23px;

    height:
        2px;

    background:
        var(--text);

    transition:
        var(--transition);

}


.menu-toggle.active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);

}


.menu-toggle.active span:nth-child(2) {

    opacity:
        0;

}


.menu-toggle.active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* =========================================================
   11. HERO
   ========================================================= */

.hero {

    min-height:
        100vh;

    position:
        relative;

    display:
        flex;

    align-items:
        center;

    padding:
        130px 0 80px;

    overflow:
        hidden;

}


.hero::before {

    content:
        "";

    position:
        absolute;

    width:
        550px;

    height:
        550px;

    top:
        10%;

    right:
        -200px;

    border-radius:
        50%;

    background:
        var(--accent);

    opacity:
        0.05;

    filter:
        blur(80px);

}


.hero-container {

    width:
        min(92%, var(--max-width));

    margin:
        auto;

    display:
        grid;

    grid-template-columns:
        1.1fr 0.9fr;

    align-items:
        center;

    gap:
        70px;

}


.hero-content {

    max-width:
        700px;

}


.hero-greeting {

    color:
        var(--accent);

    font-size:
        15px;

    margin-bottom:
        12px;

}


.hero-title {

    font-size:
        clamp(45px, 7vw, 82px);

    line-height:
        0.95;

    letter-spacing:
        -3px;

    margin-bottom:
        25px;

}


.hero-title span {

    display:
        block;

    color:
        transparent;

    -webkit-text-stroke:
        1px var(--accent);

}


.typing-container {

    min-height:
        42px;

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

    font-size:
        clamp(20px, 3vw, 30px);

    font-weight:
        600;

    margin-bottom:
        20px;

}


.typing-prefix {

    color:
        var(--text);

}


.typing-text {

    color:
        var(--accent);

}


.typing-cursor {

    color:
        var(--accent);

    animation:
        blink 0.8s infinite;

}


@keyframes blink {

    50% {

        opacity:
            0;

    }

}


.hero-description {

    max-width:
        650px;

    color:
        var(--text-secondary);

    font-size:
        16px;

    line-height:
        1.8;

    margin-bottom:
        32px;

}


/* =========================================================
   12. BOUTONS
   ========================================================= */

.hero-buttons {

    display:
        flex;

    gap:
        14px;

    flex-wrap:
        wrap;

}


.btn {

    position:
        relative;

    min-height:
        50px;

    padding:
        0 22px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    border-radius:
        10px;

    font-size:
        14px;

    font-weight:
        600;

    overflow:
        hidden;

    transition:
        var(--transition);

}


.btn i {

    transition:
        transform 0.3s ease;

}


.btn:hover i {

    transform:
        translateX(5px);

}


.btn-primary {

    background:
        var(--accent);

    color:
        #001014;

}


.btn-primary:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 15px 35px
        rgba(0, 229, 255, 0.22);

}


.btn-secondary {

    border:
        1px solid var(--border);

    background:
        transparent;

    color:
        var(--text);

}


.btn-secondary:hover {

    border-color:
        var(--accent);

    color:
        var(--accent);

    transform:
        translateY(-4px);

}


/* =========================================================
   13. SOCIAL HERO
   ========================================================= */

.social-links {

    display:
        flex;

    gap:
        12px;

    margin-top:
        30px;

}


.social-link {

    width:
        44px;

    height:
        44px;

    border:
        1px solid var(--border);

    border-radius:
        50%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        var(--text-secondary);

    transition:
        var(--transition);

}


.social-link:hover {

    color:
        var(--accent);

    border-color:
        var(--accent);

    transform:
        translateY(-6px);

    box-shadow:
        0 10px 25px
        rgba(0, 229, 255, 0.15);

}


/* =========================================================
   14. HERO IMAGE
   ========================================================= */

.hero-image {

    position:
        relative;

    min-height:
        500px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

}


.image-container {

    position:
        relative;

    width:
        min(390px, 85%);

    aspect-ratio:
        1;

    border-radius:
        50%;

    padding:
        8px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-secondary)
        );

    animation:
        imageFloat 5s ease-in-out infinite;

}


.image-container::before {

    content:
        "";

    position:
        absolute;

    inset:
        -15px;

    border:
        1px solid var(--accent);

    border-radius:
        50%;

    opacity:
        0.25;

    animation:
        pulseCircle 2.5s infinite;

}


.image-container img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    border-radius:
        50%;

    border:
        7px solid var(--bg);

}


@keyframes imageFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-14px);

    }

}


@keyframes pulseCircle {

    0% {

        transform:
            scale(0.95);

        opacity:
            0.4;

    }

    70% {

        transform:
            scale(1.05);

        opacity:
            0;

    }

    100% {

        opacity:
            0;

    }

}


/* =========================================================
   15. DÉCORATIONS IMAGE
   ========================================================= */

.image-decoration {

    position:
        absolute;

    border:
        1px solid var(--accent);

    opacity:
        0.3;

}


.image-decoration-one {

    width:
        70px;

    height:
        70px;

    top:
        20px;

    right:
        20px;

    transform:
        rotate(45deg);

}


.image-decoration-two {

    width:
        45px;

    height:
        45px;

    bottom:
        50px;

    left:
        20px;

    border-radius:
        50%;

}


/* =========================================================
   16. CARTES FLOTTANTES
   ========================================================= */

.floating-card {

    position:
        absolute;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    padding:
        12px 16px;

    border:
        1px solid var(--border);

    border-radius:
        12px;

    background:
        rgba(16, 22, 34, 0.85);

    backdrop-filter:
        blur(15px);

    box-shadow:
        var(--shadow);

    animation:
        floatingCard 4s ease-in-out infinite;

}


body.light-mode .floating-card {

    background:
        rgba(255, 255, 255, 0.9);

}


.floating-card span {

    font-size:
        22px;

}


.floating-card strong {

    display:
        block;

    font-size:
        12px;

}


.floating-card small {

    display:
        block;

    color:
        var(--text-secondary);

    font-size:
        10px;

}


.floating-card-one {

    left:
        0;

    bottom:
        80px;

}


.floating-card-two {

    right:
        0;

    top:
        90px;

    animation-delay:
        1s;

}


@keyframes floatingCard {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-10px);

    }

}


/* =========================================================
   17. SCROLL INDICATOR
   ========================================================= */

.scroll-indicator {

    position:
        absolute;

    bottom:
        25px;

    left:
        50%;

    transform:
        translateX(-50%);

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    gap:
        5px;

    color:
        var(--text-secondary);

    font-size:
        11px;

}


.scroll-arrow {

    color:
        var(--accent);

    font-size:
        20px;

    animation:
        scrollArrow 1.5s infinite;

}


@keyframes scrollArrow {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(8px);

    }

}


/* =========================================================
   18. STATS
   ========================================================= */

.stats-section {

    padding:
        30px 0 80px;

}


.stats-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    overflow:
        hidden;

}


.stat-item {

    padding:
        30px 20px;

    text-align:
        center;

    border-right:
        1px solid var(--border);

}


.stat-item:last-child {

    border-right:
        none;

}


.stat-icon {

    display:
        block;

    font-size:
        24px;

    margin-bottom:
        8px;

}


.stat-item strong {

    display:
        block;

    font-size:
        32px;

    color:
        var(--accent);

}


.stat-item p {

    color:
        var(--text-secondary);

    font-size:
        12px;

}


/* =========================================================
   19. SECTIONS
   ========================================================= */

.section {

    padding:
        110px 0;

}


.section-heading {

    margin-bottom:
        65px;

}


.section-number {

    color:
        var(--accent);

    font-size:
        12px;

    letter-spacing:
        3px;

}


.section-label {

    color:
        var(--text-secondary);

    font-size:
        13px;

    margin:
        8px 0;

}


.section-heading h2 {

    font-size:
        clamp(32px, 5vw, 52px);

    line-height:
        1.1;

}


.section-heading h2 span {

    color:
        var(--accent);

}


/* =========================================================
   20. ANIMATION REVEAL
   ========================================================= */

.reveal {

    opacity:
        0;

    transform:
        translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.reveal.visible {

    opacity:
        1;

    transform:
        translateY(0);

}


/* =========================================================
   21. À PROPOS
   ========================================================= */

.about-grid {

    display:
        grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap:
        80px;

    align-items:
        center;

}


.about-image-frame {

    position:
        relative;

    max-width:
        400px;

    margin:
        auto;

}


.about-image-frame::before {

    content:
        "";

    position:
        absolute;

    inset:
        -15px;

    border:
        1px solid var(--accent);

    border-radius:
        var(--radius);

    transform:
        rotate(-5deg);

    opacity:
        0.35;

}


.about-image-frame img {

    position:
        relative;

    width:
        100%;

    aspect-ratio:
        4 / 5;

    object-fit:
        cover;

    border-radius:
        var(--radius);

    border:
        1px solid var(--border);

}


.about-content h3 {

    font-size:
        clamp(25px, 4vw, 38px);

    line-height:
        1.2;

    margin-bottom:
        20px;

}


.about-content > p {

    color:
        var(--text-secondary);

    margin-bottom:
        16px;

}


.about-details {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        18px;

    margin:
        30px 0;

}


.detail-item {

    display:
        flex;

    gap:
        12px;

    padding:
        15px;

    border:
        1px solid var(--border);

    border-radius:
        12px;

    transition:
        var(--transition);

}


.detail-item:hover {

    border-color:
        var(--accent);

    transform:
        translateY(-4px);

}


.detail-item > span {

    font-size:
        20px;

}


.detail-item strong {

    display:
        block;

    font-size:
        13px;

}


.detail-item p {

    color:
        var(--text-secondary);

    font-size:
        11px;

}


/* =========================================================
   22. COMPÉTENCES
   ========================================================= */

.skills-grid {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        22px;

}


.skill-card {

    padding:
        30px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    transition:
        var(--transition);

}


.skill-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(0, 229, 255, 0.35);

    box-shadow:
        var(--shadow);

}


.skill-card-top {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    margin-bottom:
        20px;

}


.skill-icon {

    width:
        50px;

    height:
        50px;

    border-radius:
        12px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(0, 229, 255, 0.08);

    color:
        var(--accent);

    font-size:
        20px;

}


.skill-card-top > span {

    color:
        var(--text-secondary);

    font-size:
        12px;

}


.skill-card h3 {

    font-size:
        21px;

    margin-bottom:
        10px;

}


.skill-card p {

    color:
        var(--text-secondary);

    font-size:
        14px;

    margin-bottom:
        20px;

}


.skill-tags {

    display:
        flex;

    gap:
        7px;

    flex-wrap:
        wrap;

}


.skill-tags span {

    padding:
        5px 9px;

    border:
        1px solid var(--border);

    border-radius:
        20px;

    color:
        var(--text-secondary);

    font-size:
        10px;

}


/* =========================================================
   23. PROGRESS BAR
   ========================================================= */

.skills-progress {

    margin-top:
        50px;

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        28px 45px;

}


.progress-info {

    display:
        flex;

    justify-content:
        space-between;

    margin-bottom:
        8px;

    font-size:
        13px;

}


.progress-info span:last-child {

    color:
        var(--accent);

}


.progress-bar {

    width:
        100%;

    height:
        6px;

    background:
        var(--border);

    border-radius:
        10px;

    overflow:
        hidden;

}


.progress-bar span {

    display:
        block;

    width:
        0;

    height:
        100%;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent-secondary)
        );

    border-radius:
        inherit;

    transition:
        width 1.5s ease;

}


/* =========================================================
   24. TIMELINE
   ========================================================= */

.timeline {

    position:
        relative;

    max-width:
        850px;

    margin:
        auto;

}


.timeline::before {

    content:
        "";

    position:
        absolute;

    left:
        25px;

    top:
        0;

    bottom:
        0;

    width:
        1px;

    background:
        var(--border);

}


.timeline-item {

    position:
        relative;

    display:
        grid;

    grid-template-columns:
        52px 1fr;

    gap:
        30px;

    margin-bottom:
        45px;

}


.timeline-marker {

    width:
        52px;

    height:
        52px;

    border:
        1px solid var(--accent);

    border-radius:
        50%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        var(--bg);

    color:
        var(--accent);

    font-size:
        12px;

    position:
        relative;

    z-index:
        2;

}


.timeline-content {

    padding:
        25px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--card);

    transition:
        var(--transition);

}


.timeline-content:hover {

    transform:
        translateX(8px);

    border-color:
        var(--accent);

}


.timeline-label {

    color:
        var(--accent);

    font-size:
        11px;

    text-transform:
        uppercase;

    letter-spacing:
        1px;

}


.timeline-content h3 {

    font-size:
        20px;

    margin:
        8px 0;

}


.timeline-content p {

    color:
        var(--text-secondary);

    font-size:
        14px;

}


/* =========================================================
   25. PROJET
   ========================================================= */

.project-card-main {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    overflow:
        hidden;

}


.project-image {

    position:
        relative;

    min-height:
        450px;

    overflow:
        hidden;

}


.project-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform 0.7s ease;

}


.project-card-main:hover
.project-image img {

    transform:
        scale(1.06);

}


.project-image-overlay {

    position:
        absolute;

    inset:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(0, 0, 0, 0.55);

    opacity:
        0;

    transition:
        var(--transition);

}


.project-card-main:hover
.project-image-overlay {

    opacity:
        1;

}


.view-project {

    background:
        var(--accent);

    color:
        #001014;

    padding:
        12px 20px;

    border-radius:
        8px;

    font-weight:
        700;

}


.project-content {

    padding:
        45px;

}


.project-category {

    color:
        var(--accent);

    font-size:
        11px;

    letter-spacing:
        1px;

}


.project-content h3 {

    font-size:
        clamp(25px, 4vw, 38px);

    line-height:
        1.2;

    margin:
        15px 0 20px;

}


.project-content > p {

    color:
        var(--text-secondary);

    font-size:
        14px;

}


.project-technologies {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;

    margin:
        25px 0;

}


.project-technologies span {

    padding:
        7px 11px;

    border:
        1px solid var(--border);

    border-radius:
        20px;

    font-size:
        10px;

    color:
        var(--accent);

}


.project-features {

    margin-bottom:
        30px;

}


.project-features h4 {

    font-size:
        14px;

    margin-bottom:
        12px;

}


.project-features ul {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        8px;

}


.project-features li {

    color:
        var(--text-secondary);

    font-size:
        12px;

}


/* =========================================================
   26. CONTACT
   ========================================================= */

.contact-grid {

    display:
        grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap:
        70px;

}


.contact-info h3 {

    font-size:
        34px;

    line-height:
        1.2;

    margin-bottom:
        18px;

}


.contact-info > p {

    color:
        var(--text-secondary);

    margin-bottom:
        35px;

}


.contact-details {

    display:
        flex;

    flex-direction:
        column;

    gap:
        18px;

}


.contact-item {

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

}


.contact-item > span {

    width:
        45px;

    height:
        45px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid var(--border);

    border-radius:
        10px;

}


.contact-item small {

    color:
        var(--text-secondary);

    display:
        block;

    font-size:
        10px;

}


.contact-item p {

    font-size:
        14px;

}


.contact-item a {

    color:
        var(--text);

    transition:
        color 0.3s ease;

}


.contact-item a:hover {

    color:
        var(--accent);

}


/* =========================================================
   27. FORMULAIRE
   ========================================================= */

.contact-form {

    display:
        flex;

    flex-direction:
        column;

    gap:
        25px;

}


.form-group {

    position:
        relative;

}


.form-group input,
.form-group textarea {

    width:
        100%;

    padding:
        18px;

    border:
        1px solid var(--border);

    border-radius:
        10px;

    outline:
        none;

    background:
        var(--card);

    color:
        var(--text);

    font-size:
        14px;

    transition:
        var(--transition);

}


.form-group textarea {

    resize:
        vertical;

    min-height:
        160px;

}


.form-group label {

    position:
        absolute;

    left:
        18px;

    top:
        17px;

    color:
        var(--text-secondary);

    font-size:
        13px;

    pointer-events:
        none;

    transition:
        var(--transition);

}


.form-group input:focus,
.form-group textarea:focus {

    border-color:
        var(--accent);

    box-shadow:
        0 0 0 3px
        rgba(0, 229, 255, 0.06);

}


.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {

    top:
        -9px;

    left:
        12px;

    padding:
        0 7px;

    background:
        var(--card);

    color:
        var(--accent);

    font-size:
        10px;

}


.form-message {

    font-size:
        13px;

    color:
        var(--accent);

}


/* =========================================================
   28. MODALE PROJET
   ========================================================= */

.project-modal {

    position:
        fixed;

    inset:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    opacity:
        0;

    visibility:
        hidden;

    z-index:
        5000;

    transition:
        var(--transition);

}


.project-modal.active {

    opacity:
        1;

    visibility:
        visible;

}


.modal-overlay {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(0, 0, 0, 0.75);

    backdrop-filter:
        blur(8px);

}


.modal-content {

    position:
        relative;

    z-index:
        2;

    width:
        min(900px, 100%);

    max-height:
        90vh;

    overflow:
        auto;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    transform:
        scale(0.9);

    transition:
        transform 0.4s ease;

}


.project-modal.active
.modal-content {

    transform:
        scale(1);

}


.modal-close {

    position:
        absolute;

    top:
        15px;

    right:
        15px;

    width:
        40px;

    height:
        40px;

    border-radius:
        50%;

    background:
        rgba(0, 0, 0, 0.5);

    color:
        white;

    z-index:
        3;

}


.modal-image img {

    width:
        100%;

    max-height:
        350px;

    object-fit:
        cover;

}


.modal-body {

    padding:
        35px;

}


.modal-body > span {

    color:
        var(--accent);

    font-size:
        11px;

}


.modal-body h2 {

    font-size:
        clamp(24px, 4vw, 36px);

    line-height:
        1.2;

    margin:
        10px 0 20px;

}


.modal-body > p {

    color:
        var(--text-secondary);

}


.modal-list {

    margin-top:
        20px;

}


.modal-list p {

    color:
        var(--text-secondary);

    font-size:
        13px;

    margin-bottom:
        8px;

}


/* =========================================================
   29. LIGHTBOX
   ========================================================= */

.lightbox {

    position:
        fixed;

    inset:
        0;

    z-index:
        6000;

    background:
        rgba(0, 0, 0, 0.9);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        30px;

    opacity:
        0;

    visibility:
        hidden;

    transition:
        var(--transition);

}


.lightbox.active {

    opacity:
        1;

    visibility:
        visible;

}


.lightbox img {

    max-width:
        90%;

    max-height:
        85vh;

    object-fit:
        contain;

    border-radius:
        10px;

}


.lightbox-close {

    position:
        absolute;

    top:
        25px;

    right:
        30px;

    width:
        45px;

    height:
        45px;

    border-radius:
        50%;

    background:
        rgba(255,255,255,0.1);

    color:
        white;

    font-size:
        18px;

}


/* =========================================================
   30. FOOTER
   ========================================================= */

.footer {

    padding:
        70px 0 30px;

    border-top:
        1px solid var(--border);

    background:
        var(--bg-secondary);

}


.footer-content {

    text-align:
        center;

}


.footer-logo {

    width:
        55px;

    height:
        55px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin:
        0 auto 18px;

    border:
        1px solid var(--accent);

    border-radius:
        50%;

    color:
        var(--accent);

    font-weight:
        800;

}


.footer-content > p {

    color:
        var(--text-secondary);

    font-size:
        13px;

}


/* =========================================================
   31. RÉSEAUX SOCIAUX FOOTER
   ========================================================= */

.footer-socials {

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    gap:
        14px;

    flex-wrap:
        wrap;

    margin:
        25px 0;

}


.footer-socials a {

    position:
        relative;

    width:
        48px;

    height:
        48px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    border:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.02);

    color:
        var(--text-secondary);

    font-size:
        18px;

    transition:
        all 0.35s ease;

    overflow:
        hidden;

}


.footer-socials a::before {

    content:
        "";

    position:
        absolute;

    width:
        100%;

    height:
        100%;

    border-radius:
        50%;

    background:
        var(--accent);

    transform:
        scale(0);

    transition:
        transform 0.35s ease;

    z-index:
        0;

}


.footer-socials a:hover::before {

    transform:
        scale(1);

}


.footer-socials a:hover {

    color:
        #001014;

    border-color:
        var(--accent);

    transform:
        translateY(-7px);

    box-shadow:
        0 10px 30px
        rgba(0, 229, 255, 0.25);

}


.footer-socials a i {

    position:
        relative;

    z-index:
        2;

}


.copyright {

    padding-top:
        20px;

    border-top:
        1px solid var(--border);

}


/* =========================================================
   32. RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 1000px) {

    .hero-container {

        grid-template-columns:
            1fr;

        text-align:
            center;

    }


    .hero-content {

        margin:
            auto;

    }


    .hero-buttons,
    .social-links {

        justify-content:
            center;

    }


    .hero-image {

        min-height:
            420px;

    }


    .about-grid {

        grid-template-columns:
            1fr;

        gap:
            60px;

    }


    .about-content {

        text-align:
            center;

    }


    .about-details {

        text-align:
            left;

    }


    .project-card-main {

        grid-template-columns:
            1fr;

    }


    .project-image {

        min-height:
            400px;

    }


    .contact-grid {

        grid-template-columns:
            1fr;

        gap:
            50px;

    }

}


/* =========================================================
   33. RESPONSIVE TABLETTE / PETIT ÉCRAN
   ========================================================= */

@media (max-width: 800px) {

    .nav-menu {

        position:
            fixed;

        top:
            78px;

        right:
            -100%;

        width:
            min(320px, 85%);

        height:
            calc(100vh - 78px);

        padding:
            40px 30px;

        flex-direction:
            column;

        align-items:
            flex-start;

        gap:
            10px;

        background:
            var(--bg-secondary);

        border-left:
            1px solid var(--border);

        transition:
            right 0.4s ease;

    }


    .nav-menu.active {

        right:
            0;

    }


    .nav-link {

        width:
            100%;

        padding:
            13px 0;

        font-size:
            16px;

    }


    .menu-toggle {

        display:
            flex;

    }


    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .stat-item {

        border-bottom:
            1px solid var(--border);

    }


    .stat-item:nth-child(2) {

        border-right:
            none;

    }


    .skills-grid {

        grid-template-columns:
            1fr;

    }


    .skills-progress {

        grid-template-columns:
            1fr;

    }

}


/* =========================================================
   34. RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .navbar {

        min-height:
            70px;

    }


    .nav-menu {

        top:
            70px;

        height:
            calc(100vh - 70px);

    }


    .hero {

        padding:
            110px 0 70px;

    }


    .hero-title {

        font-size:
            clamp(40px, 14vw, 60px);

        letter-spacing:
            -2px;

    }


    .hero-description {

        font-size:
            14px;

    }


    .hero-buttons {

        flex-direction:
            column;

        align-items:
            stretch;

    }


    .btn {

        width:
            100%;

    }


    .hero-image {

        min-height:
            350px;

    }


    .image-container {

        width:
            min(300px, 75vw);

    }


    .floating-card {

        padding:
            9px 12px;

    }


    .floating-card-one {

        left:
            0;

        bottom:
            30px;

    }


    .floating-card-two {

        right:
            0;

        top:
            40px;

    }


    .floating-card strong {

        font-size:
            10px;

    }


    .floating-card small {

        font-size:
            9px;

    }


    .section {

        padding:
            80px 0;

    }


    .section-heading {

        margin-bottom:
            45px;

    }


    .about-details {

        grid-template-columns:
            1fr;

    }


    .about-content {

        text-align:
            left;

    }


    .timeline::before {

        left:
            20px;

    }


    .timeline-item {

        grid-template-columns:
            42px 1fr;

        gap:
            18px;

    }


    .timeline-marker {

        width:
            42px;

        height:
            42px;

        font-size:
            10px;

    }


    .timeline-content {

        padding:
            20px;

    }


    .project-image {

        min-height:
            280px;

    }


    .project-content {

        padding:
            25px;

    }


    .project-features ul {

        grid-template-columns:
            1fr;

    }


    .contact-info h3 {

        font-size:
            28px;

    }


    .modal-body {

        padding:
            25px;

    }


    .modal-image img {

        max-height:
            250px;

    }

}


/* =========================================================
   35. TRÈS PETITS TÉLÉPHONES
   ========================================================= */

@media (max-width: 420px) {

    .container {

        width:
            90%;

    }


    .hero-title {

        font-size:
            38px;

    }


    .typing-container {

        font-size:
            18px;

    }


    .hero-image {

        min-height:
            300px;

    }


    .image-container {

        width:
            250px;

    }


    .floating-card {

        display:
            none;

    }


    .stats-grid {

        grid-template-columns:
            1fr;

    }


    .stat-item {

        border-right:
            none;

    }


    .stat-item:nth-child(3) {

        border-bottom:
            1px solid var(--border);

    }


    .skill-card {

        padding:
            22px;

    }


    .project-content h3 {

        font-size:
            25px;

    }


    .footer-socials {

        gap:
            10px;

    }


    .footer-socials a {

        width:
            44px;

        height:
            44px;

        font-size:
            16px;

    }

}


/* =========================================================
   36. ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior:
            auto;

    }


    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

    }

}