@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --accent: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.3);
    --text: #e0e0e0;
    --text-muted: #888;
    --border: #2a2a2a;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 5%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 3px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.lang-toggle:hover {
    border-color: var(--accent);
}

.lang-option {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.lang-option.active {
    color: var(--primary);
}

.lang-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    background: var(--accent);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.lang-toggle.fi-active .lang-slider {
    transform: translateX(100%);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 5% 2rem;
    background: radial-gradient(ellipse at top, var(--secondary) 0%, var(--primary) 70%);
}

.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='%2300ff88' 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");
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    width: 100%;
}

.hero-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
    word-wrap: break-word;
}

.tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.4;
}

.tagline span {
    color: var(--accent);
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s;
    z-index: -1;
}

.cta-button:hover {
    color: var(--primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.cta-button:hover::before {
    left: 0;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 5%;
    background: var(--primary);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
    border-color: var(--accent);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.gallery-content {
    padding: 1.5rem;
}

.gallery-content h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.gallery-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Accomplishments Section */
.accomplishments-section {
    padding: 6rem 5%;
    background: var(--secondary);
    position: relative;
}

.accomplishments-container {
    max-width: 1200px;
    margin: 0 auto;
}

.accomplishments-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.download-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.download-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.download-card:hover::before {
    transform: scaleX(1);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.download-card .version {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', monospace;
}

.download-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.download-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-tag {
    background: var(--secondary);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.download-btn:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 6rem 5%;
    background: var(--primary);
    position: relative;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--accent) 0%, #00cc6a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    box-shadow: 0 20px 60px var(--accent-glow);
}

.about-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background: var(--secondary);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

/* Contact Section */
.contact-section {
    padding: 6rem 5%;
    background: var(--secondary);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--primary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    word-break: break-all;
}

/* Footer */
footer {
    background: var(--primary);
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 4%;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.25rem;
        text-align: center;
    }

    .nav-right {
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
    }

    .nav-links {
        gap: 1rem;
        justify-content: center;
        width: 100%;
        order: 2;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .lang-toggle {
        order: 1;
        align-self: center;
    }

    .lang-option {
        padding: 0.35rem 0.9rem;
        font-size: 0.8rem;
    }

    .hero {
        padding-top: 10rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        font-size: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--accent);
    color: var(--primary);
}

/* Language transition effect */
[data-i18n] {
    transition: opacity 0.2s;
}

.lang-transition {
    opacity: 0;
}