:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --border: rgba(148, 163, 184, 0.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: transparent; /* FONTOS: Átlátszó */
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* A tartalom mögött */
    overflow: hidden;
    background-color: var(--bg-color);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    /* Gyorsabb animáció: 8s */
    animation: float 8s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.3);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.2);
    bottom: -150px;
    right: -150px;
    animation-delay: -2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.2);
    top: 40%;
    left: 60%;
    animation-delay: -4s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -80px) scale(1.2); } /* Nagyobb mozgás */
    66% { transform: translate(-40px, 40px) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Animáció futtatása, ha a felhasználó nem kért csökkentett mozgást */
@media (prefers-reduced-motion: no-preference) {
    .orb {
        animation: float 8s infinite ease-in-out;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative; /* Új stacking context */
    z-index: 1; /* A háttér fölé helyezi */
}

/* Header */
header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent);
}

nav {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}

nav li {
    margin: 0;
}

nav a {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    display: block;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

nav a:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* Kiemelt "Kapcsolat" gomb */
nav li:last-child a {
    background-color: var(--accent);
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

nav li:last-child a:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

.menu-highlight {
    display: none;
}

/* Nyelvváltó */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px; /* Kisebb gap */
    border-left: 1px solid var(--border);
    padding-left: 12px; /* Kisebb padding */
    margin-left: 4px; /* Kisebb margin */
}

.lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Kisebb méret */
    height: 32px;
    padding: 0;
    border-radius: 50%;
    opacity: 0.4; /* Halványabb alapállapot */
    transition: all 0.2s;
    background-color: transparent; /* Nincs háttér alapból */
    border: 1px solid transparent; /* Helyfoglalás a keretnek */
}

.lang-switcher a.active {
    opacity: 1;
    background-color: rgba(56, 189, 248, 0.1); /* Accent color halványan */
    border-color: rgba(56, 189, 248, 0.3); /* Keret az aktívnak */
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

.lang-switcher a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
}

.lang-switcher img {
    border-radius: 2px;
    width: 20px; /* Fix képméret */
    height: auto;
}


/* Hero Section */
.hero {
    padding: 80px 0 60px;
    max-width: 1000px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 800px;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #0f172a;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.05);
}

/* Section Styles */
.section-title {
    font-size: 1.8rem;
    margin: 60px 0 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-main);
}

.section-title::after {
    content: "";
    height: 1px;
    background: var(--border);
    flex-grow: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
    backdrop-filter: blur(10px);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.card h3 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 4px 4px 4px 0;
}

/* About Text */
.about-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 80px;
}

.social-links {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-links a, .icon-btn {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin: 0;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.social-links a:hover, .icon-btn:hover { color: var(--accent); }

.social-links a {
    font-size: 3rem;
}

.icon-btn {
    font-size: 3rem;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: #0f172a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #1e293b;
    margin: auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

#form-status {
    margin-top: 15px;
    font-weight: 500;
}

#form-status.success { color: #4ade80; }
#form-status.error { color: #f87171; }

/* Maintenance Page Styles */
.maintenance-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.maintenance-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.maintenance-icon {
    font-size: 64px;
    color: var(--accent);
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.maintenance-card h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.maintenance-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

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

    .card {
        width: 100%;
        margin-bottom: 16px;
    }

    header {
        flex-direction: column;
        gap: 16px;
    }

    /* Logo méret csökkentése mobilon */
    .logo-img {
        height: 140px; /* 200px * 0.7 */
    }

    nav {
        width: 100%; /* Teljes szélesség */
        border-radius: 16px; /* Kevésbé kerek */
        padding: 12px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    nav a {
        font-size: 0.8rem;
        padding: 6px 12px; /* Kisebb gombok */
    }

    /* Nyelvváltó külön sorba mobilon */
    .lang-switcher {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 8px;
    }
}

@keyframes flash {
    0%, 100% { opacity: 1; color: var(--text-main); }
    50% { opacity: 0; color: var(--accent); }
}

.flash {
    animation: flash 0.8s ease-in-out 3;
}

/* reCAPTCHA badge balra igazítása és hover effekt */
.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 0 !important;
    right: auto !important;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.grecaptcha-badge:hover {
    width: 256px !important;
}
