/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.hero-container {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-particles::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 450px;
    height: 350px;
    background: radial-gradient(ellipse 60% 40%, rgba(96, 165, 250, 0.3) 0%, rgba(147, 197, 253, 0.15) 40%, transparent 70%);
    border-radius: 60% 40% 70% 30%;
    animation: floatMorph 20s infinite ease-in-out;
    filter: blur(2px);
    transform: rotate(15deg);
}

.floating-particles::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 3%;
    width: 400px;
    height: 320px;
    background: radial-gradient(ellipse 70% 50%, rgba(147, 197, 253, 0.25) 0%, rgba(219, 234, 254, 0.12) 50%, transparent 75%);
    border-radius: 40% 60% 50% 70%;
    animation: floatMorph2 25s infinite ease-in-out;
    filter: blur(3px);
    transform: rotate(-20deg);
    animation-delay: 8s;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    width: 85%;
    max-width: 1400px;
    padding: 2rem;
    transform: scale(1);
}

.hero-name {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    margin: 2rem 0;
    color: #60a5fa;
    letter-spacing: 1px;
}

.name-letter {
    display: inline-block;
    opacity: 0;
    animation: nameTada 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.3s;
}

.name-space {
    width: 0.3em;
    display: inline-block;
}

.hero-job {
    margin: 2rem 0 1rem;
    opacity: 0;
    animation: slideInLeft 0.8s ease 1.2s forwards;
}

.job-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: white;
    border: 2px solid #60a5fa;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #60a5fa 30%, rgba(96, 165, 250, 0.8) 50%, #60a5fa 70%);
    background-size: 200% 100%;
    animation: breathe 3s ease-in-out infinite, shimmer 2s linear infinite;
    transition: all 0.5s ease;
}

.job-title::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #60a5fa, #93c5fd, #60a5fa, #93c5fd);
    background-size: 300% 300%;
    border-radius: 50px;
    z-index: -1;
    animation: gradientBorder 3s ease infinite;
}

.job-title-text {
    transition: all 0.5s ease;
    display: inline-block;
}

.letter-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterFadeIn 0.3s ease forwards;
}

.job-title:hover {
    background: white !important;
    color: #60a5fa;
    animation: none !important;
}

.hero-description {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: #60A5FA;
    margin: 3rem 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.8s forwards;
    font-weight: 300;
    text-shadow: 
        0 0 8px rgba(147, 197, 253, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(147, 197, 253, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.text-blue {
    color: #60a5fa;
    font-weight: 400;
    text-shadow: 
        0 0 10px rgba(96, 165, 250, 0.8),
        0 2px 4px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(96, 165, 250, 0.4);
}

.scroll-indicator {
    margin-top: 3rem;
    text-align: center;
    opacity: 1;
    animation: fadeInUp 1s ease 4s forwards;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow {
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #60a5fa 0%, transparent 100%);
    margin: 0 auto 1rem;
    position: relative;
    border-radius: 2px;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #60a5fa;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #60a5fa;
    display: inline-block;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    background: #60a5fa;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.scroll-indicator:hover .scroll-arrow {
    transform: scale(1.1);
}

.scroll-indicator:hover .scroll-arrow::after {
    animation-duration: 1s;
}

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

@keyframes nameTada {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes floatMorph {
    0%, 100% {
        transform: translateY(0px) rotate(15deg) scale(1);
        border-radius: 60% 40% 70% 30%;
    }
    25% {
        transform: translateY(-40px) rotate(25deg) scale(1.1);
        border-radius: 70% 30% 60% 40%;
    }
    50% {
        transform: translateY(-20px) rotate(35deg) scale(0.9);
        border-radius: 40% 60% 80% 20%;
    }
    75% {
        transform: translateY(20px) rotate(45deg) scale(1.05);
        border-radius: 80% 20% 40% 60%;
    }
}

@keyframes floatMorph2 {
    0%, 100% {
        transform: translateY(0px) rotate(-20deg) scale(1);
        border-radius: 40% 60% 50% 70%;
    }
    30% {
        transform: translateY(35px) rotate(-30deg) scale(0.8);
        border-radius: 60% 40% 70% 30%;
    }
    60% {
        transform: translateY(-25px) rotate(-10deg) scale(1.2);
        border-radius: 30% 70% 40% 60%;
    }
    80% {
        transform: translateY(15px) rotate(-40deg) scale(0.95);
        border-radius: 70% 30% 60% 40%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(96, 165, 250, 0.6);
    }
}

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

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

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

@keyframes letterFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustements des polices pour mobile */
@media (max-width: 768px) {
    .hero-name {
        font-size: 5rem;
    }
    
    .job-title {
        font-size: 3rem;
        padding: 1.2rem 3rem;
    }
    
    .hero-description {
        font-size: 2.2rem;
    }
    
    .scroll-text {
        font-size: 1.3rem;
        padding: 1rem 2rem;
    }
}