/* Alap beállítások */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



body {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    background: #0b0b0f;

    color: #f5f5f5;

    line-height: 1.6;

}



a {

    color: inherit;

    text-decoration: none;

}



img {

    max-width: 100%;

    display: block;

}



/* Header */

.main-header {

    position: sticky;

    top: 0;

    z-index: 99999;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0.75rem 1.5rem;

    background: rgba(5, 5, 10, 0.95);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}



.logo span {

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    font-size: 0.9rem;

}



.main-nav {

    display: flex;

    gap: 1rem;

    font-size: 0.9rem;

}



.main-nav a {

    padding: 0.4rem 0.7rem;

    border-radius: 999px;

    transition: background 0.2s, color 0.2s;

}



.main-nav a:hover {

    background: rgba(255, 255, 255, 0.08);

}



.main-nav a.active {

    background: #ff4b8b;

    color: #fff;

}



/* Mobil menü */

.mobile-menu-toggle {

    display: none;

    font-size: 32px;

    cursor: pointer;

    padding: 10px;

    user-select: none;

    color: white;

    z-index: 100000;

}



@media (max-width: 900px) {

    .main-nav {

        position: absolute;

        top: 70px;

        right: 0;

        background: #111;

        width: 220px;

        flex-direction: column;

        padding: 15px 0;

        display: none;

        border-left: 2px solid #333;

        border-bottom: 2px solid #333;

        z-index: 9999;

    }



    .main-nav a {

        padding: 12px 20px;

        display: block;

        width: 100%;

        border-bottom: 1px solid #222;

    }



    .main-nav.active {

        display: flex;

    }



    .mobile-menu-toggle {

        display: block;

    }

}



/* HERO */

.hero {

    min-height: 70vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 3rem 1.5rem;

    background: radial-gradient(circle at top, #1b1b2f 0, #050509 55%, #000 100%);

    text-align: center;

}



.hero-content {

    max-width: 800px;

}



.hero h1 {

    font-size: clamp(2.4rem, 4vw, 3.4rem);

    margin-bottom: 1rem;

}



.hero p {

    font-size: 1rem;

    color: #c7c7d9;

    margin-bottom: 1.5rem;

}



/* Gombok */

.btn-primary,

.btn-secondary {

    display: inline-block;

    padding: 0.7rem 1.4rem;

    border-radius: 999px;

    font-size: 0.9rem;

    font-weight: 500;

    cursor: pointer;

    border: none;

}



.btn-primary {

    background: linear-gradient(135deg, #ff4b8b, #ff9f4b);

    color: #fff;

}



.btn-secondary {

    background: transparent;

    color: #f5f5f5;

    border: 1px solid rgba(255, 255, 255, 0.2);

}



.btn-primary:hover,

.btn-secondary:hover {

    opacity: 0.9;

}



/* Szekciók */

.section {

    padding: 3rem 1.5rem;

}



.section-inner {

    max-width: 1100px;

    margin: 0 auto;

}



/* Galéria */

.gallery-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

    gap: 1rem;

    margin-top: 1.5rem;

}



.gallery-item {

    background: linear-gradient(135deg, #1f1f2f, #151520);

    border-radius: 0.75rem;

    padding: 2.5rem 1rem;

    text-align: center;

    font-size: 0.9rem;

    color: #dcdcf0;

    border: 1px solid rgba(255, 255, 255, 0.05);

}



/* Szolgáltatások */

.highlight {

    background: #141420;

}



.highlight-grid {

    display: grid;

    gap: 1.5rem;

}



/* Lábléc */

.main-footer {

    padding: 1.5rem;

    text-align: center;

    font-size: 0.8rem;

    color: #8f8fa5;

    border-top: 1px solid rgba(255, 255, 255, 0.05);

    margin-top: 2rem;

}

.page-header {
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(5, 6, 14, 0.96), rgba(5, 6, 14, 0.75));
}

.page-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 0.75rem;
}

.page-header p {
    max-width: 840px;
    margin: 0 auto;
    color: #c3c7d8;
    font-size: 1rem;
}

.section h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section p,
.section li,
.section .note {
    color: #c7c7d9;
    line-height: 1.8;
}

