:root {
    --bg-main: #f0f4f8; /* Light */
    --nav-scrolled: rgba(255, 255, 255, 0.9);
    --footer-bg: rgba(255, 255, 255, 0.8);
    --hero-overlay-1: rgba(240, 244, 248, 0.85);
    --hero-overlay-2: rgba(240, 244, 248, 0.95);
    --primary: #f89e21;
    --primary-light: #fbd38d;
    --secondary: #31686F;
    --text-main: #0A1017;
    --text-muted: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
}

body.dark-theme {
    --bg-main: #0A1017; /* Dark */
    --nav-scrolled: rgba(10, 10, 15, 0.9);
    --footer-bg: rgba(10, 10, 15, 0.8);
    --hero-overlay-1: rgba(10, 10, 15, 0.85);
    --hero-overlay-2: rgba(10, 10, 15, 0.95);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Blobs for Visual Aesthetics */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}
.blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
    border-radius: 50%;
}
.blob-2 {
    bottom: 20%;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Glassmorphism utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container .logo {
    height: 70px;
}

.header-eu-logo {
    height: 46px;
    border-left: 2px solid var(--glass-border);
    padding-left: 20px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.theme-toggle:hover {
    background: var(--glass-bg);
}

.navbar.scrolled {
    background: var(--nav-scrolled);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    background: linear-gradient(var(--hero-overlay-1), var(--hero-overlay-2)), url('assets/img/hero_bg.jpg') center/cover no-repeat;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    margin-right: 15px;
}
.btn-primary:hover {
    box-shadow: 0 15px 25px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: var(--glass-bg);
}

/* Sections */
.section {
    padding: 100px 5%;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
}

.section-text {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.timeline-glass {
    padding: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Timeline */
.download-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary-light);
    transition: color 0.3s;
}
.download-link:hover {
    color: var(--text-main);
}
.text-center { text-align: center; margin-bottom: 40px; }

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

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-light);
    border-radius: 50%;
    top: 25px;
    right: -8px;
    box-shadow: 0 0 10px var(--primary);
    z-index: 10;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 24px;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-date {
    display: inline-block;
    color: var(--secondary);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    display: block;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.resource-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.resource-card p {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--footer-bg);
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.footer-eu-logo img {
    height: 60px;
    margin-bottom: 20px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Scroll Animations */
.scroll-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-element.scrolled {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-dot {
        left: 23px !important;
        right: auto;
    }
    .hero-title {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
}
