/* --- ALAP BEÁLLÍTÁSOK ÉS VÁLTOZÓK --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,700;0,900&display=swap');

:root {
    --bg-dark: #020712;
    --bg-card: #08152b;
    --text-main: #f8fafc;
    --text-muted: #a3b1c6;
    --accent: #e8a846;
    --header-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* --- FEJLÉC --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: transparent; 
    transition: all 0.4s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.4s ease;
    background-color: transparent;
}

header.scrolled {
    height: 80px;
}

header.scrolled::before {
    background-color: rgba(2, 7, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 8px;
}

.logo-subtitle {
    color: #888;
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-top: 2px;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 2.5rem; 
    align-items: center;
    margin: 0 auto;
}
.mobile-menu-header, .nav-social-header { display: none; }

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

.social-links-header-pc {
    display: flex;
    gap: 1.2rem;
    z-index: 1001;
}

.social-links-header-pc a {
    color: var(--text-main);
    font-size: 1.6rem; 
    transition: color 0.3s, transform 0.3s;
}

.social-links-header-pc a:hover {
    transform: translateY(-2px);
}
.social-links-header-pc a:hover .fa-youtube {
    color: #ff0000;
}
.social-links-header-pc a:hover .fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.social-links-header-pc a:hover .fa-tiktok {
    color: #ffffff;
    text-shadow: 2px 2px 0 #ff0050, -2px -2px 0 #00f2fe;
}

.nav-social-header a:hover {
    transform: translateY(-2px);
}
.nav-social-header a:hover .fa-youtube {
    color: #ff0000;
}
.nav-social-header a:hover .fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-social-header a:hover .fa-tiktok {
    color: #ffffff;
    text-shadow: 2px 2px 0 #ff0050, -2px -2px 0 #00f2fe;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1003;
}
.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* --- HERO SZEKCIÓ (ASZTALI NÉZET) --- */
.hero {
    position: relative; 
    height: 100vh; 
    min-height: 100dvh; 
    background-image: url('img/hatter.webp'); 
    background-size: cover;
    background-position: center;
    background-color: var(--bg-dark);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-bg-logo {
    position: absolute; 
    top: 45%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    font-size: 55vw; 
    font-weight: 900; 
    color: rgba(94, 157, 212, 0.1); 
    white-space: nowrap; 
    z-index: 1; 
    pointer-events: none; 
    font-family: Arial, sans-serif;
}

.hero-text-container {
    position: absolute; 
    top: 54%; 
    left: 8%; 
    transform: translateY(-50%); 
    z-index: 3;
}

.hero-title-front {
    text-align: left;
    font-size: clamp(2.8rem, 5vw, 6.5rem); 
    font-weight: 900; 
    line-height: 0.95;
    text-transform: uppercase;
    color: #ffffff;
}

.hero-title-front span { 
    background: linear-gradient(90deg, #5e9dd4, #e8a846);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent); /* Fallback */
    display: inline-block;
}

.hero-subtitle-container {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    padding: 1rem 0;
    width: fit-content;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 8px;
    font-weight: 400;
    text-align: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(232, 168, 70, 0.5);
    padding: 15px 35px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: all 0.3s;
    pointer-events: auto;
}

.hero-btn:hover {
    background: rgba(232, 168, 70, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.hero-image {
    position: absolute; 
    bottom: 0; 
    right: 5%; 
    height: 85vh;
    height: 85dvh;
    max-height: 1000px;
    max-width: 80%;
    object-fit: contain; 
    z-index: 2; 
    pointer-events: none;
}

.hero-motto {
    position: absolute; 
    bottom: 5%; 
    right: 5%; 
    z-index: 4; 
    text-align: right;
}

.mobile-motto {
    display: none;
}

.hero-motto p {
    font-size: 0.9rem; 
    font-weight: 400; 
    color: #cccccc; 
    line-height: 1.8;
}

.hero-motto .quote-mark {
    color: var(--accent);
    font-weight: 900;
    font-size: 1.2rem;
}

.hero-motto .quote-author {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* --- TARTALMI SZEKCIÓK --- */
main {
    flex: 1;
}
.section {
    padding: 100px 8%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.section.bg-alt {
    background-color: var(--bg-card);
}
.section-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.section h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}
.section p { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    line-height: 1.8; 
    margin-bottom: 1.5rem; 
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.lead-text {
    font-size: 1.3rem !important;
    font-weight: 600;
    color: var(--text-main) !important;
}

/* --- RESZPONZÍV YOUTUBE VIDEÓ --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- PARTNER LOGÓK --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}
.partners-grid a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.partners-grid img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}
.partners-grid a:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- GOMBOK ÉS LISTÁK --- */
.modern-list {
    list-style: none;
    margin: 1.5rem 0;
}
.modern-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}
.modern-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.btn {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 1rem;
    transition: all 0.3s;
}
.btn:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.fade-in-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- YOUTUBE ANIMÁLT GÖRGŐ SÁV --- */
.youtube-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0 2rem 0;
    margin-top: 1rem;
}

.youtube-track {
    display: flex;
    gap: 2rem;
    width: max-content; 
    animation: scroll-left 100s linear infinite; 
}

.youtube-marquee-container:hover .youtube-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.youtube-video {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.youtube-video .video-container {
    margin: 0; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    background-color: var(--bg-dark);
}

.youtube-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
    white-space: normal;
}

.youtube-title:hover {
    color: var(--accent);
}

/* --- LENYÍLÓ TARTALOM --- */
.expandable-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out;
    margin-bottom: 0.5rem;
}

.expandable-wrapper.expanded {
    grid-template-rows: 1fr;
}

.expandable-content {
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: color 0.3s;
    font-family: inherit;
}

.read-more-btn:hover {
    color: var(--text-main);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

/* --- CSAPATTAGOK --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    align-items: start;
    gap: 2rem;
    margin-top: 3.5rem;
    width: 100%;
}

.team-member {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 0 0 2rem 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.team-portrait {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1.25 / 1;
    object-fit: contain;
    object-position: bottom;
    
    /* HÁTTÉRKÉP BEÁLLÍTÁSA */
    background-image: url('img/hatter.webp');
    background-size: cover;
    background-position: center;
    
    margin-bottom: 1.5rem;
    border: none;
    
    -webkit-mask-image: none;
    mask-image: none;
}

.team-member h3,
.member-intro-wrapper {
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.team-member h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.member-intro-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 120px; 
    transition: max-height 0.6s ease;
}

.member-intro-wrapper.expanded {
    max-height: 1500px; 
}

.member-intro-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(8, 21, 43, 0), rgba(8, 21, 43, 1)); 
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.member-intro-wrapper.expanded .fade-overlay {
    opacity: 0;
    visibility: hidden;
}

.member-read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: color 0.3s;
    font-family: inherit;
}

.member-read-more-btn:hover {
    color: var(--text-main);
}

/* --- LÁBLÉC --- */
footer { 
    background-color: #010307; 
    color: #555; 
    text-align: center; 
    padding: 3rem 5% 2rem; 
    font-size: 0.9rem; 
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-contact p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--accent);
}

