/* ==========================================================================
   REDUCE Landing Page - EU & IPA III CBC Official Branding System
   Official EU Reflex Blue (#003399) & EU Gold Stars (#FFCC00)
   Multilingual Informative Portal Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Official EU Palette */
    --eu-blue: #003399;
    --eu-blue-hover: #002266;
    --eu-blue-light: #1a56cc;
    --eu-yellow: #FFCC00;
    --eu-yellow-dark: #e6b800;

    --bg-dark: #050a14;
    --bg-card: rgba(10, 20, 40, 0.75);
    --bg-card-hover: rgba(16, 30, 58, 0.9);
    --border-glass: rgba(0, 85, 255, 0.22);
    --border-glow: rgba(255, 204, 0, 0.45);

    --primary: var(--eu-blue-light);
    --primary-light: #4d82f3;
    --accent-gold: var(--eu-yellow);
    --accent-green: #059669;

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-heading: #ffffff;

    --gradient-eu: linear-gradient(135deg, #003399 0%, #001a4d 100%);
    --gradient-gold: linear-gradient(135deg, #FFCC00 0%, #e6b800 100%);
    --gradient-hero: radial-gradient(circle at 50% 20%, rgba(0, 51, 153, 0.35) 0%, rgba(5, 10, 20, 0.98) 75%);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 51, 153, 0.25);
    --glow-eu: 0 0 25px rgba(0, 85, 255, 0.35);
    --glow-gold: 0 0 25px rgba(255, 204, 0, 0.35);

    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--gradient-hero);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--eu-yellow);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.glass-panel:hover {
    border-color: rgba(255, 204, 0, 0.45);
    background: var(--bg-card-hover);
}

/* Official EU Flag Emblem Component */
.eu-flag-svg-icon {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    display: inline-block;
    vertical-align: middle;
    object-fit: cover;
}

/* Official EU Header Top Bar */
.eu-header-bar {
    background: var(--eu-blue);
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid var(--eu-yellow);
    position: relative;
    z-index: 1001;
}

.eu-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.eu-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* REDUCE Project Brand Badge */
.reduce-brand-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 51, 153, 0.4);
    border: 1.5px solid var(--eu-yellow);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    box-shadow: 0 0 15px rgba(0, 51, 153, 0.3);
}

.brand-eu-mini {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--eu-yellow);
    letter-spacing: 1.5px;
}

/* Official Logo Container for Partners */
.official-logo-box {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.official-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* CSO Logotypes (6th Star & Pro-Planning) */
.cso-badge-6th {
    background: radial-gradient(circle, rgba(255, 204, 0, 0.15) 0%, rgba(5, 10, 20, 0.9) 100%);
    border: 1.5px solid var(--eu-yellow);
    flex-direction: column;
    padding: 4px;
    gap: 1px;
}

.cso-star-icon {
    color: var(--eu-yellow);
    font-size: 1.1rem;
}

.cso-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.72rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1;
}

.cso-sub {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.cso-badge-pro {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(5, 10, 20, 0.9) 100%);
    border: 1.5px solid #3b82f6;
    flex-direction: column;
    padding: 4px;
    gap: 1px;
}

.cso-pro-icon {
    color: #3b82f6;
    font-size: 1.1rem;
}

/* Country Flag Box & Img */
.country-flag-box {
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.partner-flag-img {
    width: 32px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    display: block;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    top: 0;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.6rem 0;
    box-shadow: var(--shadow-sm);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-heading);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--eu-yellow);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Multilingual Switcher Component */
.lang-selector {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--text-heading);
}

.lang-btn.active {
    background: var(--eu-blue);
    color: var(--eu-yellow);
    border: 1px solid var(--eu-yellow);
    box-shadow: 0 0 10px rgba(0, 51, 153, 0.5);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-eu {
    background: var(--eu-blue);
    color: #ffffff;
    border: 1px solid rgba(255, 204, 0, 0.6);
    box-shadow: 0 0 12px rgba(0, 51, 153, 0.4);
}

.badge-gold {
    background: rgba(255, 204, 0, 0.15);
    color: var(--eu-yellow);
    border: 1px solid rgba(255, 204, 0, 0.4);
}

.badge-primary {
    background: rgba(26, 86, 204, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--eu-blue);
    color: #ffffff;
    border: 1px solid var(--eu-yellow);
    box-shadow: var(--glow-eu);
}

.btn-primary:hover {
    background: var(--eu-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 85, 255, 0.6);
    color: #ffffff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-heading);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 204, 0, 0.1);
    border-color: var(--eu-yellow);
    color: var(--eu-yellow);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    position: relative;
    padding-bottom: 4rem;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 51, 153, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.18;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--eu-yellow);
    text-shadow: 0 0 25px rgba(255, 204, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    line-height: 1.7;
}

.hero-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Fact-Card in Hero */
.hero-fact-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    border: 1.5px solid var(--eu-yellow);
}

.fact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

.fact-title {
    font-size: 1.3rem;
    color: var(--text-heading);
}

.fact-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.fact-icon-box {
    width: 42px;
    height: 42px;
    background: var(--eu-blue);
    border: 1px solid var(--eu-yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eu-yellow);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.fact-text h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.fact-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Quick Stats Section (3 Columns) */
.stats-bar {
    padding: 2.5rem 0;
    margin-top: -1.5rem;
    position: relative;
    z-index: 10;
}

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

.stat-card {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--eu-blue), var(--eu-yellow));
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--eu-yellow);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Section Header Utility */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-tag {
    color: var(--eu-yellow);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Objectives Section */
.section-padding {
    padding: 5rem 0;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.objective-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    position: relative;
}

.obj-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 51, 153, 0.3);
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eu-yellow);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    transition: var(--transition-normal);
}

.objective-card:hover .obj-icon {
    background: var(--eu-blue);
    color: var(--eu-yellow);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--glow-eu);
}

.obj-title {
    font-size: 1.4rem;
}

.obj-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Partners Section */
.partners-section {
    background: radial-gradient(circle at 80% 50%, rgba(0, 51, 153, 0.15) 0%, rgba(5, 10, 20, 0) 60%);
}

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

.partner-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.partner-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.partner-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.partner-title {
    font-size: 1.45rem;
    color: var(--text-heading);
}

.partner-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-desc {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.partner-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

/* Footer */
.footer {
    background: #02050a;
    border-top: 2px solid var(--eu-blue);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 340px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--text-heading);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--eu-yellow);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.eu-disclaimer {
    max-width: 750px;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .objectives-grid, .stats-grid, .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 0;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(5, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .objectives-grid, .stats-grid, .partners-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
