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

:root {
    --primary-black: #050505;
    --secondary-black: #121212;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --accent-purple: #9b59b6;
    --accent-purple-dark: #6c3483;
    --transition-fast: 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    --transition-md: 0.6s cubic-bezier(0.2, 0, 0.2, 1);
    --transition-slow: 1.0s cubic-bezier(0.2, 0, 0.2, 1);

    /* Category Colors */
    --design-purple: #9b59b6;
    --dev-green: #2ecc71;
    --audio-orange: #e67e22;
    --comm-cyan: #1abc9c;
}

/* --- Page Fade Transition --- */
.page-fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    z-index: 10000;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.page-fade-overlay.fade-out {
    opacity: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-black);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Mouse Follower Glow --- */
.mouse-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_pnt.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    transition: var(--transition-md);
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.2s ease-out;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.2s ease-out;
    position: relative;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Bannière1.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
    animation: heroEntrance 4s var(--transition-md) forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    z-index: -1;
}

@keyframes heroEntrance {
    from {
        transform: scale(1.15);
        filter: brightness(0);
    }

    to {
        transform: scale(1);
        filter: brightness(1);
    }
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s var(--transition-md) 0.5s forwards;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.1em;
    color: var(--text-gray);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s var(--transition-md) 1.0s forwards;
}

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

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 2s ease forwards 2s;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-purple), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: scrollMove 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollMove {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.6;
    }
}

/* --- Section Formatting --- */
section {
    padding: 10rem 8%;
    min-height: 80vh;
}

/* Legal pages don't need forced min-height */
.legal-content {
    display: block;
    width: 100%;
    padding: 12rem 10% 8rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: auto;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.1em;
}

.legal-section p,
.legal-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.2rem;
}

.legal-section ul {
    padding-left: 1.5rem;
    list-style: disc;
    color: var(--text-gray);
}

.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-purple);
}

/* --- Home Intro Section --- */
.home-intro {
    padding: 10rem 10%;
}

.intro-text-block {
    max-width: 800px;
    margin: 0 auto 6rem;
    text-align: center;
}

.intro-text-block p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-top: 2rem;
    line-height: 1.8;
}

/* --- Back Navigation --- */
.back-nav-container {
    padding: 8rem 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    text-decoration: none;
    color: var(--accent-purple);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: var(--transition-md);
    opacity: 0.7;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

/* --- Projets Page --- */
.filter-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--transition-md);
    padding: 0.5rem 0;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--text-white);
    border-bottom: 2px solid var(--accent-purple);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

/* For focus-mode: when a card is hovered, dim others */
.projects-grid:has(.project-card:hover) .project-card:not(:hover) {
    opacity: 0.4;
    filter: blur(2px);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.project-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    background: var(--secondary-black);
    text-decoration: none;
    border-radius: 24px;
    /* Cinematic transition */
    transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1),
        box-shadow 0.8s cubic-bezier(0.2, 0, 0, 1),
        opacity 0.8s cubic-bezier(0.2, 0, 0, 1),
        filter 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s var(--transition-md), filter 0.4s var(--transition-md);
}

.project-card:hover .project-img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

.project-card:hover {
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.4);
    z-index: 10;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 3rem 2rem;
    opacity: 1;
    /* Always some visibility for title */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.4s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.project-overlay p {
    color: var(--text-white);
    opacity: 0.9;
}

.project-category {
    font-size: 0.7rem;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Asymmetric Span Classes */
.span-8 {
    grid-column: span 8;
}

.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-12 {
    grid-column: span 12;
}

@media (max-width: 1024px) {

    .span-8,
    .span-4,
    .span-6 {
        grid-column: span 12;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Vidéo Page --- */
.video-player-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 5rem;
}

.video-player-container {
    width: 100%;
    max-width: 1200px;
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 1), 0 0 40px rgba(155, 89, 182, 0.15);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.video-player-container video {
    width: 100%;
    display: block;
}

.video-info {
    text-align: center;
    max-width: 800px;
}

.video-info h2 {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.video-info p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* --- Credits Section Wrapper --- */
.credits-section {
    padding: 8rem 10%;
    position: relative;
    overflow: hidden;
}

/* Ambient glow in the background */
.credits-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Thin cinematic line top label */
.credits-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.6em;
    color: var(--accent-purple);
    text-transform: uppercase;
    text-align: center;
    opacity: 0.7;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.credits-label::before,
.credits-label::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-purple));
}

