/* --- CONFIGURATION MODERN PORTFOLIO --- */
:root {
    --bg: #0f172a;
    --text: #e2e8f0;
    --accent: #06b6d4;
    /* Cyan vibrant */
    --accent-dim: rgba(6, 182, 212, 0.08);
    --border: #1e293b;
    --font: 'Space Mono', monospace;
    --dark: #0f172a;
    --darker: #020617;
    --primary-gradient: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: linear-gradient(135deg, #0f172a 0%, #1a1f35 50%, #0f172a 100%);
    background-attachment: fixed;
    padding-bottom: 4rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    padding: 1.2rem 2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.logo {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.logo span {
    color: var(--accent);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- CONTAINER --- */
.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- HERO --- */
header {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.img-wrapper {
    position: relative;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
}

.img-wrapper::after {
    display: none;
}

.img-wrapper::before {
    display: none;
}

.profile-pic {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) brightness(1.05);
    border-radius: 20px;
}

h1 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 15px;
    display: block;
    font-weight: bold;
    letter-spacing: 2px;
}

.info-badges {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.badge {
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 6px 12px;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.badge:hover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
}

.badge-accent {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
}

.bio {
    color: #cbd5e1;
    margin-top: 2rem;
    border-left: 4px solid var(--accent);
    background: rgba(6, 182, 212, 0.08);
    padding: 20px 24px;
    font-size: 0.95rem;
    border-radius: 8px;
    line-height: 1.8;
}

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 12px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 6px;
}

.btn:hover {
    color: #0f172a;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.btn:hover::before {
    left: 0;
}

/* --- CONTACT BUTTONS --- */
.contact-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.contact-buttons .btn {
    margin-top: 0;
}

.btn-secondary {
    border-color: #475569;
    color: #94a3b8;
}

.btn-secondary::before {
    background: #475569;
}

.btn-secondary:hover {
    color: #e2e8f0;
    border-color: #64748b;
    box-shadow: 0 0 20px rgba(71, 85, 105, 0.3);
}


/* --- SECTIONS --- */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}

h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 2px;
}

.section-num {
    color: var(--accent);
    font-size: 0.9rem;
    font-family: monospace;
    border: 1.5px solid var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(6, 182, 212, 0.05);
}

/* --- PROJETS (CARDS) --- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.card {
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
    transform: translateY(-8px);
    background: rgba(15, 23, 42, 0.7);
}

.card:hover::before {
    left: 100%;
}

.card-content {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card h3 a {
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card h3 a:hover {
    color: var(--accent) !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-footer {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.collab {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 15px;
}

.collab a {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.collab a:hover {
    color: #0ea5e9;
}

.btn-lancer {
    display: block;
    width: 100%;
    background: transparent;
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    color: #e2e8f0 !important;
    padding: 12px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 1px;
}

.btn-lancer:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.25);
    transform: translateY(-2px);
}

.btn-disabled {
    background: rgba(71, 85, 105, 0.05) !important;
    border-color: #475569 !important;
    color: #64748b !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
}

.btn-disabled:hover {
    box-shadow: none !important;
    transform: none !important;
}

.stack {
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- TIMELINE --- */
.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 35px;
    margin-bottom: 4rem;
    position: relative;
}

.date-box {
    text-align: right;
    padding-top: 5px;
}

.date-year {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
}

.date-place {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.timeline-content {
    border-left: 2px solid rgba(6, 182, 212, 0.3);
    padding-left: 30px;
    position: relative;
    padding-top: 5px;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -7.5px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #0f172a;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.role {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.company {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.desc {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- COMPETENCES & LANGUES --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.skill-group h3,
.soft-skills-title {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Barres de progression */
.prog-item {
    margin-bottom: 20px;
}

.prog-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

.prog-bg {
    width: 100%;
    height: 8px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.prog-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #0ea5e9);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    border-radius: 4px;
    animation: fillBar 1s ease-out;
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

/* Soft Skills Tags */
.soft-skills-title {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 25px;
}

.soft-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    padding-top: 35px;
    justify-content: center;
}

.skill-tag {
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 10px 18px;
    font-size: 0.85rem;
    background: rgba(6, 182, 212, 0.05);
    color: #cbd5e1;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(6, 182, 212, 0.15);
}

/* --- INTÉRÊTS --- */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.interest-module {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 25px;
    background: rgba(6, 182, 212, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.interest-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.5s ease;
}

.interest-module:hover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.interest-module:hover::before {
    left: 100%;
}

.interest-icon {
    font-size: 2.2rem;
    position: relative;
    z-index: 1;
}

.interest-info {
    position: relative;
    z-index: 1;
}

.interest-info h4 {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.interest-info p {
    margin: 6px 0 0 0;
    color: #94a3b8;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

footer {
    text-align: center;
    padding: 5rem 0 2rem 0;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    margin-top: 4rem;
    letter-spacing: 0.5px;
}

@media(max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
        gap: 3rem;
    }

    .img-wrapper {
        width: 90%;
        margin: 0 auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .grid,
    .interests-grid,
    .skills-wrapper {
        grid-template-columns: 1fr;
    }

    .skills-wrapper {
        gap: 40px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .date-box {
        text-align: left;
        display: flex;
        gap: 20px;
        align-items: baseline;
    }

    .timeline-content {
        border-left: 2px solid rgba(6, 182, 212, 0.3);
        padding-left: 20px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        width: 100%;
    }
}