/* ==========================================================================
   David Škara — Professional Basketball Player
   Modern CSS — 2026
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --c-bg: #0a0a0a;
    --c-bg-alt: #0f0f0f;
    --c-bg-card: rgba(22, 22, 22, 0.7);
    --c-bg-card-hover: rgba(28, 28, 28, 0.8);
    --c-surface: #1a1a1a;
    --c-border: rgba(255, 255, 255, 0.06);
    --c-border-light: rgba(255, 255, 255, 0.1);
    --c-text: #e8e8e8;
    --c-text-secondary: #a0a0a0;
    --c-text-muted: #666666;
    --c-accent: #d4a03c;
    --c-accent-light: #e8b84a;
    --c-accent-dim: rgba(212, 160, 60, 0.12);
    --c-accent-glow: rgba(212, 160, 60, 0.08);
    --c-white: #ffffff;

    --f-heading: 'Playfair Display', Georgia, serif;
    --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --s-section: clamp(80px, 10vw, 140px);
    --s-container: min(1200px, 90vw);

    --t-fast: 0.2s ease;
    --t-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
}

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

body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text);
    background-color: var(--c-bg);
    overflow-x: hidden;
    opacity: 0;
    animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
    to { opacity: 1; }
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--c-accent-light);
}

h1, h2, h3, h4 {
    font-family: var(--f-heading);
    font-weight: 700;
    line-height: 1.15;
}

.container {
    width: var(--s-container);
    margin: 0 auto;
}


/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--t-base);
    border-bottom: 1px solid transparent;
}

.nav--scrolled .nav__logo {
    opacity: 1;
    pointer-events: auto;
}

.nav--scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
    width: var(--s-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    color: var(--c-white);
    letter-spacing: -0.02em;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.4s ease, transform var(--t-fast);
}

.nav__logo:hover {
    color: var(--c-white);
    transform: scale(1.05);
}

.nav__logo span {
    background: linear-gradient(135deg, var(--c-accent) 0%, #f0cc6b 50%, var(--c-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav__drawer {
    display: none;
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 9999;
}

.nav__drawer.open {
    display: flex;
}

.nav__drawer-link {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--c-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 0;
    transition: color var(--t-fast);
}

.nav__drawer-link:hover {
    color: var(--c-accent);
}

.nav__drawer-close {
    position: absolute;
    top: 18px;
    right: 27px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--c-border-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}

.nav__drawer-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--c-white);
    border-radius: 2px;
}

.nav__drawer-close span:first-child {
    transform: rotate(45deg);
}

.nav__drawer-close span:last-child {
    transform: rotate(-45deg);
}

.nav__drawer-close:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-dim);
}

.nav__drawer-close:hover span {
    background: var(--c-accent);
}

.nav__drawer--scrolled .nav__drawer-close {
    top: 10px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
    border-radius: 2px;
    transition: width var(--t-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--c-white);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-white);
    transition: var(--t-base);
    border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    z-index: 5;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('/assets/images/bg-3-optimized-2.jpg') center center / cover no-repeat;
    opacity: 1;
    filter: blur(2px);
    transition: transform 0.1s linear;
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 45%, rgba(212, 160, 60, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 80%, rgba(212, 160, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 20%, rgba(180, 140, 60, 0.03) 0%, transparent 45%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0.7) 70%, rgba(10, 10, 10, 0.95) 100%);
}

.hero__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero__ambient::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 140%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(212, 160, 60, 0.015) 40%,
        rgba(212, 160, 60, 0.03) 50%,
        rgba(212, 160, 60, 0.015) 60%,
        transparent 100%
    );
    animation: lightSweep 8s ease-in-out infinite;
    transform: skewX(-15deg);
}

.hero__ambient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--c-bg) 0%, transparent 100%);
}

@keyframes lightSweep {
    0%, 100% { transform: skewX(-15deg) translateX(-20%); opacity: 0; }
    15% { opacity: 1; }
    50% { transform: skewX(-15deg) translateX(120%); opacity: 1; }
    65% { opacity: 0; }
}

.hero__content {
    position: relative;
    z-index: 2;
    width: var(--s-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 0 0;
}

.hero__text {
    align-self: center;
}

.hero__subtitle {
    /*font-size: 0.85rem;*/
    font-size: 11.75px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-top: -16px;
    margin-bottom: 28px;
}

.hero__title {
    /*font-size: clamp(3.5rem, 8vw, 7rem);*/
    font-size: 112px;
    font-weight: 800;
    color: var(--c-white);
    line-height: 0.95;
    /*margin-bottom: 32px;*/
    margin-bottom: 11px;
}

