/* === GLOBAL === */


body {
    background-color: #121212;
    margin: 0;
    padding: 0;
    font-family: 'Fira Sans', sans-serif;
    color: white;
    scroll-behavior: smooth;
}





/* === HEADER === */


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    box-shadow: 0 0px 0px rgba(201, 199, 193, 0); /* Initialement invisible */
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease-in-out, box-shadow 0.6s ease-in-out;
}

.header.scrolled {
    background: rgba(15, 15, 15, 1);
    box-shadow: 0 4px 30px rgba(201, 199, 193, 0.3);
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}

.header .logo:hover {
    color: #c9c7c1;
}

.nav-links {
    display: flex;
    gap: 40px;
    margin-right: 80px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease-in-out;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}





/* === SECTION PRINCIPALE === */

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 120px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

.image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.image-container img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.image-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(201, 199, 193, 0.6);
}

h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 40px;
    margin-top: 10px;
    text-align: center;
}

.welcome-text {
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
    color: #c9c7c1;
}

.work-section {
    margin: 80px auto;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease-out forwards;
}

.work-section h2 {
    margin-bottom: 30px;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: bold;
}

.work-section ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

.work-section li {
    background: linear-gradient(135deg, #1a1a1a, #222);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.6s ease-out, box-shadow 0.6s ease-in-out;
}

.work-section ul:has(li:only-child) {
    display: flex;
    justify-content: center;
}

.work-section ul li:only-child {
    width: 50%; 
}

.work-section li:hover {
    transform: perspective(1000px) rotateX(3deg) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(80, 80, 80, 0.3);
}

.work-section li::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 90%);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.work-section li:hover::before {
    opacity: 1;
}

.work-section a {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: color 0.5s ease-in-out;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-section li:hover a {
    color: #c9c7c1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}





/* === FOOTER === */

.footer {
    margin-top: 50px;
    padding: 20px 0;
    background: #111;
    text-align: center;
    color: white;
}

.footer p {
    margin: 5px 0;
    font-size: 16px;
}



/* === ANIMATIONS === */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
