/* ==========================================================================
   PETKO PORTFÓLIÓ – styles.css
   ==========================================================================
   Tartalomjegyzék:
   1. Alapbeállítások (reset, body, container)
   2. Navigáció
   3. Hero (főoldal fejléc)
   4. Szekciók (általános, Rólam, Készségek, Projektek, Kapcsolat)
   5. Aloldalak (Videók, Képek, Designer)
   6. Lightbox, Scroll-to-top, Animációk
   7. Reszponzív (mobil)
   ========================================================================== */

/* --- 1. Alapbeállítások --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Navigáció --- */
.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: calc(100% - 24px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.28));
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.4), 0 0 0 1px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px) saturate(175%);
    -webkit-backdrop-filter: blur(20px) saturate(175%);
    z-index: 1000;
    padding: 0.35rem 0.55rem;
    transition: all 0.25s ease;
}

.navbar.navbar-hidden {
    transform: translate(-50%, -160%);
    opacity: 0;
    pointer-events: none;
}

.nav-container {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.25rem 0.35rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-logo {
    display: none;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #281754;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #1d4ed8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
}

.nav-link {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-weight: bold;
    padding: 0.4rem 0.2rem;
}

.nav-link:hover {
    color: #bfdbfe;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #bfdbfe;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #f8fafc;
    margin: 3px 0;
    transition: 0.3s;
}

/* --- 3. Hero szekció --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #4a3f73 0%, #3d3560 50%, #352b52 100%);
    color: white;
    padding-top: 20px;
    overflow: hidden;
}

/* Buborékok – lila téma */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bubble {
    position: absolute;
    left: var(--bubble-x, 50%);
    top: var(--bubble-y, 50%);
    width: var(--bubble-size, 100px);
    height: var(--bubble-size, 100px);
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(220, 210, 255, 0.12) 40%,
        rgba(160, 140, 220, 0.06) 70%,
        transparent 100%
    );
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: heroBubbleFloat 12s ease-in-out infinite;
    animation-delay: var(--bubble-delay, 0s);
}

@keyframes heroBubbleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(15px, -25px) scale(1.05);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 15px) scale(0.95);
        opacity: 0.5;
    }
    75% {
        transform: translate(10px, 20px) scale(1.02);
        opacity: 0.7;
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    width: min(980px, 90vw);
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-content {
    animation: heroFadeIn 1s ease-out;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #fbbf24;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fbbf24;
    animation: underline 2s ease-in-out infinite;
}

@keyframes underline {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.8); }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.92;
    line-height: 1.65;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}


/* --- 4. Szekciók (általános) --- */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #fbbf24);
    border-radius: 2px;
}

/* Rólam */
.about {
    background: #f8fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #6b7280;
    font-weight: 500;
}

/* Készségek */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: #374151;
}

.skill-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 4px;
    transition: width 1s ease;
    animation: fillBar 2s ease-out;
}

@keyframes fillBar {
    from { width: 0; }
}

/* Projektek */
.projects {
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(400px, 1fr));
    gap: 4.5rem;
    justify-content: center;
    padding: 0 2rem;
    max-width: 1480px;
    margin: 0 auto;
    align-items: stretch;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    text-align: center;
}

.project-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
}

.project-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
}

/* Feltűnő gomb: megtekintés */
.project-link--btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #281754 0%, #3b2b6b 100%);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link--btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 23, 84, 0.4);
}

/* Kapcsolat */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 0 1rem;
    align-items: start;
}

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

.contact-email {
    font-size: 1rem !important;
    color: #374151 !important;
}

.contact-email a {
    font-size: 1.15rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: #1d4ed8;
}

.contact-form {
    width: 100%;
    max-width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2.25rem;
    background: #f8fafc;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.75rem;
    color: #2563eb;
    width: 48px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #1f2937;
}

.contact-item p {
    font-size: 1.05rem;
    color: #6b7280;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Vissza a portfólióra (Videók + Képek oldal) */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.page-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.page-logo-img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
}

.back-to-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #281754;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0;
    transition: color 0.2s ease, gap 0.2s ease;
}

