/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Neon accents */
    --neon-cyan: #00f0ff;
    --neon-purple: #b24bf3;
    --neon-pink: #ff2d75;
    --neon-green: #39ff14;

    /* Gradients */
    --gradient-neon: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --gradient-card: linear-gradient(145deg, rgba(26, 26, 37, 0.9), rgba(18, 18, 26, 0.9));

    /* Glow effects */
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 20px rgba(178, 75, 243, 0.5), 0 0 40px rgba(178, 75, 243, 0.3);

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   BACKGROUND EFFECTS
   ======================================== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(178, 75, 243, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-logo .terminal-prompt {
    color: var(--neon-cyan);
}

.nav-logo .accent {
    color: var(--neon-cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::before {
    content: '>';
    margin-right: 0.5rem;
    color: var(--neon-cyan);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-fast);
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: translateX(0);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition-fast);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.terminal-window {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red { background: #ff5f57; }
.terminal-btn.yellow { background: #febc2e; }
.terminal-btn.green { background: #28c840; }

.terminal-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}

.terminal-body {
    padding: 2rem;
    text-align: left;
}

.terminal-line {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--neon-green);
    margin-right: 0.5rem;
}

.terminal-window h1 {
    font-family: 'Fira Code', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    text-shadow: var(--glow-cyan);
}

.terminal-window h2 {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--neon-purple);
    margin-bottom: 1rem;
}

.location {
    font-family: 'Fira Code', monospace;
    color: var(--text-secondary);
}

.location .icon {
    color: var(--neon-green);
    margin-right: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    color: var(--neon-pink);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translateX(-2px);
    opacity: 0.8;
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    color: var(--neon-green);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translateX(2px);
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 100% { transform: translateX(-2px); }
    25% { transform: translateX(2px); }
    50% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translateX(2px); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-1px); }
}

/* Typing effect */
.typing-text {
    overflow: hidden;
    border-right: 2px solid var(--neon-purple);
    white-space: nowrap;
    animation: typing 3s steps(35) 1s forwards, cursor 0.75s step-end infinite;
    width: 0;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes cursor {
    50% { border-color: transparent; }
}

/* Hero buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-neon);
    color: var(--bg-primary);
    font-weight: 600;
}

.btn-primary:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.btn-icon {
    font-weight: bold;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    transform: rotate(45deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Fira Code', monospace;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.title-decorator {
    color: var(--neon-cyan);
}

/* ========================================
   PROFIL SECTION
   ======================================== */
.profil-card {
    background: var(--gradient-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    animation: rotate-glow 10s linear infinite;
    pointer-events: none;
}

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

.profil-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.highlight {
    color: var(--neon-cyan);
    font-weight: 500;
}

.profil-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.stat-number {
    font-family: 'Fira Code', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--gradient-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.skill-category:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.category-title {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-icon {
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(0, 240, 255, 0.2);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

/* ========================================
   EXPERIENCES SECTION
   ======================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
    box-shadow: var(--glow-cyan);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--bg-primary);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
}

.timeline-content {
    background: var(--gradient-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(10px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.job-title {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.job-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--neon-purple);
    background: rgba(178, 75, 243, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(178, 75, 243, 0.3);
}

.company-name {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.job-tasks {
    list-style: none;
}

.job-tasks li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.job-tasks li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-family: 'Fira Code', monospace;
}

.job-tasks li:last-child {
    margin-bottom: 0;
}

/* ========================================
   FORMATION SECTION
   ======================================== */
.formation-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.formation-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--gradient-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 2rem 3rem;
    max-width: 500px;
}

.formation-year {
    font-family: 'Fira Code', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.formation-title {
    font-family: 'Fira Code', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.formation-subtitle {
    font-size: 1rem;
    color: var(--neon-purple);
    margin-bottom: 0.25rem;
}

.formation-school {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Languages */
.subsection-title {
    font-family: 'Fira Code', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.languages-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.language-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    gap: 1rem;
}

.language-name {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.language-bar {
    height: 8px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background: var(--gradient-neon);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-out;
    box-shadow: var(--glow-cyan);
}

.language-level {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gradient-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    color: var(--neon-cyan);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a.contact-value:hover {
    color: var(--neon-cyan);
}

.contact-cta {
    display: flex;
    justify-content: center;
}

.terminal-window.small {
    max-width: 350px;
}

.terminal-window.small .terminal-body {
    padding: 1.5rem;
}

.terminal-window.small p {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.terminal-window.small .output {
    color: var(--neon-green);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--gradient-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.project-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-header {
    margin-bottom: 1rem;
}

.project-title {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: rgba(178, 75, 243, 0.15);
    border: 1px solid rgba(178, 75, 243, 0.3);
    border-radius: 4px;
    color: var(--neon-purple);
}

.project-highlights {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.project-highlights li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-size: 0.85rem;
}

/* ========================================
   CERTIFICATIONS SECTION
   ======================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.certification-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--gradient-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.certification-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(10px);
}

.certification-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.certification-logo img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.certification-content {
    flex: 1;
}

.certification-name {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 0.25rem;
}

.certification-issuer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.certification-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--neon-purple);
    background: rgba(178, 75, 243, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* ========================================
   SOCIAL LINKS
   ======================================== */
.social-links-nav {
    display: flex;
    gap: 0.75rem;
    margin-right: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.social-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.15);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.lang-switcher {
    margin-right: 1rem;
}

.lang-link {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    background: rgba(178, 75, 243, 0.1);
    border: 1px solid rgba(178, 75, 243, 0.3);
    border-radius: 6px;
    color: var(--neon-purple);
    text-decoration: none;
    transition: var(--transition-fast);
}

.lang-link:hover {
    background: rgba(178, 75, 243, 0.2);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    background: rgba(10, 10, 15, 0.5);
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-tech {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem !important;
}

.heart {
    color: var(--neon-pink);
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========================================
   ANIMATIONS - SCROLL REVEAL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta {
        order: -1;
    }

    .profil-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .navbar {
        padding: 1rem;
    }

    .social-links-nav,
    .lang-switcher {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-150%);
        transition: var(--transition-smooth);
        border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .terminal-window h1 {
        font-size: 1.8rem;
    }

    .terminal-window h2 {
        font-size: 1rem;
        white-space: normal;
        animation: none;
        width: auto;
        border: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-marker {
        left: 0;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-header {
        flex-direction: column;
    }

    .formation-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .language-item {
        grid-template-columns: 80px 1fr 80px;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profil-card {
        padding: 1.5rem;
    }

    .skill-category {
        padding: 1rem;
    }

    .terminal-body {
        padding: 1rem;
    }

    .contact-item {
        padding: 0.75rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ========================================
   CV DOWNLOAD DROPDOWN
   ======================================== */
.cv-dropdown {
    position: relative;
    display: inline-block;
}

.cv-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.cv-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.cv-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    min-width: 240px;
    background: rgba(10, 15, 28, 0.98);
    border: 1px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 240, 255, 0.2);
}

.cv-dropdown.active .cv-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.dropdown-header {
    padding: 0.5rem 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateX(4px);
}

.dropdown-item .item-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.dropdown-item:first-of-type .item-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.dropdown-item:last-of-type .item-icon {
    color: var(--neon-cyan);
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.item-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .cv-dropdown-menu {
        min-width: 200px;
        left: 50%;
    }
}