.credits-label::after {
    background: linear-gradient(to left, transparent, var(--accent-purple));
}

/* --- Cinematic Skills (Movie Credits Style) --- */
.skills-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.skill-row {
    background: transparent;
    padding: 3rem 1rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    align-items: center;
    gap: 3rem;
    transition: background 0.6s ease;
}

.skill-row:last-child {
    border-bottom: none;
}

.skill-row:hover {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
    transform: none;
}

.skills-rows:hover .skill-row:not(:hover) {
    opacity: 0.3;
    filter: grayscale(1);
    transition: all 0.4s ease;
}

.category-header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.category-icon {
    display: none;
    /* Hide the colorful icons to maintain sleek credits aesthetic */
}

.category-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    color: var(--text-gray);
    text-transform: uppercase;
    text-align: right;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.skill-row:hover .category-name {
    color: var(--text-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.skill-cloud-pill {
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--text-white);
    font-weight: 300;
    position: relative;
    padding-right: 1.2rem;
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
    opacity: 0.6;
}

.skill-cloud-pill:not(:last-child)::after {
    content: '✦';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #666;
}

.skill-cloud-pill:hover {
    opacity: 1;
    transform: scale(1.05);
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
    .skill-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .category-header {
        justify-content: center;
    }

    .category-name {
        text-align: center;
    }

    .pill-cloud {
        justify-content: center;
    }

    .skill-cloud-pill:not(:last-child)::after {
        right: -0.2rem;
    }
}

/* --- Cinematic Tools Section (4-col Icon Grid) --- */
.tools-section {
    padding: 6rem 8%;
    text-align: center;
    position: relative;
}

.tools-grid-cinematic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    max-width: 900px;
    margin: 4rem auto 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
    cursor: default;
}

.tool-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(155, 89, 182, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tools-grid-cinematic:has(.tool-item:hover) .tool-item:not(:hover) {
    opacity: 0.25;
    filter: grayscale(1);
    transition: all 0.45s ease;
}

.tool-item:hover {
    background: rgba(155, 89, 182, 0.06);
}

.tool-item:hover::before {
    opacity: 1;
}

.tool-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    /* Start desaturated like unprocessed film */
    filter: grayscale(1) brightness(0.45);
    transition: all 0.55s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.tool-item:hover img {
    filter: grayscale(0) brightness(1) drop-shadow(0 0 14px rgba(155, 89, 182, 0.5));
    transform: scale(1.1);
}

.tool-item span {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-gray);
    opacity: 0.35;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.tool-item:hover span {
    opacity: 1;
    color: var(--text-white);
    text-shadow: 0 0 8px rgba(155, 89, 182, 0.6);
}

@media (max-width: 768px) {
    .tools-grid-cinematic {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-item {
        padding: 2rem 1rem;
    }

    .tool-item img {
        width: 40px;
        height: 40px;
    }
}


/* --- Cinematic Horizontal Filmstrip --- */
.filmstrip-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-wrap: wrap;
    /* Wraps to 2 or 3 lines *horizontally* */
    justify-content: center;
    align-items: center;
    gap: 3vw;
    padding: 2rem 5vw;
    margin-bottom: 4rem;
}

.filmstrip-item {
    flex: 0 0 auto;
    height: 40vh;
    /* Controlled height so they align horizontally nicely */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.6s ease;
    background: transparent;
}

.filmstrip-item:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(155, 89, 182, 0.3);
    z-index: 10;
}

