/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Animated radial background */
    background: radial-gradient(
        circle at left top,
        rgb(11, 34, 61) 0%,
        rgb(7, 24, 43) 60%
    );

    background-size: 200% 200%;
    animation: bgShift 40s ease-in-out infinite;
}

/* =========================================================
   BACKGROUND ANIMATION
========================================================= */

@keyframes bgShift {
    0%   { background-position: 0% 40%; }
    50%  { background-position: 100% 60%; }
    100% { background-position: 0% 40%; }
}

/* Glow overlay */
.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background: radial-gradient(
        circle at 20% 20%,
        rgba(59,130,246,0.12),
        transparent 45%
    );

    animation: glowMove 30s ease-in-out infinite alternate;
}

@keyframes glowMove {
    0%   { transform: translate(0px, 0px); }
    100% { transform: translate(120px, 80px); }
}

/* =========================================================
   ANIMATED FRAME BORDER
========================================================= */

.animated-frame {
    position: fixed;
    inset: 20px;
    pointer-events: none;
    z-index: 5;
    border-radius: 12px;
}

.animated-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #3b82f6,
        transparent
    );
    background-size: 300% 100%;
    animation: runBorder 10s linear infinite;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes runBorder {
    0%   { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

/* =========================================================
   CONTENT WRAPPER
========================================================= */

.main-content {
    position: relative;
    z-index: 10;
}

/* =========================================================
   HAMBURGER BUTTON
========================================================= */

.menu-button {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-button:hover {
    background: rgba(255,255,255,0.12);
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: 0.3s ease;
}

/* =========================================================
   LANGUAGE SWITCH
========================================================= */

.language-switch {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 50;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: right;
    transition: opacity 0.3s ease;
}

.language-switch a {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.language-switch a:hover {
    color: #ffffff;
}

.language-switch a.active {
    color: #ffffff;
    font-weight: 600;
}

.language-switch a::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    margin-right: 6px;
    transition: background 0.3s ease;
}

.language-switch a.active::before {
    background: #ffffff;
}

/* Mobile horizontal switch */
@media (max-width: 768px) {
    .language-switch {
        display: flex;
        gap: 14px;
    }

    .language-switch a {
        margin-bottom: 0;
    }
}

/* =========================================================
   GRID BOXES
========================================================= */

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 40px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 60px 24px;
    }
}

.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 16px;
    /* border: 1px solid rgba(255,255,255,0.08); */
}

.grid-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.7s ease, filter 0.7s ease;
}

.grid-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.grid-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.5s ease;
}

.grid-item:hover::after {
    background: rgba(0,0,0,0.15);
}

.grid-title {
    position: absolute;
    bottom: 24px;
    left: 24px;
    font-size: 20px;
    letter-spacing: 1px;
    transition: transform 0.4s ease;
}

.grid-item:hover .grid-title {
    transform: translateX(6px);
}
/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    padding: 140px 40px 60px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.page-hero p {
    max-width: 600px;
    font-size: 18px;
    opacity: 0.8;
}
/* =========================================================
   CONTENT BLOCK
========================================================= */

.content-block {
    max-width: 1100px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
}

/* =========================================================
   GRID WRAPPER FRAME
========================================================= */

/* .grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(4px);
} */
/* =======================================
   CONTAINER
======================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =======================================
   HERO
======================================= */
.section-hero {
    padding: 160px 0 100px 0;
}

.section-hero h1 {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 30px;
}

.section-hero p {
    max-width: 600px;
    font-size: 20px;
    opacity: 0.8;
}

/* =======================================
   SPLIT SECTION
======================================= */
.section-split {
    padding: 120px 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: 18px;
}

.split-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.split-content p {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.85;
}

