/* ====================================================
   SKILLSWAP — HOMEPAGE (Pure CSS, no framework)
   CSS Grid · Flexbox · CSS Custom Properties
   Aesthetic: "Noir Académique" — Teal + Amber + Cream
==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ─── Design Tokens ─── */
:root {
    --hero-bg:       #0C1E1C;
    --about-bg:      #F7F2E8;
    --profiles-bg:   #0E2220;
    --amber:         #D4922A;
    --amber-light:   #E8A63C;
    --amber-glow:    rgba(212, 146, 42, 0.14);
    --cream:         #F7F2E8;
    --cream-dim:     rgba(247, 242, 232, 0.78);
    --cream-muted:   rgba(247, 242, 232, 0.42);
    --dark-border:   rgba(247, 242, 232, 0.08);
    --light-text:    #1A2E2C;
    --light-muted:   rgba(26, 46, 44, 0.62);
    --teal:          #1F5A54;
    --font-serif:    'Cormorant Garamond', Georgia, serif;
    --font-sans:     'Outfit', system-ui, sans-serif;
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --container:     min(1200px, 100% - 3rem);
}

/* ─── Bulma background reset on html ─── */
html,
html.has-background-light {
    background: var(--hero-bg) !important;
}

body {
    font-family: var(--font-sans) !important;
    background: var(--hero-bg) !important;
    margin: 0;
}

/* ─── Shared container ─── */
.ss-container {
    width: var(--container);
    margin-inline: auto;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */

.ss-hero {
    position: relative;
    min-height: 100vh;
    background: var(--hero-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7rem 1.5rem 5rem;
    box-sizing: border-box;
}

/* Grain overlay */
.ss-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Amber bottom separator */
.ss-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: 0.28;
}

/* Ambient glows */
.ss-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ss-hero-glow--right {
    top: -15%;
    right: -8%;
    width: min(55vw, 700px);
    height: min(55vw, 700px);
    background: radial-gradient(circle, rgba(212, 146, 42, 0.10) 0%, transparent 65%);
    filter: blur(40px);
}

.ss-hero-glow--left {
    bottom: -20%;
    left: -10%;
    width: min(60vw, 800px);
    height: min(60vw, 800px);
    background: radial-gradient(circle, rgba(31, 90, 84, 0.5) 0%, transparent 70%);
    filter: blur(60px);
}

/* Hero content */
.ss-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    width: 100%;
    margin-inline: auto;
}

/* ─── Kicker ─── */
.ss-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 1.5rem;
}

.ss-kicker-line {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--amber);
    opacity: 0.7;
}

/* ─── Title ─── */
.ss-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--cream);
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}

.ss-hero-title em {
    font-style: italic;
    color: var(--amber);
}

/* ─── Subtitle ─── */
.ss-hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 300;
    color: var(--cream-dim);
    letter-spacing: 0.025em;
    line-height: 1.75;
    margin: 0 auto 2.5rem;
    max-width: 480px;
}

/* ─── CTA row ─── */
.ss-hero-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* ─── Hero Search ─── */
.ss-hero-search {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}

.ss-hero-search-wrap {
    position: relative;
    display: flex;
    border: 1px solid rgba(247, 242, 232, 0.14);
    border-radius: 4px;
    background: rgba(247, 242, 232, 0.05);
    transition: border-color 0.22s var(--ease);
}

.ss-hero-search-wrap:focus-within {
    border-color: rgba(212, 146, 42, 0.45);
}

.ss-hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.85rem 1.1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.01em;
}

.ss-hero-search-input::placeholder {
    color: rgba(247, 242, 232, 0.30);
}

.ss-hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--amber);
    color: var(--hero-bg);
    border: none;
    cursor: pointer;
    padding: 0 1.3rem;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.22s var(--ease);
    flex-shrink: 0;
}

.ss-hero-search-btn:hover {
    background: var(--amber-light);
}

.ss-hero-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #0C1E1C;
    border: 1px solid rgba(212, 146, 42, 0.22);
    border-radius: 4px;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.ss-hero-search-item {
    width: 100%;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(247, 242, 232, 0.05);
    text-align: left;
    padding: 0.75rem 1.1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    transition: background 0.15s;
}

.ss-hero-search-item:first-child {
    border-top: none;
}

.ss-hero-search-item:hover,
.ss-hero-search-item.is-active {
    background: rgba(212, 146, 42, 0.10);
}

.ss-hero-search-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--cream);
}

.ss-hero-search-city {
    font-size: 0.75rem;
    color: rgba(247, 242, 232, 0.42);
}