.filmstrip-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* NEVER zoom or crop */
    display: block;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 1rem;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(25, 25, 25, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.tool-card::after {
    /* Subtle spotlight projection */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(155, 89, 182, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(155, 89, 182, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 1;
    /* Undeveloped film look */
    filter: grayscale(1) brightness(0.5) contrast(1.2) sepia(0.2);
    transition: all 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.tool-card:hover .tool-img {
    filter: grayscale(0) brightness(1) contrast(1.1) sepia(0) drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
    transform: scale(1.15);
}

.tool-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 1;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.tool-card:hover .tool-name {
    color: var(--text-white);
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.8);
}

/* --- Cinematic Showcase Section --- */
.cinema-showcase {
    position: relative;
    padding: 4rem 0;
    margin: 4rem auto;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.film-posters {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
    position: relative;
}

.film-poster {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1), z-index 0s;
    cursor: default;
}

.poster-inner {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transition: var(--transition-md);
}

.poster-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cinematic effect: slight grain/sepia */
    filter: grayscale(0.4) contrast(1.15) sepia(0.2) brightness(0.8);
    transition: var(--transition-md);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 2;
}

/* Overlap and hover effects */
.poster-left {
    margin-right: -60px;
    transform: translateY(30px) rotate(-4deg);
    z-index: 1;
}

.poster-center {
    z-index: 3;
    transform: scale(1.05) translateY(-10px);
}

.poster-right {
    margin-left: -60px;
    transform: translateY(30px) rotate(4deg);
    z-index: 1;
}

.film-poster:hover {
    z-index: 10;
}

.film-poster.poster-left:hover {
    transform: translateY(-5px) rotate(0deg) scale(1.05);
}

.film-poster.poster-center:hover {
    transform: translateY(-20px) scale(1.1);
}

.film-poster.poster-right:hover {
    transform: translateY(-5px) rotate(0deg) scale(1.05);
}

.film-poster:hover .poster-inner img {
    filter: grayscale(0) contrast(1.1) sepia(0) brightness(1);
}

.film-poster figcaption {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--text-gray);
    opacity: 0.6;
    transition: opacity 0.4s ease, color 0.4s ease, transform 0.4s ease;
    text-transform: uppercase;
}

.film-poster:hover figcaption {
    opacity: 1;
    color: var(--text-white);
    transform: translateY(-5px);
}

/* Orelsan Quote */
.cinema-quote {
    width: 90%;
    max-width: 800px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    letter-spacing: 0.05em;
    padding: 1rem;
    margin-bottom: 4rem;
}

.cinema-quote .quote-author {
    display: block;
    font-size: 1rem;
    font-style: normal;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    color: var(--accent-purple);
    margin-top: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Spotify Wrapper */
.spotify-embed {
    width: 100%;
    max-width: 600px;
    margin-top: 5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-md);
}

.spotify-embed:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(155, 89, 182, 0.3);
}

@media (max-width: 768px) {
    .tool-card {
        padding: 0.8rem 1.2rem;
    }

    .tool-img {
        width: 32px;
        height: 32px;
    }

    .tool-name {
        font-size: 1rem;
    }
}

/* --- Contact Page (Split Layout) --- */
.contact {
    padding: 0;
    min-height: 100vh;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 100vh;
}

.contact-visual {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10%;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.contact-visual::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.contact-visual h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.contact-visual p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 400px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.contact-details {
    position: relative;
    z-index: 1;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.contact-item label {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    color: var(--text-gray);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.3rem;
}

.contact-item span {
    font-size: 1.1rem;
    color: var(--accent-purple);
    font-weight: 600;
}

.contact-form-side {
    background: var(--primary-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10%;
}

.contact-form {
    max-width: 600px;
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 3rem;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.4s ease;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--accent-purple);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-gray);
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    pointer-events: none;
    transition: transform 0.4s ease, color 0.4s ease, font-size 0.4s ease;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    transform: translateY(-2.5rem);
    color: var(--accent-purple);
    font-size: 0.7rem;
}

.submit-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--text-white);
    padding: 1.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-purple);
    z-index: -1;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    color: white;
}

/* --- Contact Feedback --- */
.contact-feedback-msg {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.contact-feedback-msg h3 {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.contact-feedback-msg p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}


@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        padding: 8rem 10% 4rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .contact-visual h2 {
        font-size: 3rem;
    }
}

/* --- Cookie Banner — Liquid Glass + Refuse Button --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 680px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 9999;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(155, 89, 182, 0.1);
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.cookie-content a {
    color: var(--accent-purple);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.cookie-btn {
    border: none;
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn--accept {
    background: var(--accent-purple);
    color: white;
}

.cookie-btn--accept:hover {
    background: var(--accent-purple-dark);
    transform: scale(1.04);
}

.cookie-btn--refuse {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-btn--refuse:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.04);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* --- Scroll Reveals (Faster) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

footer {
    padding: 4rem 10%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

footer a {
    color: var(--text-gray);
    text-decoration: underline;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-purple);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 4rem;
    }
}