/* Modern CP Theme CSS */

:root {
    --primary-bg: #0a0e1a;
    --secondary-bg: #1a1f35;
    --card-bg: #252a47;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-orange: #f59e0b;
    --accent-green: #10b981;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: -2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 40%;
    animation-delay: -8s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 60%;
    animation-delay: -3s;
    animation-duration: 28s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 90%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.particle:nth-child(6) {
    top: 70%;
    left: 10%;
    animation-delay: -1s;
    animation-duration: 24s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 1;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-brand i {
    color: var(--accent-blue);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--secondary-bg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.logo-container {
    margin-bottom: 2rem;
}

.cp-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    animation: logoFloat 6s ease-in-out infinite;
}

.cp-logo i {
    font-size: 2rem;
    color: white;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(45deg); }
}

.sub-title {
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Platform Selection */
.platform-selection {
    text-align: center;
    margin-bottom: 4rem;
}

.platform-selection h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.platform-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.platform-btn:hover::before {
    left: 100%;
}

.platform-btn:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.platform-btn.chef:hover {
    border-color: var(--accent-orange);
}

.platform-btn.forces:hover {
    border-color: var(--accent-blue);
}

.btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.chef .btn-icon {
    background: var(--accent-orange);
}

.forces .btn-icon {
    background: var(--accent-blue);
}

.btn-content {
    flex: 1;
    text-align: left;
}

.btn-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.btn-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.platform-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Cards */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    animation: cardSlideUp 0.6s ease;
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header i {
    color: var(--accent-blue);
    font-size: 1.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    display: block;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Input Section */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    z-index: 1;
}

.rating-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.rating-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    background: var(--gradient-1);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-btn:active {
    transform: translateY(0);
}

.rating-info {
    text-align: center;
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.range-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.range-value {
    color: var(--accent-blue);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* Result Section */
.result-display {
    text-align: center;
    padding: 2rem;
}

.result-platform {
    margin-bottom: 1rem;
}

.platform-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-blue);
    display: block;
}

.rating-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.predicted-rating {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
    line-height: 1;
    position: relative;
}

.predicted-rating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ratingPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes ratingPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

.rating-tier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-bg);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.rating-tier i {
    color: var(--accent-orange);
}

.rating-tier span {
    font-weight: 600;
    color: var(--text-primary);
}

.confidence-meter {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.confidence-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.confidence-fill {
    height: 100%;
    background: var(--gradient-3);
    border-radius: 4px;
    transition: width 1s ease;
}

.confidence-value {
    color: var(--accent-blue);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.try-again-btn {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
    transition: all 0.3s ease;
}

.try-again-btn:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text p {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.author {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: all 0.4s ease;
    z-index: -1;
}

.social-link i {
    font-size: 1.25rem;
    transition: all 0.4s ease;
    z-index: 1;
}

.github-link:hover {
    color: white;
    border-color: #333;
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(51, 51, 51, 0.3);
}

.github-link:hover::before {
    background: linear-gradient(135deg, #333, #000);
}

.linkedin-link:hover {
    color: white;
    border-color: #0077b5;
    transform: translateY(-4px) rotate(-5deg);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
}

.linkedin-link:hover::before {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Animation for social links container */
.social-links {
    display: flex;
    gap: 1.5rem;
    animation: socialBounce 2s ease-in-out infinite;
}

@keyframes socialBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Project Description Styles */
.project-description {
    text-align: left;
    line-height: 1.8;
}

.project-description p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.project-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.tech-stack {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.tech-stack h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgeFloat 3s ease-in-out infinite;
    box-shadow: var(--shadow-sm);
}

.tech-badge:nth-child(odd) {
    animation-delay: -1s;
}

.tech-badge:nth-child(even) {
    animation-delay: -2s;
}

@keyframes badgeFloat {
    0%, 100% { 
        transform: translateY(0px);
        box-shadow: var(--shadow-sm);
    }
    50% { 
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }
}

/* Enhanced Feature Grid for Features Section */
.features-card .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.features-card .feature-item {
    padding: 2rem;
    background: var(--secondary-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.features-card .feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.features-card .feature-item:hover::before {
    left: 100%;
}

.features-card .feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.features-card .feature-item i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    display: block;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        color: var(--accent-blue);
    }
    50% {
        transform: scale(1.1);
        color: var(--accent-purple);
    }
}

.features-card .feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.features-card .feature-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Card entrance animations */
.about-card {
    animation: slideInLeft 0.8s ease-out;
}

.features-card {
    animation: slideInRight 0.8s ease-out 0.2s both;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Analytics and Loading Animations */
.analytics-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Steps Animation */
.loading-steps {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    opacity: 0.5;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.step.active {
    opacity: 1;
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.step.completed {
    opacity: 1;
    border-color: var(--accent-green);
    background: linear-gradient(90deg, var(--secondary-bg), rgba(16, 185, 129, 0.1));
}

.step i {
    font-size: 1.5rem;
    color: var(--accent-blue);
    animation: stepPulse 2s ease-in-out infinite;
}

.step.active i {
    color: var(--accent-blue);
    animation: stepSpin 1s linear infinite;
}

.step.completed i {
    color: var(--accent-green);
    animation: none;
}

@keyframes stepPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes stepSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step span {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.step-progress {
    width: 0;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 1s ease;
}

.step.active .step-progress {
    animation: progressFill 2s ease-in-out infinite;
}

.step.completed .step-progress {
    width: 100%;
    background: var(--accent-green);
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Data Visualization */
.data-visualization {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mini-chart {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 80px;
    margin-bottom: 1rem;
    gap: 4px;
}

.bar {
    flex: 1;
    background: var(--gradient-1);
    border-radius: 2px 2px 0 0;
    animation: barGrow 2s ease-out;
    min-height: 10px;
}

@keyframes barGrow {
    0% { height: 0; }
}

.chart-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.processing-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Result Layout and Analytics */
.result-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.result-display {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.analytics-section {
    background: var(--secondary-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-container h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
}

/* Progress Chart (SVG Line Chart) */
.progress-chart {
    position: relative;
}

.progress-svg {
    width: 100%;
    height: 120px;
    margin-bottom: 1rem;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Circular Progress */
.circular-progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-svg {
    width: 120px;
    height: 120px;
}

.progress-percentage {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Platform Comparison Chart */
.comparison-chart {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.platform-bar {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.bar-label i {
    color: var(--accent-orange);
}

.bar-label i.fa-bolt {
    color: var(--accent-blue);
}

.bar-track {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 2s ease;
    position: relative;
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: barShine 2s ease-in-out infinite;
}

@keyframes barShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.codechef-bar {
    background: linear-gradient(90deg, var(--accent-orange), #ff6b35);
}

.codeforces-bar {
    background: linear-gradient(90deg, var(--accent-blue), #1e40af);
}

.bar-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

/* Enhanced Rating Display */
.predicted-rating {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
    line-height: 1;
    position: relative;
}

.predicted-rating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ratingPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes ratingPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

/* Floating Animation for Analytics Cards */
.analytics-section {
    animation: analyticsFloat 6s ease-in-out infinite;
}

@keyframes analyticsFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .data-visualization {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-bar {
        grid-template-columns: 100px 1fr 50px;
        gap: 0.5rem;
    }
    
    .result-layout {
        gap: 2rem;
    }
    
    .predicted-rating {
        font-size: 3rem;
    }
    
    .predicted-rating::after {
        width: 150px;
        height: 150px;
    }
}

/* Analytics Loading Screen inside Input Card */
.analytics-loading {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    animation: slideInUp 0.6s ease-out;
}

.loading-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loading-header i {
    color: var(--accent-blue);
    font-size: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.loading-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
