/* ==========================================================================
   Alap beállítások & Változók
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f7f7f7;
    --bg-muted: #eeeeee;
    --text: #111111;
    --text-soft: #555555;
    --border-subtle: #dddddd;
    --accent: #000000;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BIZTONSÁG & KÉPVÉDELEM
   ========================================================================== */
img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* A kép nem kattintható, az alatta lévő keret kapja az eseményt */
}

.protect-me {
    position: relative;
    display: block;
    width: 100%;
}

.protect-me::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0,0,0,0);
    cursor: default;
}

/* ==========================================================================
   Layout & Konténerek
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-muted {
    background-color: var(--bg-muted);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    letter-spacing: -0.02em;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: 100px 0;
    opacity: 0.6;
}

/* ==========================================================================
   Fejléc (Navigáció)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(247, 247, 247, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.logo span {
    font-size: 0.65em;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: var(--text-soft);
    display: block;
    margin-top: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
}

/* ==========================================================================
   Hero (Rólam) szekció
   ========================================================================== */
.hero {
    padding-top: 80px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-label {
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 40px;
}

.bio-text p {
    margin-bottom: 1.8rem;
    color: var(--text-soft);
    font-size: 1.1rem;
    max-width: 600px;
}

.achievements-section {
    margin: 50px 0;
}

.achievements-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    color: var(--text);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.achievements-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.achievements-list li {
    position: relative;
    padding-left: 20px;
}

.achievements-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--border-subtle);
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.btn-primary, .btn-ghost {
    padding: 1.1rem 2.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary {
    background: var(--text);
    color: #fff;
    border: 1px solid var(--text);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: #fff;
    border-color: var(--text);
    transform: translateY(-3px);
}

.hero-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

 /* ==========================================================================
   Portfólió Szekciók (JAVÍTOTT KÉPMEGJELENÍTÉS)
   ========================================================================== */
.portfolio-category {
    margin-bottom: 20px;
}

.concept-text {
    max-width: 100%;
    margin-bottom: 40px;
}

.concept-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.concept-text p {
    margin-bottom: 1.5rem;
    color: var(--text-soft);
    font-size: 1.1rem;
    line-height: 1.8;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.work-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
}

.work-image-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ebebeb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.work-card:hover .work-image {
    transform: scale(1.05);
}

.work-meta {
    margin-top: auto;
    padding: 20px 5px;
}

.work-info {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ==========================================================================
   Kapcsolat & Lábléc
   ========================================================================== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 25px;
}

.contact-details {
    background: #fff;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.contact-details a {
    font-size: 1.4rem;
    color: var(--text);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    transition: opacity 0.3s;
}

.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* ==========================================================================
   Reszponzív (Mobil optimalizálás)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-inner, .contact {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero h1 { font-size: 3rem; }
    .hero-image-frame { order: -1; }
    .achievements-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1600;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #f7f7f7;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 1.5rem;
        display: none;          /* ALAP: rejtve */
        z-index: 1500;
    }

    /* FIGYELEM: itt NEM .nav-links.open van, hanem body.menu-open .nav-links! */
    body.menu-open .nav-links {
        display: flex;          /* HAMBURGER NYITVA → MENÜ LÁTSZIK */
    }
}


@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .hero h1 { font-size: 2.5rem; }
    .portfolio-grid { gap: 30px; }
    .contact-details { padding: 30px 20px; }
    .concept-text h3 { font-size: 1.8rem; }
}

/* Fókusz állapot az akadálymentesítésért */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
/* Lazy loading támogatás hosszú oldalakon */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}
img[loading="lazy"] {
    opacity: 0;
}
img.loaded {
    opacity: 1;
}
/* Meghívó Modális Stílusok – mobilbarát */
.modal {
    display: none; /* JS flexre állítja, amikor megnyílik */
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow: auto; /* ha a kép magas, lehessen görgetni */
}

.modal-content {
    position: relative;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
}

.invitation-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

/* Bezáró X */
.close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 0.7;
}

/* Ne rakjunk védő overlayt a modál kép elé */
.modal img {
    pointer-events: auto;
}
.modal .protect-me::after {
    display: none;
}

/* Kisebb mobil finomhangolás */
@media (max-width: 768px) {
    .close-modal {
        font-size: 40px;
    }
}





