/* Variables CSS pour le Dark Theme Modern/Tech */
:root {
    --bg-color: #0d0e15; /* Noir profond / Bleu très sombre */
    --bg-secondary: #161824;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0ab;
    --accent-color: #00ffcc; /* Cyan tech */
    --accent-color-hover: #00ccaa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(0, 255, 204, 0.15);
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

/* Reset basique */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(13, 14, 21, 0.7), rgba(13, 14, 21, 0.9)), url('assets/images/tech_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Effets d'arrière-plan lumineux (Glows) */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    filter: blur(50px);
}

.bg-glow-2 {
    top: auto;
    bottom: 0%;
    right: -200px;
    left: auto;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 60%); /* Purple/Pink blur */
}

/* Utilitaire Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Typographie */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--glow-color);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%; 
    display: flex;
    justify-content: center; /* Centre les liens puisque le logo n'est plus là */
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.hero-logo {
    height: 250px; /* Un logo géant et majestueux pour l'accueil */
    filter: invert(1); /* Toujours en blanc pur */
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Boutons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #0d0e15;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-color-hover);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: var(--glass-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Centre horizontalement la section */
    padding: 0 5%;
    padding-top: 100px; /* Espace classique pour la barre de navigation affinée */
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments à l'intérieur */
    text-align: center; /* Centre le texte */
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 204, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center; /* Centre les boutons */
}

/* Sections Globales */
section {
    padding: 100px 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    padding: 40px 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 204, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.project-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: var(--accent-color);
}

.project-info {
    padding: 25px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact */
.contact-section {
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 800px;
    width: 100%;
    padding: 60px;
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: left;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateX(10px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.contact-text span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-text strong {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

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

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

/* Animations Scroll Reveal */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive pour Mobile (QR Code focus) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .nav-links {
        display: none; /* Simplification pour mobile, on garde juste le logo pour l'instant, ou on pourrait faire un menu burger */
    }
    
    section {
        padding: 60px 5%;
    }
    
    .contact-container {
        padding: 30px 20px;
    }
    
    .contact-btn:hover {
        transform: none; /* Pas de translate sur mobile */
        background: rgba(0, 255, 204, 0.05);
    }
}

/* Modals (Popups de projets) */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show-modal {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    margin: auto;
    padding: 0;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 800px;
    max-height: 90vh; /* Permettre le défilement */
    border-radius: 16px;
    overflow-y: auto; /* Scroll interne activé */
    overflow-x: hidden;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal.show-modal .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-primary);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-color);
}

.modal-img {
    width: 100%;
    height: auto; /* Affiche l'image en entier (très longue) */
    display: block;
    object-fit: cover;
    object-position: top;
}

.modal-body {
    padding: 30px;
}

.modal-body h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 20px 0;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tech-badge {
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 204, 0.2);
}