.hero__title .hero__surname {
    background: linear-gradient(135deg, var(--c-accent) 0%, #f0cc6b 50%, var(--c-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.hero__title .hero__firstname {
    color: var(--c-white);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.hero__subtitle {
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light), var(--c-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: subtitleShimmer 6s ease-in-out infinite;
}

@keyframes subtitleShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--c-accent);
    transition: all var(--t-base);
}

.hero__meta--leagues {
    margin-top: -28px;
}

.hero__meta--leagues .hero__badge {
    font-size: 0.72rem;
}

.hero__meta--leagues .hero__badge-logo {
    height: 14px;
}

.hero__badge--outline {
    color: var(--c-text);
}

.hero__meta .hero__badge + .hero__badge::before {
    content: '·';
    margin-right: 12px;
    color: var(--c-text-muted);
    font-weight: 300;
}

.hero__badge-logo {
    height: 18px;
    width: auto;
    vertical-align: middle;
    margin: -2px 4px -2px 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    align-self: end;
    margin-bottom: -30px;
    z-index: 2;
}

.hero__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(212, 160, 60, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.hero__image img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__image:hover img {
    transform: translateY(-4px) scale(1.01);
}

.hero__team-logo {
    position: absolute;
    top: -140px;
    left: -140px;
    height: 630px;
    width: auto;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at top left, rgba(0,0,0,1) 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top left, rgba(0,0,0,1) 30%, transparent 70%);
    filter: drop-shadow(0 8px 40px rgba(225, 135, 65, 0.2));
}

.hero__checkers {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    perspective: 800px;
}

.hero__checkers::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        repeating-conic-gradient(
            rgba(212, 160, 60, 0.11) 0% 25%,
            transparent 25% 50%
        ) 0 0 / 160px 160px;
    transform: rotateY(-8deg) rotateX(3deg) skewY(-1deg);
    transform-origin: bottom left;
    mask-image:
        radial-gradient(ellipse at 0% 100%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.1) 55%, transparent 75%);
    -webkit-mask-image:
        radial-gradient(ellipse at 0% 100%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.1) 55%, transparent 75%);
    animation: checkerPulse 6s ease-in-out infinite;
}

@keyframes checkerPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}



/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-family: var(--f-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--c-accent) 0%, #c08a2a 100%);
    color: var(--c-bg);
    box-shadow: 0 4px 20px rgba(212, 160, 60, 0.2);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--c-accent-light) 0%, var(--c-accent) 100%);
    color: var(--c-bg);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 160, 60, 0.35);
}

.btn--primary:active {
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--c-text);
    border: 1px solid var(--c-border-light);
    backdrop-filter: blur(10px);
}

.btn--ghost:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    transform: translateY(-3px);
    background: var(--c-accent-dim);
    box-shadow: 0 8px 30px rgba(212, 160, 60, 0.1);
}


/* ---------- Section ---------- */
.section {
    padding: var(--s-section) 0;
    position: relative;
}

.section__header {
    margin-bottom: 60px;
}

.section__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--c-accent);
    margin-bottom: 0;
    padding: 6px 16px;
    background: var(--c-accent-dim);
    border: 1px solid rgba(212, 160, 60, 0.15);
    border-radius: 100px;
}

.section__tag--light {
    color: var(--c-accent-light);
    background: rgba(232, 184, 74, 0.1);
    border-color: rgba(232, 184, 74, 0.15);
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--c-white);
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.06);
}

.section__title--light {
    color: var(--c-white);
}


/* ---------- About ---------- */
.about {
    position: relative;
    overflow: visible;
    margin-top: 0;
    padding-top: 0;
    z-index: 10;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 160, 60, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__bio {
    padding-top: 0;
    margin-top: -70px;
}

.about__lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--c-text);
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid rgba(212, 160, 60, 0.3);
}

.about__bio p {
    color: var(--c-text-secondary);
    margin-bottom: 16px;
}

.info-card {
    background: var(--c-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
}

.info-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--c-border);
    transition: background var(--t-fast);
}

.info-card__row:last-child {
    border-bottom: none;
}

.info-card__row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.info-card__label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-muted);
}

.info-card__value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card__flag {
    border-radius: 2px;
}

.about__links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.about__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-accent);
    background: var(--c-accent-dim);
    border: 1px solid rgba(212, 160, 60, 0.15);
    border-radius: var(--r-sm);
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.about__link:hover {
    background: rgba(212, 160, 60, 0.2);
    border-color: rgba(212, 160, 60, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 60, 0.1);
}


