* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: #0f0f0f;
    background-image: url(https://images.pexels.com/photos/2326876/pexels-photo-2326876.jpeg?auto=compress&cs=tinysrgb&w=1920);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.78);
    z-index: 0;
    pointer-events: none;
}

.project-1-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

footer {
    display: flex;
    color: #ffffff;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    text-align: center;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    width: 100%;
    max-width: 100vw;
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    margin-bottom: 0;
    /* Üvegeffekt (glassmorphism) */
    background: rgba(15, 15, 25, 0.35);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-left: 1rem;
    margin-right: auto;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #67e8f9 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    
}
nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 1rem;
    
}

nav ul li a {
    display: block;
    min-width: 8rem;
    text-align: center;
    text-decoration: none;
    color: #9c9696;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

nav ul li a:hover {
    color: #67e8f9;
    transition: color 0.2s;
}

nav ul li a:active {
    color: #ffffff;
    transform: translateY(0);
}

.lang-toggle {
    margin-left: 1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(103, 232, 249, 0.3);
}

.lang-toggle .lang-sep {
    margin: 0 0.4rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.lang-toggle .lang-option {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    transition: color 0.2s;
}

.lang-toggle .lang-option.lang-active {
    color: #67e8f9;
    font-weight: 600;
}

.lang-toggle:hover .lang-option {
    color: rgba(255, 255, 255, 0.7);
}

.lang-toggle:hover .lang-option.lang-active {
    color: #67e8f9;
}

main.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 400px;
    padding: 5rem 1.5rem 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-tag {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #67e8f9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 520px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f0f0f;
    background: linear-gradient(135deg, #a78bfa 0%, #67e8f9 100%);
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hero-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* About section */
.about-section {
    width: 100%;
    max-width: 700px;
    padding: 4rem 2rem;
    margin: 0 auto;
    color: #e5e5e5;
    text-align: center;
}

.about-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-intro {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

/* Services section */
.services-section {
    width: 100%;
    max-width: 800px;
    padding: 4rem 2rem;
    margin: 0 auto;
    color: #e5e5e5;
    text-align: center;
}

.services-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-intro {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.service-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact section */
.contact-section {
    width: 100%;
    max-width: 600px;
    padding: 4rem 2rem;
    margin: 0 auto;
    color: #e5e5e5;
}

.contact-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-intro {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input {
    min-height: 2.75rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #a78bfa;
    background: rgba(255, 255, 255, 0.08);
}

.contact-submit {
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    min-height: 2.75rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #a78bfa 0%, #67e8f9 100%);
    color: #0f0f0f;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.contact-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ========== Reszponzív ========== */
@media (max-width: 900px) {
    header {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        padding-top: max(0.6rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        min-height: auto;
    }

    header h1 {
        font-size: 1.2rem;
        margin-left: 0;
        order: 1;
        width: 100%;
        text-align: center;
    }

    header nav {
        order: 2;
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.35rem;
        justify-content: center;
    }

    nav ul li a {
        min-width: auto;
        min-height: 2.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .lang-toggle {
        margin-left: 0;
        margin-top: 0.2rem;
        order: 3;
        width: auto;
        min-width: auto;
        text-align: center;
        min-height: 2.75rem;
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        height: auto;
    }

    main.hero {
        padding: 5.5rem 1rem 2rem;
        padding-top: max(5.5rem, calc(4rem + env(safe-area-inset-top)));
        min-height: 360px;
        min-height: 50vh;
    }

    .hero-tag {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-cta {
        padding: 0.75rem 1.5rem;
        min-height: 2.75rem;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .about-section,
    .services-section,
    .contact-section {
        padding: 2.5rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .about-title,
    .services-title,
    .contact-title {
        font-size: 1.5rem;
    }

    .about-intro,
    .services-intro {
        font-size: 1rem;
    }

    .service-card {
        padding: 1.25rem 1rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem 0.9rem;
        font-size: 16px; /* zoom elkerülése iOS-en */
    }

    .contact-submit {
        padding: 0.75rem 1.25rem;
        min-height: 2.75rem;
        font-size: 0.95rem;
    }

    footer {
        padding: 1rem 0.75rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        font-size: 0.85rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.05rem;
    }

    nav ul li a {
        font-size: 0.875rem;
        padding: 0.5rem 0.6rem;
        min-height: 2.5rem;
    }

    .lang-toggle {
        min-height: 2.5rem;
        font-size: 0.85rem;
    }

    main.hero {
        padding: 5rem 0.75rem 1.5rem;
        padding-top: max(5rem, calc(3.5rem + env(safe-area-inset-top)));
    }

    .hero-title {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    }

    .hero-cta {
        min-height: 2.5rem;
        padding: 0.65rem 1.25rem;
    }

    .about-section,
    .services-section,
    .contact-section {
        padding: 2rem 0.75rem;
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .about-title,
    .services-title,
    .contact-title {
        font-size: 1.35rem;
    }

    .contact-submit {
        min-height: 2.5rem;
    }
}

/* Nagyon kis képernyők */
@media (max-width: 380px) {
    header h1 {
        font-size: 0.95rem;
    }

    nav ul li a {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }

    main.hero {
        padding-top: max(4.5rem, calc(3rem + env(safe-area-inset-top)));
    }

    .hero-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .about-section,
    .services-section,
    .contact-section {
        padding: 1.5rem 0.5rem;
    }

    .about-title,
    .services-title,
    .contact-title {
        font-size: 1.2rem;
    }
}