:root {
    --lakers-purple: #552583;
    --lakers-gold: #FDB927;
    --lakers-black: #000000;
    --text-light: #ffffff;
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--lakers-black);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--lakers-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--lakers-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #2a1042 0%, #000 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.3;
    z-index: 1;
}

nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--lakers-gold);
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.hero-content {
    text-align: center;
    z-index: 5;
}

h1 {
    font-family: var(--font-heading);
    font-size: 8rem;
    line-height: 1;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px var(--lakers-gold);
    position: relative;
    margin-bottom: 1rem;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lakers-black);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--lakers-purple);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--lakers-gold);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 127px, 0);
    }

    20% {
        clip: rect(84px, 9999px, 5px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 126px, 0);
    }

    60% {
        clip: rect(3px, 9999px, 64px, 0);
    }

    80% {
        clip: rect(100px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(45px, 9999px, 89px, 0);
    }
}

.subtitle {
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease 1s forwards;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
}

.scroll-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--lakers-gold);
    margin: 5px auto;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Sections */
section {
    padding: 120px 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-light);
    text-transform: uppercase;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 10;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* ROSTER REDESIGN: Refined */
.roster-section {
    min-height: 100vh;
    /* Allow growth */
    height: auto;
    /* Remove fixed height */
    overflow: hidden;
    background: linear-gradient(to right, #000, #1a0b2e, #000);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Start from top */
    align-items: center;
    padding-top: 100px;
    /* Space for title */
    padding-bottom: 100px;
}

.roster-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 50px;
    /* Gap between title and cards */
}

.roster-track {
    display: flex;
    gap: 4rem;
    padding-left: 10vw;
    padding-right: 10vw;
}

.roster-card {
    width: 350px;
    height: 500px;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(85, 37, 131, 0.2), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(253, 185, 39, 0.2);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.roster-card:hover {
    transform: scale(1.02) translateY(-10px);
    background: radial-gradient(circle at top right, rgba(85, 37, 131, 0.5), rgba(0, 0, 0, 0.95));
    border-color: var(--lakers-gold);
    box-shadow: 0 0 40px rgba(253, 185, 39, 0.2);
    z-index: 10;
}

.roster-img-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 70%;
    /* Adjusted for balance */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.roster-img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 95%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.roster-card:hover .roster-img {
    transform: scale(1.05);
}

.roster-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    z-index: 1;
}

.roster-number {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
    z-index: -1;
}

.roster-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-light);
    line-height: 0.9;
    text-transform: uppercase;
    margin-top: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.roster-pos {
    font-size: 1rem;
    color: var(--lakers-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

/* STATS CENTER: FUTURE GLASS */
.stats-section {
    background: #050505;
    background-image: radial-gradient(circle at 50% 50%, rgba(85, 37, 131, 0.1), transparent 60%);
}

.stats-container {
    display: flex;
    gap: 4rem;
    width: 100%;
    max-width: 1600px;
    padding: 0 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stats-column {
    flex: 1;
    min-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-header {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--lakers-gold);
    margin-bottom: 1rem;
    text-align: left;
    text-transform: uppercase;
    border-left: 5px solid var(--lakers-purple);
    padding-left: 1.5rem;
    text-shadow: 0 0 20px rgba(253, 185, 39, 0.3);
}

.glass-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    border-color: rgba(253, 185, 39, 0.3);
}

/* Hero Card (#1) */
.glass-hero {
    background: linear-gradient(135deg, rgba(85, 37, 131, 0.3), rgba(0, 0, 0, 0.6));
    border: 1px solid var(--lakers-gold);
    padding: 2.5rem;
    margin-bottom: 1rem;
}

.glass-hero:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(85, 37, 131, 0.4);
}

.glass-rank {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    margin-right: 2rem;
    width: 60px;
}

.glass-hero .glass-rank {
    font-size: 5rem;
    color: var(--lakers-gold);
    opacity: 0.8;
}

.glass-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.glass-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.glass-hero .glass-img-wrapper {
    width: 120px;
    height: 120px;
    border-color: var(--lakers-gold);
}

.glass-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.glass-text {
    flex: 1;
}

.glass-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
}

.glass-hero .glass-value {
    font-size: 3.5rem;
    color: var(--lakers-gold);
}

.glass-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-name {
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 500;
    margin-top: 5px;
}

/* HOF REDESIGN: MUSEUM OF LEGENDS */
.hof-section {
    background: #000;
}

.hof-container {
    width: 100%;
    max-width: 1600px;
    padding: 0 2rem;
}

.hof-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.hof-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #111;
    border: 1px solid #333;
    transition: all 0.4s ease;
    aspect-ratio: 3/4;
    /* Consistent portrait ratio */
}

.hof-item:hover {
    transform: translateY(-10px);
    border-color: var(--lakers-gold);
    box-shadow: 0 10px 40px rgba(253, 185, 39, 0.2);
    z-index: 10;
}

.hof-img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hof-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.hof-item:hover .hof-img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.1);
}

.hof-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.hof-item:hover .hof-info {
    transform: translateY(0);
}

.hof-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hof-item:hover .hof-name {
    color: var(--lakers-gold);
}

.hof-stats {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* LEGACY SECTION: Trophy Room */
.legacy-section {
    height: 100vh;
    background: radial-gradient(circle at center, #332000 0%, #000 80%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.trophy-room {
    text-align: center;
    position: relative;
    z-index: 2;
}

.trophy-count {
    font-family: var(--font-heading);
    font-size: 20rem;
    color: transparent;
    -webkit-text-stroke: 4px var(--lakers-gold);
    line-height: 0.8;
    opacity: 0.3;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.trophy-label {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--lakers-gold);
    letter-spacing: 10px;
    margin-top: -2rem;
}

.champ-years {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
    max-width: 800px;
    line-height: 1.5;
    text-shadow: 0 0 10px var(--lakers-gold);
}

.trophies-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Larry_O%27Brien_Championship_Trophy.png/388px-Larry_O%27Brien_Championship_Trophy.png');
    background-size: 100px;
    opacity: 0.1;
    z-index: 1;
    animation: float 20s linear infinite;
}

@keyframes float {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

footer {
    padding: 2rem;
    text-align: center;
    background: black;
    color: #555;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 4rem;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 3rem;
        top: 2%;
    }

    /* Roster Mobile */
    .roster-section {
        height: auto;
        overflow-x: auto;
        display: block;
        padding: 4rem 0;
    }

    .roster-track {
        padding: 2rem;
        gap: 2rem;
    }

    .roster-card {
        width: 300px;
        height: 450px;
    }

    .roster-img-wrapper {
        width: 120%;
        height: 80%;
    }

    /* Stats Mobile */
    .stats-container {
        flex-direction: column;
    }

    /* HOF Mobile */
    .hof-gallery {
        flex-direction: column;
        align-items: center;
    }

    .hof-portrait {
        width: 100%;
        max-width: 350px;
        height: 400px;
    }

    .hof-portrait:hover {
        width: 100%;
    }

    .trophy-count {
        font-size: 10rem;
    }
}