/* Base Styles */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #3b82f6;
    --dark: #111827;
    --darker: #0f172a;
    --light: #f3f4f6;
    --gray: #6b7280;
    --dark-gray: #1f2937;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--darker);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
}

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

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 0;
    position: relative;
}

/* About Section */
#about {
    padding: 8rem 2rem;
    background-color: var(--dark);
}

/* Projects Section */
#projects {
    padding: 8rem 2rem;
    background-color: var(--darker);
}

/* Contact Section */
#contact {
    padding: 8rem 2rem;
    background-color: var(--dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Styles pour la popup */
#popupContainer {
    animation: fadeIn 0.3s ease-in-out;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#popupContent {
    animation: slideIn 0.3s ease-in-out;
    transform-origin: top;
    transition: all 0.3s ease;
}

#popupContent h2 {
    color: var(--primary);
    font-weight: 700;
}

#popupContent p {
    color: var(--light);
    line-height: 1.6;
}

#popupContent ul {
    list-style-position: inside;
    margin-left: 20px;
}

#popupContent li {
    margin-bottom: 8px;
    color: var(--light);
}

#popupContent .bg-gray-800-50 {
    background: rgba(14, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}