/* Custom Dark Theme Portfolio Styles */
:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --dark-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --dark-border: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #3b82f6;
}

/* Override any default margins/padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Typography */
.font-code {
    font-family: 'Fira Code', 'JetBrains Mono', 'Monaco', 'Cascadia Code', monospace !important;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-btn {
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.language-btn.active {
    background-color: var(--primary);
    color: var(--dark-bg);
    border-color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--dark-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Cards */
.skill-item, .project-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before, .project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-item:hover::before, .project-item:hover::before {
    transform: scaleX(1);
}

.skill-item:hover, .project-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

/* Skills Grid */
.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, var(--primary)/10);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-icon:hover {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 255, 136, 0.2);
}

.skill-icon:hover::before {
    opacity: 1;
}

.skill-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

/* Modern icon styles with original colors */
.skill-item .skill-icon img {
    filter: none;
}

.skill-item:hover .skill-icon img {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Project Cards */
.project-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary)/20, var(--accent)/20);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--dark-border);
}

.project-tech-tag {
    display: inline-block;
    background: var(--primary)/10;
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 2px;
    border: 1px solid var(--primary)/20;
}

/* Filter Buttons */
.skill-filter-btn, .project-filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.skill-filter-btn:hover, .project-filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary)/10;
}

.skill-filter-btn.active, .project-filter-btn.active {
    background: var(--primary);
    color: var(--dark-bg);
    border-color: var(--primary);
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--dark-bg);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 2s ease;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding: 20px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 255, 136, 0.1);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-pulse-hover:hover {
    animation: pulse 1s infinite;
}

/* Loading States */
.loading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.skeleton {
    background: linear-gradient(90deg, var(--dark-card) 25%, var(--dark-border) 50%, var(--dark-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    h1 {
        font-size: 3rem !important;
    }
    
    .skill-item, .project-item {
        margin: 12px 0;
        padding: 16px;
    }
    
    .timeline-item {
        margin: 16px 0;
    }
    
    /* Mobile Navigation */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark-bg);
        z-index: 50;
        transition: left 0.3s ease;
    }
    
    .mobile-menu.active {
        left: 0;
    }
}

@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .text-6xl {
        font-size: 2.5rem !important;
    }
    
    .text-8xl {
        font-size: 3rem !important;
    }
}

/* Admin Panel Icon Styles */
.skill-icon-admin {
    background: var(--dark-card);
    transition: all 0.3s ease;
}

.skill-icon-admin:hover {
    background: var(--primary)/10;
    border-color: var(--primary)/50;
}

.skill-icon-admin img {
    transition: all 0.3s ease;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--dark-card), var(--dark-card)) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
}

.glass-effect {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Hero Section Styles */
.hero-section {
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
                linear-gradient(135deg, var(--dark-bg) 0%, #0d0d0d 100%);
}

.hero-profile-container {
    position: relative;
}

.hero-profile-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Changer de oval à cercle parfait */
    width: 500px;
    height: 500px; /* Même valeur que width pour un cercle parfait */
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, rgba(0, 255, 136, 0.1) 40%, transparent 70%);
    border-radius: 50%; /* Assure un cercle parfait */
    filter: blur(40px);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

/* Nouveau cercle pulsant derrière la photo */
.hero-profile-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2) 0%, rgba(0, 255, 136, 0.05) 60%, transparent 80%);
    border-radius: 50%;
    filter: blur(10px);
    z-index: -2;
    animation: pulse-zoom 1s ease-in-out infinite;
}

/* Animation de rotation pour le cercle */
@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Animation de zoom/dézoom pour le cercle pulsant */
@keyframes pulse-zoom {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
}

/* Responsive pour les cercles sur mobile */
@media (max-width: 768px) {
    .hero-profile-container::before {
        width: 350px;
        height: 350px; /* Même taille pour garder le cercle */
    }
    
    .hero-profile-container::after {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-profile-container::before {
        width: 280px;
        height: 280px; /* Même taille pour garder le cercle */
    }
    
    .hero-profile-container::after {
        width: 220px;
        height: 220px;
    }
}

.hero-profile-image {
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.hero-profile-image:hover {
    transform: scale(1.05);
}

.hero-floating-icon {
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.9);
    transition: all 0.3s ease;
}

.hero-floating-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.hero-tech-stack-icon {
    backdrop-filter: blur(5px);
    background: rgba(26, 26, 26, 0.8);
    transition: all 0.3s ease;
}

.hero-tech-stack-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-profile-container::before {
        inset: -10px;
    }
    
    .hero-floating-icon {
        backdrop-filter: blur(5px);
    }
    
    /* Marge supplémentaire pour mobile */
    .hero-section .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-section .lg\:ml-8 {
        margin-left: 1rem;
    }
    
    /* Reduce floating icons on very small screens */
    @media (max-width: 480px) {
        .hero-floating-icon:nth-child(n+3) {
            display: none;
        }
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .mobile-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
    }
    
    .mobile-hero-subtitle {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    
    .mobile-stats {
        gap: 1.5rem;
    }
    
    /* Mobile Navigation Improvements */
    #mobile-menu {
        animation: slideDown 0.3s ease-out;
    }
    
    #mobile-menu.hidden {
        animation: slideUp 0.3s ease-out;
    }
    
    /* Mobile menu button animation */
    #mobile-menu-btn {
        transition: all 0.3s ease;
    }
    
    #mobile-menu-btn:hover {
        background-color: var(--primary)/10;
        border-radius: 6px;
    }
    
    /* Mobile social icons spacing */
    .md\:hidden .fab {
        transition: all 0.2s ease;
    }
    
    .md\:hidden .fab:hover {
        transform: scale(1.1);
    }
}

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

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

/* Selection */
::selection {
    background: var(--primary);
    color: var(--dark-bg);
}

