@import url('header.css');
@import url('sections.css');
@import url('contact.css');

/* --- GLOBÁLIS JAVÍTÁS AZ ELCSÚSZÁS ELLEN --- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    /* Megakadályozzuk a vízszintes görgetést, ami az elcsúszást okozza */
    overflow-x: hidden !important; 
    background-color: #1a1a1a;
}
body {
    font-family: 'Times New Roman', serif;
    color: #1a1a1a;
    
    /* CSILLAGOK BEÁLLÍTÁSA méret/sebesség stb*/
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #A67C52, transparent),
        radial-gradient(3px 3px at 40px 70px, #c5a059, transparent),
        radial-gradient(4px 4px at 50% 50%, rgba(166, 124, 82, 0.4), transparent);
    background-size: 80px 80px, 150px 150px, 200px 200px;
    background-attachment: fixed;
    animation: backgroundMove 100s linear infinite;
}

/* --- TARTALOM TÁROLÓ KÖZÉPRE IGAZÍTÁSA --- */
.unified-background {
    position: relative;
    width: 100%;
    max-width: 100vw; /* Biztosítjuk, hogy ne legyen szélesebb a képernyőnél */
    z-index: 1;
    background: transparent;
    margin: 0 auto !important; /* KÖZÉPRE IGAZÍTÁS */
    display: flex;
    flex-direction: column;
    align-items: center; /* Szekciók középre igazítása */
}

/* --- SZEKCIÓK FIXÁLÁSA --- */
.hero-intro-section, .wide-section {
    display: flex;
    justify-content: center; /* Tartalom középre tétele */
    width: 100%;
    margin: 0 auto !important;
    position: relative;
    z-index: 1;
}
#rolunk {
    padding-top: 100px; /* Csak a fejléc miatt kell */
}

/* Finom háttérmozgás animáció */
@keyframes backgroundMove {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 500px 1000px, 400px 400px, 300px 600px; }
}
/* Egy elegáns díszítő vonal az átmenethez */
.unified-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, #A67C52, transparent);
    z-index: 2;
}

img {
    /* Letiltja a kijelölést és a húzást */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    
    user-select: none; /* Nem lehet kijelölni kékkel */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    
    pointer-events: auto; /* Fontos: ez maradjon auto, különben nem tudnak rákattintani a nagyításhoz! */
}

/* --- HERO INTRO SECTION (Sötét Téma) --- */
.hero-intro-section {
    background-color: #111111; /* Mélyfekete háttér */
    /* Finom átmenet, hogy ne legyen teljesen "döglött" fekete */
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    min-height: 90vh; /* Szinte teljes képernyő */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 0 5%;
    padding-bottom: 120px;
    /* Alul elhalványítjuk a sötétet */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);;
}

.hero-intro-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 60px;
}

/* --- BAL OLDAL: TARTALOM --- */
.intro-content {
    flex: 1;
    z-index: 2;
    animation: slideInLeft 1s ease-out;
}

.eyebrow-text {
    color: #c5a059; /* Arany */
    font-family: 'Lato', sans-serif;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem; /* Hatalmas cím */
    line-height: 1.1;
    margin: 0 0 30px 0;
    color: #ffffff;
}

.gold-divider {
    width: 100px;
    height: 3px;
    background-color: #c5a059;
    margin-bottom: 30px;
}

.intro-lead {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #e0e0e0; /* Törtfehér */
    margin-bottom: 20px;
    line-height: 1.5;
}

.intro-body {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: #a0a0a0; /* Szürke */
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 90%;
}

/* --- GOMBOK --- */
.intro-buttons {
    display: flex;
    gap: 20px;
}

.btn-gold {
    background-color: #c5a059;
    color: #000;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid #c5a059;
    color: #c5a059;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #c5a059;
    color: #000;
}

/* --- JOBB OLDAL: KÉP --- */
.intro-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1.2s ease-out;
}

.main-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    position: relative;
    z-index: 2;
    /* Enyhe ragyogás a kép körül a sötét háttéren */
    filter: drop-shadow(0 0 30px rgba(197, 160, 89, 0.15)); 
}

/* Arany kör a kép mögött díszítésnek */
.decorative-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(197, 160, 89, 0.3); /* Halvány arany keret */
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- ANIMÁCIÓK --- */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- MOBIL NÉZET --- */
@media (max-width: 900px) {
    .hero-intro-section { padding: 80px 20px; text-align: center; }
    .hero-intro-section .container { flex-direction: column-reverse; } /* Kép felülre */
    
    .intro-content { padding-right: 0; }
    h1 { font-size: 2.8rem; }
    .gold-divider { margin: 20px auto; } /* Középre igazítva */
    .intro-body { margin: 0 auto 30px auto; }
    
    .intro-buttons { justify-content: center; flex-direction: column; }
    
    .decorative-circle { width: 300px; height: 300px; }
}

