/* Variables de couleurs */
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --dark: #0d1b2a;
    --light: #f8f9fa;
    --accent: #f72585;
    --gray: #8d99ae;
    --card-bg: rgba(255, 255, 255, 0.05);
}

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

body {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #415a77 100%);
    font-family: 'Inter', sans-serif;
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* Section Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(67, 97, 238, 0.15), transparent 70%);
    z-index: 0;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(67, 97, 238, 0.2);
    z-index: -1;
}

.role-title {
    font-size: 1.8rem;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Photo de profil */
.photo-container {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.profile-photo {
    width: 520px;
    height: 520px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    filter: brightness(1.05) contrast(1.1);
}

.profile-photo:hover {
    transform: scale(1.03) rotate(2deg);
    box-shadow: 0 25px 50px rgba(67, 97, 238, 0.3);
}

.photo-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(67, 97, 238, 0.3);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    color: white;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Liens sociaux */
.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    color: white;
}

/* Section Compétences */
.skills-section {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
    margin-bottom: 2rem;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
        margin-top: 2rem;
    }

    .hero-buttons {
        text-align: center;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Section Projets */
.projects-section {
    padding: 6rem 0;
    background: rgba(13, 27, 42, 0.9);
}

.projects-category {
    margin-bottom: 4rem;
}

.category-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.category-description {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Cartes de projets */
.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.8rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.project-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 1rem;
}

.project-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 0;
    flex-grow: 1;
}

.project-badge {
    background: rgba(67, 97, 238, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: white;
    transform: translateX(5px);
}

/* Projets professionnels */
.professional-project {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(67, 97, 238, 0.02));
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.professional-project:hover {
    border-color: rgba(67, 97, 238, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.company-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.company-logo i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.company-logo h4 {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 1.3rem;
}

.project-meta p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.project-details h4 {
    font-family: 'Poppins', sans-serif;
    color: white;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-details>p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-responsibilities {
    list-style: none;
    padding-left: 0;
}

.project-responsibilities li {
    color: var(--gray);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.project-responsibilities li i {
    color: var(--primary);
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

/* Section Contact */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
}

.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-info h4,
.contact-form h4 {
    font-family: 'Poppins', sans-serif;
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 10px;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin: 0 0.5rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-badge {
        margin-top: 0.5rem;
    }

    .professional-project {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}