/* ===================================
   SERVICES PAGE STYLES
   =================================== */

/* ----- Hero Section ----- */
body { background-color: #dbdad7; }

.services-hero {
    background: #dbdad7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 142px 30px 138px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero-inner {
    max-width: 400px;
    position: relative;
    z-index: 2;
    margin-top: 16px;
}

.services-title {
    font-family: var(--font-primary);
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dark);
    margin-bottom: 32px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
}

.services-subtitle {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1.7;
    color: #000 !important;
    opacity: 0;
    transform: translateY(20px);
    text-transform: uppercase;
    max-width: 374px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ----- Categories Section ----- */
.services-categories {
    background: #dbdad7;
    padding: 100px 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.services-container {
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.category-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.category-block:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.category-info {
    max-width: 100%;
}

.category-label {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 26px;
}

.category-desc {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #000;
    letter-spacing: 0.3px;
}

/* Graphic Representations styling */
.category-graphic {
    background: #e1e0dd;
    /* slightly lighter warm gray/beige background to frame the graphic nicely */
    border-radius: 4px;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
    transition: transform 0.6s var(--transition-smooth);
}

.category-graphic:hover .category-bg-image {
    transform: scale(1.05);
}

.svg-layer {
    position: absolute;
    max-width: 80%;
    max-height: 80%;
    transition: transform 0.6s var(--transition-smooth), opacity 0.6s ease;
}

/* Category 1: Graphic Design animation styling */
.logo-v1 {
    width: 240px;
    height: auto;
    opacity: 0.3;
    z-index: 1;
}

.logo-v2 {
    width: 60px;
    height: auto;
    z-index: 2;
}

/* Category 2: Print Design styling */
.logo-print {
    width: 220px;
    height: auto;
    z-index: 1;
}

.logo-v2-print {
    width: 50px;
    height: auto;
    transform: translate(0, -35px);
    /* Position it exactly as Webflow print overlay */
    z-index: 2;
}

/* Category 3: Digital Design styling */
.screen-mobile {
    width: 160px;
    height: auto;
    z-index: 1;
}

.logo-v2-digital {
    width: 32px;
    height: auto;
    z-index: 2;
    transform: translate(0, -5px);
    /* Perfectly center inside the screen */
}

/* Interactive Hover Effects on Illustrations */
.category-graphic:hover .logo-v2 {
    transform: scale(1.1) rotate(5deg);
}

.category-graphic:hover .logo-v1 {
    transform: scale(0.95);
    opacity: 0.2;
}

.category-graphic:hover .logo-v2-print {
    transform: translate(5px, -45px) scale(1.08);
}

.category-graphic:hover .logo-v2-digital {
    transform: translate(0, -5px) scale(1.15);
}

/* Responsiveness display flags */
.animate-desktop-only {
    display: none !important;
}

.animate-mobile-only {
    display: flex !important;
}

/* ----- Specific Skills Section (Nos savoir-faire) ----- */
.services-details {
    background: #dbdad7;
    padding: 92px 28px 128px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.details-container {
    max-width: 440px;
    margin: 0 auto;
}

.details-main-title {
    font-family: var(--font-primary);
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000000;
    margin-bottom: 78px;
}

.details-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.details-row.last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.details-category-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    opacity: 0.6;
    margin-bottom: 0px;
}

.skills-grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
}

.skill-item {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    color: #000000;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    display: inline-block;
    width: fit-content;
    position: relative;
    opacity: 0.85;
}

.skill-item:hover {
    color: var(--color-accent-orange);
    transform: translateX(8px);
    opacity: 1;
}

.details-col-graphic {
    display: block;
    /* Shown on mobile under the grid */
    width: 100%;
    margin-top: 24px;
}

.gif-frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.8;
    /* Mobile friendly aspect ratio */
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}


.gif-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.gif-layer.active {
    opacity: 1;
    z-index: 2;
}

/* ----- Desktop & Large Viewport Layouts ----- */
@media (min-width: 1024px) {
    .services-hero-inner {
        max-width: 800px;
    }

    .services-title {
        font-size: 48px;
        letter-spacing: 8px;
        margin-bottom: 40px;
    }

    .services-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
        max-width: 680px;
        margin: 0 auto;
    }

    .services-container,
    .details-container {
        max-width: 1100px;
        padding: 0 40px;
    }

    /* Desktop Layout: Categories */
    .services-categories {
        padding: 120px 0;
    }

    .services-container {
        gap: 120px;
    }

    .category-block {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 80px;
    }

    .category-block:nth-child(even) {
        flex-direction: row-reverse;
    }

    .category-info {
        flex: 1;
    }

    .category-label {
        font-size: 42px;
    }

    .category-desc {
        font-size: 16px;
        max-width: 480px;
    }

    .category-graphic {
        flex: 1;
        height: 480px;
    }

    .logo-v1 {
        width: 320px;
    }

    .logo-v2 {
        width: 80px;
    }

    .logo-print {
        width: 300px;
    }

    .logo-v2-print {
        width: 70px;
        transform: translate(0, -45px);
    }

    .screen-desktop {
        width: 85%;
        height: auto;
        z-index: 1;
    }

    /* Desktop Layout: Specific Skills details */
    .services-details {
        padding: 120px 0;
    }

    .details-main-title {
        font-size: 38px;
        margin-bottom: 80px;
    }

    .details-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 60px;
        padding-bottom: 80px;
        margin-bottom: 80px;
    }

    .details-col-title {
        width: 25%;
    }

    .details-col-skills {
        width: 40%;
    }

    .details-col-graphic {
        display: block;
        /* Shown on desktop */
        width: 30%;
    }

    .details-category-title {
        font-size: 22px;
    }

    .skills-grid-list {
        gap: 18px;
    }

    .skill-item {
        font-size: 16px;
    }

    .gif-frame-container {
        aspect-ratio: 1.2;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    }

    /* Category 3: Digital Desktop Graphic styling override */
    .animate-desktop-only {
        display: flex !important;
    }

    .animate-mobile-only {
        display: none !important;
    }
}

