/* ============================================================
   RESET & VARIABLES
   ============================================================ */
:root {
    --color-bg: #09090b;
    --color-bg-alt: #101012;
    --color-bg-card: #161619;
    --color-surface: #1b1b1e;
    --color-border: rgba(255,255,255,0.08);

    --color-text: #e8e8e8;
    --color-text-muted: #999;
    --color-text-dim: #666;

    --color-accent: #783bbd;      /* Sacramento Purple variant */
    --color-accent-dim: rgba(120,59,189,0.15);
    --color-accent-glow: rgba(120,59,189,0.3);

    --color-gold: #c9a84c;        /* Premium Gold for titles & medals */
    --color-gold-dim: rgba(201,168,76,0.15);

    --color-silver: #aeb1b3;

    --color-white: #ffffff;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-hover: 0 12px 48px rgba(0,0,0,0.7);

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9,9,11,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(9,9,11,0.97);
    border-bottom-color: rgba(120,59,189,0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: var(--transition);
}
.nav-logo span {
    color: var(--color-accent);
}
.nav-logo:hover {
    color: var(--color-accent);
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-white);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    color: var(--color-white);
}

h1 {
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.4rem;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.8;
}

p:last-child { margin-bottom: 0; }

.lead {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: rgba(232,232,232,0.85);
    font-weight: 300;
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-xl) 0;
}

.section-alt {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.text-center { text-align: center; }

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .split {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
    .split.reverse .text-col { order: 2; }
    .split.reverse .img-col { order: 1; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(9,9,11,0) 0%,
        rgba(9,9,11,0.2) 60%,
        rgba(9,9,11,0.95) 100%
    );
}

/* thin accent line top */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 5rem;
    width: 100%;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-silver);
    margin-bottom: 1.2rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(174,177,179,0.35);
    border-radius: 100px;
    background: rgba(174,177,179,0.06);
}

.hero h1 {
    margin-bottom: 1rem;
    max-width: 18ch;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.role-pill {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.85);
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(120,59,189,0.3);
    border-radius: 100px;
    background: rgba(120,59,189,0.15);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.45);
    margin-top: 0.3rem;
}

.hero-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    align-self: center;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: scrollFade 3s ease-in-out infinite;
}

.scroll-cue svg {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes scrollFade {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.7; }
}

/* ============================================================
   KEY FACTS — horizontal strip
   ============================================================ */
.facts-strip {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

@media (min-width: 640px) {
    .facts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .facts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fact-item {
    padding: 1.5rem 2rem;
    border-right: 1px solid var(--color-border);
    transition: var(--transition);
}

.fact-item:last-child { border-right: none; }

.fact-item:hover {
    background: var(--color-surface);
}

.fact-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--color-accent);
}

.fact-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.fact-text strong {
    display: block;
    color: var(--color-white);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

/* ============================================================
   BIOGRAPHY SECTION
   ============================================================ */
.bio-img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 3/4;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.bio-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.accent-line {
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

/* Lists in text */
.text-list {
    list-style: none;
    margin-bottom: 1.5rem;
}
.text-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}
.text-list li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ============================================================
   TABLES (Statistika & Karijera)
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    background: rgba(255,255,255,0.03);
    color: var(--color-silver);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* ============================================================
   PHOTO GRID
   ============================================================ */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.photo-grid .photo-large {
    grid-row: span 2;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    min-height: 220px;
}

.photo-grid img:hover {
    transform: scale(1.015);
    box-shadow: var(--shadow-hover);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 3rem;
}

.footer-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.footer-links-section {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-links-section p {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    line-height: 2;
    margin-bottom: 0.75rem;
}

.footer-links-section strong {
    color: var(--color-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.4rem;
}

.footer-links-section a {
    color: var(--color-silver);
    text-decoration: none;
    transition: color 0.2s;
    margin-right: 0.5rem;
}

.footer-links-section a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* ============================================================
   FADE-UP ANIMATION
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 767px) {
    .section { padding: var(--space-lg) 0; }
    .hero-stats { gap: 1rem; }
    .hero-divider { display: none; }
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact-item { border-right: none; border-bottom: 1px solid var(--color-border); }
    .split { flex-direction: column; }
    .table-responsive {
        border-right: none;
        border-left: none;
        border-radius: 0;
    }
}
