/* Global Styles and Variables */
:root {
    --primary-blue: #031E37;
    --primary-orange: #FF6600;
    --light-blue: #0066CC;
    --dark-blue: #001529;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #E8ECF0;
    --dark-gray: #4A5568;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body, html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    color: var(--text-primary);
    line-height: 1.6;
}

body {
    overflow-y: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(3, 30, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.cta-button):hover {
    color: var(--primary-orange);
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-links a:not(.cta-button):hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary-orange);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

.cta-button:hover {
    background: #FF8533;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.lang-option .flag-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.lang-option .lang-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.lang-option.active {
    background: var(--primary-orange);
    color: var(--white);
}

.lang-option.active:hover {
    background: #FF8533;
}

/* Hero Section */
.hero-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(3, 30, 55, 0.85), rgba(3, 30, 55, 0.85)), url('cables.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 80px;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin: 0;
    padding: 0;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out;
}

.data-white {
    color: white;
}

.port-orange {
    color: var(--primary-orange);
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    margin-top: 1rem;
    max-width: 700px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #FF8533;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

.section-light {
    background: var(--white);
}

/* Visió section with background image */
#visio {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('dataport_3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.section-dark {
    background: var(--primary-blue);
    color: var(--white);
}

.section-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

/* Barcelona and DATAPORT I sections with shared background */
.section-barcelona,
.section-gradient {
    background: linear-gradient(rgba(3, 30, 55, 0.9), rgba(3, 30, 55, 0.9)), url('dataport_2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Vision Grid */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.vision-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-align: center;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange), #FF8533);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.vision-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Image Showcase */
.image-showcase {
    margin-top: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.showcase-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Strategy Content */
.strategy-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.strategy-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-orange);
}

.strategy-highlight h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.initiatives-grid {
    display: grid;
    gap: 1.5rem;
}

.initiative-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.initiative-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.initiative-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.initiative-item h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.initiative-item p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.strategy-image {
    position: sticky;
    top: 100px;
}

.rounded-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

/* Governance Pillars */
.governance-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.pillar:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.pillar-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.pillar h3 {
    margin-bottom: 1rem;
}

/* Infraestructura and Impacte sections with shared background image */
#infraestructura,
#impacte {
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('dataport_4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Tech Showcase */
.tech-showcase {
    display: block;
    width: 100%;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.network-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Implementation Content */
.implementation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.impl-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.impl-card.large {
    grid-column: span 2;
}

.impl-card h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.request-box {
    background: rgba(255, 102, 0, 0.1);
    border: 2px solid var(--primary-orange);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.request-box h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.impact-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 16px;
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.impact-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-icon svg {
    width: 100%;
    height: 100%;
}

.impact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.impact-card p {
    color: var(--text-secondary);
}

/* Benefits Section */
.benefits-section {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 16px;
    margin-top: 3rem;
}

.benefits-section h3 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.check-icon {
    color: var(--primary-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Barcelona Section specific padding */
.section-barcelona {
    padding: 120px 0;
}

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

.barcelona-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.barcelona-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.barcelona-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.section-cta {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

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

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

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.partners-section {
    margin-top: 4rem;
}

.partners-title {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.partners-logos {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.partner-placeholder {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

.legal-info {
    font-size: 0.9rem;
    opacity: 0.7;
}

.legal-info a {
    color: var(--primary-orange);
    text-decoration: none;
}

.legal-info a:hover {
    text-decoration: underline;
}

.footer-legal-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-legal-links a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.cookie-accept-all {
    background: var(--primary-orange);
    color: var(--white);
}

.cookie-accept-all:hover {
    background: #FF8533;
    transform: translateY(-2px);
}

.cookie-accept-necessary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-accept-necessary:hover {
    background: var(--white);
    color: var(--dark-blue);
}

.cookie-settings {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.cookie-settings:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.cookie-modal.show {
    display: block;
}

.modal-content {
    background: var(--white);
    margin: 50px auto;
    padding: 2rem;
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.policy-content {
    max-width: 900px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-orange);
}

.modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content h4 {
    color: var(--dark-gray);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-category {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

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

.category-header h3 {
    margin: 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch.disabled {
    opacity: 0.6;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-orange);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.cookie-info {
    background: #FFF8F0;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-orange);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.modal-buttons button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-save:hover {
    background: #FF8533;
}

.btn-cancel, .btn-close {
    background: var(--medium-gray);
    color: var(--dark-gray);
}

.btn-cancel:hover, .btn-close:hover {
    background: var(--light-gray);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .strategy-content {
        grid-template-columns: 1fr;
    }

    .strategy-image {
        position: static;
        margin-top: 2rem;
    }

    .tech-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 20px;
        right: 70px;
        z-index: 1001;
    }

    .nav-links .cta-button {
        display: none;
    }

    .language-selector {
        background: rgba(3, 30, 55, 0.95);
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 102, 0, 0.3);
        padding: 0.3rem;
    }

    .lang-option {
        padding: 0.3rem 0.6rem;
    }

    .lang-option .flag-icon {
        width: 20px;
        height: 20px;
    }

    .lang-option .lang-text {
        font-size: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        padding: 0 10px;
    }

    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        padding: 0 15px;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .btn-primary, .btn-secondary {
        width: 250px;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vision-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .tech-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .governance-pillars {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pillar {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .impact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .impact-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .implementation-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .impl-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .impl-card.large {
        grid-column: span 1;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-item {
        padding: 0.5rem 0;
    }

    .barcelona-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }

    .stat {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-white, .btn-outline {
        width: 250px;
        text-align: center;
        padding: 1rem 2rem;
    }

    /* Section Headers Mobile */
    .section-header {
        margin-bottom: 2rem;
        padding: 0 15px;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.2rem);
        line-height: 1.4;
        padding: 0 10px;
    }

    /* Navigation Mobile */
    .nav-container {
        padding: 0 15px;
    }

    .nav-logo {
        height: 35px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    /* Background Images Mobile */
    #visio,
    #infraestructura,
    #impacte,
    .section-barcelona,
    .section-gradient {
        background-attachment: scroll;
    }

    /* Cookie Banner Mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
    }

    .cookie-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .cookie-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
        gap: 0.8rem;
    }

    .cookie-buttons button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .modal-content {
        margin: 10px;
        padding: 1.5rem;
        max-height: 85vh;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .switch {
        align-self: flex-start;
    }

    /* Touch Targets */
    a, button, .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Scroll Indicator Mobile */
    .scroll-indicator {
        bottom: 15px;
    }

    .mouse {
        width: 25px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
        letter-spacing: 0.5px;
    }

    .subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        padding: 0 5px;
    }

    .hero-description {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        padding: 0 10px;
        line-height: 1.4;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.1;
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        line-height: 1.3;
        padding: 0 5px;
    }

    .governance-pillars {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pillar {
        padding: 1.2rem;
    }

    .pillar-number {
        font-size: 2.5rem;
    }

    .barcelona-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }

    .stat {
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .vision-card,
    .feature-card,
    .impact-card,
    .impl-card {
        padding: 1.2rem;
    }

    .impact-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .btn-primary, .btn-secondary, .btn-white, .btn-outline {
        width: 220px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .mobile-menu a {
        font-size: 1.3rem;
        padding: 0.8rem;
    }

    .nav-logo {
        height: 30px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .footer-logo-img {
        height: 30px;
    }

    .footer-logo-text {
        font-size: 1.2rem;
    }

    .legal-info {
        font-size: 0.8rem;
        line-height: 1.3;
        padding: 0 10px;
    }

    .footer-legal-links {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content h3 {
        font-size: 1rem;
    }

    .cookie-content p {
        font-size: 0.85rem;
    }

    .cookie-buttons button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: 100px;
    }

    .benefits-list {
        gap: 0.8rem;
    }

    .benefit-item {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .check-icon {
        font-size: 1.2rem;
    }
}