:root {
    --primary-color: #2c3e50;
    --secondary-color: #d4af37;
    --bg-light: #f9f9f9;
    --bg-body: #ffffff;
    --text-dark: #333;
    --text-light: #666;
    --header-bg: #ffffff;
    --header-text: #333333;
    --header-logo: #2c3e50;
    --card-bg: #ffffff;
    --footer-bg: #2c3e50;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ecf0f1;
        --secondary-color: #d4af37;
        --bg-light: #212326;
        --bg-body: #1a1c1e;
        --text-dark: #f1f1f1;
        --text-light: #bbbbbb;
        --header-bg: #1a1c1e;
        --header-text: #f1f1f1;
        --header-logo: #ecf0f1;
        --card-bg: #2b2d31;
        --footer-bg: #0d0e10;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
}

/* --- NAVIGÁCIÓ --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.4rem 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    header {
        background: rgba(30, 30, 30, 0.85) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    header.scrolled {
        background: rgba(30, 30, 30, 0.7) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    .logo {
        filter: none !important;
    }
    
        
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero.jpg') center/cover no-repeat fixed !important;
    }
    
    .hero-content {
        background: rgba(30, 30, 30, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 2px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .hero-logo-container {
        background: rgba(30, 30, 30, 0.7) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        border: 2px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .hero-nav a {
        background: rgba(30, 30, 30, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 2px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .hero-nav a:hover {
        background: var(--secondary-color) !important;
        border-color: var(--secondary-color) !important;
    }
    
    .btn {
        background: rgba(30, 30, 30, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 2px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .btn:hover {
        background: var(--secondary-color) !important;
        border-color: var(--secondary-color) !important;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* .logo:hover {
    
} */

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-light);
    text-transform: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    position: relative;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    flex-shrink: 0;
    transition: all 0.3s ease;
    stroke: var(--secondary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.hero {
    min-height: 100vh;
    height: auto;
    background: url('images/hero.jpg') center/cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
    opacity: 0.3;
    transform: translateZ(-1px) scale(1.1);
    will-change: transform;
    transition: transform 0.6s ease-out;
    pointer-events: none;
}

.hero.scrolled .hero::before {
    transform: translateZ(-1px) scale(1.1) translateY(30px);
}

@supports (-webkit-hyphens:none) {
    .hero {
        background-attachment: scroll;
    }
}

.hero-content {
    /* background: rgba(255, 255, 255, 0.25); */
    background: rgba(255, 255, 255, 0.7);
    padding: clamp(1.5rem, 5vh, 4rem) clamp(1.5rem, 6vw, 6rem); 
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--primary-color);
    max-width: 1400px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 80px; 
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    transition: all 1.2s ease;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); */
}

.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-content > *:nth-child(4) { animation-delay: 0.7s; }
.hero-content > *:nth-child(5) { animation-delay: 0.9s; }

.hero-content:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    border-color: var(--secondary-color);
}

.hero-logo-container {
    width: 250px;
    height: 250px;
    background: rgba(44, 62, 80, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border: 2px solid rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

@media (max-width: 1920px) {
    .hero-logo-container {
        width: 160px;
        height: 160px;
        margin: 0 auto auto auto;
    }
    
    .hero-logo {
        width: 120px !important;
        height: auto !important;
    }
}

@keyframes levitate {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hero-logo-wrapper {
    animation: levitate 3s ease-in-out infinite;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin: 0;
    animation: fadeIn 4s ease forwards;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 850px;
    font-weight: 300;
}

.hero-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 1.2rem);
    margin-bottom: 1.5rem;
}

.hero-contact-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.hero-contact-links a {
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 1.2s ease;
}

.hero-contact-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
    transform: translateY(-2px);
}

.hero-contact-icon {
    width: 37.5px;
    height: 37.5px;
}

@media (min-width: 1600px) and (min-height: 900px) {
    .hero-content {
        padding: 4.5rem 6rem;
        max-width: 1550px;
    }
    
    .hero-logo {
        width: 175px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.4rem;
        max-width: 1000px;
    }
    
    .hero-nav a, .btn {
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
        width: 250px;
    }
}

