/* ===== CSS Variables ===== */
:root {
    --color-primary: #0066cc;
    --color-primary-dark: #004d99;
    --color-secondary: #00a86b;
    --color-accent: #ff6b35;
    --color-dark: #1a1a2e;
    --color-dark-light: #16213e;
    --color-text: #333;
    --color-text-light: #666;
    --color-text-muted: #888;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-dark: #0f0f23;
    --color-border: #e0e0e0;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-icon {
    width: 18px;
    height: 18px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-funding {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-funding-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
    white-space: nowrap;
}

.hero-funding-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-logo-img {
    height: 44px;
    width: auto;
}

.hero-logo-eu {
    height: 36px;
    background: white;
    padding: 5px 9px;
    border-radius: var(--radius-sm);
}

.nav-map-link {
    background: var(--color-primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.nav-map-link:hover {
    background: var(--color-primary-dark);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 50%, #1e3a5f 100%);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.875rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder svg {
    width: 100%;
    height: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

.about-map {
    max-width: 800px;
    margin: 0 auto 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

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

.about-text .lead {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition);
}

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

.highlight-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.highlight-card h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== Objectives ===== */
.objectives {
    background: white;
}

.objectives .section-title {
    margin-bottom: 48px;
}

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

.objective-card {
    background: var(--color-bg-alt);
    padding: 32px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: all var(--transition);
}

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

.objective-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: 16px;
    right: 24px;
}

.objective-card h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.objective-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Activities ===== */
.activities {
    background: var(--color-dark);
    color: white;
}

.activities .section-title {
    color: white;
    margin-bottom: 48px;
}

.activities-list {
    display: grid;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.activity-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

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

.activity-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.activity-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.activity-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Partners ===== */
.partners {
    background: var(--color-bg-alt);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.partner-country {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.partner-country:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.country-flag {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0,102,204,0.1), rgba(0,168,107,0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
}

.flag-emoji {
    font-size: 2rem;
    line-height: 1;
}

.partner-country h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.partner-country ul {
    list-style: none;
}

.partner-country li {
    padding: 8px 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
}

.partner-country li:last-child {
    border-bottom: none;
}

.partner-country li em {
    color: var(--color-primary);
    font-style: normal;
    font-weight: 500;
}

/* ===== Contact ===== */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.coordinator-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.coordinator-org {
    color: var(--color-text);
    margin-bottom: 4px;
}

.coordinator-location {
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.contact-email {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-primary);
}

.contact-email:hover {
    color: var(--color-primary-dark);
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-wrapper p {
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

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

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

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

.footer-logo span {
    color: var(--color-primary);
}

.footer-brand p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-funding h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-funding p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-funding a {
    color: var(--color-primary);
}

.footer-logos {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(1);
    transition: filter var(--transition);
}

.footer-logo-img:hover {
    filter: brightness(1.2);
}

.footer-logo-img.eu-logo {
    height: 40px;
    background: white;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

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

.badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-funding {
        justify-content: center;
    }

    .hero-funding-logos {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: flex;
    }

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

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 16px;
    }

    .activity-item {
        flex-direction: column;
        text-align: center;
    }

    .activity-icon {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