.back-to-portfolio:hover {
    color: #2563eb;
    gap: 0.65rem;
}

.back-to-portfolio i {
    font-size: 0.95rem;
}

/* Gépen: bal felső sarok, ne a címmel egy sorban */
@media (min-width: 769px) {
    .back-to-portfolio {
        position: fixed;
        left: 32px;
        top: 28px;
        margin: 0;
        z-index: 50;
        background: #fff;
        padding: 0.35rem 0.2rem;
    }
}

/* --- 5. Aloldalak --- */

/* Videók oldal */
.videos-page {
    padding-top: 100px;
    padding-bottom: 80px;
}

.videos-page-intro {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.video-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Thumbnail indexkép (YouTube) – play gomb mint a designer oldalon */
.video-thumb-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a1a;
}

.video-thumb-link::before,
.video-thumb-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Üveghatású kör */
.video-thumb-link::before {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Play háromszög */
.video-thumb-link::after {
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    transform: translate(calc(-50% + 4px), -50%);
    z-index: 3;
}

.video-thumb-link:hover::before {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.video-thumb-link:hover .video-thumb-img {
    transform: scale(1.03);
}

.video-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0.75rem 1rem 0;
    line-height: 1.3;
    text-align: center;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    width: 100%;
    justify-content: center;
}

.video-link:hover {
    color: #1d4ed8;
}

/* Képek oldal – galéria */
.gallery-page {
    padding-top: 100px;
    padding-bottom: 80px;
}

.gallery-intro {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.gallery-item {
    background: #fafafa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gallery-img-wrap {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    font: inherit;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-caption {
    font-size: 1.1rem;
    font-weight: 600;
    color: #281754;
    text-align: center;
    padding: 1rem 1.25rem;
    margin: 0;
}

.gallery-caption--red {
    color: #b91c1c;
}

.gallery-caption--blue {
    color: #1d4ed8;
}

/* --- 6. Lightbox (képnagyítás) --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.lightbox-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}

.lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: auto;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Lábléc */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fbbf24;
}

/* Designer oldal – videó galéria és modal */
body.page-designer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page-designer main {
    flex: 1;
}

body.page-designer footer.footer {
    flex-shrink: 0;
}

.designer-page .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 5.5rem 0 2rem;
    max-width: 350px;
    margin: 0 auto;
}

.designer-page .gallery-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.designer-page .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.gallery-video-item .project-image {
    padding: 0;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    position: relative;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-video-item .project-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-video-item .project-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    transform: translate(calc(-50% + 4px), -50%);
    z-index: 3;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-video-item .project-image:hover::before {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-video-item video,
.gallery-video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-video-item .project-content {
    padding: 1.5rem;
    text-align: center;
}

.gallery-video-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #1e293b;
}

.gallery-video-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Videó modal (designer oldal) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.9);
}

.modal-content video,
.modal-content iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border: none;
    display: block;
}

