/* ANIMA Project - Custom Styles */

:root {
    --bg-primary: #f6f6f6;
    --bg-secondary: #f6f6f6;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #3a3a3a;
    --text-muted: #6a6a6a;
    --accent: #ff7300;
    --accent-dim: #ffc87f;
    --accent-glow: rgba(138, 90, 30, 0.1);
    --border: #dedede;
    --eu-blue: #003399;
    --eu-gold: #ffcc00;
    --normal-text-size: 1.0rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Code', 'Monaco', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
}

/* ---- NAV ---- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

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

/* ---- HERO ---- */
.hero {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background:
         radial-gradient(circle at 28% 28%, rgba(255, 160, 0, 0.1) 10%, transparent 40%); 
         radial-gradient(circle at 72% 54%, rgba(0, 129, 255, 0.1) 10%, transparent 40%);
    pointer-events: none; */
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    transition: opacity 0.8s ease;
}

body.keyboard-active .hero-content {
    opacity: 0;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    padding: 0.4rem 1rem;
    margin-bottom: 2rem;
}

.hero-title-centered {
    font-family: 'Fira Code', monospace;
    font-size: clamp(7rem, 10vw, 7rem);
    font-weight: 400;
    text-align: center;
    color: var(--accent);
    margin-bottom: 0rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-family: 'Fira Code', monospace;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.0em;
    margin-bottom: 1.0rem;
    color: var(--text-secondary);
}

.hero-acro {
    color: var(--accent); 
    font-weight: 400;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    /* max-width: 900px; */
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-meta {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-meta-value {
    font-size: var(--normal-text-size);
    color: var(--text-secondary);
}

.hero-meta-value a {
    color: var(--accent);
    text-decoration: none;
}

.hero-meta-value a:hover {
    text-decoration: underline;
}

/* ---- SECTIONS ---- */
section {
    padding: 6rem 2rem;
}

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

.section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Fira Code', monospace;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.section-text {
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 2rem;
}

/* ---- ABOUT ---- */
#about {
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-sequence {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.scroll-sequence img {
    width: 100%;
    opacity: 1.0;
    mix-blend-mode: multiply;
    margin-right: -10%;
    margin-top: 11%;
}

.about-layout {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

#about .about-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 50%;
    backdrop-filter: blur(5px);
}

#about .about-card .section-label {
    margin-bottom: 1rem;
}

#about .about-card .section-title {
    margin-bottom: 1.5rem;
}

#about .about-card .about-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

#about .about-card h3 {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

#about .about-card p {
    font-size: var(--normal-text-size);
    color: var(--text-secondary);
    line-height: 1.7;
}

#about .about-card a {
    color: var(--text-secondary);
    text-decoration: none;
}

#about .about-card a:hover {
    color: var(--accent);
}

/* ---- OUTPUTS ---- */
#outputs {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.output-item {
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.output-item:last-child {
    border-bottom: none;
}

.output-type {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.output-title {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.output-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.output-title a:hover {
    color: var(--accent);
}

.output-authors {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.output-venue {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.output-links {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
}

.output-links a {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent-dim);
    padding: 0.3rem 0.8rem;
    transition: all 0.3s;
}

.output-links a:hover {
    background: var(--accent-glow);
}

/* ---- TOOLS ---- */
#tools {
    border-bottom: 1px solid var(--border);
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    border-radius: 12px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.tool-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.tool-card h3 {
    font-family: 'Fira Code', monospace;
    font-size: var(--normal-text-size);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: var(--normal-text-size);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tool-card a {
    font-family: 'Fira Code', monospace;
    font-size: var(--normal-text-size);
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tool-card a:hover {
    text-decoration: underline;
}

/* ---- TEAM ---- */
#team {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.team-name {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 400;
}

.team-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.team-name a:hover {
    color: var(--accent);
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 400;
}

.team-affiliation {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- NEWS ---- */
#news {
    border-bottom: 1px solid var(--border);
}

.news-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.15rem;
}

.news-content h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---- CONTACT ---- */
#contact {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
}

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

.contact-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-label {
    color: var(--text-muted);
    min-width: 60px;
}

/* ---- EU FUNDING ---- */
.eu-funding {
    padding: 3rem 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.eu-funding-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    
}

.eu-flag {
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 80px;
    height: 40px;
}

.eu-flag svg {
    width: 100%;
    height: 100%;
}

.eu-funding-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.eu-funding-text strong {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- FOOTER ---- */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ---- EIGENSPACE VIS ---- */
.hero-vis {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
    overflow: hidden;
}

.hero-vis canvas {
    width: 100%;
    height: 100%;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
    .scroll-sequence img {
        width: 180%;
        margin-right: 0;
        margin-top: 25%;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(232, 232, 232, 0.95);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-title-centered {
        font-size: clamp(4.5rem, 12vw, 5rem);
    }

    .hero h1 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

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

    .hero-meta {
        gap: 1.5rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .about-card {
        max-width: 100% !important;
    }

    .scroll-sequence img {
        width: 300%;
        margin-top: 20%;
        margin-right: 50%;
    }

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

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

    .news-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .eu-funding-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .scroll-sequence img {
        width: 600%;
        margin-top: 25%;
    }
}

/* ---- ANIMATIONS ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