/* ---------- Stats ---------- */
.stats {
    background: var(--c-bg-alt);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 160, 60, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 0;
}

.stat-card {
    background: var(--c-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 160, 60, 0.2);
    border-radius: var(--r-md);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(212, 160, 60, 0.06);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
}

.stat-card:hover {
    transform: translateY(-6px);
}

.stat-card__number {
    display: block;
    font-family: var(--f-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--c-accent-light) 0%, var(--c-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-white);
    margin-bottom: 8px;
}

.stat-card__detail {
    display: block;
    font-size: 0.75rem;
    color: var(--c-text-muted);
}

.stats__achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    padding-top: 60px;
}

.stats__achievements::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
}

.achievement {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--c-bg-card-hover);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 160, 60, 0.15);
    border-radius: var(--r-md);
    transition: all var(--t-base);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.achievement:hover {
    transform: translateY(-2px);
}

.achievement__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--c-accent);
    background: rgba(212, 160, 60, 0.2);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 0 20px rgba(212, 160, 60, 0.15);
    transition: all var(--t-base);
}

.achievement__icon svg {
    width: 100%;
    height: 100%;
}

.achievement__text strong {
    display: block;
    font-family: var(--f-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-white);
    margin-bottom: 2px;
}

.achievement__text span {
    font-size: 0.8rem;
    color: var(--c-text-muted);
}


/* ---------- Highlights / Video ---------- */
.highlights {
    position: relative;
    overflow: hidden;
}

.highlights::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212, 160, 60, 0.025) 0%, transparent 70%);
    pointer-events: none;
}

.highlights__player {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 60px;
}

.video-main__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(212, 160, 60, 0.04);
}

.video-main__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-main__info {
    padding: 16px 0;
}

.video-main__title {
    font-family: var(--f-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-white);
}

.video-playlist {
    background: var(--c-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 480px;
}

.video-playlist__heading {
    font-family: var(--f-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--c-border);
}

.video-playlist__list {
    overflow-y: auto;
    flex: 1;
}

.video-playlist__list::-webkit-scrollbar {
    width: 4px;
}

.video-playlist__list::-webkit-scrollbar-track {
    background: transparent;
}

.video-playlist__list::-webkit-scrollbar-thumb {
    background: var(--c-border-light);
    border-radius: 4px;
}

.video-playlist__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
    text-align: left;
    transition: all var(--t-fast);
    font-family: var(--f-body);
}

.video-playlist__item:last-child {
    border-bottom: none;
}

.video-playlist__item:hover {
    background: var(--c-bg-card-hover);
}

.video-playlist__item.active {
    background: linear-gradient(90deg, rgba(212, 160, 60, 0.12) 0%, transparent 80%);
    border-left: 3px solid var(--c-accent);
}

.video-playlist__item.active .video-playlist__name {
    color: var(--c-accent-light);
}

.video-playlist__thumb {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    transition: transform var(--t-fast);
}

.video-playlist__item:hover .video-playlist__thumb {
    transform: scale(1.05);
}

.video-playlist__meta {
    flex: 1;
    min-width: 0;
}

.video-playlist__name {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.video-playlist__duration {
    font-size: 0.7rem;
    color: var(--c-text-muted);
}

.highlights__clips-title {
    font-family: var(--f-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--c-white);
    margin-bottom: 24px;
}

.highlights__clips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.clip-card {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: var(--c-bg-card);
    transition: all var(--t-base);
}

.clip-card:hover {
    border-color: rgba(212, 160, 60, 0.15);
    transform: translateY(-4px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 160, 60, 0.04);
}

.clip-card__video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}

.clip-card__label {
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-text-secondary);
}


/* ---------- Career Timeline ---------- */
.career {
    background: var(--c-bg);
    position: relative;
    overflow: hidden;
}

.career .section__header {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.career::before {
    content: '';
    position: absolute;
    top: 200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 160, 60, 0.025) 0%, transparent 70%);
    pointer-events: none;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline__item {
    position: relative;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline__item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline__marker {
    display: none;
}

.timeline__dot {
    display: none;
}

.timeline__logo {
    position: absolute;
    top: -20px;
    right: -20px;
    height: 210px;
    width: auto;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 85% 15%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.15) 55%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 85% 15%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0.15) 55%, transparent 75%);
}


