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

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

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.3s ease;
}

/* --- Theme Variables --- */
:root {
    /* Dark Theme Default */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(20, 30, 48, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #10b981; /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.2);
    --secondary: #06b6d4; /* Cyber Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.2);
    --accent: #3b82f6; /* Tech Blue */
    
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(10, 14, 23, 0.7);
    --glass-blur: blur(12px);
    
    --gradient-digital: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-hybrid: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.08);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #059669; /* Slightly darker green for light bg */
    --primary-glow: rgba(5, 150, 105, 0.1);
    --secondary: #0891b2;
    --secondary-glow: rgba(8, 145, 178, 0.1);
    
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(248, 250, 252, 0.8);
    
    --gradient-digital: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
    --gradient-green: linear-gradient(135deg, #059669 0%, #047857 100%);
    --gradient-hybrid: linear-gradient(135deg, #059669 0%, #0891b2 50%, #2563eb 100%);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* --- Layout & Structure --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* --- Common UI & Buttons --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-hybrid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-hybrid);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

body.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--border-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-blue {
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Section Titles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-top: 12px;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

body.light-theme .logo-img.logo-white {
    display: none !important;
}

body.light-theme .logo-img.logo-color {
    display: block !important;
}

body:not(.light-theme) .logo-img.logo-white {
    display: block !important;
}

body:not(.light-theme) .logo-img.logo-color {
    display: none !important;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-hybrid);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo-text span {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hybrid);
    transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Switcher */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

.theme-toggle .fa-sun {
    display: none;
}

body.light-theme .theme-toggle .fa-moon {
    display: none;
}

body.light-theme .theme-toggle .fa-sun {
    display: block;
}

/* Language Selector */
.lang-selector {
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--gradient-hybrid);
    color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.eu-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.eu-badge-hero .eu-flag-mini {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.eu-badge-hero span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-entry-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.entry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.entry-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.entry-card-blue:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 25px var(--secondary-glow);
}

.entry-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.hero-graphics {
    display: flex;
    justify-content: center;
    position: relative;
}

.tech-globe-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

#tech-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
}

.digital-core-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digital-core-svg {
    width: 80%;
    height: 80%;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.core-ring-outer {
    transform-origin: center;
    animation: spinSlow 20s linear infinite;
}

.core-ring-inner {
    transform-origin: center;
    animation: spinSlowReverse 15s linear infinite;
}

.core-shield {
    transition: all 0.5s ease;
}

.digital-core-container:hover .core-shield {
    fill: rgba(16, 185, 129, 0.2);
    filter: url(#neon-blur) drop-shadow(0 0 15px var(--secondary));
}

.core-pulse-dot {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

@keyframes spinSlowReverse {
    100% { transform: rotate(-360deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 10px #fff); }
}

.graphic-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-glow) 0%, var(--secondary-glow) 50%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}

/* --- About Section --- */
.about {
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-map-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-svg-mockup {
    width: 100%;
    height: auto;
    max-height: 280px;
    opacity: 0.85;
}

.carpathian-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.carpathian-marker .pulse {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.carpathian-marker .label {
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.feature-item-blue .feature-icon {
    color: var(--secondary);
}

.feature-text h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

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

/* --- Services Catalog --- */
.services-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--gradient-hybrid);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-digital);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card.green::before {
    background: var(--gradient-green);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--card-shadow);
}

body.light-theme .service-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.service-card.digital .service-icon-wrapper {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
}

.service-card.green .service-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.service-card.digital .service-cta {
    color: var(--secondary);
}

.service-card.green .service-cta {
    color: var(--primary);
}

.service-cta i {
    transition: transform 0.2s ease;
}

.service-cta:hover i {
    transform: translateX(4px);
}

/* --- Impact & Results (KPI) --- */
.impact {
    background-color: var(--bg-secondary);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.kpi-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
}

.kpi-card.blue:hover {
    border-color: var(--secondary);
}

.kpi-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.kpi-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Events & Trainings --- */
.events-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.events-tabs {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--border-radius-sm);
}

.events-tab {
    background: transparent;
    border: none;
    padding: 8px 18px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.events-tab.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
    border-color: var(--border-color);
}

.event-meta {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-card.green .event-date {
    color: var(--primary);
}

.event-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-open {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.status-closed {
    background-color: rgba(156, 163, 175, 0.1);
    color: var(--text-secondary);
}

.event-body {
    padding: 20px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-body h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.event-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.event-details {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-bottom: 24px;
}

.event-details li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-btn {
    text-align: center;
    width: 100%;
}

/* --- Documents Repository --- */
.documents {
    background-color: var(--bg-secondary);
}

.docs-controls {
    max-width: 500px;
    margin: 0 auto 40px auto;
    position: relative;
}

.docs-search {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px 12px 48px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.docs-search:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.docs-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.doc-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.doc-item:hover {
    border-color: var(--secondary);
    transform: translateX(4px);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.doc-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-meta h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.doc-meta span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.doc-download-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-download-btn:hover {
    background: var(--gradient-hybrid);
    color: #ffffff;
    border-color: transparent;
}

/* --- Contact & Lead Form --- */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-list {
    margin-top: 32px;
    list-style: none;
}

.contact-info-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-text h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.contact-info-text p {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-info-text a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-text a:hover {
    color: var(--secondary);
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.contact-form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.contact-form-container p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group input {
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkbox-group label a {
    color: var(--secondary);
    text-decoration: none;
}

/* --- EU Funding Banner Section --- */
.eu-funding-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
}

.eu-funding-box {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
}

.eu-flag-large {
    width: 140px;
    height: 93px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.eu-funding-text h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.eu-funding-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.eu-disclaimer {
    font-size: 0.8rem !important;
    margin-top: 12px;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}

/* --- Partners Section --- */
.partners {
    padding: 60px 0;
}

.partners-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.partners-slider:hover {
    opacity: 1;
}

.partner-logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-secondary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.partner-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.partner-img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.7) brightness(0.9);
    transition: all 0.3s ease;
}

body.light-theme .partner-img {
    filter: grayscale(1) opacity(0.6) brightness(0.3);
}

/* Specificity fix: make sure hover resets filters */
body .partner-logo:hover .partner-img {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.05);
}

/* Invert dark logos on dark theme for high contrast */
body:not(.light-theme) .partner-img.partner-dark {
    filter: invert(1) brightness(2.5) grayscale(1) opacity(0.7);
}

body:not(.light-theme) .partner-logo:hover .partner-img.partner-dark {
    filter: invert(1) brightness(2.5) opacity(1) !important;
    transform: scale(1.05);
}

/* Theme toggle for partner logos */
body.light-theme .partner-img.partner-white {
    display: none !important;
}

body.light-theme .partner-img.partner-color {
    display: block !important;
}

body:not(.light-theme) .partner-img.partner-white {
    display: block !important;
}

body:not(.light-theme) .partner-img.partner-color {
    display: none !important;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--gradient-hybrid);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* --- Scroll To Top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--gradient-hybrid);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.45);
}

/* --- Modals (Popups) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    padding-right: 24px;
}

.modal-body {
    font-size: 1rem;
    color: var(--text-secondary);
}

.modal-body h4 {
    color: var(--text-primary);
    margin: 20px 0 8px 0;
    font-size: 1.1rem;
}

.modal-body ul {
    list-style-type: none;
}

.modal-body ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.modal-body ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.modal-footer {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

/* --- Cookie Consent --- */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius-md);
    padding: 24px;
    z-index: 100;
    box-shadow: var(--card-shadow);
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.cookie-banner p a {
    color: var(--secondary);
    text-decoration: none;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-actions button {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .eu-badge-hero, .hero-actions {
        justify-content: center;
    }
    
    .hero-graphics {
        order: -1;
    }
    
    .tech-globe-wrapper {
        max-width: 300px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .eu-funding-box {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        height: calc(100vh - 73px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-entry-points {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .modal-content {
        padding: 24px;
    }
}

/* --- Interactive Region Map Styles --- */
.map-interactive-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .map-interactive-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.map-visual-panel {
    position: relative;
    width: 100%;
}

.map-svg-interactive {
    width: 100%;
    height: auto;
    max-height: 320px;
    display: block;
}

/* Region Styling */
.map-region {
    fill: var(--bg-secondary);
    stroke: var(--border-color);
    stroke-width: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.map-region.highlighted {
    fill: rgba(16, 185, 129, 0.03);
    stroke: rgba(16, 185, 129, 0.3);
}

.map-region:hover, .map-region.active-region {
    fill: rgba(6, 182, 212, 0.1) !important;
    stroke: var(--secondary) !important;
    stroke-width: 2 !important;
    filter: drop-shadow(0 0 10px var(--secondary-glow));
    transform: translateY(-2px);
}

/* Circuit lines on map representing digital flow */
.tech-circuit {
    animation: flowData 10s linear infinite;
}

.tech-circuit.fast {
    animation: flowData 5s linear infinite;
    filter: drop-shadow(0 0 5px var(--primary));
}

.tech-circuit.slow {
    animation: flowData 15s linear infinite reverse;
}

@keyframes flowData {
    to {
        stroke-dashoffset: -100;
    }
}



/* --- Hero Triangles Interactive Canvas --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 15% 25%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
                radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.07) 0%, transparent 45%);
    overflow: hidden;
}

.hero-triangles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

/* Hero Showcase Card */
.hero-hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.05);
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-hub-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
}

.hero-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.hub-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.eu-grant-id {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.hero-hub-stat-main {
    margin-bottom: 24px;
}

.stat-big-num {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.stat-big-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

.hero-hub-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.hub-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.hub-feature-item:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.04);
}

.feature-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-item-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.feature-item-icon.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.feature-item-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.feature-item-icon.yellow { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.hub-feature-item strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

.hub-feature-item span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.hero-hub-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.hub-explore-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.hub-explore-link:hover {
    color: var(--secondary);
}

/* --- Real Geographical Map Styles --- */
.map-svg-interactive {
    width: 100%;
    height: auto;
    overflow: visible;
    border-radius: var(--border-radius-md);
}

.map-region {
    fill: var(--bg-card);
    stroke: var(--border-color);
    stroke-width: 1.5;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.map-region:hover {
    fill: rgba(16, 185, 129, 0.15);
    stroke: var(--primary);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.map-region.active-region {
    fill: rgba(16, 185, 129, 0.22);
    stroke: var(--primary);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 14px var(--primary-glow));
}

/* Backbone pulse lines */
.tech-backbone-line {
    animation: backboneFlow 25s linear infinite;
}

.tech-backbone-pulse {
    animation: backbonePulse 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 6px #38bdf8);
}

.tech-backbone-pulse.delayed {
    animation: backbonePulse 3.5s ease-in-out infinite 1.75s;
    filter: drop-shadow(0 0 6px #10b981);
}

@keyframes backboneFlow {
    from { stroke-dashoffset: 240; }
    to { stroke-dashoffset: 0; }
}

@keyframes backbonePulse {
    0% { stroke-dashoffset: 255; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ==========================================================================
   CREATIVE 3D HOLOGRAM STAGE & ECO-DIGITAL CENTERPIECE
   ========================================================================== */
.hero-hologram-stage {
    perspective: 1200px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hologram-3d-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 28px;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.6) 0%, rgba(10, 15, 30, 0.85) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.12);
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-3d-card:hover {
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.hologram-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    pointer-events: none;
    z-index: 1;
}

.cyber-core-wrapper {
    position: relative;
    width: 82%;
    height: 82%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform: translateZ(35px);
}

.cyber-core-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 24px rgba(16, 185, 129, 0.25));
    animation: coreFloat 6s ease-in-out infinite alternate;
}

@keyframes coreFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(1deg); }
}

/* Orbiting Rings */
.orbit-ring.ring-1 {
    transform-origin: center;
    animation: orbitSpin 24s linear infinite;
}
.orbit-ring.ring-2 {
    transform-origin: center;
    animation: orbitSpinRev 18s linear infinite;
}
.orbit-ring.ring-3 {
    transform-origin: center;
    animation: orbitSpin 14s linear infinite;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes orbitSpinRev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Nucleus Heart Pulse */
.nucleus-heart {
    transform-origin: 180px 165px;
    animation: heartPulse 3s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 12px #34d399); }
}

/* 3D Floating Satellites */
.hologram-satellite {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    cursor: default;
}

.hologram-satellite:hover {
    transform: translateZ(105px) scale(1.08) !important;
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px var(--primary-glow);
}

.sat-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.sat-ai {
    top: 6%;
    left: -8%;
    animation: satFloat1 5s ease-in-out infinite alternate;
}
.sat-ai .sat-icon { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.sat-green {
    bottom: 6%;
    right: -8%;
    animation: satFloat2 5.5s ease-in-out infinite alternate 0.5s;
}
.sat-green .sat-icon { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.sat-eu {
    bottom: 6%;
    left: -6%;
    animation: satFloat3 6s ease-in-out infinite alternate 1s;
}

.sat-subsidy {
    top: 6%;
    right: -8%;
    animation: satFloat4 4.8s ease-in-out infinite alternate 1.5s;
}
.sat-badge-num {
    font-size: 0.9rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
}

.sat-content {
    display: flex;
    flex-direction: column;
}
.sat-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.sat-sub {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

@keyframes satFloat1 { 0% { transform: translateZ(75px) translateY(0); } 100% { transform: translateZ(75px) translateY(-8px); } }
@keyframes satFloat2 { 0% { transform: translateZ(85px) translateY(0); } 100% { transform: translateZ(85px) translateY(8px); } }
@keyframes satFloat3 { 0% { transform: translateZ(65px) translateY(0); } 100% { transform: translateZ(65px) translateY(6px); } }
@keyframes satFloat4 { 0% { transform: translateZ(90px) translateY(0); } 100% { transform: translateZ(90px) translateY(-7px); } }

/* ==========================================================================
   AUTHENTIC HIGH-RES CARPATHIAN GEOGRAPHIC MAP
   ========================================================================== */
.map-river {
    fill: none;
    stroke: rgba(56, 189, 248, 0.5);
    stroke-width: 1.2;
    opacity: 0.65;
    transition: all 0.3s ease;
}

.map-river:hover {
    stroke: #38bdf8;
    stroke-width: 2.5;
    opacity: 1;
    filter: drop-shadow(0 0 6px #38bdf8);
}

.map-peak {
    transition: transform 0.25s ease;
    cursor: default;
}

.map-peak:hover {
    transform: scale(1.3);
}

.map-peak-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    fill: #f59e0b;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    pointer-events: none;
}


/* ==========================================================================
   DEDICATED FULL-WIDTH REGIONAL MAP & PARTNER ECOSYSTEM SHOWCASE (UNIFIED & SCALABLE)
   ========================================================================== */
.map-showcase-section {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

/* Showcase Container Card with Fixed Layout */
.map-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(16, 185, 129, 0.04);
}

/* STRICT LOCKED COLUMNS: minmax(0, ...) guarantees zero width shift */
.map-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important;
    gap: 32px;
    align-items: start !important;
    width: 100%;
}

/* Map Canvas Box - Strictly Locked 480px Height and Width */
.map-visual-panel {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.55) 0%, rgba(240, 249, 255, 0.55) 50%, rgba(250, 245, 255, 0.55) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.dark-theme .map-visual-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(10, 15, 30, 0.95) 100%);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.map-svg-interactive {
    width: 100%;
    height: 100%;
    max-height: 460px;
    display: block;
    overflow: visible;
}

/* Neighboring Regions Layer (Clearer & More Distinct) */
.neighbor-regions-group {
    pointer-events: none;
}

.neighbor-region-path {
    fill: rgba(100, 116, 139, 0.05);
    stroke: rgba(100, 116, 139, 0.38);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

.dark-theme .neighbor-region-path {
    fill: rgba(255, 255, 255, 0.035);
    stroke: rgba(255, 255, 255, 0.22);
}

.neighbor-region-label {
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 700;
    fill: var(--text-secondary);
    opacity: 0.8;
    letter-spacing: 0.6px;
    pointer-events: none;
    user-select: none;
}

.dark-theme .neighbor-region-label {
    fill: rgba(255, 255, 255, 0.65);
}

/* Unified EDIH Brand Region Styling */
.map-region {
    stroke-width: 1.8;
    transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.region-highlight-edih {
    fill: url(#grad-edih-region);
    stroke: #059669;
}

.region-highlight-edih:hover {
    fill: rgba(16, 185, 129, 0.38);
    stroke: #10b981;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.5));
}

.region-highlight-edih.active-region {
    fill: rgba(16, 185, 129, 0.52) !important;
    stroke: #10b981 !important;
    stroke-width: 3 !important;
    filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.8)) !important;
}

/* Interactive & Dynamically Scalable Watermarks */
.watermark-text {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    fill: #047857;
    opacity: 0.7;
    cursor: pointer;
    transition: font-size 0.2s ease, fill 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    user-select: none;
}

.dark-theme .watermark-text {
    fill: #6ee7b7;
}

.watermark-text:hover, .watermark-text.active-watermark {
    opacity: 1 !important;
    font-size: 14.5px !important;
    font-weight: 900 !important;
    fill: var(--primary) !important;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.9));
}

/* Authentic OSM Rivers (Open LineStrings with round joins) */
.map-river {
    fill: none;
    stroke: rgba(2, 132, 199, 0.55);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
    pointer-events: none;
}

.dark-theme .map-river {
    stroke: rgba(56, 189, 248, 0.55);
}

/* Secondary Cities (Interactive - Zero CSS transform on SVG elements) */
.city-minor {
    cursor: pointer;
}

.city-minor circle {
    transition: stroke-width 0.2s ease, fill 0.2s ease, filter 0.2s ease;
}

.city-minor:hover circle {
    fill: var(--primary);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.9));
}

.city-minor-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    fill: var(--text-secondary);
    pointer-events: none;
    transition: fill 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease;
}

.city-minor:hover .city-minor-label {
    fill: var(--primary);
    font-size: 11.5px;
    font-weight: 800;
}

/* SVG City Hub Node Markers (Anchor 100% Locked, Zero CSS Transform) */
.map-node {
    cursor: pointer;
}

.map-node .node-core {
    transition: stroke-width 0.2s ease, filter 0.2s ease;
}

.map-node:hover .node-core, .map-node.active .node-core {
    stroke-width: 4.5px;
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 1));
}

.node-pulse {
    fill: none;
    stroke-width: 2;
    stroke: #10b981;
    animation: nodeBeacon 2.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    pointer-events: none;
}

.node-pulse-delayed {
    fill: none;
    stroke-width: 2;
    stroke: #10b981;
    animation: nodeBeacon 2.6s cubic-bezier(0, 0.2, 0.8, 1) infinite 1.3s;
    pointer-events: none;
}

@keyframes nodeBeacon {
    0% { r: 6px; opacity: 0.85; stroke-width: 3; }
    100% { r: 28px; opacity: 0; stroke-width: 0.5; }
}

.map-node-label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    fill: var(--text-primary);
    pointer-events: none;
    transition: fill 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease, filter 0.2s ease;
}

.map-node.active .map-node-label, .map-node:hover .map-node-label {
    fill: var(--primary);
    font-size: 13.5px;
    font-weight: 800;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.7));
}

.map-node-label.central {
    font-size: 13px;
    font-weight: 800;
    fill: var(--primary);
}

.map-node-sublabel {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    fill: var(--text-secondary);
    pointer-events: none;
    transition: fill 0.2s ease;
}

.map-node-sublabel.central {
    font-size: 10px;
    fill: var(--primary);
    font-weight: 700;
}

/* ==========================================================================
   PARTNER DETAILS CARD & PANEL - RIGID 480PX HEIGHT AND LOCKED WIDTH
   ========================================================================== */
.map-details-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
    box-sizing: border-box;
}

.map-details-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 480px !important;
    max-height: 480px !important;
    min-height: 480px !important;
    box-sizing: border-box;
    overflow: hidden;
}

.map-details-card .card-header {
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
}

.card-header-top {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.region-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    white-space: nowrap;
    width: fit-content;
}

.map-details-card #map-detail-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.map-details-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.node-role {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.35;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.partners-block-heading {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Scrollable Partners Container - STRICTLY LOCKED 270PX HEIGHT */
.node-partners-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    height: 270px !important;
    max-height: 270px !important;
    min-height: 270px !important;
    overflow-y: auto;
    padding-right: 4px;
    box-sizing: border-box;
    width: 100%;
}