/* =======================================
   STATS
======================================= */
.section-stats {
    padding: 120px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.section-stats h3 {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 10px;
}

/* =======================================
   CTA
======================================= */
.section-cta {
    padding: 140px 0;
    text-align: center;
}

.section-cta h2 {
    font-size: 42px;
    margin-bottom: 40px;
}

.btn-primary {
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
}

.btn-primary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
@media (max-width: 768px) {

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

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

    .section-hero h1 {
        font-size: 40px;
    }
}
/* =======================================
   CONTACT LAYOUT
======================================= */

.section-contact {
    padding: 120px 0 160px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-divider {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 30px 0;
}

.muted {
    opacity: 0.6;
}

/* =======================================
   FORM
======================================= */

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3b82f6;
}

.contact-form textarea {
    resize: none;
}

.btn-primary {
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-primary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* =======================================
   MOBILE
======================================= */

@media (max-width: 768px) {

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

}
/* =======================================
   MENU PANEL
======================================= */

.menu-panel {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 320px;
    background: rgba(7,24,43,0.98);
    padding: 140px 40px 40px 40px;
    z-index: 40;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.menu-nav a {
    font-size: 20px;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: 0.3s ease;
    line-height: 1.4;
}

.menu-nav a:hover {
    color: #ffffff;
}

.menu-nav a.active {
    color: #ffffff;
    position: relative;
}

.menu-nav a.active::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
}
/* =======================================
   HEADER
======================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 60px;
    z-index: 20;
    pointer-events: none;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    letter-spacing: 1px;
    pointer-events: auto;
}

.header-tagline {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* =======================================
   FOOTER
======================================= */

.site-footer {
    margin-top: 140px;
    padding: 60px 60px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left {
    opacity: 0.6;
    font-size: 14px;
}

.footer-links a {
    margin-right: 24px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}
    /* --- HERO ADVANCED --- */
    .hero-advanced{
        position: relative;
        overflow: hidden;
        padding: 96px 0 56px;
        /* ha van globál hero gradiented, ez igazodik hozzá */
        background: radial-gradient(1200px 700px at 20% 20%, rgba(59,130,246,0.25), transparent 55%),
                    radial-gradient(900px 500px at 80% 30%, rgba(34,211,238,0.18), transparent 60%),
                    linear-gradient(180deg, rgba(2,6,23,1) 0%, rgba(2,6,23,0.92) 100%);
        color: #fff;
    }

    .hero-inner{
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 48px;
        align-items: center;
    }

    .hero-copy{ max-width: 680px; }

    .hero-title{
        font-size: clamp(36px, 4vw, 56px);
        line-height: 1.05;
        margin: 0 0 16px 0;
        letter-spacing: -0.02em;
    }

    .hero-subtitle{
        font-size: 18px;
        line-height: 1.6;
        margin: 0 0 28px 0;
        color: rgba(226,232,240,0.85);
        max-width: 58ch;
    }

    .hero-ctas{
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 22px;
    }

    .btn-primary, .btn-secondary{
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 18px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 600;
        transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
        will-change: transform;
    }

    .btn-primary{
        background: rgba(59,130,246,0.95);
        color: #fff;
        box-shadow: 0 12px 30px rgba(59,130,246,0.18);
    }
    .btn-primary:hover{
        transform: translateY(-1px);
        background: rgba(59,130,246,1);
        box-shadow: 0 16px 36px rgba(59,130,246,0.26);
    }

    .btn-secondary{
        background: rgba(255,255,255,0.04);
        color: rgba(248,250,252,0.92);
        border: 1px solid rgba(255,255,255,0.16);
        backdrop-filter: blur(10px);
    }
    .btn-secondary:hover{
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.30);
        background: rgba(255,255,255,0.06);
    }

    .btn-arrow{
        display: inline-block;
        transition: transform .18s ease;
    }
    .btn-primary:hover .btn-arrow{
        transform: translateX(2px);
    }

    .hero-lead{
        margin-top: 12px;
        opacity: 0.95;
    }

    /* --- GRID BG (subtle animated) --- */
    .hero-grid-bg{
        position: absolute;
        inset: 0;
        z-index: 1;
        opacity: 0.08; /* ez a kulcs: ne legyen erős */
        background-image:
            linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
        background-size: 44px 44px;
        transform: translateY(0);
        animation: heroGridMove 10s linear infinite;
        mask-image: radial-gradient(60% 55% at 30% 25%, #000 0%, transparent 70%);
    }

    @keyframes heroGridMove{
        from { transform: translateY(0); }
        to   { transform: translateY(44px); }
    }

    /* --- STATS CARD --- */
    .hero-stats-wrap{
        display: flex;
        justify-content: flex-end;
    }

    .hero-stats-card{
        width: min(360px, 100%);
        border-radius: 18px;
        padding: 22px 22px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.14);
        backdrop-filter: blur(14px);
        box-shadow: 0 30px 70px rgba(0,0,0,0.45);
        transform: translateY(0);
        animation: floatCard 5.5s ease-in-out infinite;
    }

    @keyframes floatCard{
        0%,100% { transform: translateY(0); }
        50%     { transform: translateY(-6px); }
    }

    .stat-row{
        padding: 14px 10px;
        border-radius: 14px;
    }
    .stat-row + .stat-row{
        margin-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.10);
        padding-top: 18px;
    }

    .stat-value{
        font-size: 34px;
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.05;
    }

    .stat-label{
        margin-top: 6px;
        font-size: 14px;
        color: rgba(226,232,240,0.70);
    }

    /* --- SCROLL CUE --- */
    .hero-scroll{
        position: absolute;
        left: 50%;
        bottom: 14px;
        transform: translateX(-50%);
        width: 34px;
        height: 52px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.03);
        display: inline-flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 10px;
        text-decoration: none;
        z-index: 2;
        transition: border-color .18s ease, transform .18s ease;
    }
    .hero-scroll:hover{
        border-color: rgba(255,255,255,0.30);
        transform: translateX(-50%) translateY(-1px);
    }
    .scroll-dot{
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: rgba(255,255,255,0.75);
        animation: scrollDot 1.4s ease-in-out infinite;
    }
    @keyframes scrollDot{
        0%   { transform: translateY(0); opacity: .85; }
        60%  { transform: translateY(16px); opacity: .35; }
        100% { transform: translateY(0); opacity: .85; }
    }

    /* --- RESPONSIVE --- */
    @media (max-width: 900px){
        .hero-advanced{ padding: 78px 0 46px; }
        .hero-inner{
            grid-template-columns: 1fr;
            gap: 28px;
        }
        .hero-stats-wrap{ justify-content: flex-start; }
        .hero-stats-card{ animation: none; } /* mobilon kevesebb “mozgas” */
        .hero-scroll{ display: none; }
    }

    @media (prefers-reduced-motion: reduce){
        .hero-grid-bg, .hero-stats-card, .scroll-dot{ animation: none !important; }
    }
