:root {
    --color-bg: #F8FAFC;
    --color-surface: #ffffff;
    --color-text-main: #1E293B;
    --color-text-light: #64748b;

    --color-primary: #3B82F6;
    /* Vibrant Blue */
    --color-secondary: #60A5FA;
    /* Light Blue */
    --color-accent: #F97316;
    /* Energetic Orange - CTA */
    --color-dark: #0f172a;
    /* Slate 900 */

    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;

    --shadow-card: 0 10px 30px -5px rgba(59, 130, 246, 0.15);
    --shadow-hover: 0 20px 40px -5px rgba(59, 130, 246, 0.25);

    --angle: -3deg;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    transform: skew(-10deg);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.btn-primary:hover {
    background: var(--color-dark);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 3px solid var(--color-primary);
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.btn-secondary:hover {
    background: var(--color-surface);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-style: italic;
    line-height: 0.9;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand span {
    color: var(--color-dark);
}

/* Hero Section */
/* Refactored Hero Layout to ensure visibility */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: white;
    overflow: hidden;
    padding-top: 100px;
}

.hero>.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-surface) 0%, #eef2ff 100%);
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 45%;
    /* Slightly less to give space */
    flex-shrink: 0;
    /* Don't shrink */
}

.hero-pretitle {
    color: var(--color-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.hero-title .highlight {
    color: var(--color-primary);
    display: block;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: -10px;
    width: 100%;
    height: 20px;
    background: var(--color-secondary);
    opacity: 0.2;
    transform: skew(-20deg);
    z-index: -1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    /* Changed from absolute to relative to sit in flow */
    width: 50%;
    height: 600px;
    /* Fixed height to ensure space for collage */
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    /* pointer-events: none; - Removing to ensure no interaction issues */
}

/* Allow pointer events on cards themselves for hover effects */
.hero-collage {
    pointer-events: auto;
}

/* Hero Collage */
.hero-collage {
    position: relative;
    width: 600px;
    height: 600px;
}

.collage-card {
    position: absolute;
    width: 180px;
    height: 260px;
    background: white;
    border-radius: 8px;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.2),
        0 4px 6px -2px rgba(0, 0, 0, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.35);
    /* Deeper shadow */
    padding: 10px 10px 20px 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #0f172a;
    /* High contrast dark border */
}

.slab-label {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    padding: 2px 0;
    margin-bottom: 5px;
    border-radius: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.card-inner {
    flex: 1;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
}

.sport-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.player-name {
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-style: italic;
    font-family: var(--font-heading);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Specific Card Styles */
.c-baseball {
    top: 50px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg) translate(var(--tx, 0), var(--ty, 0));
    z-index: 3;
}

.c-baseball .card-inner {
    background: linear-gradient(135deg, #1e3a8a, #dc2626);
}

.c-basketball {
    top: 200px;
    right: 30px;
    transform: rotate(15deg) translate(var(--tx, 0), var(--ty, 0));
    z-index: 2;
}

.c-basketball .card-inner {
    background: linear-gradient(135deg, #f59e0b, #7c3aed);
}

.c-football {
    top: 200px;
    left: 30px;
    transform: rotate(-12deg) translate(var(--tx, 0), var(--ty, 0));
    z-index: 2;
}

.c-football .card-inner {
    background: linear-gradient(135deg, #15803d, #fbbf24);
}

.c-soccer {
    bottom: 40px;
    left: 80px;
    transform: rotate(-25deg) translate(var(--tx, 0), var(--ty, 0));
    z-index: 1;
}

.c-soccer .card-inner {
    background: linear-gradient(135deg, #0ea5e9, #ffffff);
}

.c-soccer .player-name {
    color: #0f172a;
    text-shadow: none;
}

.c-mma {
    bottom: 80px;
    right: 80px;
    transform: rotate(20deg) translate(var(--tx, 0), var(--ty, 0));
    z-index: 1;
}

.c-mma .card-inner {
    background: linear-gradient(135deg, #000000, #dc2626);
}

/* Hover States (controlled by JS for parallax, but base hover here) */
.hero-collage:hover .collage-card {
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.3);
}

.hero-visual:hover .c-baseball {
    transform: translateX(-50%) rotate(0deg) scale(1.1);
    z-index: 10;
}

.hero-visual:hover .c-basketball {
    transform: translate(40px, -20px) rotate(25deg);
}

.hero-visual:hover .c-football {
    transform: translate(-40px, -20px) rotate(-20deg);
}

.hero-visual:hover .c-soccer {
    transform: translate(-60px, 40px) rotate(-35deg);
}

.hero-visual:hover .c-mma {
    transform: translate(60px, 40px) rotate(30deg);
}


/* Features Section */
.features {
    position: relative;
    padding: 8rem 0;
    background: var(--color-dark);
    clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
    margin: -3rem 0;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-secondary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-item {
    background: white;
    padding: 3rem 2rem;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

/* Footer */
.footer {
    padding: 8rem 0 4rem;
    background: white;
    text-align: center;
}

.footer-link {
    display: inline-block;
    color: var(--color-text-main);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 5px;
}

.footer-link:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {

    /* Navbar: Make relative so it pushes content down naturally */
    .navbar {
        position: relative;
        background: white;
        padding: 2rem 0;
        /* More padding for the stacked layout */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .nav-content {
        padding: 0 1.5rem;
        flex-direction: column !important;
        /* Force stack */
        gap: 2rem;
        text-align: center;
        align-items: center !important;
    }

    /* Logo Fix */
    .brand {
        justify-content: center;
        width: 100%;
    }

    .brand-text {
        display: none;
    }

    .brand img {
        height: 150px;
        /* Massively larger as requested */
        width: auto;
        max-width: 95vw;
        display: block;
        margin: 0 auto;
    }

    /* Optimize Header Button */
    .btn-secondary {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
        width: auto;
        max-width: 250px;
        clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    }

    /* Hero Layout: Stacked and Adjusted */
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .hero-content {
        width: 100%;
        padding: 0 1.5rem;
        text-align: center;
        margin-bottom: 2rem;
        z-index: 10;
        /* Ensure text is above if anything overlaps */
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-pretitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-group {
        justify-content: center;
        margin-bottom: 1rem;
    }

    /* Hero Visual: Dedicated Space Below */
    .hero-visual {
        width: 100%;
        height: 400px;
        margin-top: 0;
        position: relative;
        overflow: hidden;
        /* visual clipping if needed */
        display: flex;
        justify-content: center;
    }

    .hero-collage {
        transform: scale(0.65);
        transform-origin: top center;
        margin-top: 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .footer {
        padding-top: 4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        /* Smaller for phones */
    }

    .hero-collage {
        transform: scale(0.55);
    }

    .hero-visual {
        height: 350px;
    }

    .btn-secondary {
        font-size: 0.8rem;
        padding: 0.7rem 1.5rem;
    }

    .brand img {
        height: 120px;
        /* Large even on small phones */
    }
}