.node-partners-grid::-webkit-scrollbar {
    width: 4px;
}
.node-partners-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}
.node-partners-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* Compact Partner Card */
.partner-item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 7px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
    min-height: 48px;
    box-sizing: border-box;
    width: 100%;
}

.partner-item-card:hover {
    border-color: var(--primary);
    transform: translateX(3px);
    background: rgba(16, 185, 129, 0.04);
}

.partner-item-logo-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.partner-item-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.partner-item-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.partner-item-role {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.partner-item-link-icon {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.partner-item-card:hover .partner-item-link-icon {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

@media (max-width: 1024px) {
    .map-showcase-grid {
        grid-template-columns: 1fr !important;
    }
    .map-visual-panel {
        height: 380px !important;
        min-height: 380px !important;
        max-height: 380px !important;
    }
    .map-details-panel {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .map-details-card {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .node-partners-grid {
        height: auto !important;
        max-height: 320px !important;
        min-height: auto !important;
    }
}


/* Strict Layer Pointer-Events Isolation */
#dot-grid,
#neighbor-regions-layer,
.neighbor-regions-group,
.neighbor-region-path,
.neighbor-region-label,
#rivers-layer,
.map-river,
#network-lines-layer,
.tech-backbone-line,
.tech-backbone-pulse {
    pointer-events: none !important;
}

.map-region {
    pointer-events: auto !important;
    cursor: pointer;
}

.map-node {
    pointer-events: auto !important;
    cursor: pointer;
}

.watermark-text {
    pointer-events: auto !important;
    cursor: pointer;
}

.city-minor {
    pointer-events: auto !important;
    cursor: pointer;
}