/* --- EXTRA SŰRŰ ÉS FÉNYES ARANY CSILLAGOK --- */

.unified-background {
    position: relative;
    overflow: hidden;
    /* A háttérszíned marad az eredeti, nem írjuk felül */
}

.star-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 0;
}

/* 1. RÉTEG: Apró, de nagyon sűrű arany por */
.s-small {
    background-image: 
        radial-gradient(1px 1px at 10% 10%, #A67C52, transparent),
        radial-gradient(1px 1px at 20% 40%, rgba(166, 124, 82, 0.8), transparent),
        radial-gradient(1px 1px at 40% 20%, #c5a059, transparent),
        radial-gradient(1.2px 1.2px at 60% 80%, #A67C52, transparent),
        radial-gradient(1px 1px at 80% 50%, #c5a059, transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(197, 160, 89, 0.7), transparent);
    background-size: 150px 150px; /* Még sűrűbb ismétlődés */
    animation: starMovement 110s linear infinite;
    opacity: 0.6;
}

/* 2. RÉTEG: Közepes, ragyogó arany csillagok */
.s-medium {
    background-image: 
        radial-gradient(2.2px 2.2px at 15% 15%, #A67C52, transparent),
        radial-gradient(2px 2px at 35% 75%, #c5a059, transparent),
        radial-gradient(2.5px 2.5px at 55% 25%, #A67C52, transparent),
        radial-gradient(2px 2px at 75% 55%, #c5a059, transparent),
        radial-gradient(2.2px 2.2px at 95% 85%, #A67C52, transparent);
    background-size: 300px 300px;
    animation: starMovement 60s linear infinite;
    opacity: 0.8;
}

/* 3. RÉTEG: Nagyobb, markáns szikrák - a leglátványosabb rész */
.s-large {
    background-image: 
        radial-gradient(4px 4px at 25% 25%, #A67C52, transparent),
        radial-gradient(3.5px 3.5px at 50% 70%, #c5a059, transparent),
        radial-gradient(4.5px 4.5px at 75% 30%, #A67C52, transparent),
        radial-gradient(3.8px 3.8px at 15% 85%, #c5a059, transparent);
    background-size: 500px 500px;
    animation: starMovement 30s linear infinite;
    opacity: 1;
}

/* MOZGÁS: Folyamatos átlós suhanás */
@keyframes starMovement {
    from { transform: translate(0, 0); }
    to { transform: translate(10%, 10%); }
}

/* Kártyák kiemelése és árnyékolása */
.content-card {
    position: relative;
    z-index: 10;
    box-shadow: 0 0 100px rgba(0, 0, 0, 1); /* Sötét árnyék, hogy ne látszódjanak át a csillagok */
    border: 1px solid rgba(166, 124, 82, 0.5) !important;
}

/* --- VÉGLEGES MEGOLDÁS: TÉGLALAP ALAKÚ ELMOSÁS (Minden szél eltüntetése) --- */

.intro-image-wrapper {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.intro-image-wrapper img.main-img {
    width: 100%;
    max-width: 600px; /* Kicsit nagyobbra vettem, hogy érvényesüljön */
    height: auto;
    display: block;
    
    /* Minden keret letiltása */
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    
    /* --- A TRÜKK: KÉT LINEÁRIS MASK ÖSSZEGYÚRÁSA --- */
    /* 1. Vízszintes elmosás (bal és jobb szél) */
    /* 2. Függőleges elmosás (tető és alja) */
    /* A 'mask-composite' fésüli össze a kettőt */
    
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
        
    mask-image: 
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);

    /* Ez a parancs mondja meg, hogy csak ott látszódjon a kép, ahol MINDKÉT maszk fekete */
    -webkit-mask-composite: source-in;
    mask-composite: intersect;

    opacity: 1; 
    transition: transform 0.5s ease;
}

/* Hover effektus */
.intro-image-wrapper img.main-img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .intro-image-wrapper img.main-img {
        max-width: 350px;
        /* Mobilon kicsit vastagabb elmosás a széleken, hogy biztosan ne lógjon ki */
        -webkit-mask-image: 
            linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image: 
            linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
            
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }
}

/* --- KÉNYSZERÍTETT NAGYBETŰ TILTÁS (MOBIL CACHE ELLEN) --- */
/* Ez felülírja a sections.css és header.css beragadt beállításait */

h1, h2, h3, 
.section-header h2, 
.brand-name, 
.nav-menu a,
.eyebrow-text {
    text-transform: none !important;
}