@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;600;700&display=swap');

:root {
    --bg-color: #050510;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --accent-color: #00f3ff;
    --accent-secondary: #bc13fe;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --font-main: 'Outfit', sans-serif;
}

body.light-mode {
    --bg-color: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.1);
    --accent-color: #007bb5;
    --text-main: #333333;
    color: var(--text-main);
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.theme-toggle,
.lang-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    /* Bigger size */
    padding: 5px;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover,
.lang-toggle:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 16, 0.7);
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Hero Section */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

header h1 {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-main), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: fadeUp 1s ease-out;
}

header p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 200;
    animation: fadeUp 1s ease-out 0.2s backwards;
}

.btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeUp 1s ease-out 0.4s backwards;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* Sections */
section {
    padding: 6rem 10%;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 300;
}

.section-title span {
    font-weight: 700;
    color: var(--accent-color);
}

/* Cards (Glassmorphism) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 243, 255, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    text-decoration: underline;
}

/* News List */
.news-item {
    border-bottom: 1px solid var(--card-border);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    font-size: 1.2rem;
    color: var(--text-main);
}

.news-item p {
    color: var(--text-muted);
}

/* Funding Logos */
.funding-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.funding-logos img {
    height: 50px;
    opacity: 0.7;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.funding-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Footer */
footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-main);
    text-decoration: none;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation omitted for brevity, keeping it simple */
    }
}

/* Modal Styles */
#image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: scaleUp 0.3s;
}

.modal-img-container {
    flex: 1 1 400px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-info {
    flex: 1 1 300px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--card-border);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--accent-color);
}

.clickable-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}