/* ================================
    HOME PAGE STYLES
=================================== */

/* ===============
    HERO
================== */
.hero{
    position:relative;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
}

.hero::after {
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:45%;
    height:42%;
    background:#CBC5C1;
    z-index:1;
}

.hero-content {
    position:relative;
    z-index:2;
}


.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:flex-start;
    min-height: 90vh;
    padding-left: 5%;
}

h1.hero_title {
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    text-align: left;
    z-index: 3;
}

.hero_title img {
    all: unset;
    display: inline;
    height: 1.5em;
    padding-left: 1.5rem;
    width: auto;
    vertical-align: baseline;
}

.hero-brand{
    position:absolute;
    z-index: 2;
    top:50%;
    right: 0;
    color: var(--color-dark);
    opacity: 0.2;
    font-size: 8rem;
    font-family: var(--font-brand);
    font-weight: 100;
    white-space: nowrap;
    transform-origin: top right;
    transform: translateY(100%) rotate(90deg);
}

button.hero-cta {
    background-color: var(--color-dark);
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: .5rem;
    transition: opacity .2s;
}


button.hero-cta a {
    color: var(--color-light);
    transition:transform .3s ease;
}

button.hero-cta a:hover {
    transform:translateX(.5rem);
}

@media (max-width: 992px) {

    h1.hero_title{
        max-width: 14ch;
    }

}

@media (max-width: 768px){

    h1.hero_title{
        font-size: clamp(2rem,8vw,2.8rem);
        line-height:1.05;
        max-width:14ch;
    }

}

/* ===========================
    INTRO SECTION
=========================== */

/* marquee */

/* Container for the marquee */
.marquee {
    position: relative;
    width: 100%;
    height: 150px;
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
}

/* .marquee::after {
    content:"";
    position:absolute;
    bottom: -1px;
    top:0;
    width:45%;
    height:100%;
    background:#CBC5C1;
    z-index:2;
    opacity: .05;
} */

/* Track moving the text */
.track {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    animation: marquee 32s linear infinite;
}

/* Text inside the marquee */
.marquee-text {
    margin: 0;
    padding: 0;
    font-size: var(--font-xxl);
    font-weight: bold;
    color: #454545;
    display: inline-block;
}

/* Keyframe for marquee animation */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee {
        height: 120px;
    }
    .marquee-text {
        font-size: 2.5rem;
    }
}
.intro-header {
    max-width: 100%;
    text-align: center;
    padding: clamp(2rem, 6vw, 4rem) 1.5rem;
}

.intro-header p {
    font-family: var(--font-brand);
    font-style: italic;
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.9;
    font-weight: 200;
    letter-spacing: 0.2px;
}

/* Animated Line animéefor 'Intro' */
.scroll-hint {
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
}

.scroll-hint span {
    display: block;
    width: 2px;
    height: 40px;
    background: var(--color-primary);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Active state */
.scroll-hint.active span {
    transform: scaleY(1);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-header p {
        font-size: var(--font-md);
        max-width: 100%;
    }
}

/* ===========================
    SERVICES SECTIONS
=========================== */

.pad-2 {padding: 2rem;}

.section-4cards .card {
    background: var(--color-white);
    transform: translateY(0); /* Clean base */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* ==========================
    PROCESS LINE
=========================== */

/* LINE WRAPPER */
.process-line {
    position: relative;
    width: 100%;
    height: 40px;
    margin-bottom: var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm); /* same as steps */
}

/* BACK LINE */
.process-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0,0,0,0.1);
    transform: translateY(-50%);
}

/* ACTIVE LINE */
.process-line-fill {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transform: translateY(-50%);
    z-index: 1;
}

/* MARKERS */
.process-markers {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    /* To synchronise line with steps */
    display: grid;
    grid-template-columns: inherit; /* key */
    gap: inherit; /* very important */
    transform: translateY(-50%);
}

.marker {
    justify-self: center;
    z-index: 2;
    width: 14px;
    height: 14px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

/* ACTIVE */
.marker.active {
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

/* ===========================
    PROCESS
=========================== */

#process {
    color: var(--color-dark);
}

#process h2 {
    margin-bottom: var(--spacing-xxl);
}

@media (max-width: 768px) {
    #process h2 {
        font-size: var(--font-sm);
    }
}

