@charset "utf-8";

/* =============================================
 *  RESET & ROOT VARIABLES
 *  ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #f8f9fc; /* Világos, tiszta kékesszürke háttér */
    --secondary-dark: #ffffff; /* Tiszta fehér háttér a szekcióknak */
    --accent-color: #e65100; /* Józsi élénk narancssárgája */
    --accent-gradient: linear-gradient(135deg, #b71c1c 0%, #e65100 100%); /* Piros-narancs átmenet */
    --text-light: #1f1f23; /* Kontrasztos sötétszürke folyószöveg */
    --text-gray: #5e6278; /* Diszkrét szürke a másodlagos információknak */
    --card-dark: #ffffff; /* Fehér kártyák */
}

/* =============================================
 *  BASE
 *  ============================================= */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

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

body {
    font-family: 'Barlow', sans-serif; /* Barlow betűtípus */
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Ez a 20px-es biztonsági sáv megakadályozza az oldalsó kilógást mobilon */
    box-sizing: border-box;
}

/* =============================================
 *  CUSTOM SCROLLBAR
 *  ============================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e1e4ed;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* =============================================
 *  HEADER / NAVIGATION (Világos dizájnra hangolva)
 *  ============================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.logo:hover img {
    transform: scale(1.02);
}

/* Nav menu linkek sötétítése a világos hátteren */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu a {
    font-family: 'Barlow Semi Condensed', sans-serif;
    color: rgba(30, 30, 35, 0.75);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(230, 81, 0, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.nav-menu a:hover {
    color: #000000;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.06) 0%, rgba(230, 81, 0, 0.02) 100%);
    border-color: rgba(230, 81, 0, 0.15);
    transform: translateY(-1px);
}

.nav-menu a:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.nav-menu a.active {
    color: var(--accent-color);
    background: rgba(230, 81, 0, 0.08);
    border-color: rgba(230, 81, 0, 0.18);
}

/* Hamburger gomb mobilra */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
}

/* =============================================
 *  HERO SECTION (Kissé világosabb képfedés)
 *  ============================================= */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), /* 0.7-ről 0.4-re csökkentve, így sokkal világosabb és tisztább a kép */
    url('header.jpg') center center / cover no-repeat;
    margin-top: 0;
    overflow: hidden;
}

.floating-accent {
    position: absolute;
    border: 1px solid rgba(230, 81, 0, 0.12); /* Sárgás-narancs díszítővonalak */
    animation: float 15s ease-in-out infinite;
}

.accent-1 {
    top: 20%;
    left: 10%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    animation-delay: 0s;
}

.accent-2 {
    bottom: 30%;
    right: 15%;
    width: 100px;
    height: 100px;
    border-radius: 30% 70% 70% 30%;
    animation-delay: -5s;
}

.accent-3 {
    top: 50%;
    right: 30%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation-delay: -10s;
    border-color: rgba(230, 81, 0, 0.08);
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, #e65100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #f0f0f5;
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--accent-gradient);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.5);
}

/* =============================================
 *  PORTFOLIO / COVERFLOW SECTION
 *  ============================================= */
.portfolio-section {
    padding: 100px 0;
    position: relative;
    background: var(--primary-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.section-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.coverflow-wrapper {
    width: 100%;
    position: relative;
    padding: 40px 0 80px;
}

.coverflow-container {
    width: 900px;
    max-width: 90vw;
    height: clamp(350px, 45vh, 500px);
    position: relative;
    transform-style: preserve-3d;
    margin: 0 auto;
    perspective: 1200px;
}

.coverflow-item {
    position: absolute;
    width: clamp(210px, 27vh, 300px);
    height: clamp(290px, 38vh, 420px);
    left: 50%;
    top: 50%;
    transform-origin: center center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.15); /* Lágyabb, természetesebb árnyék világos hátteren */
}

/* Tükröződés effekt világosítva */
.coverflow-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: scaleY(-1) translateY(1px);
    opacity: 0.08; /* Csökkentett opacitás a világos hátteren */
    filter: blur(3px);
    mask: linear-gradient(to bottom,
                          rgba(0, 0, 0, 0.3) 0%,
                          rgba(0, 0, 0, 0.1) 30%,
                          transparent 60%);
    -webkit-mask: linear-gradient(to bottom,
                                  rgba(0, 0, 0, 0.3) 0%,
                                  rgba(0, 0, 0, 0.1) 30%,
                                  transparent 60%);
    pointer-events: none;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.coverflow-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
                                rgba(0, 0, 0, 0.95) 0%,
                                rgba(0, 0, 0, 0.75) 50%,
                                rgba(0, 0, 0, 0.25) 80%,
                                transparent 100%);
    padding: 30px;
    transform: translateY(0);
}