.text-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    padding-left: 0;
}

.text-list li {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-inner {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
}

.pricing-grid,
.gallery-grid,
.members-grid,
.photo-gallery,
.contact-layout {
    display: grid;
    gap: 1.2rem;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item,
.pricing-card,
.member-card,
.photo-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.gallery-item {
    min-height: 220px;
    display: grid;
    place-items: center;
    color: #d2d6e0;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(255, 75, 139, 0.18), rgba(79, 70, 229, 0.18));
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    justify-items: stretch;
}

.pricing-card {
    padding: 1.6rem;
}

.pricing-card-centered {
    grid-column: 2;
    justify-self: center;
    max-width: 320px;
    width: min(320px, 100%);
}

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

    .pricing-card-centered {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
        width: 100%;
    }
}

.pricing-card h2 {
    margin-bottom: 0.75rem;
}

.price {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #ffb5c6;
}

.pricing-card ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.8rem;
}

.pricing-card li {
    color: #c7c7d9;
}

.note {
    margin-top: 1.5rem;
    color: #9aa3b2;
}

.members-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.member-card {
    padding: 1.6rem;
}

.member-photo {
    min-height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, #183b63, #111);
    display: grid;
    place-items: center;
    color: #c7c7d9;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    color: #f5f5f5;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #eef2ff;
    padding: 1rem 1.15rem;
    font-size: 0.98rem;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255, 75, 139, 0.85);
    box-shadow: 0 0 0 4px rgba(255, 75, 139, 0.14);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.image-viewer {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.viewer-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111;
}

.viewer-frame img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.viewer-meta {
    display: flex;
    justify-content: center;
}

.viewer-caption {
    color: #d4d8ea;
    font-size: 1rem;
    max-width: 920px;
}

.viewer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.viewer-dots {
    display: flex;
    gap: 0.6rem;
}

.viewer-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
}

.viewer-dot.active {
    background: #ff4b8b;
    border-color: #ff4b8b;
}

.photo-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 10, 0) 0%, rgba(5, 5, 10, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.photo-card-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
}

/* --- TELJES KÉPES LIGHTBOX REFRESH --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000000; /* Minden felett legyen (még a másik modal felett is) */
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 95%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 75, 139, 0.8);
}

/* Galéria elemek finomítása a modalban, hogy látszódjon, kattinthatóak */
.gallery-item-clickable {
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.2s ease;
}
.gallery-item-clickable:hover {
    transform: scale(1.02);
}

/* Kifejezetten telefonos nézet a nagyított képhez */
@media (max-width: 760px) {
    .lightbox-image {
        max-width: 100%;
        max-height: 75vh; /* Hogy a kijelzőből függőlegesen se lógjon ki */
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.6rem;
    }
}

.calendar-wrapper iframe {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 650px;
    background: #05050b;
}

