/* Add these base typography and layout styles at the top of product.css */

/* Base Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-darker);
    color: var(--text-light);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

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

/* Spacing Utilities */
.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Landing Page Styles */
:root {
    /* Dark theme colors */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --bg-dark: #111827;
    --bg-darker: #0f172a;
    --text-light: #f3f4f6;
    --text-gray: #94a3b8;
    --border-color: #1f2937;
    --card-bg: #1e293b;
}

/* Reset container styles for landing page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 2.5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-svg {
    transform: scale(1.05);
}

.logo span {
    display: none;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--text-light);
}

/* Update Hero Search Section */
.hero-search {
    padding: 3rem 0;
    background: var(--bg-darker);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent any overflow during animations */
}

.mockup-container {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    padding: 1rem;
    position: relative; /* For absolute positioning context */
}

.computer-mockup {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monitor {
    width: 100%;
    height: auto;
    min-width: 80vw;
    margin: 0 auto;
}

/* Screen content area - adjusted to match SVG coordinates */
.screen-content {
    position: absolute;
    /* Calculate exact position based on SVG viewBox (2000x1200) and monitor frame (1800x900) */
    top: 11.33%; /* 100/1200 pixels from top */
    left: 4%; /* 100/2000 pixels from left */
    width: 92%; /* 1800/2000 of total width */
    height: 67%; /* 900/1200 of total height */
    background: var(--bg-darker);
    border-radius: 16px;
    overflow: hidden;
}

.search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container.minimized {
    top: 24px; /* Reduced from 40px for better proportions */
    transform: translate(-50%, 0);
    width: calc(100% - 48px); /* Reduced padding from edges */
}

.search-bar {
    background: var(--bg-dark);
    border: 4px solid var(--primary-color);
    border-radius: 1.5rem;
    padding: 2.5rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.15);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container.minimized .search-bar {
    padding: 1rem 2rem;
    border-width: 2px;
    border-radius: 1rem;
}

.search-text {
    color: var(--text-light);
    font-size: 4rem;
    font-weight: 700;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.search-container.minimized .search-text {
    font-size: 1.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-icon svg {
    width: 56px;
    height: 56px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container.minimized .search-icon svg {
    width: 24px;
    height: 24px;
}

/* Results area - adjusted to match SVG coordinates */
.results-area {
    position: absolute;
    top: 100px; /* Adjusted to be closer to minimized search */
    left: 24px;
    right: 24px;
    bottom: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.results-area.visible {
    opacity: 1;
}

/* Placeholder image for now */
.results-placeholder {
    width: 100%;
    height: 100%;
    background: url('https://placehold.co/1600x900/1e293b/60a5fa?text=Match+Analysis') no-repeat center center;
    background-size: cover;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.results-placeholder.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading indicator */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-indicator.visible {
    opacity: 1;
}

.loading-spinner {
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Update existing hero section to value-prop */
.value-prop {
    padding: 8rem 0;
    background: linear-gradient(
        to bottom right,
        var(--bg-darker),
        var(--bg-dark)
    );
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Add subtle background pattern */
.value-prop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
        circle at 1px 1px,
        var(--border-color) 1px,
        transparent 1px
    );
    background-size: 40px 40px;
    opacity: 0.1;
    pointer-events: none;
}

.value-prop-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.headline {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        #60a5fa
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

.btn-primary .icon,
.btn-secondary .icon {
    width: 20px;
    height: 20px;
}

/* Feature list layout improvements */
.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    color: #60a5fa;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.feature-icon i {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-content span {
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
}

.feature-link i {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.feature-item:hover .feature-icon {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.feature-link:hover {
    color: #93c5fd;
}

.feature-link:hover i {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .feature-list {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-icon i {
        width: 28px;
        height: 28px;
    }
    
    .feature-content span {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 2.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
        background: rgba(59, 130, 246, 0.05);
        border-radius: 1rem;
        border: 1px solid rgba(59, 130, 246, 0.1);
    }
    
    .feature-icon {
        margin-bottom: 0;
    }
    
    .feature-content {
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .feature-list {
        margin-top: 3rem;
        padding: 0 0.5rem;
    }
}

/* Sponsored by Section */
.sponsored-by {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    text-align: center;
}

.sponsored-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sponsored-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.sponsor-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    opacity: 1.0;
    transition: opacity 0.3s ease;
}

.sponsor-logo:hover .sponsor-img {
    opacity: 1;
}

.sponsor-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.sponsor-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    max-width: 400px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .sponsored-by {
        margin-top: 3rem;
        padding: 1.5rem;
    }
    
    .sponsor-logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sponsor-name {
        font-size: 1.125rem;
    }
    
    .sponsor-description {
        font-size: 0.8rem;
    }
}

/* Platform Section */
.platform {
    padding: 8rem 0;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

/* Pipeline Layout */
.pipeline {
    margin-top: 4rem;
    position: relative;
    padding-bottom: 300px; /* Add space for detail panels */
}

.pipeline-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 6rem; /* Increase space between steps and details */
    position: relative;
    z-index: 2;
}

/* Step Styles */
.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 1rem;
    width: 200px;
    transition: all 0.3s ease-in-out;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pipeline-step h3 {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Connector Lines */
.step-connector {
    position: absolute;
    top: 32px;
    left: calc(100% - 1rem);
    width: 120px; /* Increased width for better visibility */
    height: 2px;
    z-index: 1;
}

.step-connector svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.step-connector path {
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-dasharray: 8;
    stroke-dashoffset: 0;
    animation: dash 1.5s linear infinite;
    opacity: 0.5;
}

/* Active connector styles */
.pipeline-step.active .step-connector path {
    opacity: 1;
    stroke-width: 4;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

/* Step Details */
.step-details {
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
    min-height: 280px; /* Ensure consistent height */
}

.detail-panel {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    visibility: hidden;
    pointer-events: none;
    min-height: 280px;
    overflow: hidden;
}

.detail-panel.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.detail-content {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.detail-visual {
    flex: 1;  /* Take up available space */
    min-width: 0; /* Allow flex item to shrink below content size */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-text {
    flex: 1;
    max-width: 400px; /* Limit text width for better readability */
    padding: 1rem;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.detail-text h4 {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
}

.detail-text p {
    color: var(--text-gray);
    line-height: 1.6;
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.detail-features li i {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* Animations */
@keyframes dash {
    from {
        stroke-dashoffset: 16;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Active State Styles */
.pipeline-step.active .step-icon {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.pipeline-step.active .step-icon i {
    color: white;
    transform: scale(1.1);
}

/* Mobile adjustments for connectors */
@media (max-width: 768px) {
    .step-connector {
        top: calc(100% - 1rem);
        left: 50%;
        width: 3px;
        height: 60px;
        transform: translateX(-50%);
    }

    .step-connector path {
        d: path('M0 0 L0 60');
        stroke-dasharray: 4;
    }
}

/* API Section */
.api {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.api-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.api-description ul {
    list-style: none;
    margin-top: 1.5rem;
}

.api-description li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.api-description li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.api-code-preview {
    background: var(--bg-darker);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.api-code-preview code {
    color: #e5e7eb;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Syntax highlighting */
.api-response .string { color: #a5d6ff; }
.api-response .number { color: #f97316; }
.api-response .key { color: #60a5fa; }

/* Mobile adjustments for API interface */
@media (max-width: 768px) {
    .api-interface {
        padding: 1rem;
    }

    .api-query {
        padding: 0.75rem;
    }

    .query-line {
        font-size: 0.8rem;
    }

    .api-response {
        padding: 0.75rem;
    }

    .api-response pre {
        font-size: 0.75rem;
    }
}

/* Best Edge Section Styles */
.best-edge {
    padding: 8rem 0;
    background: var(--bg-darker);
}

.scorecard-preview {
    margin: 4rem 0;
    display: grid;
    grid-template-columns: 375px 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
}

.scorecard-visual {
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.scorecard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.scorecard-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.player-name {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.player-position {
    color: var(--text-gray);
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

.scorecard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.metrics-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.radar-chart {
    aspect-ratio: 1;
    max-width: 300px;
    margin: 0 auto;
}

.chart-placeholder svg {
    width: 100%;
    height: 100%;
}

.chart-shape {
    fill: none;
    stroke: rgba(59, 130, 246, 0.2);
    stroke-width: 1;
}

.chart-shape.current {
    fill: rgba(59, 130, 246, 0.1);
    stroke: var(--primary-color);
    stroke-width: 2;
}

.key-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.stat-value {
    color: var(--text-light);
    font-weight: 500;
}

.assessment-sections {
    display: flex;
        flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    width: 100%;
}

.assessment-item {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    width: 100%;
    margin: 0 0 1rem;
    box-sizing: border-box;
}

.assessment-item h5 {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.assessment-item p {
    color: var(--text-gray);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin: 0;
}

.report-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.overall-rating, .recommendation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-label, .rec-label {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.rating-score {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.rec-value {
    color: var(--text-light);
    font-weight: 500;
}

.rec-value.highlight {
    color: #fbbf24;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .metrics-overview {
        grid-template-columns: 1fr;
    }

    .radar-chart {
        max-width: 240px;
}

    .assessment-item {
        padding: 1rem;
    }

    .report-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* iPhone Mockup Styles */
.iphone-mockup {
    width: 375px;
    height: 760px;
    background: var(--bg-darker);
    border-radius: 48px;
    position: relative;
    padding: 12px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    box-sizing: border-box;
}

.notch {
    width: 160px;
    height: 32px;
    background: var(--bg-dark);
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.screen-container {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.app-screens {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.app-screen {
    min-width: 100%;
    height: 100%;
    padding: 56px 0 16px;
    overflow-y: auto;
    box-sizing: border-box;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.app-screen.active {
    display: block;
    opacity: 1;
    position: relative;
}

/* Hide scrollbar but keep functionality */
.app-screen {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-screen::-webkit-scrollbar {
    display: none;
}

/* Content wrapper to handle horizontal padding */
.screen-content-wrapper {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.scorecard-header {
    padding: 0.875rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    margin: 0 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.scorecard-title h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.player-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.key-metrics {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    width: 100%;
}

.metric-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--text-gray);
}

/* Analytics Screen Styles */
.analytics-header {
    padding: 0.875rem;
    margin-bottom: 1rem;
}

.analytics-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.analytics-subtitle {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

.performance-chart {
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    padding: 1rem;
    height: 280px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.metrics-list {
    display: flex;
        flex-direction: column;
    gap: 1rem;
}

.metric-item {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    padding: 0.875rem;
}

.metric-header {
    display: flex;
    justify-content: space-between;
        align-items: center;
    margin-bottom: 0.5rem;
}

.trend {
    font-size: 0.875rem;
    font-weight: 500;
}

.trend.positive {
    color: #34d399;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.metric-chart {
    height: 4px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 1s ease-out;
}

/* Animation for screen switching */
@keyframes slideScreens {
    0%, 45% { transform: translateX(0); }
    50%, 95% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

.app-screens {
    animation: slideScreens 10s infinite;
}

/* Pause animation on hover */
.iphone-mockup:hover .app-screens {
    animation-play-state: paused;
}

/* Chart.js specific adjustments */
#performanceRadar {
    width: 100% !important;
    height: 100% !important;
}

/* Analytics screen adjustments */
.analytics-content {
    width: 100%;
    box-sizing: border-box;
}

/* Parent View Screen Styles */
.parent-screen {
    display: none;
}

.parent-screen.active {
    display: block;
}

.pathway-summary {
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pathway-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
}

.highlights-section {
    margin-top: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.highlight-thumbnail {
    width: 120px;
    height: 68px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.highlight-thumbnail.full-width {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin-bottom: 1rem;
}

.highlight-thumbnail.full-width .highlight-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.highlight-info {
    flex: 1;
}

.highlight-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.highlight-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-gray);
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.highlight-button:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-light);
}

.highlight-item.full-width-layout {
    flex-direction: column;
    gap: 0;
}

@media (max-width: 1024px) {
    .scorecard-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .iphone-mockup {
        margin: 0 auto;
    }

    .app-features {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .app-features {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
    }

    .app-feature.active {
        transform: none;
    }
}

.scorecard-preview {
    margin: 4rem 0;
    display: grid;
    grid-template-columns: 375px 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.app-feature {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.app-feature.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(-8px);
    box-shadow: 0 4px 20px -8px rgba(59, 130, 246, 0.3);
}

.app-feature:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.app-feature .feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.app-feature .feature-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    stroke-width: 1.5;
}

.app-feature h3 {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.app-feature ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-feature li {
    color: var(--text-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.app-feature li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.6;
}

.app-feature.active .feature-icon {
    background: var(--primary-color);
}

.app-feature.active .feature-icon i {
    color: white;
}

.app-feature.active li::before {
    opacity: 1;
}

.app-feature.active li {
    color: var(--text-light);
}

/* App Store Buttons */
.app-store-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
}

.store-button:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.store-button i {
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

.store-button .button-text {
    display: flex;
    flex-direction: column;
}

.store-button .button-subtitle {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-button .button-title {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 480px) {
    .app-store-buttons {
        flex-direction: column;
    }

    .store-button {
        width: 100%;
        justify-content: center;
    }
}

/* New styles for performance-coach section */
.performance-coach {
    position: relative;
    padding: 8rem 0 4rem 0;
    background-color: var(--bg-darker);
    overflow: hidden;
}

.performance-coach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://cdn.getforge.com/matchgraph.dev/1772812899/assets/img/football-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.performance-coach .container {
    position: relative;
    z-index: 2;
}

.layered-visuals {
    position: absolute;
    height: 120%;
    width: 65%;
    border-radius: 24px;
    overflow: visible;
    top: -10%;
    right: -5%;
    z-index: 2;
}

.visual-layer {
    position: absolute;
    transition: all 0.5s ease;
}

.visual-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-layer.web-platform {
    width: 90%;
    top: 40%;
    left: 30%;
    z-index: 2;
    transform: perspective(1000px) rotateY(-15deg) translateY(-50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
}

.visual-layer.vr-player {
    width: 60%;
    bottom: -50%;
    right: 10%;
    z-index: 3;
    transform: translateY(-50%);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

@media (max-width: 1200px) {
    .visual-layer.web-platform {
        width: 90%;
        left: -5%;
    }
    
    .vision-content {
        margin-right: 20%;
    }
}

@media (max-width: 1024px) {
    .vision-content {
        margin: 0 0 400px 0;
    }
    
    .layered-visuals {
        height: 350px;
        width: 100%;
        position: relative;
        top: auto;
        right: auto;
    }

    .visual-layer.web-platform {
        width: 85%;
        left: 0;
    }

    .visual-layer.vr-player {
        width: 35%;
        right: 10%;
    }
}

@media (max-width: 768px) {
    .vision-content {
        margin: 0 0 300px 0;
    }
    
    .layered-visuals {
        height: 280px;
    }
    
    .visual-layer.web-platform {
        width: 95%;
    }
    
    .visual-layer.vr-player {
        width: 45%;
    }
}

.vision-content {
    max-width: 640px;
    position: relative;
    z-index: 3;
    margin-right: 25%;
}

.vision-header {
    margin-bottom: 3rem;
}

.vision-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.vision-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.vision-main h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.vision-main .lead-text {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.vision-main .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.vision-main .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.vision-main .feature-list li i {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.feature-text span {
    font-size: 1rem;
    color: var(--text-gray);
}

.vision-cta {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .vision-title {
        font-size: 3rem;
    }
    
    .vision-main h3 {
        font-size: 2rem;
    }
    
    .vision-content {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .vision-title {
        font-size: 2.5rem;
    }
    
    .vision-cta {
        flex-direction: column;
    }
    
    .vision-main .feature-list li {
        gap: 1rem;
    }
}

/* Partners Section */
.partners {
    padding: 8rem 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Logo Banner */
.logo-banner {
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
    background: linear-gradient(to right, var(--bg-dark), rgba(59, 130, 246, 0.1), var(--bg-dark));
    margin: 3rem 0;
}

.logo-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

.logo-slide {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
}

.logo-slide img {
    height: 40px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.logo-slide img:hover {
    filter: brightness(1);
}

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

/* Featured Partners */
.featured-partners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.partner-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.partner-card .partner-logo {
    height: 80px;
    margin-bottom: 1.5rem;
}

.partner-card h3 {
    margin-bottom: 1rem;
}

.partner-highlights {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.partner-highlights li {
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-highlights li:last-child {
    border-bottom: none;
}

/* Club Partners */
.club-partners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.club-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.club-card:hover {
    background: rgba(15, 23, 42, 0.8);
}

.club-card .club-logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

.club-content h4 {
    margin-bottom: 0.25rem;
}

.club-content p {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

@media (max-width: 1024px) {
    .featured-partners {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-partners {
        grid-template-columns: 1fr;
    }
    
    .club-partners {
        grid-template-columns: 1fr;
    }
    
    .logo-slide {
        gap: 2rem;
    }
    
    .logo-slide img {
        height: 32px;
    }
}

/* Query Display Styles */
.query-display {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.query-display h4 {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.query-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

/* Entity highlighting in query */
.query-text .entity {
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 500;
}

.query-text .entity.event {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.query-text .entity.player {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.query-text .entity.time {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

/* Detail Panel Styles */
.detail-panel {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.detail-panel h4 {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.detail-panel pre {
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.detail-panel code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    tab-size: 2;
}

/* Scrollbar styling */
.detail-panel pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.detail-panel pre::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 4px;
}

.detail-panel pre::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.detail-panel pre::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

/* Customize highlight.js theme */
.detail-panel .hljs {
    background: var(--bg-dark) !important;
    padding: 1rem;
}

/* Query and Results Panel Styles */
.detail-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.query-display,
.results-panel {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.query-display h4,
.results-panel h4 {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.query-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

/* Results Panel Specific Styles */
.results-panel {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.results-panel pre {
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre;
}

.results-panel code {
    display: block;
    padding: 1rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    tab-size: 2;
}

/* Scrollbar styling */
.results-panel pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.results-panel pre::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 4px;
}

.results-panel pre::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.results-panel pre::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

/* Customize highlight.js theme */
.results-panel .hljs {
    background: var(--bg-dark) !important;
    padding: 1rem;
}

/* Add these styles to the existing pipeline section */

.video-sources {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: var(--bg-darker);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.source-item {
    position: absolute;
    width: 70px; /* Reduced from 140px */
    height: 70px; /* Reduced from 140px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px; /* Slightly smaller radius */
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem; /* Reduced from 1.5rem */
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.source-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

#camera-source {
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transform-origin: center center;
}

#veo-source {
    top: 35%;
    left: 35%;
    transform: translate(-50%, -50%) scale(0.8);
    transform-origin: center center;
}

#hudl-source {
    top: 35%;
    right: 35%;
    transform: translate(50%, -50%) scale(0.8);
    transform-origin: center center;
}

.source-item.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#hudl-source.visible {
    transform: translate(50%, -50%) scale(1);
}

.source-item.converging {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) scale(0) !important;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add a glow effect during convergence */
.source-item.converging::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.source-item.converging::before {
    opacity: 1;
}

/* Adjust connection lines for smaller items */
.video-sources::before,
.video-sources::after {
    width: 25%; /* Reduced from 30% */
    height: 2px;
    background: rgba(59, 130, 246, 0.2);
    top: 50%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .detail-content {
        flex-direction: column;
    }

    .detail-visual, 
    .detail-text {
        width: 100%;
        max-width: none;
    }

    .video-sources {
        min-height: 400px; /* Taller on mobile for better visibility */
    }

    .source-item {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    #veo-source {
        left: 30%;
    }
    
    #hudl-source {
        right: 30%;
    }
    
    .video-sources::before {
        left: 30%;
    }
    
    .video-sources::after {
        right: 30%;
    }

    .source-item {
        width: 60px;
        height: 60px;
        padding: 0.75rem;
    }
}

/* Processing indicator and upload progress styles */
.processing-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10; /* Ensure it's above other elements */
}

.processing-indicator.visible {
    opacity: 1 !important; /* Force opacity */
}

.upload-progress {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress .progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 1.5s ease-in-out;
}

/* Shimmer effect */
.upload-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20%;
    background: linear-gradient(to right, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(59, 130, 246, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

/* Success icon styles */
.success-icon {
    position: absolute;
    top: calc(50% - 20px); /* Move up 40px from center */
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.success-icon.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.success-icon i {
    width: 48px;
    height: 48px;
    color: #34d399;
    stroke-width: 1.5;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(500%);
    }
}

/* Video container styles */
.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--bg-darker);
    border-radius: 12px;
    overflow: hidden;
}

.analysis-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Add a subtle overlay */
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 41, 59, 0.1),
        rgba(30, 41, 59, 0.2)
    );
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .video-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .video-container {
        height: 300px;
    }
}

/* Update app screen styles */
.app-screen {
    min-width: 100%;
    height: 100%;
    padding: 56px 0 16px;
    overflow-y: auto;
    box-sizing: border-box;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-screen.active {
    display: block;
    opacity: 1;
}

/* Player screens container */
.player-screens {
    display: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-screens.active {
    display: block;
    opacity: 1;
    position: relative;
}

/* Individual player screen styles */
.player-screen {
    display: none;  /* Hide by default */
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.player-screen.active {
    display: block;
    opacity: 1;
    position: relative;
}

/* Remove any animation classes from app-screens */
.app-screens {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Coach View Styles */
.team-overview {
    padding: 1rem;
}

.overview-header {
    margin-bottom: 1.5rem;
}

.overview-header h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.overview-subtitle {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.player-item:hover {
    background: rgba(59, 130, 246, 0.12);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-name {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
}

.player-position {
    font-size: 0.75rem;
    color: var(--text-gray);
    padding: 0.125rem 0.375rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.player-stats {
    display: flex;
    gap: 0.75rem;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.stat-pill i {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* Try MatchGraph Button */
.try-matchgraph {
    display: flex;
    justify-content: center;
    margin-top: -200px;
    position: relative;
    z-index: 3;
}

.try-matchgraph .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.try-matchgraph .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.try-matchgraph .btn-primary i {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .try-matchgraph {
        margin-top: -150px;
        padding: 0 1rem;
    }

    .try-matchgraph .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Section Divider */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, 
        rgba(59, 130, 246, 0),
        rgba(59, 130, 246, 0.2),
        rgba(59, 130, 246, 0)
    );
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Hero Images Container and Sequential Loading */
.hero-images-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dash hero - center, lowest z-index */
.dash-hero {
    z-index: 1;
    transform: scale(1);
    width: auto;
    height: auto;
    max-width: calc(100% - 120px);
    max-height: calc(100% - 120px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* WhatsApp hero - left aligned, overlapping dash */
.whatsapp-hero {
    z-index: 2;
    transform: translateX(-35%) scale(0.4);
    opacity: 0;
    width: 35%;
    height: 90%;
    top: 5%;
    left: 18%;
    object-fit: contain;
}

/* Player stats hero - right aligned, overlapping dash */
.player-stats-hero {
    z-index: 3;
    transform: translateX(35%) scale(0.4);
    opacity: 0;
    width: 35%;
    height: 90%;
    top: 5%;
    right:18%;
    left: auto;
    object-fit: contain;
}

/* Sequential loading animations */
.dash-hero.loaded {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.whatsapp-hero.loaded {
    opacity: 1;
    transform: translateX(-35%) scale(0.7);
}

.player-stats-hero.loaded {
    opacity: 1;
    transform: translateX(35%) scale(0.7);
}

/* Hover effects for interactive feel */
.hero-images-container:hover .dash-hero {
    transform: translate(-50%, -50%) scale(1.02);
}

.hero-images-container:hover .whatsapp-hero {
    transform: translateX(-32%) scale(1.1);
}

.hero-images-container:hover .player-stats-hero {
    transform: translateX(32%) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dash-hero {
        max-width: calc(100% - 80px);
        max-height: calc(100% - 80px);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .whatsapp-hero {
        transform: translateX(-30%) scale(0.35);
        width: 30%;
        height: 85%;
        top: 7.5%;
    }
    
    .player-stats-hero {
        transform: translateX(30%) scale(0.35);
        width: 30%;
        height: 85%;
        top: 7.5%;
    }
    
    .whatsapp-hero.loaded {
        transform: translateX(-30%) scale(0.35);
    }
    
    .player-stats-hero.loaded {
        transform: translateX(30%) scale(0.35);
    }
    
    .hero-images-container:hover .whatsapp-hero {
        transform: translateX(-27%) scale(1.1);
    }
    
    .hero-images-container:hover .player-stats-hero {
        transform: translateX(27%) scale(1.1);
    }
}