/* Natív videó csak mobilon kell (iOS-en az iframe gyakran nem játszik) */
.modal-native-video {
    display: none;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- 7. Reszponzív (mobil) – a gépes stílusokat nem írja felül --- */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    section {
        padding: 36px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    /* Telefonon nincs navbar – a főoldal görgethető, az aloldalakon van vissza gomb */
    .navbar {
        display: none !important;
    }

    .hero {
        padding-top: 24px;
        padding-bottom: 10vh;
        min-height: 100svh;
    }

    .hero-container {
        padding: 0 16px;
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        white-space: normal;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-top: 0.75rem;
        padding: 0 0.25rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        max-width: none;
        margin: 1.35rem auto 0;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        text-align: center;
        flex: 1;
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0;
        max-width: 100%;
    }

    .project-card,
    .project-content {
        min-width: 0;
    }

    .project-content {
        padding: 1.1rem 1rem 1.2rem;
    }

    .project-image {
        height: 140px;
        font-size: 2.75rem;
    }

    .gallery-video-item .project-image {
        height: auto !important;
        width: 100%;
    }

    .designer-page .gallery-grid {
        max-width: 100%;
        width: 100%;
        padding: 4rem 0 0;
    }

    .project-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .project-content p {
        margin-bottom: 0.9rem;
        font-size: 0.95rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .skill-category h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }

    .skill-items {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem;
    }

    .skill-item {
        width: auto;
    }

    .skill-bar {
        display: none;
    }

    .skill-name {
        display: inline-block;
        background: #eef2ff;
        color: #281754;
        padding: 0.4rem 0.8rem;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 500;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .stat {
        padding: 0.85rem 0.35rem;
    }

    .stat h3 {
        font-size: 1.35rem;
        margin-bottom: 0.2rem;
    }

    .stat p {
        font-size: 0.7rem;
        line-height: 1.25;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0.5rem 0 0;
        width: 100%;
        max-width: 100%;
    }

    .contact-info {
        gap: 0.55rem;
    }

    .contact-item {
        padding: 0.55rem 0.85rem;
        gap: 0.7rem;
        border-radius: 10px;
    }

    .contact-item:hover {
        transform: none;
    }

    .contact-item i {
        font-size: 1.05rem;
        width: 22px;
    }

    .contact-item h3 {
        font-size: 0.88rem;
        margin-bottom: 0.05rem;
    }

    .contact-item p {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .contact-form {
        padding: 1.25rem 1.1rem 1.4rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

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

    .form-group label {
        display: block;
        margin-bottom: 0.4rem;
        font-size: 0.95rem;
        font-weight: 600;
        color: #374151;
    }

    .contact-form .btn {
        width: 100%;
    }

    .videos-page,
    .gallery-page {
        padding-top: 132px;
        padding-bottom: 40px;
    }

    .designer-page {
        padding-top: 188px;
        padding-bottom: 48px;
    }

    .videos-page .section-title,
    .gallery-page .section-title {
        margin-top: 0.25rem;
        margin-bottom: 1.75rem;
    }

    .designer-page .section-title {
        margin-top: 0.5rem;
        margin-bottom: 6.5rem;
    }

    .gallery-intro {
        margin-bottom: 2rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .back-to-portfolio {
        position: fixed !important;
        top: max(12px, env(safe-area-inset-top, 0px));
        left: 14px;
        z-index: 1200;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin: 0;
        background: #281754;
        color: #fff !important;
        border-radius: 50%;
        box-shadow: 0 6px 18px rgba(40, 23, 84, 0.28);
        left: 14px !important;
    }

    .back-to-portfolio:hover {
        color: #fff !important;
        gap: 0;
        background: #3b2b6b;
    }

    .back-to-portfolio-text {
        display: none;
    }

    .back-to-portfolio i {
        font-size: 0.9rem;
        margin: 0;
    }

    .modal {
        padding: 0.75rem;
        align-items: center;
    }

    .modal-content {
        max-width: min(100%, 420px);
        max-height: 85svh;
        width: 100%;
        border-radius: 16px;
        aspect-ratio: 9 / 16;
    }

    .modal-content iframe {
        display: none;
    }

    .modal-native-video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #000;
        border: none;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .lightbox {
        padding: 1rem;
    }

    .footer {
        padding: 0.9rem 0 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.45rem;
    }

    .footer-content p {
        font-size: 0.78rem;
        opacity: 0.75;
        line-height: 1.3;
    }

    .social-links a {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
        white-space: normal;
        line-height: 1.25;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .gallery-intro,
    .videos-page-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .video-thumb-link::before {
        width: 56px;
        height: 56px;
    }

    .video-thumb-link::after {
        border-left-width: 16px;
        border-top-width: 10px;
        border-bottom-width: 10px;
        transform: translate(calc(-50% + 3px), -50%);
    }

    .gallery-video-item .project-image::before {
        width: 56px;
        height: 56px;
    }

    .gallery-video-item .project-image::after {
        border-left-width: 16px;
        border-top-width: 10px;
        border-bottom-width: 10px;
        transform: translate(calc(-50% + 3px), -50%);
    }
}

/* --- Animációk --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Felgörgetés gomb – se gépen, se telefonon */
.scroll-to-top {
    display: none !important;
}