.portfolio-category {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.portfolio-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-transform: uppercase;
}

.portfolio-description {
    font-size: 13.5px;
    color: #d1d1d6;
    line-height: 1.5;
}

/* Navigációs gombok */
.coverflow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.control-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #1f1f23;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.1);
}

/* Indikátor pöttyök */
.indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 30px;
    border-radius: 4px;
    background: var(--accent-color);
}

/* =============================================
 *  ABOUT SECTION (Rólam - világosított tónusok)
 *  ============================================= */
.about-section {
    padding: 100px 30px;
    background: var(--secondary-dark); /* Tiszta fehér háttér */
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h2 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    font-weight: 800;
    color: #1f1f23;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

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

.stat-item {
    text-align: center;
    background: var(--primary-dark); /* Halvány szürke */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-number {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    font-weight: 600;
}

/* =============================================
 *  SERVICES SECTION (Miért én? - Modern világos kártyák)
 *  ============================================= */
.services-section {
    padding: 100px 30px;
    background: var(--primary-dark);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--secondary-dark); /* Hófehér kártyák */
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 0.04;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 81, 0, 0.2);
    box-shadow: 0 15px 35px rgba(230, 81, 0, 0.06);
    background: #ffffff;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.08) 0%, rgba(230, 81, 0, 0.03) 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.service-icon i {
    font-size: 28px;
    color: var(--accent-color);
}

.service-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 18px;
    font-weight: 700;
    color: #1f1f23;
    text-transform: uppercase;
}

.service-description {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 25px;
}

