/* =================================
   PORTFOLIO COMPLETE STYLES
   ================================= */

/* ======= ROOT VARIABLES ======= */
:root {
    --color-primary: #06b6d4;
    --color-primary-dark: #0891b2;
    --color-primary-light: #22d3ee;
    --color-secondary: #a855f7;
    --color-accent: #ec4899;
    
    --color-bg-dark: #0a0a0a;
    --color-bg-card: #1a1a1a;
    --color-bg-lighter: #2a2a2a;
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
}

/* ======= RESET & BASE ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ======= SCROLLBAR ======= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #06b6d4;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

/* ======= GRADIENT TEXT ======= */
.gradient-text {
    background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899, #22d3ee);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 8s ease infinite;
    display: inline-block;
}

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

/* ======= CARD HOVER ======= */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.12);
}

/* ======= GLOW EFFECT ======= */
.glow {
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.28);
}

.glow:hover {
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.4);
}

/* ======= BUTTON PULSE ======= */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.btn-pulse {
    /* animation retirée : effet trop insistant */
}

/* ======= FLASH MESSAGES ======= */
.flash-message {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ======= MOBILE MENU ======= */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ======= TRUE FOCUS ======= */
.true-focus-word {
    transition: filter 0.5s ease;
    cursor: pointer;
    user-select: none;
}

.focus-border {
    pointer-events: none;
}

.focus-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-width: 3px;
    border-radius: 3px;
    border-style: solid;
}

/* ======= UTILITY CLASSES ======= */
.bg-dark-bg {
    background-color: var(--color-bg-dark);
}

.bg-card-bg {
    background-color: var(--color-bg-card);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
    .true-focus-word {
        font-size: 2rem !important;
    }
}