:root {
    --primary-color: #0d6efd;
    --secondary-color: #212529;
    --accent-color: #20c997;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    padding-top: 76px; /* For fixed navbar */
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background: linear-gradient(to bottom, white 70%, var(--light-bg) 100%);
}

.hero-tag {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero-des {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 1rem;
    transition: all 0.3s;
}

.btn-primary:hover, .btn-outline-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.social-icons a {
    display: inline-block;
    margin-right: 1.2rem;
    font-size: 1.4rem;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-img {
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* About Section */
.about-section {
    background-color: white;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.3s;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Platform Section Styles */
.alert {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}

.alert i {
    margin-right: 10px;
}

/* Conteneur pour les images de plateformes */
.skill-category > a[href] {
    display: inline-block;
    margin-right: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.skill-category > a[href]:hover {
    transform: translateY(-5px);
}

.skill-category > a[href] img {
    width: 140px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.skill-category > a[href]:hover img {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Projects Section */
.projects-section {
    background-color: var(--light-bg);
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.project-content p {
    color: #666;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-tag {
        font-size: 2.2rem;
    }
    
    .hero-des {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn-outline-primary {
        margin-left: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    /* Responsive pour les images de plateformes */
    .skill-category > a[href] {
        margin-right: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .skill-category > a[href] img {
        width: 120px;
    }
}

/* Pour les écrans plus petits (mobiles) */
@media (max-width: 576px) {
    .skill-category > a[href] {
        margin-right: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .skill-category > a[href] img {
        width: 100px;
    }
    
    /* Pour que les images s'alignent bien sur mobile */
    .skill-category > a[href]:nth-child(2n) {
        margin-right: 0;
    }
}

/* Pour les très petits écrans */
@media (max-width: 400px) {
    .skill-category > a[href] {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-category > a[href] img {
        width: 85px;
    }
}

/* Contact Section */
.contact-section {
    background-color: white;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-color);
    width: 24px;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.8rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
}

.footer .social-icons a {
    color: white;
    margin-left: 1rem;
}

.footer .social-icons a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-tag {
        font-size: 2.2rem;
    }
    
    .hero-des {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn-outline-primary {
        margin-left: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skill-tags {
        justify-content: center;
    }
}