.service-price {
    font-size: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* =============================================
 *  CONTACT SECTION (Kapcsolat - modern fehér kártyákkal)
 *  ============================================= */
.contact-section {
    padding: 100px 30px;
    background: var(--secondary-dark); /* Tiszta fehér háttér */
    border-top: 1px solid rgba(0, 0, 0, 0.02);
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 30px 15px;
    background: var(--primary-dark); /* Világos szürke */
    border-radius: 12px;
    transition: all 0.4s ease;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contact-item:hover::before {
    opacity: 0.05;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(230, 81, 0, 0.05);
    border-color: rgba(230, 81, 0, 0.18);
    background: #ffffff;
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.08) 0%, rgba(230, 81, 0, 0.03) 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.contact-item:hover .contact-icon {
    transform: rotate(5deg) scale(1.1);
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.15) 0%, rgba(230, 81, 0, 0.05) 100%);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.contact-value {
    color: #1f1f23;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.contact-item:hover .contact-value {
    color: var(--accent-color);
}

/* =============================================
 *  FOOTER (Elegáns, mély, kontrasztos sötétkék-fekete)
 *  ============================================= */
footer {
    background: #0d0d11; /* Kontrasztos mélysötét lábléc */
    padding: 60px 30px 50px 30px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
    color: #92929a; /* Világos alapszín a sötét háttérre */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- KÖZÖSSÉGI LINKEK (Ez tartja kordában a FB ikont!) --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #92929a;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-color);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

/* EZ A MEGOLDÁS: Fixen 20px-en tartja a Facebook ikont */
.social-link svg {
    width: 20px;
    height: 20px;
    fill: #92929a;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-link:hover svg {
    fill: #ffffff;
}

/* --- HANGSÚLYOS CIKK ÉS COPYRIGHT KIEMELÉSEK --- */

/* Hangsúlyos, ragyogó fehér főoldali copyright sor */
.footer-text-highlight {
    color: #ffffff; /* Tiszta fehér */
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.15rem; /* Nagyobb méret */
    font-weight: 700; /* Félkövér */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Készítők és technikai linkek stílusai */
.footer-credits {
    margin-top: 30px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #88888d;
}

.footer-author {
    color: #92929a;
    margin-bottom: 20px;
}

.credit-section {
    margin-top: 20px;
}

.credit-title {
    display: block;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--accent-color); /* Narancs/Piros WT színű kiemelés */
    margin-bottom: 5px;
}

.credit-link {
    color: #cbd5e1; /* Világos szürkéskék a tökéletes olvashatóságért */
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit-link:hover {
    color: var(--accent-color);
}

.credit-link-highlight {
    color: #ff6347; /* Kiemelt narancsos-piros superlative-tech link */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.credit-link-highlight:hover {
    color: #ffffff;
}

/* =============================================
 *  LOADING SCREEN (Világos változathoz finomítva)
 *  ============================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
 *  KEYFRAME ANIMÁCIÓK
 *  ============================================= */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25%       { transform: translateY(-20px) translateX(10px) rotate(90deg); }
    50%       { transform: translateY(10px) translateX(-10px) rotate(180deg); }
    75%       { transform: translateY(-10px) translateX(5px) rotate(270deg); }
}

@keyframes fall {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.8; }
    100% { transform: translateY(100vh) translateX(50px) rotate(360deg); opacity: 0; }
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
 *  MÉDIAKÉRDÉSEK (Rugalmas reszponzivitás)
 *  ============================================= */
@media (min-height: 900px) {
    .coverflow-container {
        height: clamp(450px, 50vh, 550px);
    }

    .coverflow-item {
        width: clamp(280px, 30vh, 340px);
        height: clamp(390px, 42vh, 480px);
    }
}

@media (max-height: 768px) {
    .coverflow-container {
        height: clamp(300px, 42vh, 380px);
    }

    .coverflow-item {
        width: clamp(180px, 24vh, 240px);
        height: clamp(250px, 34vh, 320px);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98); /* Világos mobil navigáció */
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
        gap: 10px;
        backdrop-filter: blur(10px);
        height: calc(100vh - 70px);
        overflow-y: auto;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 12px 20px;
        display: block;
        font-size: 16px;
        color: #1f1f23;
    }

    .hero-section {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-top: 20px;
    }

    .coverflow-container {
        height: clamp(280px, 40vh, 350px);
    }

    .coverflow-item {
        width: clamp(170px, 22vh, 220px);
        height: clamp(230px, 30vh, 300px);
    }

    .portfolio-overlay {
        padding: 15px;
        transform: translateY(0);
        background: linear-gradient(to top,
                                    rgba(0, 0, 0, 0.95) 0%,
                                    rgba(0, 0, 0, 0.8) 70%,
                                    transparent 100%);
    }

    .portfolio-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .portfolio-description {
        display: none !important;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .stat-number {
        font-size: 1.8rem;
    }

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

@media (max-width: 480px) {
    .coverflow-container {
        height: clamp(250px, 38vh, 320px);
    }

    .coverflow-item {
        width: clamp(150px, 20vh, 200px);
        height: clamp(200px, 28vh, 280px);
    }

    .portfolio-title {
        font-size: 18px;
    }

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

/* =============================================
 *  ÚJ: LIGHTBOX MODAL STÍLUSOK
 *  ============================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    user-select: none;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
    position: absolute;
    top: 25px; right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close:hover { color: var(--accent-color); }
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 50px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}
.lightbox-arrow:hover { color: var(--accent-color); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption {
    position: absolute;
    bottom: 40px;
    color: #bbb;
    font-size: 1.05rem;
    text-align: center;
    width: 100%;
    font-family: 'Barlow Semi Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
 *  ÚJ: RÁCSOS KÉPGALÉRIA STÍLUSOK
 *  ============================================= */
.gallery-grid {
    display: grid;
    /* A min(100%, 250px) biztosítja, hogy a rács keskenyebb kijelzőn is tökéletesen igazodjon */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}
.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: white;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 81, 0, 0.08);
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-card:hover img {
    transform: scale(1.05);
}
.gallery-card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-card-overlay {
    transform: translateY(0);
}

/* Kisebb kijelzőkön igazítjuk a navigáció méreteit */
@media (max-width: 768px) {
    .lightbox-arrow {
        font-size: 35px;
        padding: 10px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* =============================================
 *  ÚJ: LIGHTBOX MODAL STÍLUSOK (Minden képernyőre)
 *  ============================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    user-select: none;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
    position: absolute;
    top: 25px; right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close:hover { color: var(--accent-color); }
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 50px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}
.lightbox-arrow:hover { color: var(--accent-color); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption {
    position: absolute;
    bottom: 40px;
    color: #bbb;
    font-size: 1.05rem;
    text-align: center;
    width: 100%;
    font-family: 'Barlow Semi Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
 *  ÚJ: RÁCSOS KÉPGALÉRIA STÍLUSOK (Csíkos hover nélkül, tisztán ikonos nagyítóval)
 *  ============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}
.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: white;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 81, 0, 0.08);
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-card:hover img {
    transform: scale(1.05);
}

/* Letisztult, finoman ráúszó narancssárga nagyítós overlay szöveg helyett */
.gallery-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(230, 81, 0, 0.45); /* Józsi narancssárgája mint selymes áttetsző réteg */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

/* Mobil nézeti korrekciók */
@media (max-width: 768px) {
    .lightbox-arrow {
        font-size: 35px;
        padding: 10px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