.section-contact {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #fff;
}

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

.contact-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.contact-header p {
    color: rgba(226,232,240,0.7);
    margin-bottom: 40px;
}

.contact-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(226,232,240,0.8);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    transition: border-color .2s ease, background .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255,255,255,0.08);
}

.full-width {
    grid-column: span 2;
    margin-top: 20px;
}

.form-submit {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}
.custom-select {
    position: relative;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 40px 12px 14px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.custom-select select:focus {
    outline: none;
    border-color: #3b82f6;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255,255,255,0.6);
}
.service-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.service-selector input {
    display: none;
}

.service-card {
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    transition: all .2s ease;
    display: block;
}

.service-card:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}

.service-title {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 13px;
    color: rgba(226,232,240,0.65);
}

.admin-login-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.admin-login-panel.active {
    transform: translateX(0);
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
}

.admin-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* =======================================
   ADMIN PANEL CLEAN UI
======================================= */

.admin-login-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    max-width: 95%;

    background: linear-gradient(180deg, #0b223d 0%, #07182b 100%);
    border-left: 1px solid rgba(255,255,255,0.12);

    transform: translateX(100%);
    transition: transform 0.35s ease;

    z-index: 9999;
    display: flex;
    align-items: center;
}

.admin-login-panel.active {
    transform: translateX(0);
}

.admin-login-inner {
    width: 100%;
    padding: 48px 40px;
}

.admin-login-inner h3 {
    font-size: 26px;
    margin-bottom: 32px;
}

.admin-login-inner .form-group {
    margin-bottom: 22px;
}

.admin-login-inner label {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 6px;
    display: block;
}

.admin-login-inner input {
    width: 100%;
    padding: 12px 14px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;

    color: white;
}

.admin-login-inner input:focus {
    outline: none;
    border-color: #3b82f6;
}

.admin-login-inner .btn-primary {
    width: 100%;
    margin-top: 20px;
}