[data-team="cedevita"] { --team-color-1: #306433; --team-color-2: #e18741; }
[data-team="croatia"] { --team-color-1: #dc3545; --team-color-2: #dc3545; }
[data-team="split"] { --team-color-1: #f5c518; --team-color-2: #1a1a1a; }
[data-team="champagne"] { --team-color-1: #04b3ea; --team-color-2: #b8a05a; }
[data-team="nancy"] { --team-color-1: #E41B17; --team-color-2: #7F7F7F; }
[data-team="leportel"] { --team-color-1: #007722; --team-color-2: #cc853b; }
[data-team="denain"] { --team-color-1: #cb2a20; --team-color-2: #1b1b1a; }
[data-team="huesca"] { --team-color-1: #618c42; --team-color-2: #618c42; }
[data-team="clemson"] { --team-color-1:#522D80 ; --team-color-2: #F56600; }
[data-team="valparaiso"] { --team-color-1: #613318; --team-color-2: #DAAA00; }
[data-team="bosco"] { --team-color-1: #f6d83b; --team-color-2: #192953; }
[data-team="zadar"] { --team-color-1: #1a5dab; --team-color-2: #1a5dab; }

.timeline__content {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--team-color-1, var(--c-accent)) 6%, var(--c-bg-card)) 0%,
            color-mix(in srgb, var(--team-color-1, var(--c-accent)) 2%, var(--c-bg-card)) 30%,
            var(--c-bg-card) 100%
        );
    backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--team-color-1, var(--c-border)) 18%, var(--c-border));
    border-top: none;
    border-radius: var(--r-md);
    padding: 32px;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.15),
        0 0 0 1px color-mix(in srgb, var(--team-color-1, var(--c-accent)) 5%, transparent) inset;
}

.timeline__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 3;
    background: linear-gradient(90deg, var(--team-color-1, var(--c-accent)) 0%, color-mix(in srgb, var(--team-color-1) 50%, var(--team-color-2, transparent)) 50%, var(--team-color-2, transparent) 100%);
}

.timeline__content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--team-color-2, transparent) 5%, transparent) 0%, transparent 60%);
    pointer-events: none;
}

.timeline__item:hover .timeline__content {
    border-color: color-mix(in srgb, var(--team-color-1, var(--c-accent)) 30%, var(--c-border));
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 40px color-mix(in srgb, var(--team-color-1, var(--c-accent)) 8%, transparent),
        0 0 0 1px color-mix(in srgb, var(--team-color-1, var(--c-accent)) 10%, transparent) inset;
}

.timeline__item:first-child .timeline__content {
    border-color: color-mix(in srgb, var(--team-color-1, var(--c-accent)) 25%, var(--c-border));
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 50px color-mix(in srgb, var(--team-color-1, var(--c-accent)) 10%, transparent);
}

.timeline__league-logo {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin: -2px 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.timeline__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.timeline__year {
    font-family: var(--f-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--c-text-muted);
}

.timeline__badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 10px;
    border-radius: 100px;
    color: #fff;
}

.timeline__badge--current {
    display: none;
}

.timeline__team {
    font-family: var(--f-heading);
    font-size: 1.4rem;
    color: var(--c-accent-light);
    margin-bottom: 8px;
}

.timeline__league {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-text-muted);
    margin-bottom: 16px;
}

.timeline__content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--c-text-secondary);
}


.timeline__national-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
}

.timeline__national-text {
    min-width: 0;
}

.timeline__national-text .timeline__team {
    margin-top: 0;
}

.timeline__national-portrait {
    position: relative;
    width: 160px;
    flex-shrink: 0;
    align-self: end;
    margin-bottom: -32px;
    margin-left: -8px;
}

.timeline__national-portrait img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.timeline__item--national:hover .timeline__national-portrait img {
    transform: scale(1.04) translateY(-4px);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(212, 160, 60, 0.1));
}

.timeline__national-portrait::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 50%;
    background: radial-gradient(ellipse at center bottom, rgba(212, 160, 60, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.timeline__article {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--c-border);
}

.article-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(212, 160, 60, 0.03) 0%, transparent 50%),
        var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--t-base);
}

.article-card:hover {
    border-color: rgba(212, 160, 60, 0.2);
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 160, 60, 0.04);
}

.article-card__image {
    width: 120px;
    height: 100%;
    object-fit: cover;
}

.article-card__body {
    padding: 20px 20px 20px 0;
}

.article-card__date {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
}

.article-card__title {
    font-family: var(--f-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-white);
    margin: 4px 0 8px;
}

.article-card__quote {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--c-text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-card__cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-accent);
    transition: letter-spacing var(--t-fast);
}

.article-card:hover .article-card__cta {
    letter-spacing: 0.05em;
}

.timeline__media {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--c-border);
}

.timeline__figure {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
    position: relative;
    transition: all var(--t-base);
    max-width: 400px;
}

.timeline__figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.4) 0%, transparent 40%);
    pointer-events: none;
    transition: opacity var(--t-base);
}

