@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.credit_du_congo-text{
    background: linear-gradient(90deg, #ff9900, #1c1d33);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wilkai-text{
    background: linear-gradient(90deg, #7b00ee, #e6230a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ESCIC-text{
    background: linear-gradient(90deg, #001d4b, #1dd871c5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Skill Bars */
.skill-bar {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 1s ease-in-out;
}

/* Skill Progress Widths */
.skill-progress-90 { width: 90%; }
.skill-progress-85 { width: 85%; }
.skill-progress-80 { width: 80%; }
.skill-progress-75 { width: 75%; }
.skill-progress-70 { width: 70%; }

/* Timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid #bfdbfe;
}

/* Project Cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
}

.vanta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

/* Navigation */
.navbar {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

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

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

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

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* Form Enhancements */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: #3b82f6;
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow:
            .25em 0 0 #3b82f6,
            .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 #3b82f6,
            .5em 0 0 #3b82f6;
    }
}

/* Mobile First Responsive Design */

/* Force responsive behavior */
* {
    box-sizing: border-box;
}

.container {
    max-width: 100% !important;
    overflow-x: hidden;
}

/* Extra Small devices (phones, 320px and up) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 14px;
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    /* Force text wrapping */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
    
    /* Hero Section Mobile - Force responsive */
    #hero {
        min-height: 100vh !important;
        padding-top: 80px !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    #hero .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    #hero h1 {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    #hero h2 {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        padding: 0 0.5rem !important;
    }
    
    #hero p {
        font-size: 0.875rem !important; /* 14px */
        text-align: center !important;
        padding: 0 0.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Force mobile layout */
    #hero .flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Force full width on mobile */
    #hero > div > div > div {
        width: 100% !important;
    }
    
    /* Profile Image Mobile */
    #hero .w-64 {
        width: 12rem !important;
        height: 12rem !important;
    }
    
    /* Buttons Mobile */
    #hero .flex.space-x-4 {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #hero .px-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        text-align: center;
    }
    
    /* Navigation Mobile */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar .text-2xl {
        font-size: 1.5rem;
    }
    
    /* Section Titles Mobile */
    .text-3xl {
        font-size: 1.75rem !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
    }
    
    /* Cards Mobile */
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-card:hover {
        transform: translateY(-3px);
    }
    
    /* Timeline Mobile */
    .timeline-item::before {
        left: -20px;
        width: 12px;
        height: 12px;
    }
    
    /* Skills Section Mobile */
    .space-y-6 {
        gap: 1rem;
    }
    
    /* Contact Form Mobile */
    .contact-section-mobile {
        width: 100% !important;
        padding-left: 0 !important;
        margin-bottom: 2rem;
    }
    
    /* Footer Mobile */
    footer .flex {
        text-align: center;
    }
    
    footer .space-x-6 {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Small devices (landscape phones, 481px and up) */
@media (min-width: 481px) and (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem !important;
    }
    
    #hero h2 {
        font-size: 1.5rem !important;
    }
    
    .text-3xl {
        font-size: 2rem !important;
    }
    
    .text-4xl {
        font-size: 2.25rem !important;
    }
}

/* Medium devices (tablets, 769px and up) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Adjust grid for tablets */
    .lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* General Mobile Optimizations */
@media (max-width: 768px) {
    /* Force responsive layout */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Force mobile text sizes */
    h1 { font-size: 1.875rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    
    .project-card:hover {
        transform: translateY(-5px);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .gradient-text {
        background-size: 200% 200%;
        animation: gradient 3s ease infinite;
    }
    
    /* Disable parallax on mobile for performance */
    .vanta-canvas {
        opacity: 0.1 !important;
    }
    
    /* Optimize animations for mobile */
    * {
        animation-duration: 0.3s !important;
    }
    
    /* Touch-friendly buttons */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing on mobile */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Force sections to be mobile-friendly */
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Mobile menu improvements */
    #mobile-menu {
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    #mobile-menu a {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        transition: background-color 0.2s ease;
    }
    
    #mobile-menu a:hover {
        background-color: rgba(59, 130, 246, 0.1);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Dark mode support (for future enhancement) */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(17, 24, 39, 0.95);
    }
    
    .navbar.scrolled {
        background: rgba(17, 24, 39, 0.98);
    }
}

/* Mobile Utility Classes */
.mobile-stack {
    flex-direction: column !important;
    gap: 1rem;
}

.mobile-center {
    text-align: center !important;
}

.mobile-full-width {
    width: 100% !important;
}

.mobile-padding {
    padding: 1rem !important;
}

.mobile-margin {
    margin: 1rem 0 !important;
}

/* Touch Optimizations */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce motion for better performance */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Better text rendering on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* Print styles */
@media print {
    .navbar,
    .vanta-canvas,
    #contact {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .gradient-text {
        color: #3b82f6 !important;
        background: none !important;
    }
}