.process-steps {
    gap: var(--spacing-sm);
}

.step-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: auto;
    text-align: center;
}

.step h3 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-md);
    text-align: center;
}

.step p {
    max-width: 240px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: justify;
    font-size: var(--font-sm);
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    /* Completely hide line and markers */
    .process-line,
    .process-line-fill,
    .process-markers {
        display: none;
    }

    /* Stack the steps in columns for mobile & tablets */
    .process-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Adjust cards if needed */
    .step-number {
        font-size: 2.5rem;
    }
}

/* ==========================
    PROJECTS
========================== */

/* Container & background video */
#projects {
    position: relative;
    width: 100%;
    padding: var(--spacing-xxl) var(--spacing-md);
    overflow: hidden;
    background-color: transparent; /* so that the video is visible */
}

#projects .bg-video {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}


.projects-container {
    position: relative;
    z-index: 1;
    width: 90%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .projects-container {
        width: 95%;
    }
}

#projects h2 {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    font-size: var(--font-xxl);
}

#projects h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.3rem;
    color: var(--color-secondary);
}

#projects p {
    margin: 0 0 var(--spacing-md); 
}

/* Adaptive grid layout for project cards */
.project-list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill,minmax(280px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-xl) 0;
    align-items: stretch;
}

.project-list.animating {
    contain: size;
}

@media (max-width: 1024px) {
    .project-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-list {
        grid-template-columns: 1fr;
    }
}

.project-card {
    transition: none !important;
    opacity: 1;
    transform: scale(1);
}

.project-card.is-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;  /* ← Key for animation */
}

.flip-ghost {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
}

.project-media {
    position: relative;
}

.project-card img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    box-shadow: 0 0.25rem 0.625rem var(--shadow-md);
    margin-bottom: var(--spacing-xxs);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-badge {
    position: absolute;
    top: var(--spacing-xxs);
    left: var(--spacing-xxs);
    z-index: 2;
    background: var(--color-dark);
    color: var(--color-light);
    font-size: var(--font-sm);
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    pointer-events: none;
}

.project-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;}

.category-label {
    color: var(--color-accent);
    font-size: var(--font-sm);
    font-weight: 500;
}

.project-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}

.project-links {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
    gap: 1rem;
}

.project-links .btn {
    background-color: var(--color-accent);
    margin: 0 var(--spacing-xxs);
    transition: all 0.25s ease;
}

.project-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* ===========================
    ABOUT SECTION (REVEAL)
=========================== */

.reveal-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    scroll-behavior: smooth; /* scroll plus fluide */
}

.reveal-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.reveal-top,
.reveal-bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    overflow: hidden; /* essential for text cutting */
    z-index: 2;
}

.reveal-top { top: 0;
    align-items: flex-end;
    background: url(/assets/img/slice_1.jpg) center center no-repeat;
}

.reveal-bottom { bottom: 0;
    align-items: flex-start; 
    background: url(/assets/img/slice_2.jpg) center center no-repeat;
    object-fit: cover;
}

.reveal-content {
    position: relative;
    width: 100%;
    opacity: 0;
    z-index: 1;
    box-sizing: border-box;
}

