:root {
    --bg: #ffffff;
    --card-bg: #ffffff;
    --border-soft: #e5e7eb;
    --border-strong: #d1d5db;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #111827;
    --accent-soft: #9ca3af;
    --accent-yellow: #f5c94c;
    --pill-bg: #f9fafb;
}

/* Google font for címsorok */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&display=swap');

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg);
    min-height: 100vh;
}

/* ==== Globális layouthoz ================================================= */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    margin: 2.5rem auto 4rem;
}

/* Kártya-szerű dobozok a fő tartalomhoz – de hagyjuk a háttérrel egy síkban */
.intro-page .container,
.about-page .container,
.contact-page .container {
    background: var(--card-bg);
    border-radius: 0;
    padding: 3.5rem 0 3rem;
    border: none;
    box-shadow: none;
}

/* ==== Fejléc / Navigáció ================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.4rem 2rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    font-size: 0.95rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.08em;
    font-weight: 500;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
    opacity: 0.85;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent);
    border-color: var(--accent-yellow);
    opacity: 1;
}

/* ==== Oldal-váltó logika ================================================= */

.page {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==== Címsor stílusok ==================================================== */

.section-title {
    font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #333333;
    margin-bottom: 0.4rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-yellow);
    margin-top: 0.7rem;
}

/* A régi elválasztó vonalat nem használjuk */
.title-divider {
    display: none;
}

/* Nagy név + pozíció az első blokkon belül */

.hero-name {
    font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 3rem;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: #333333;
    line-height: 1.15;
    margin-top: 0.5rem;
}

.hero-role {
    font-size: 1.05rem;
    margin-top: 0.9rem;
    color: #4b5563;
}

.hero-role::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-yellow);
    margin-top: 0.9rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.6rem;
}

.hero-meta-item {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.4rem 0.85rem 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--pill-bg);
    color: var(--text-muted);
}

/* ---- Bekezdések általános stílusa -------------------------------------- */

p {
    font-size: 0.96rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    max-width: 620px;
}

p:last-child {
    margin-bottom: 0;
}

/* Kiemelt idézet / doboz */

.highlight-box {
    margin: 1.9rem 0;
    padding: 1.5rem 1.6rem;
    border-radius: 14px;
    border-left: 4px solid var(--accent-yellow);
    border-top: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: #fdfcf7;
}

.highlight-box h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

/* ==== Bemutatkozó (intro) blokk ========================================= */

.intro-page {
    padding-top: 2.5rem;
}

.intro-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 3.5rem;
    align-items: center;
}

/* Bal oszlop: fotó + név + alapadatok */
.intro-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img-container {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.8rem;
    position: relative;
    background: #f3f4f6;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Jobb oszlop: szöveges bemutatkozás */
.intro-text {
    padding-left: 1rem;
}

/* ==== Önéletrajz (about) oldal ========================================== */

.about-page {
    padding-top: 2.5rem;
}

.about-page .container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

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

.about-text {
    max-width: 680px;
}

/* Vékony szakasz elválasztó */

.section-divider {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 2.8rem 0;
}

/* Képzettség, tapasztalat, készségek */

.education-section,
.experience-section,
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 1.9rem;
    margin-top: 0.6rem;
}

.education-list,
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Tanulmány / munkatapasztalat elemek */

.education-item,
.experience-item {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #f3f4f6;
}

.education-item:last-child,
.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.education-item h4,
.experience-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.period {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-soft);
    margin-bottom: 0.4rem;
}

/* Készség-kártyák */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.3rem;
}

.skill-item {
    padding: 1.1rem 1.2rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: #fafaf9;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.skill-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    border-color: #e5e7eb;
}

/* ==== Kapcsolat oldal ==================================================== */

.contact-page {
    padding-top: 2.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

/* Bal oldali infó-kártyák */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: none;
}

.contact-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.contact-details h4 {
    font-size: 0.96rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Jobb oszlop – űrlap */

.contact-content > div:last-child,
.contact-form-card {
    padding: 1.4rem 1.6rem 1.6rem;
    border-radius: 0;
    border: none;
    background: transparent;
}

/* Form elemek */

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 0;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    font: inherit;
    font-size: 0.94rem;
    color: var(--text-main);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4b5563;
    box-shadow: 0 0 0 1px #4b5563;
}

/* Küldés gomb */

.email-button {
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.9rem;
    border-radius: 0;
    border: none;
    background: #333333;
    color: #f9fafb;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.08em;
    transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.email-button:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
}

/* ==== Láb rész ========================================================== */

footer {
    margin: 4rem auto 2.5rem;
    padding: 0 2rem;
    max-width: 1100px;
    font-size: 0.82rem;
    color: var(--accent-soft);
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

footer p {
    text-align: left;
}

/* ==== Responsív töréspontok ============================================= */

@media (max-width: 900px) {
    nav {
        padding-inline: 1.5rem;
    }

    .intro-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
        text-align: center;
    }

    .intro-text {
        padding-left: 0;
    }

    .hero-meta {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

    .main-content {
        margin-top: 2.8rem;
    }

    footer {
        margin-top: 3rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.3rem;
    }

    nav {
        padding-inline: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .nav-links {
        gap: 1.1rem;
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    .profile-img-container {
        width: 200px;
        height: 200px;
    }

    .hero-name {
        font-size: 2.4rem;
        text-align: center;
    }

    .hero-role {
        text-align: center;
    }

    .section-title {
        font-size: 1.9rem;
    }
}

/* Nem használunk mobil menüt */
.mobile-menu-btn {
    display: none;
}


/* Önéletrajz oldal speciális margók és listastílusok */
.about-page .container {
    padding: 3.5rem 2.2rem 3rem;
}

/* Mobilon kissé szűkebb belső margó, de maradjon távol a szélektől */
@media (max-width: 640px) {
    .about-page .container {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }
}

/* Felsorolások az Önéletrajz oldalon */
.about-page ul {
    padding-left: 1.6rem;
    list-style: disc;
}

.about-page ul ul {
    padding-left: 1.6rem;
    list-style: circle;
}