@media (max-width: 480px) {
    .ss-hero-search-btn span {
        display: none;
    }
    .ss-hero-search-btn {
        padding: 0 1rem;
    }
}

/* ════════════════════════════════════════
   BUTTON SYSTEM
════════════════════════════════════════ */

.ss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    padding: 0.8rem 2rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background   0.22s var(--ease),
        color        0.22s var(--ease),
        border-color 0.22s var(--ease),
        transform    0.22s var(--ease),
        box-shadow   0.22s var(--ease);
}

.ss-btn--primary {
    background: var(--amber);
    color: var(--hero-bg);
}

.ss-btn--primary:hover {
    background: var(--amber-light);
    color: var(--hero-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 146, 42, 0.30);
}

.ss-btn--ghost {
    background: transparent;
    color: var(--cream-dim);
    border: 1px solid rgba(247, 242, 232, 0.22);
}

.ss-btn--ghost:hover {
    background: rgba(247, 242, 232, 0.06);
    border-color: rgba(247, 242, 232, 0.45);
    color: var(--cream);
    transform: translateY(-2px);
}

.ss-btn--card {
    width: 100%;
    background: transparent;
    color: var(--cream-dim);
    border: 1px solid var(--dark-border);
    font-size: 0.72rem;
    padding: 0.55rem 1rem;
}

.ss-btn--card:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--hero-bg);
}

.ss-btn--outline-light {
    background: transparent;
    color: var(--cream-dim);
    border: 1px solid rgba(247, 242, 232, 0.18);
    padding: 0.8rem 2.75rem;
}

.ss-btn--outline-light:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--hero-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 146, 42, 0.22);
}

/* ─── Skills carousel ─── */
.ss-skills-carousel {
    margin-top: 1rem;
}

.ss-carousel-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-muted);
    margin: 0 0 0.875rem;
}

.ss-slider {
    overflow: hidden;
    padding: 0.25rem 0;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.ss-track {
    display: flex;
    gap: 0.75rem;
    animation: scroll 28s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ss-skill-chip {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--cream-dim);
    border: 1px solid var(--dark-border);
    text-decoration: none;
    transition: all 0.28s var(--ease);
}

.ss-skill-chip--0 { background: rgba(212, 146, 42, 0.10); border-color: rgba(212, 146, 42, 0.18); }
.ss-skill-chip--1 { background: rgba(31, 90, 84, 0.40);  border-color: rgba(31, 90, 84, 0.55); }
.ss-skill-chip--2 { background: rgba(247, 242, 232, 0.05); }
.ss-skill-chip--3 { background: rgba(212, 146, 42, 0.07); border-color: rgba(212, 146, 42, 0.12); }
.ss-skill-chip--4 { background: rgba(31, 90, 84, 0.22);  border-color: rgba(31, 90, 84, 0.38); }
.ss-skill-chip--5 { background: rgba(247, 242, 232, 0.03); }

.ss-skill-chip:hover {
    border-color: var(--amber);
    background: var(--amber-glow);
    color: var(--amber);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 146, 42, 0.16);
}

/* ─── Hero entry animations ─── */
.ss-hero-content > * {
    animation: fadeUp 0.75s var(--ease) both;
}

.ss-hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.ss-hero-content > *:nth-child(2) { animation-delay: 0.18s; }
.ss-hero-content > *:nth-child(3) { animation-delay: 0.30s; }
.ss-hero-content > *:nth-child(4) { animation-delay: 0.44s; }
.ss-hero-content > *:nth-child(5) { animation-delay: 0.58s; }

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

/* ════════════════════════════════════════
   ABOUT SECTION
════════════════════════════════════════ */

.ss-about {
    background: var(--about-bg);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Watermark "01" */
.ss-about::before {
    content: '01';
    position: absolute;
    top: -1rem;
    right: 4%;
    font-family: var(--font-serif);
    font-size: clamp(8rem, 18vw, 16rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(26, 46, 44, 0.045);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

/* Two-column grid */
.ss-about-grid {
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ─── Tag / label ─── */
.ss-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid rgba(31, 90, 84, 0.32);
    border-radius: 2px;
    padding: 0.32rem 0.85rem;
    margin-bottom: 1.25rem;
}

.ss-tag--amber {
    color: var(--amber);
    border-color: rgba(212, 146, 42, 0.4);
}

/* ─── Section title ─── */
.ss-section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--light-text);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}

.ss-section-title--light {
    color: var(--cream);
}

/* About body text */
.ss-about-body {
    font-size: 0.975rem;
    line-height: 1.85;
    color: var(--light-muted);
    margin-bottom: 2.5rem;
}

.ss-about-body p {
    margin: 0 0 1rem;
}

.ss-about-body p:last-child {
    margin-bottom: 0;
}

.ss-about-body strong {
    color: var(--teal);
    font-weight: 700;
}

/* Stats row */
.ss-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.ss-stat {
    background: var(--light-text);
    border-radius: 6px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ss-stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--amber);
}