/* Tighten vertical layout for shorter viewports (like iPad landscape or small laptops) */
@media (max-height: 850px) {
    .hero-content {
        margin-top: 70px;
        padding: 1.25rem 1.75rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-logo {
        width: 120px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .hero-nav a, .btn {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .hero-contact-links {
        margin-top: 1rem;
    }
}

.hero-nav a {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 1.2s ease;
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 220px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}


.hero-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
    transition: filter 1.2s ease;
}

.hero-nav-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--secondary-color) !important;
}

.hero-nav a:hover {
    background: var(--secondary-color);
}

.hero-nav a:hover .hero-nav-icon {
    filter: grayscale(1) brightness(0.5);
}

.btn {
padding: 12px 30px;
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
font-size: 0.9rem;
border-radius: 50px;
transition: all 1.2s ease;
text-transform: uppercase;
letter-spacing: 1px;
border: 1px solid var(--secondary-color);
cursor: pointer;
white-space: nowrap;
position: relative;
overflow: hidden;
}

.btn::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
pointer-events: none;
}

.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
transition: left 0.8s ease;
pointer-events: none;
}

.btn:hover::after {
width: 300px;
height: 300px;
}

.btn:hover::before {
left: 100%;
}

.btn:hover {
background-color: #b5952f;
color: white;
}

/* --- SZEKCIÓK ÁLTALÁNOS --- */
section {
    padding: 5rem 5% 3rem;
    scroll-margin-top: 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- RÓLAM & SZOLGÁLTATÁSOK --- */
.about-container {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    gap: 1.5rem;
}

.about-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
}

.about-image img {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center 5%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
    position: relative;
}

.about-paragraphs {
    position: relative;
    padding: 1rem 0;
}

.about-paragraphs::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23d4af37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M 24.1511,30.7897 43.5236,30.7905 L 43.5213,23.2085 L 24.1512,18.1564 Z'/%3E%3Cpath d='M 24.1515,18.1563 24.151,10.5719 0.5683,23.2072 0.5692,30.7956 8.9921,30.7838 V 23.2101 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.13;
    z-index: 1;
    pointer-events: none;
}