.timeline__figure:hover::after {
    opacity: 0.5;
}

.timeline__figure:hover {
    border-color: rgba(212, 160, 60, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timeline__figure img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.timeline__figure:hover img {
    transform: scale(1.03);
}

.timeline__figure figcaption {
    padding: 10px 16px;
    font-size: 0.75rem;
    color: var(--c-text-muted);
    background: var(--c-surface);
    position: relative;
    z-index: 1;
}


/* ---------- Footer ---------- */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer__logo {
    font-family: var(--f-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-block;
    background: linear-gradient(135deg, var(--c-white) 0%, var(--c-accent-light) 50%, var(--c-white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

.footer__tagline {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    margin-top: 2px;
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    transition: all var(--t-fast);
    position: relative;
}

.footer__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--c-accent);
    transition: width var(--t-base);
}

.footer__links a:hover {
    color: var(--c-accent);
}

.footer__links a:hover::after {
    width: 100%;
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--c-text-muted);
}


/* ---------- Animations ---------- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.25s; }
.animate-in:nth-child(3) { animation-delay: 0.4s; }
.animate-in:nth-child(4) { animation-delay: 0.55s; }
.animate-in:nth-child(5) { animation-delay: 0.7s; }

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


/* ---------- Section Separator ---------- */
.section + .section::before,
.stats + .section::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
    margin: 0 auto 60px;
}


/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__image img {
        width: 380px;
        margin: 0 auto;
    }

    .hero__meta {
        justify-content: center;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__team-logo {
        height: 400px;
        top: -80px;
        left: -80px;
    }

    .hero__title .hero__firstname {
        /*margin-left: 0 !important;*/
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about {
        margin-top: 0;
    }

    .about__bio {
        padding-top: 0;
        margin-top: 0;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__achievements {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .video-playlist {
        max-height: none;
    }

    .highlights__clips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__menu--desktop {
        display: none;
    }

    .nav__toggle {
        display: flex;
        position: relative;
        z-index: 10000;
    }

    .hero__title {
        /*font-size: clamp(2.8rem, 12vw, 5rem);*/
    }

    .hero__image img {
        width: 300px;
    }

    .hero__team-logo {
        height: 280px;
        top: -40px;
        left: -40px;
        opacity: 0.06;
    }

    .hero__checkers {
        width: 300px;
        height: 300px;
    }

    .hero__subtitle {
        font-size: 10px;
        letter-spacing: 0.2em;
    }

    .hero__badge-logo {
        height: 14px;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .stat-card {
        padding: 24px 20px;
    }

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

    .timeline__logo {
        height: 80px;
        top: -6px;
        right: -6px;
    }

    .timeline__content {
        padding: 24px 20px;
    }

    .timeline__national-layout {
        grid-template-columns: 1fr;
    }

    .timeline__national-portrait {
        width: 120px;
        margin: 0 auto;
        align-self: center;
        margin-bottom: -16px;
    }

    .timeline__team {
        font-size: 1.2rem;
    }

    .timeline__figure {
        max-width: 100%;
    }

    .article-card {
        grid-template-columns: 1fr;
    }

    .article-card__image {
        width: 100%;
        height: 160px;
    }

    .article-card__body {
        padding: 20px;
    }

    .footer__links {
        gap: 16px;
    }

    .footer {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    :root {
        --s-container: 92vw;
    }

    .hero__content {
        padding: 100px 0 0;
    }

    .hero__badge {
        font-size: 0.7rem;
    }

    .hero__meta {
        gap: 8px;
    }

    .hero__meta .hero__badge + .hero__badge::before {
        margin-right: 8px;
    }

    .hero__team-logo {
        height: 200px;
        top: -20px;
        left: -20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .stat-card__number {
        font-size: 2rem;
    }

    .video-playlist__thumb {
        width: 60px;
        height: 34px;
    }

    .timeline__content {
        padding: 20px 16px;
    }

    .timeline__item {
        margin-bottom: 32px;
    }

    .timeline__logo {
        height: 60px;
        top: -4px;
        right: -4px;
    }

    .timeline__league-logo {
        height: 16px;
    }

    .info-card__row {
        padding: 12px 16px;
    }

    .info-card__label {
        font-size: 0.7rem;
    }

    .info-card__value {
        font-size: 0.8rem;
    }

    .about__lead {
        font-size: 1rem;
    }

    .about__link {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .section__header {
        margin-bottom: 40px;
    }
}


/* ---------- Selection ---------- */
::selection {
    background: var(--c-accent);
    color: var(--c-bg);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}