.footer-bottom p { 
    margin: 0.3rem 0; 
    font-size: 0.85rem;
}

footer a { 
    color: var(--text-muted); 
    text-decoration: none; 
    transition: color 0.3s; 
}

footer a:hover { 
    color: var(--text-main);
}

/* --- MOBIL RESZPONZIVITÁS & HERO OPTIMALIZÁLÁS --- */
@media (max-width: 1100px) {
    .nav-links { 
        display: flex; 
        position: fixed; 
        top: 0; 
        left: -100%; 
        width: 300px; 
        height: 100vh;
        background-color: rgba(2, 7, 18, 0.75);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column; 
        justify-content: flex-start;
        align-items: flex-start; 
        padding: 2rem; 
        gap: 2rem; 
        box-shadow: 5px 0 15px rgba(0,0,0,0.5); 
        z-index: 1002; 
        transition: left 0.4s ease-in-out;
        overflow-y: auto;
    }
    .nav-links.active {
        left: 0;
    }
    .mobile-menu-header {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 1rem;
    }
    .nav-social-header {
        display: flex;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    .nav-social-header a {
        font-size: 2rem;
    } 
    .social-links-header-pc {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle .line2 {
        opacity: 0;
    }
    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (orientation: portrait) {
    .hero-image {
        max-width: 95%;
    }
}

@media (max-width: 950px) {
    .desktop-br {
        display: none;
    }
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-position: center top;
    }
    .hero-bg-logo {
        font-size: 80vw;
    }
    
    .hero-text-container { 
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 95%;
        margin-top: calc(var(--header-height) + 1.5rem);
        z-index: 3; 
    }
    .hero-title-front {
        text-align: center;
        font-size: 3rem;
    }
    
    .hero-subtitle-container {
        width: fit-content;
        margin: 1.2rem 0;
        padding: 0.6rem 0;
    }
    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 5px;
    }

    .desktop-motto {
        display: none;
    }
    .mobile-motto {
        display: block;
        position: relative;
        bottom: auto;
        right: auto;
        text-align: center;
        margin-bottom: 1.5rem;
        z-index: 4;
    }
    .mobile-motto p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .hero-image { 
        position: relative;
        right: auto;
        bottom: auto;
        height: 42vh;
        max-height: 450px;
        opacity: 1;
        z-index: 2;
        margin-top: auto;
        object-position: bottom;
    }
}

@media (max-width: 480px) {
    .hero-title-front {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 0.55rem;
        letter-spacing: 4px;
    }
    .logo-title {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }
    .logo-subtitle {
        font-size: 0.45rem;
    }
    .hero-image {
        height: 35vh;
    }
    .mobile-motto p {
        font-size: 0.75rem;
    }
}

/* --- FEKTETETT MOBILOK / KIS MAGASSÁGÚ KÉPERNYŐK --- */
@media (max-width: 950px) and (orientation: landscape) {
    .hero {
        display: block;
    }
    
    .hero-text-container {
        position: absolute;
        top: 55%;
        left: 5%;
        transform: translateY(-50%);
        width: 45%;
        margin-top: 0;
        display: block;
        text-align: left;
    }
    
    .hero-title-front {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        text-align: left;
    }
    
    .hero-subtitle-container {
        margin: 1rem 0;
    }
    
    .hero-image {
        position: absolute;
        right: 2%;
        bottom: 0;
        height: 85vh; 
        max-width: 45vw;
        object-fit: contain;
        margin-top: 0;
    }
    
    .mobile-motto {
        display: none;
    }
}

/* --- TABLETEK (ÁLLÓ NÉZET, pl. iPad) --- */
@media (min-width: 600px) and (max-width: 950px) and (orientation: portrait) {
    .hero-text-container {
        margin-top: calc(var(--header-height) + 2rem);
    }

    .hero-title-front {
        font-size: 3.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-image {
        height: 45vh; 
        max-width: 85vw;
        object-fit: contain;
    }
}

/* --- NAGY MÉRETŰ TABLETEK ÉS KIS LAPTOPOK --- */
@media (min-width: 951px) and (max-width: 1366px) {
    .hero-text-container {
        width: 50%;
        left: 5%;
    }
    
    .hero-title-front {
        font-size: clamp(2.5rem, 4vw, 4rem); 
    }
    
    .hero-image {
        right: 0;
        height: 65vh; 
        max-width: 45vw;
    }
}