@media (max-width: 900px) {
    .contact-layout,
    .pricing-grid,
    .gallery-grid,
    .members-grid,
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .pricing-card-centered {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
        width: 100%;
    }

    .section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 760px) {
    .main-header {
        padding: 1rem 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .viewer-controls {
        flex-direction: column;
    }

    .viewer-frame img {
        aspect-ratio: 4 / 3;
    }
}

.work-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.work-type-card {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    gap: 0.75rem;
    text-align: center;
}

.work-type-card:hover {
    background: rgba(255, 75, 139, 0.12);
    border-color: rgba(255, 75, 139, 0.3);
    transform: translateY(-4px);
}

.work-type-icon { font-size: 3rem; line-height: 1; }
.work-type-card h3 { margin: 0; font-size: 1.3rem; }
.work-type-card p { margin: 0; color: #a9aec1; font-size: 0.95rem; }

.work-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    padding: 1.5rem;
}

.work-modal.active { display: flex; }

.work-modal-content {
    background: #0b0b0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2rem;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.work-modal-content h2 { margin-bottom: 1.5rem; }
.modal-gallery { display: grid; gap: 1.2rem; }
.modal-gallery.grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

@media (max-width: 760px) {
    .work-types-grid { grid-template-columns: 1fr; }
    .work-modal-content { padding: 1.5rem; }
    .modal-gallery.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}


.subcategory-btn {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.subcategory-btn:hover {
    background: rgba(255, 75, 139, 0.12);
    border-color: rgba(255, 75, 139, 0.3);
    transform: translateY(-4px);
}
.subcategory-btn h3 { margin: 0 0 0.5rem 0; font-size: 1.2rem; }
.subcategory-btn p { margin: 0; color: #a9aec1; font-size: 0.9rem; }



.video-wrapper {
    margin-top: 40px;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 arány */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.small-modal {
    max-width: 600px;
}

.small-modal .work-types-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.modal-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
}


/* --- KIS MODAL MÉRET (fotó + videó kategóriák) --- */
.small-modal {
    max-width: 600px;
}

/* --- Kategória gombok elrendezése modalban --- */
.small-modal .work-types-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* --- Fotó galéria képek nagy méretben --- */
.modal-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
}

/* --- Videó modal stílusok --- */
.video-wrapper {
    margin-top: 20px;
}

.video-container iframe {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    border: none;
}

/* Mobilon kisebb videó méret */
@media (max-width: 760px) {
    .video-container iframe {
        height: 260px;
    }
}

/* Mobilon a modal még mélyebbre tolva, hogy biztosan ne érjen a fejléchez */
@media (max-width: 760px) {
                            .work-modal-content {
                                margin-top: 150px !important; /* még lejjebb */
                            }
                        }

.modal-close {
        top: 1.5rem !important;
        right: 1.5rem !important;
        z-index: 99999999 !important; /* mindig legfelül legyen */
    }


    /* Mobilon a képnézegető gombjai egymás mellett legyenek */
@media (max-width: 760px) {

    .viewer-controls {
        flex-direction: column; /* pöttyök maradjanak külön sorban */
        gap: 1rem;
    }

    /* A két gomb egy sorban legyen */
    .viewer-prev,
    .viewer-next {
        width: 48%;
    }

    /* A gombok konténere vízszintes legyen */
    .viewer-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* A pöttyök külön sorban maradnak */
    .viewer-dots {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* A két gomb egy sorban */
    .viewer-prev {
        order: 1;
    }

    .viewer-next {
        order: 2;
    }
}


/* --- A pöttyök a kép alatt, de a gombok felett legyenek --- */
.viewer-meta {
    order: 1;
}

.viewer-dots {
    order: 2;
    margin-top: 0.8rem;
}

.viewer-controls {
    order: 3;
}


/* Mobilon a További munkáink gomb legyen lejjebb */
@media (max-width: 760px) {
    .gallery-preview .btn-secondary {
        margin-top: 1.8rem !important;
        display: inline-block;
    }
}


/* DESKTOP – pöttyök a két gomb között */
@media (min-width: 761px) {
    .viewer-controls {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
    }

    .viewer-prev,
    .viewer-next {
        width: auto;
    }

    .viewer-dots {
        order: 2 !important;
        margin: 0 1rem;
    }

    .viewer-prev {
        order: 1 !important;
    }

    .viewer-next {
        order: 3 !important;
    }
}

/* MOBIL – pöttyök a két gomb felett */
@media (max-width: 760px) {

    .viewer-controls {
        order: 3 !important;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }

    .viewer-prev,
    .viewer-next {
        width: 48%;
    }

    .viewer-dots {
        order: 2 !important;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 1rem 0;
    }
}


/* Mobilon a két gomb legyen középre igazítva egymás mellett */
@media (max-width: 760px) {

    .viewer-controls {
        order: 3 !important;
        display: flex;
        justify-content: center;   /* KÖZÉPRE HOZZA */
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
        width: 100%;
    }

    .viewer-prev,
    .viewer-next {
        width: auto;               /* ne legyen 50% széles */
        min-width: 120px;          /* szép méret */
        text-align: center;
    }

    .viewer-dots {
        order: 2 !important;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 1rem 0;
    }
}

#kapcsolat  {
    margin-top: 2rem;
}


#perfectionis {
    margin-top: 1.5rem;
    color: #ff4b8b;
}