/* ----- The Under Studio Section ----- */
.under-studio-section {
    background-color: #0d0d0c;
    color: #ffffff;
    padding: 86px 28px;
    overflow: hidden;
    padding-bottom: 0px;
}

.under-studio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 23vh;
}

.under-studio-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 550px;
}

.under-studio-title {
    font-family: var(--font-primary);
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0 0 -6px 0;
}

.under-studio-subtitle {
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: #e1e0dd;
    margin: 0;
    padding-bottom: 28px;
    text-transform: capitalize;
}

.under-studio-desc {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.3px;
}

.under-studio-gallery {
    width: 100%;
    height: 347px;
    overflow: hidden;
    position: relative;

}

.gallery-track {
    display: flex;
    gap: 16px;
    width: 100%;
    height: 100%;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 50%;
}

/* Infinite continuous auto-scrolling columns */
.gallery-column:nth-child(1) {
    animation: marqueeUp 24s linear infinite;
}

.gallery-column:nth-child(2) {
    animation: marqueeDown 24s linear infinite;
}



.gallery-column img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.gallery-column img:hover {
    transform: scale(1.02);
}



@keyframes marqueeUp {
    0% {
        transform: translateY(0);
    }

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

@keyframes marqueeDown {
    0% {
        transform: translateY(-50%);
    }

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

@media (min-width: 1024px) {
    .under-studio-gallery {
        height: 650px;
    }
}

/* Custom White Pill Button for Under Studio */
.under-studio-content .btn-outline {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    padding: 16px 44px;
    border-radius: 100px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    text-align: center;
    width: fit-content;
}

.under-studio-content .btn-outline:hover {
    transform: scale(1.03);
    opacity: 0.9;
    background-color: #944b2e !important;
}



/* Desktop Responsiveness overrides */
@media (min-width: 1024px) {
    .under-studio-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 100px;
    }

    .under-studio-content {
        width: 45%;
    }

    .under-studio-gallery {
        width: 50%;
    }

    .under-studio-title {
        font-size: 42px;
    }

    .under-studio-subtitle {
        font-size: 48px;
    }

    .under-studio-desc {
        font-size: 16px;
    }

    .cta-heading {
        font-size: 54px;
    }
}