/* =============================================
   Antoine Ardilouze — v4
   Refined Monochrome · Copper Accent
   ============================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow: hidden;
    overscroll-behavior: none;
    background: #F5F2ED;
}

@media (max-width: 1023px) {
    body { overflow-y: auto; overflow-x: hidden; }
}

::selection { background: #D4A574; color: #fff; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C8C2B8; border-radius: 99px; }

/* =============================================
   SLIDE BACKGROUNDS
   ============================================= */
.slide-gold  { background: #F5F2ED; }  /* warm stone */
.slide-cream { background: #FAFAF8; }  /* near white */
.slide-dark  { background: #111111; }  /* deep black */

/* =============================================
   LAYOUT
   ============================================= */
@media (min-width: 1024px) {
    .slides-container {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    .slides-wrapper {
        display: flex;
        height: 100vh;
        will-change: transform;
        transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
    }
    .slide {
        flex: 0 0 100vw;
        width: 100vw;
        height: 100vh;
        position: relative;
        overflow: hidden;
    }
    .slide-inner {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        padding-top: 24px;
        padding-bottom: 80px;
    }
    .slide-inner::-webkit-scrollbar { width: 3px; }
    .slide-inner::-webkit-scrollbar-thumb { background: rgba(0,0,0,.08); border-radius: 99px; }
}

@media (max-width: 1023px) {
    .slides-wrapper {
        display: flex;
        flex-direction: column;
    }
    .slide {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        position: relative;
    }
    .slide-inner {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 56px;
        padding-bottom: 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* =============================================
   MOBILE HEADER
   ============================================= */
#mob-header {
    background: rgba(245, 242, 237, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-link {
    display: block;
    padding: 14px 0;
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: color 0.2s;
}
.mobile-nav-link:hover { color: #B87333; }

/* =============================================
   BOTTOM BAR
   ============================================= */
.bottom-bar-inner {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    padding: 5px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.on-dark .bottom-bar-inner {
    background: rgba(17, 17, 17, 0.85);
    border-color: rgba(255, 255, 255, 0.06);
}

.bnav {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border-radius: 99px;
    transition: all 0.3s;
    white-space: nowrap;
}
.bnav:hover {
    color: #1A1A1A;
    background: rgba(0, 0, 0, 0.04);
}
.bnav.active {
    background: #1A1A1A;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

body.on-dark .bnav { color: rgba(255,255,255,0.45); }
body.on-dark .bnav:hover { color: #fff; background: rgba(255,255,255,0.08); }
body.on-dark .bnav.active { background: #B87333; color: #fff; }

/* =============================================
   SCROLL INDICATOR
   ============================================= */
.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid #C8C2B8;
    border-radius: 99px;
    display: flex;
    justify-content: center;
}
.scroll-dot {
    width: 3px;
    height: 6px;
    background: #B87333;
    border-radius: 99px;
    margin-top: 6px;
    animation: scrollPulse 2s infinite ease-in-out;
}
@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.2; }
}

/* Scroll hint horizontal */
.scroll-horiz {
    width: 40px;
    height: 22px;
    border: 2px solid #C8C2B8;
    border-radius: 99px;
    display: flex;
    align-items: center;
    padding-left: 6px;
}
.scroll-horiz-dot {
    width: 6px;
    height: 3px;
    background: #B87333;
    border-radius: 99px;
    animation: scrollPulseH 2s infinite ease-in-out;
}
@keyframes scrollPulseH {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(16px); opacity: 0.2; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #1A1A1A;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.btn-dark:hover { background: #333; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: #1A1A1A;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.3s;
}
.btn-outline:hover { border-color: #1A1A1A; background: rgba(0, 0, 0, 0.03); transform: translateY(-2px); }

/* =============================================
   TAG LABEL
   ============================================= */
.tag-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #B87333;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: rgba(184, 115, 51, 0.08);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
}
.tag-label-light {
    background: rgba(184, 115, 51, 0.15);
    color: #D4A574;
}

/* =============================================
   TIMELINE (Slide 2)
   ============================================= */
.tl-row { display: flex; align-items: center; gap: 12px; }
.tl-dot { width: 12px; height: 12px; border-radius: 99px; flex-shrink: 0; }
.tl-bar { flex: 1; height: 3px; border-radius: 99px; }
.tl-label { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 500; color: #777; white-space: nowrap; }
.tl-label strong { font-weight: 700; color: #1A1A1A; }

/* Override dot/bar colors */
.tl-dot.bg-gold-400  { background: #D4A574 !important; }
.tl-dot.bg-dark-900  { background: #1A1A1A !important; }
.tl-bar.bg-gold-400\/30  { background: rgba(212, 165, 116, 0.3) !important; }
.tl-bar.bg-dark-900\/20  { background: rgba(26, 26, 26, 0.15) !important; }

/* =============================================
   LOGOS
   ============================================= */
.logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 14px;
    padding: 24px 22px;
    min-height: 120px;
    transition: all 0.3s;
}
.logo-cell:hover { border-color: #B87333; box-shadow: 0 4px 16px rgba(184, 115, 51, 0.08); }

.logo-img {
    max-height: 88px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.3s;
}
.logo-cell:hover .logo-img { filter: grayscale(0) opacity(1); }

/* =============================================
   BENTO (monochrome)
   ============================================= */
.bento {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 18px;
    padding: 22px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}
.bento:hover {
    border-color: rgba(184, 115, 51, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.bento-ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: #F5F2ED;
    color: #B87333;
    transition: transform 0.3s;
}
.bento:hover .bento-ico { transform: scale(1.08); background: #B87333; color: #fff; }

/* =============================================
   SERVICES — Slide 4
   ============================================= */
.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 320px;
}
.search-wrap svg {
    position: absolute;
    left: 10px;
    width: 14px;
    height: 14px;
    color: #aaa;
    pointer-events: none;
}
.stag-search {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 10px;
    padding: 7px 14px 7px 30px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.stag-search::placeholder { color: #aaa; font-weight: 400; }
.stag-search:focus {
    border-color: #B87333;
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.08);
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 99px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s;
}
.cat-btn:hover {
    border-color: #1A1A1A;
    color: #1A1A1A;
}
.cat-btn.active {
    background: #1A1A1A;
    color: #fff;
    border-color: #1A1A1A;
}
.cat-btn.active svg { color: #D4A574; }

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 58vh;
    overflow-y: auto;
    padding-right: 4px;
}
.services-grid::-webkit-scrollbar { width: 3px; }
.services-grid::-webkit-scrollbar-thumb { background: #C8C2B8; border-radius: 99px; }

.stag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    cursor: default;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.stag.hidden-tag { display: none; }

/* Filter transition — exit (fast) */
.stag.stag-exit {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

/* Filter transition — enter (quick pop-in) */
@keyframes stagPopIn {
    0%   { opacity: 0; transform: scale(0.85); }
    70%  { opacity: 1; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}
.stag.stag-enter {
    animation: stagPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Category colors on tags — border + colored background */
.stag[data-cat="dev"]       { border-left: 3px solid #3B82F6; background: rgba(59, 130, 246, 0.10); }
.stag[data-cat="design"]    { border-left: 3px solid #A855F7; background: rgba(168, 85, 247, 0.10); }
.stag[data-cat="strategy"]  { border-left: 3px solid #F59E0B; background: rgba(245, 158, 11, 0.10); }
.stag[data-cat="ia"]        { border-left: 3px solid #10B981; background: rgba(16, 185, 129, 0.10); }
.stag[data-cat="marketing"] { border-left: 3px solid #EF4444; background: rgba(239, 68, 68, 0.10); }

/* Category colors on filter buttons — colored background hint at rest */
.cat-btn[data-filter="dev"]       { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.08); color: #3B82F6; }
.cat-btn[data-filter="design"]    { border-color: rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.08); color: #A855F7; }
.cat-btn[data-filter="strategy"]  { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); color: #F59E0B; }
.cat-btn[data-filter="ia"]        { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.08); color: #10B981; }
.cat-btn[data-filter="marketing"] { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.08); color: #EF4444; }

.cat-btn[data-filter="dev"]:hover       { border-color: #3B82F6; color: #3B82F6; background: rgba(59, 130, 246, 0.06); }
.cat-btn[data-filter="design"]:hover    { border-color: #A855F7; color: #A855F7; background: rgba(168, 85, 247, 0.06); }
.cat-btn[data-filter="strategy"]:hover  { border-color: #F59E0B; color: #F59E0B; background: rgba(245, 158, 11, 0.06); }
.cat-btn[data-filter="ia"]:hover        { border-color: #10B981; color: #10B981; background: rgba(16, 185, 129, 0.06); }
.cat-btn[data-filter="marketing"]:hover { border-color: #EF4444; color: #EF4444; background: rgba(239, 68, 68, 0.06); }

.cat-btn[data-filter="dev"].active       { background: #3B82F6; border-color: #3B82F6; color: #fff; }
.cat-btn[data-filter="design"].active    { background: #A855F7; border-color: #A855F7; color: #fff; }
.cat-btn[data-filter="strategy"].active  { background: #F59E0B; border-color: #F59E0B; color: #fff; }
.cat-btn[data-filter="ia"].active        { background: #10B981; border-color: #10B981; color: #fff; }
.cat-btn[data-filter="marketing"].active { background: #EF4444; border-color: #EF4444; color: #fff; }

.cat-btn[data-filter="dev"] i       { color: #3B82F6; }
.cat-btn[data-filter="design"] i    { color: #A855F7; }
.cat-btn[data-filter="strategy"] i  { color: #F59E0B; }
.cat-btn[data-filter="ia"] i        { color: #10B981; }
.cat-btn[data-filter="marketing"] i { color: #EF4444; }
.cat-btn.active i { color: #fff !important; }

/* =============================================
   PORTFOLIO — Slider
   ============================================= */
.folio-slider-wrap {
    overflow: hidden;
    border-radius: 20px;
}
.folio-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.folio-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 20px;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .folio-slide {
        flex-direction: row;
    }
}
.folio-slide-img {
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F2ED;
}
.folio-slide-img img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}
@media (min-width: 1024px) {
    .folio-slide-img {
        width: 55%;
        max-height: 68vh;
    }
    .folio-slide-img img {
        max-height: 68vh;
    }
}
.folio-slide-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 1024px) {
    .folio-slide-body {
        padding: 32px 36px;
    }
}
.folio-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.folio-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}
.folio-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #D4A574;
}

/* Arrow buttons */
.folio-arrow {
    width: 40px;
    height: 40px;
    border-radius: 99px;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #1A1A1A;
}
.folio-arrow:hover {
    border-color: #B87333;
    color: #B87333;
    box-shadow: 0 2px 10px rgba(184, 115, 51, 0.12);
}
.folio-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Dots */
.folio-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #C8C2B8;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}
.folio-dot.active {
    width: 24px;
    background: #B87333;
}

/* =============================================
   CONTACT
   ============================================= */
.cta-card {
    background: #B87333;
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.35s;
    color: #fff;
}
.cta-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(184, 115, 51, 0.25); }
/* Override dark text classes on CTA card */
.cta-card h3 { color: #fff !important; }
.cta-card p { color: rgba(255,255,255,0.8) !important; }
.cta-card .bg-dark-900 { background: rgba(0,0,0,0.2) !important; }
.cta-card span[class*="bg-dark"] { background: rgba(0,0,0,0.25) !important; color: #fff !important; }
.cta-card i { color: #fff !important; }

.contact-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
}

.clink {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s;
}
.clink:hover { background: rgba(255, 255, 255, 0.06); }

.clink-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =============================================
   OVERRIDES — Tailwind color classes from HTML
   remap gold → copper, dark → true dark
   ============================================= */

/* Badge "Disponible" */
.bg-dark-900 { background-color: #1A1A1A; }
.text-gold-400 { color: #D4A574; }
.bg-gold-400 { background-color: #D4A574; }
.text-gold-600 { color: #B87333; }
.text-gold-700 { color: #9A5E28; }
.bg-gold-50 { background-color: #FAF6F1; }
.bg-gold-100 { background-color: #F0E6D8; }
.border-gold-200 { border-color: #E5D3BD; }
.text-dark-900 { color: #1A1A1A; }
.text-dark-800 { color: #2A2A2A; }
.text-dark-700 { color: #444; }
.text-dark-600 { color: #666; }
.text-dark-500 { color: #888; }
.text-dark-400 { color: #aaa; }

/* Ring / shadow on photo */
.ring-white\/50 { --tw-ring-color: rgba(255,255,255,0.5); }
.shadow-gold-700\/20 { --tw-shadow-color: rgba(184, 115, 51, 0.15); }

/* Pulse dot */
.bg-gold-400.animate-pulse { background-color: #D4A574; }

/* Hero stats cards */
.bg-white\/60 { background: rgba(255,255,255,0.65) !important; }

/* =============================================
   ANIMATIONS
   ============================================= */
.anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1023px) {
    .anim { transform: translateY(16px); }
}

@media (max-width: 640px) {
    .slide-inner { padding-top: 52px; padding-bottom: 20px; }
    .bento { padding: 16px; }
    .cta-card, .contact-box { padding: 22px; }
    #hero h1 { font-size: 1.7rem; }
    #hero .slide-inner { gap: 1.5rem; }
    .folio-slide-img img { max-height: 40vh; }
    .folio-slide-body { padding: 18px; }
    .folio-list li { font-size: 12px; }
}

@media (max-width: 380px) {
    #hero h1 { font-size: 1.45rem; }
    .bento h3 { font-size: 13px; }
    .stag { font-size: 11px; padding: 8px 12px; }
}

@supports not (backdrop-filter: blur(20px)) {
    #mob-header { background: rgba(245, 242, 237, 0.97); }
    .bottom-bar-inner { background: rgba(255, 255, 255, 0.95); }
}
