/* Barcelona Project Page Styles */

.bcn-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 4rem;
}

.bcn-hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bcn-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 4rem;
}

.bcn-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.bcn-stat-item {
    text-align: center;
}

.bcn-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: inline-block;
}

.bcn-unit {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-left: 0.5rem;
}

.bcn-stat-item p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #666;
}

/* Overview Section */
.bcn-overview {
    padding: 6rem 0;
    background: #fff;
}

.bcn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.bcn-card {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.bcn-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.2);
    border-color: var(--accent-primary);
}

.bcn-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.bcn-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.bcn-card p {
    color: #666;
    line-height: 1.6;
}

/* Metrics Section */
.bcn-metrics {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f4f7f6 0%, #fff 100%);
}

.bcn-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
}

.bcn-chart-container {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.bcn-chart-container h3 {
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

/* Bar Chart */
.bcn-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bcn-bar {
    position: relative;
}

.bcn-bar-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

.bcn-bar-fill {
    height: 40px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 10px;
    transition: width 1.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
}

.bcn-bar-animated {
    width: 0% !important;
}

.bcn-bar-value {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #333;
    margin-left: 1rem;
}

/* Progress Ring */
.bcn-progress-ring {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bcn-ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 12;
}

.bcn-ring-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 12;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    transition: stroke-dashoffset 2s ease-out;
}

.bcn-ring-text {
    position: absolute;
    text-align: center;
}

.bcn-ring-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
}

.bcn-ring-label {
    font-size: 0.9rem;
    color: #666;
}

/* Timeline */
.bcn-timeline {
    padding: 6rem 0;
    background: #fff;
}

.bcn-timeline-container {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.bcn-timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0077b6, #00b4d8);
}

.bcn-timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s, transform 0.6s;
}

.bcn-timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.bcn-timeline-dot {
    position: absolute;
    left: 10px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.2);
}

.bcn-timeline-content h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.bcn-timeline-content p {
    color: #666;
    font-size: 1.1rem;
}

/* CTA Section */
.bcn-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    text-align: center;
    color: #fff;
}

.bcn-cta h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.bcn-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.bcn-cta .btn {
    background: #fff;
    color: var(--accent-primary);
}

.bcn-cta .btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

/* Active nav link */
.nav-links a.active {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .bcn-hero-content h1 {
        font-size: 2.5rem;
    }

    .bcn-subtitle {
        font-size: 1.2rem;
    }

    .bcn-hero-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bcn-charts {
        grid-template-columns: 1fr;
    }

    .bcn-timeline-container::before {
        left: 10px;
    }

    .bcn-timeline-item {
        padding-left: 40px;
    }

    .bcn-timeline-dot {
        left: 0;
    }
}