.about-paragraphs p {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-text-content *:last-child {
    margin-bottom: 0;
}

.about-signature-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.about-signature {
    margin-top: 0.5rem;
    text-align: left;
}

.about-signature img {
    max-width: 280px;
    height: auto;
}
.bg-light { background-color: var(--bg-light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.service-icon {
    margin-bottom: 1.5rem;
    display: inline-block;
}
.service-card {
    background-color: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

.service-card p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.service-card ul,
.service-list {
    list-style: none;
    padding: 0;
    margin: 0.8rem auto 1.2rem auto;
    text-align: justify;
    display: inline-block;
    width: 100%;
}

.service-card ul li,
.service-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.45rem;
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.service-card ul li:last-child,
.service-list li:last-child {
    margin-bottom: 0;
}

.service-card ul li::before,
.service-list li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0.15rem;
    top: -0.05rem;
    font-size: 1.15rem;
}

/* --- WORD CLOUD --- */
.word-cloud-container {
    margin-top: 2rem;
    padding: 0 5%;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

.word-cloud a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.word-cloud a::before {
    content: '•';
    color: var(--secondary-color);
    margin-right: 0.3rem;
    font-size: 1rem;
    vertical-align: middle;
}

.word-cloud span {
    position: relative;
}

.word-cloud a::after {
    content: '•';
    color: var(--secondary-color);
    margin-left: 0.3rem;
    font-size: 1rem;
    vertical-align: middle;
}

.word-cloud span::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.word-cloud a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--secondary-color);
}

.word-cloud a:hover span::before {
    width: 100%;
}



@media (prefers-color-scheme: dark) {
    .word-cloud a {
        background: rgba(30, 30, 30, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ecf0f1;
    }
    
    .word-cloud a:hover {
        background: rgba(40, 40, 40, 0.95);
        border-color: var(--secondary-color);
        color: var(--primary-color);
    }
}

@media (prefers-color-scheme: dark) {
    .service-card {
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    border-color: var(--secondary-color);
}

.service-card h3 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.3rem; }

/* --- PORTFÓLIÓ (2x3 RÁCS ÉS HOVER EFFEKT) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-image 0.5s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 4 / 3;
    width: 100%;
}

.portfolio-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 62, 80, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-logo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    pointer-events: none;
}

.portfolio-logo {
    width: 60px;
    height: 60px;
    opacity: 0.4;
    stroke: var(--secondary-color);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay p {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* --- KÉPMEGJELENÍTŐ (MODAL / LIGHTBOX) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 85vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

#caption {
    margin: auto; display: block; width: 80%;
    max-width: 1000px; text-align: center;
    color: #ccc; padding: 15px 0; height: 50px;
    font-size: 1.2rem; font-family: 'Montserrat', sans-serif;
}

.close {
    position: absolute;
    top: 15px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2010;
}

.close:hover, .close:focus { color: var(--secondary-color); text-decoration: none; cursor: pointer; }

/* Modal Navigation Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2001;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--secondary-color);
}

@media only screen and (max-width: 768px) {
    .modal {
        padding: 0 15px;
        box-sizing: border-box;
    }
    .modal[style*="display: block"],
    .modal[style*="display: flex"] {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .modal-content {
        max-width: 90vw;
        max-height: 65vh;
        margin: 0;
    }
    #caption {
        font-size: 0.95rem;
        padding: 15px 5px 0;
        width: 90%;
        height: auto;
        margin: 0;
    }
    .close {
        top: 12px;
        right: 18px;
        font-size: 36px;
        padding: 5px;
    }
    .prev, .next {
        font-size: 30px;
        padding: 12px 10px;
        margin-top: 0;
        transform: translateY(-50%);
    }
}

/* --- KAPCSOLAT ÉS LÁBLÉC --- */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    min-width: 240px;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}
.contact-btn:hover {
    background-color: #b5952f;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    color: white;
}

.contact-btn:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}
.contact-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}
.contact-qr-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.contact-qr { 
    display: block; 
    max-width: 160px; 
    height: auto; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    margin: 1rem 0; 
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.contact-qr:hover {
    box-shadow: 0 4px 20px rgba(181, 137, 0, 0.4), 0 0 20px rgba(181, 137, 0, 0.2);
    transform: scale(1.05);
}
.contact-detail { 
    font-size: 1rem; 
    opacity: 0.9; 
    margin-top: 0.5rem;
    font-weight: 400;
    color: var(--text-color);
}
.contact-info { 
    margin-bottom: 2rem; 
    font-size: 1.2rem; 
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-color);
}

.contact-info a { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s ease;
    position: relative;
}

.contact-info a:hover { 
    color: var(--secondary-color);
}
footer { background: var(--footer-bg); color: white; text-align: center; padding: 1.5rem; font-size: 0.9rem; }
footer a { color: var(--secondary-color); text-decoration: none; font-weight: 600; transition: color 0.3s; }
footer a:hover { color: white; }

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: none; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background-color 0.3s, transform 0.3s;
    z-index: 9999; 
}
.scroll-to-top.visible { 
    opacity: 0.5; 
    pointer-events: auto; 
}
.scroll-to-top:hover { 
    background-color: #b5952f; 
    color: white; 
    transform: scale(1.1);
}

/* --- BACKGROUND FIX (UP TO IPAD PRO LANDSCAPE) --- */
@media (max-width: 1366px) {
    .hero {
        background-attachment: scroll; 
        background-position: center center;
        background-size: cover;
    }
}