.reveal-inner {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

/* for spécific grid */
.reveal-content .grid-4 {
    width: 100%;
    gap: 2rem;
    justify-items: center;
}

/* Cards */
.grid-item.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

/* Style for cut titles in 'About' section */
.reveal-top h1,
.reveal-bottom h1 {
    text-transform: uppercase;
    font-size: var(--font-xxl);
    line-height: 2;
    font-weight: 100;
    padding-top: var(--spacing-lg);
    margin: 0;
    text-align: center;
    display: block;       /* necessary for transforms */
    height: auto;
}

.reveal-top h1 {
  transform: translateY(50%);  /* bottom hidden part */
}

.reveal-bottom h1 {
  transform: translateY(-50%); /* top hidden part */
}

/* responsive */
@media (max-width: 768px) {
    .reveal-top h1,
    .reveal-bottom h1 {
        font-size: 2.2rem;
    }
}

.about-title {
    font-size: var(--font-xxl);
    line-height: 2;
    font-weight: 100;
}

.pitch {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-content: center;
    justify-content: center;
}


p.pitch-title {
    font-size: clamp(1rem, 1.5vw, 2.5rem);
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

p.pitch-sub {
    font-size: var(--font-md);
    line-height: 1.4;
    font-weight: 200;
    color: var(--color-light);
    margin: 0;
}

/* IMAGE */
.pitch-img {
    flex-shrink: 0;
    width: min(22rem, 70vw);
    height: min(22rem, 70vw);
    overflow: hidden;
    border-radius: 50%;
    border: var(--spacing-xs) solid var(--color-accent);
    margin: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .pitch {
        padding: var(--spacing-md) var(--spacing-sm);
        min-height: 60vh;
    }
    .pitch p {
        font-size: var(--font-sm);
        line-height: 1.6;
        text-align: justify;
    }
    .pitch-img {
        flex-shrink: 0;
        width: min(12rem, 40vw);
        height: min(12rem, 40vw);
        margin-bottom: var(--spacing-md);
    }
}

/* ======================================
    SPOTLIGHT BACKGROUND IN ABOUT SECTION
   ====================================== */

#spotlights {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.45;
}

/* ==========================
    SKILLS
============================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xl);
}

.skill-card {
    background: #fff;
    padding: var(--spacing-md);
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 1.5rem rgba(0,0,0,0.15);
}

.skill-card .icon {
    color: var(--color-accent);
}

/* Responsive */
/* Tablets */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
        margin: 0;
    }
}

/* ===== SKILLS BADGES ===== */
.why-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.badge {
    padding: 8px 14px;
    border: 1px solid var(--color-accent);
    color: var(--color-secondary);
    background: var(--color-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.badge:hover {
    background: var(--color-accent);
    color: var(--color-light);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* =================================
    PRICING SECTION
==================================== */

#pricing {
    background: var(--color-white);
    color: var(--color-dark);
}

/* GRID (Uses .grid-4 in global.css) */
.pricing-grid {
    margin-bottom: var(--spacing-xxl);
}

/* Cards */
.pricing-card {
    border: 1px solid rgba(90,110,117,0.25); /* secondary soft */
    padding: 2rem;
    background: var(--color-light);
    opacity: 0;
    transform: translateY(24px);
    transition: transform .5s ease, opacity .5s ease, box-shadow .3s ease;
}

.pricing-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

/* Titles */
.pricing-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pricing-title span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
}

/* Price range */
.pricing-range {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    color: var(--color-accent);
}

/* List */
.pricing-list {

    line-height: 1.5;
    text-align: left;
    font-weight: 500;
    padding: 1rem;
    margin: 0;
}

ul.pricing-list li {
    list-style: none;
    text-align: center;
    padding: .4rem 0;
    font-size: 1rem;
    color: var(--color-dark);
}

.line {
    width: 30%;
    height: 1px;
    background: rgba(0,0,0,0.2);
    margin: 1rem auto;
}
.checkmark {
    color: var(--color-accent);
    font-weight: 700;
    margin-right: 0.2rem;
}

h2.maintenance {
    text-transform: uppercase;
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    font-weight: 500;
}

/* =============== FAQ ================= */
#faq {
    /* content-80's max-width alone won't center inside #main's flex
       column (align-items: stretch doesn't auto-center a clamped
       item) — margin: auto does the actual centering. */
    margin: 0 auto;
}

.faq-list {
    margin: var(--spacing-xl) auto 0;
    align-items: start;
    justify-items: stretch;
}

.faq-item {
    /* min-width: 0 + the answer always being in the DOM (see .faq-answer
       below) means the grid column's width no longer depends at all on
       whether a card is open or closed. */
    min-width: 0;
    overflow-wrap: break-word;

    /* The gradient-behind-glass approach wasn't worth the visual cost —
       too subtle to read as anything under a mostly-static section.
       Relief comes from elevation instead: a stronger shadow, a crisp
       border and a top highlight, rather than depending on blur having
       something busy to distort. */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(43, 43, 43, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: var(--spacing-md);
    transition: box-shadow 0.3s ease;
}

.faq-item.is-open {
    box-shadow: 0 14px 36px rgba(43, 43, 43, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Native <details> toggles instantly with no transition in any browser —
   that's the "saccadé" jump. .faq-question/.faq-answer + a bit of JS
   (main.js) animate max-height smoothly instead. */
.faq-question {
    all: unset;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

.faq-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    margin-top: var(--spacing-sm);
    color: var(--color-text);
}