.ss-stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.ss-stat-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(247, 242, 232, 0.45);
}

/* About image */
.ss-about-visual {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26, 46, 44, 0.14);
}

.ss-about-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease);
}

.ss-about-visual:hover img {
    transform: scale(1.03);
}

/* ════════════════════════════════════════
   PROFILES SECTION
════════════════════════════════════════ */

.ss-profiles {
    background: var(--profiles-bg);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Watermark "02" */
.ss-profiles::before {
    content: '02';
    position: absolute;
    top: -1rem;
    left: 3%;
    font-family: var(--font-serif);
    font-size: clamp(8rem, 18vw, 16rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(247, 242, 232, 0.025);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

/* Section header */
.ss-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.ss-section-sub {
    font-size: 0.975rem;
    font-weight: 300;
    color: var(--cream-muted);
    margin: 0.5rem 0 0;
}

/* ─── Profile cards grid ─── */
.ss-profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* ─── Card ─── */
.ss-profile-card {
    background: rgba(247, 242, 232, 0.04);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.32s var(--ease);
}

.ss-profile-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 146, 42, 0.28);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(212, 146, 42, 0.12);
    background: rgba(247, 242, 232, 0.055);
}

/* Rank badge */
.ss-rank-badge {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--amber);
    color: var(--hero-bg);
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
}

/* Card image */
.ss-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.ss-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) brightness(0.92);
    transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.ss-profile-card:hover .ss-card-img img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(1);
}

.ss-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(12, 30, 28, 0.85), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.ss-profile-card:hover .ss-card-overlay {
    opacity: 1;
}

/* Card body */
.ss-card-body {
    padding: 1.5rem 1.25rem 1.25rem;
    position: relative;
}

/* Avatar */
.ss-card-avatar {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--profiles-bg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    font-size: 1.5rem;
    color: var(--hero-bg);
}

.ss-avatar--0 { background: var(--amber); }
.ss-avatar--1 { background: var(--teal); color: var(--cream); }
.ss-avatar--2 { background: rgba(247, 242, 232, 0.12); color: var(--cream-dim); }

/* Card info */
.ss-card-info {
    margin-top: 2.5rem;
    text-align: center;
}

.ss-card-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: -0.015em;
    transition: color 0.22s ease;
    display: block;
    margin-bottom: 0.35rem;
}

.ss-profile-card:hover .ss-card-name {
    color: var(--amber);
}

.ss-card-interest {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--cream-muted);
    margin: 0 0 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.ss-card-interest i {
    color: var(--amber);
    font-size: 0.75rem;
}

/* Rating */
.ss-rating {
    margin-bottom: 1rem;
}

.ss-stars {
    margin-bottom: 0.25rem;
}

.ss-star--on  { color: var(--amber); font-size: 0.8rem; }
.ss-star--off { color: rgba(247, 242, 232, 0.12); font-size: 0.8rem; }

.ss-rating-score {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--cream-dim);
}

.ss-no-rating {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--cream-muted);
}

/* See all */
.ss-see-all {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

/* Large tablet */
@media (max-width: 960px) {
    .ss-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin-inline: auto;
        margin-bottom: 3rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .ss-about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ss-about-visual {
        order: -1;
    }

    .ss-stats {
        gap: 0.5rem;
    }

    .ss-stat-num {
        font-size: 2rem;
    }

    .ss-about::before,
    .ss-profiles::before {
        font-size: 8rem;
    }
}

/* Mobile */
@media (max-width: 580px) {
    .ss-hero {
        padding: 6rem 1.25rem 4rem;
    }

    .ss-hero-title {
        font-size: clamp(2.4rem, 9vw, 3.5rem);
    }

    .ss-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .ss-hero-actions .ss-btn {
        width: 100%;
        max-width: 300px;
    }

    .ss-skill-chip {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .ss-about,
    .ss-profiles {
        padding: 4rem 1.25rem;
    }

    .ss-profiles-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .ss-stat-num {
        font-size: 1.75rem;
    }

    .ss-about::before,
    .ss-profiles::before {
        display: none;
    }

    .ss-btn--outline-light {
        width: 100%;
    }
}