/* --- MOBILE & TABLET PORTRAIT (RESPONSIVE MENU) --- */
@media (max-width: 992px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); } 
    .hamburger { 
        display: block; 
        margin-left: auto; 
    }
    
    header {
        padding: 0.8rem 5% !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    header.scrolled {
        padding: 0.8rem 5% !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    @media (prefers-color-scheme: dark) {
        header {
            background: rgba(30, 30, 30, 0.85) !important;
        }
        
        header.scrolled {
            background: rgba(30, 30, 30, 0.85) !important;
        }
    }

    .logo {
        gap: 8px;
        font-size: 1.1rem;
    }

    .logo-img {
        height: 35px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    nav ul {
        flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; 
        background: rgba(255, 255, 255, 0.99);
        padding: 1rem; gap: 0.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    }
    
    nav ul li {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    nav ul li a {
        display: inline-block;
        width: auto;
    }
    
    
    @media (prefers-color-scheme: dark) {
        nav ul {
            background: rgba(30, 30, 30, 0.7);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
    }
    
    nav ul.active { 
        max-height: 300px;
        opacity: 1;
    }
    
    .hero {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .hero-content {
        padding: 1.5rem 1rem;
        width: 100%;
        margin-top: 70px;
    }

    .hero-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 500px;
        margin: 1rem auto 1.5rem;
        gap: 0.8rem;
    }

    .hero-nav a {
        width: calc(50% - 0.4rem);
        min-width: 150px;
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }

    @media (min-width: 768px) {
        .hero-nav {
            flex-wrap: nowrap;
            max-width: none;
            gap: 0.5rem;
        }
        .hero-nav a {
            width: auto;
            min-width: 0;
            padding: 0.6rem 0.8rem;
            font-size: 0.95rem;
        }
    }

    .hero-logo {
        width: 100px; 
    }
    
    .hero-logo-container {
        width: 160px;
        height: 160px;
    }

    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; margin-bottom: 1.5rem; }
}

@media (max-width: 992px) {
    
}

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

/* iPad specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo-text {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
}

/* iPad horizontal view - text equal to nav links */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-settings-btn {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.3s ease;
}

.cookie-settings-btn:hover {
    color: var(--secondary-color);
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(212, 175, 55, 0.1);
    z-index: 9999;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cookie-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.cookie-banner-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

.cookie-banner p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.cookie-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
}

.cookie-btn-primary {
    background: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cookie-btn-primary:hover {
    background: #b8972e;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.cookie-btn-secondary {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: var(--text-dark);
}

.cookie-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-dark);
}

.cookie-btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.82rem;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    text-decoration: underline;
}

.cookie-btn-text:hover {
    color: var(--secondary-color);
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: var(--card-bg, #ffffff);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-dark);
}

.cookie-modal-backdrop.show .cookie-modal {
    transform: scale(1) translateY(0);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.cookie-modal-close:hover {
    color: var(--text-dark);
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-modal-intro {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

.cookie-category {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    padding: 1rem 1.2rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-category-header h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    color: var(--primary-color);
}

.cookie-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
}

.cookie-badge-optional {
    background: rgba(212, 175, 55, 0.15);
    color: #9f7d1c;
}

.cookie-category p {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-light);
    margin: 0;
}

/* Custom Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--secondary-color);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(22px);
}

.cookie-slider.disabled {
    cursor: not-allowed;
    background-color: var(--secondary-color);
    opacity: 0.75;
}

.cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark mode overrides for Cookie Consent */
@media (prefers-color-scheme: dark) {
    .cookie-banner {
        background: rgba(26, 28, 30, 0.94);
        border-color: rgba(212, 175, 55, 0.3);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(212, 175, 55, 0.15);
    }

    .cookie-banner-header h3 {
        color: #f1f1f1;
    }

    .cookie-banner-header .cookie-icon-wrapper {
        background: rgba(212, 175, 55, 0.2);
    }

    .cookie-btn-secondary {
        border-color: rgba(255, 255, 255, 0.2);
        color: #f1f1f1;
    }

    .cookie-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: #f1f1f1;
    }

    .cookie-modal {
        background: #1a1c1e;
        border-color: rgba(212, 175, 55, 0.3);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    }

    .cookie-modal-header {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .cookie-modal-header h3 {
        color: #f1f1f1;
    }

    .cookie-modal-footer {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .cookie-category {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .cookie-category-header h4 {
        color: #f1f1f1;
    }

    .cookie-badge {
        background: rgba(255, 255, 255, 0.1);
        color: #ecf0f1;
    }

    .cookie-badge-optional {
        background: rgba(212, 175, 55, 0.2);
        color: #d4af37;
    }

    .cookie-slider {
        background-color: #444;
    }
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        padding: 1.25rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions .cookie-btn {
        width: 100%;
    }

    .cookie-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
