/* ==========================================================================
   1. RÉSZ: Alapbeállítások, Menü és Profil
   ========================================================================== */

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 80px; 
}

/* 22. LECKE: GLOBÁLIS STÍLUS - FÉLKÖVÉR, DŐLT ÉS KÉZÍRÁS JELLEGŰ BETŰK AZ EGÉSZ OLDALON */
body { 
    font-family: "Comic Sans MS", "Comic Sans", cursive; /* Kézírás jellegű */
    font-weight: bold; /* Félkövér mindenhol */
    font-style: italic; /* Dőlt mindenhol */
    background-image: url('villám.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0; 
    padding: 100px 20px 40px 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 60px; 
    min-height: 100vh; 
}

/* --- FIX ÉS ZÁRT FÉNYSZUGÁR KERET (Javított, önálló helyen) --- */
.glow-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Biztosítja, hogy a gombokra továbbra is rá lehessen kattintani */
    z-index: 9999; /* Minden más elem felett tartja a keretet, így felül sem szakad meg */
    box-sizing: border-box;
    border: 4px solid #0078d4; /* Fix kék keret */
    
    /* Többrétegű neon kék ragyogás kívül-belül */
    box-shadow: inset 0 0 20px #0078d4, 
                inset 0 0 40px #0056b3, 
                0 0 30px #0078d4;
                
    /* Lüktető áram-animáció */
    animation: villamFenyKeret 4s ease-in-out infinite alternate;
}

@keyframes villamFenyKeret {
    from {
        box-shadow: inset 0 0 15px #0078d4, inset 0 0 30px #0056b3, 0 0 20px #0078d4;
        border-color: #0078d4;
    }
    to {
        box-shadow: inset 0 0 25px #00c3ff, inset 0 0 50px #0078d4, 0 0 40px #00c3ff;
        border-color: #00c3ff;
    }
}

/* Felső navigációs menü */
.felso-menu { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background-color: rgba(0, 0, 0, 0.95); 
    padding: 15px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    text-align: center; 
    z-index: 1000; 
}

/* 21. LECKE: FRISSÍTETT MENÜ ÁTTŰNÉS */
.felso-menu a { 
    color: #ffffff; 
    text-decoration: none; 
    font-weight: bold; 
    margin: 0 20px; 
    font-size: 16px; 
    /* 0.4 másodperc alatt, finom gyorsulással-lassulással vált színt: */
    transition: color 0.4s ease-in-out; 
}

.felso-menu a:hover { 
    color: #0078d4; 
}

/* Profil kártya */
.profil-kartya { 
    background-color: rgba(0, 0, 0, 0.85); 
    color: #ffffff; 
    font-weight: bold; 
    font-style: italic; 
    padding: 40px; 
    border-radius: 15px; 
    border: 4px solid #0078d4; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    text-align: center; 
    max-width: 400px; 
    width: 100%; 
}

/* JAVÍTOTT, JÓL LÁTHATÓ 3D EFFEKT */
.profil-kartya h2 { 
    color: #ffffff; 
    font-size: 32px;
    margin-top: 15px; 
    margin-bottom: 25px; 
    text-transform: uppercase;
    
    /* Erősebb eltolás: fekete kontúr és egy jól látható, vastag kék 3D fal mögötte */
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000, /* Ez a 4 sor ad egy fekete körvonalat a betűnek */
         2px  2px 0 #0078d4,
         3px  3px 0 #0078d4,
         4px  4px 0 #0078d4,
         5px  5px 0 #005a9e, /* Ez a blokk pedig a kék 3D-s "falat" építi fel */
         6px  6px 10px rgba(0,0,0,0.8); /* A legalsó puha árnyék */
}

/* 22. LECKE EXTRA: FÉLKÖVÉR, DŐLT ÉS KÉZÍRÁS JELLEGŰ PROFIL SZÖVEG */
.profil-kartya p { 
    color: #d1d1d1; 
    font-family: "Comic Sans MS", "Comic Sans", cursive; 
    font-weight: bold; 
    font-style: italic; 
    font-size: 16px;
}

.profil-kep { 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    border: 5px solid white; 
    object-fit: cover; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

/* 21. LECKE JAVÍTÁS: A KAPCSOLAT GOMB ALAPSTÍLUSA */
.kapcsolat-gomb { 
    display: block; 
    color: white !important; /* Biztosítjuk, hogy a szöveg fehér maradjon */
    padding: 15px 30px; 
    text-decoration: none; 
    border-radius: 25px; 
    font-weight: bold; 
    font-style: normal; 
    margin: 20px auto 0 auto; 
    max-width: 200px; 
    text-align: center;
    /* Egyszerre animáljuk a hátteret és a méretet: */
    transition: background-color 0.4s ease, transform 0.3s ease; 
}

/* A GOMB KÉK SZÍNE */
.kek-gomb { 
    background-color: #0078d4 !important; 
}

/* AMIKOR AZ EGÉR A GOMB FÖLÉ ÉR */
.kek-gomb:hover { 
    background-color: #005a9e !important; 
    transform: scale(1.05); /* Finoman megnő a gomb */
}

/* ==========================================
   2. RÉSZ: Szolgáltatások, Táblázat, Űrlap, Lábléc és Gomb
   ========================================== */

/* Szolgáltatások */
.szolgaltatas-tarolo { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    max-width: 1200px; 
    width: 100%; 
}

/* 21. LECKE: LÁGYABB DOBOZ MOZGÁS */
.szolgaltatas-doboz { 
    background-color: rgba(0, 0, 0, 0.85); 
    border-top: 6px solid #0078d4; 
    border-radius: 8px; 
    padding: 25px; 
    width: 33%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
    text-align: center; 
    box-sizing: border-box; 
    /* Átmenet a finom emelkedéshez és az árnyék lágyításához: */
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out; 
}

.szolgaltatas-doboz:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0,78,212,0.3); 
}

.szolgaltatas-ikon { 
    font-size: 40px; 
    margin-bottom: 15px; 
    display: block; 
}

.szolgaltatas-doboz h3 { 
    color: #ffffff; 
    margin-top: 0; 
    margin-bottom: 10px; 
}

.szolgaltatas-doboz p { 
    color: #d1d1d1; 
    font-size: 14px; 
    line-height: 1.5; 
    font-style: normal; 
}

/* Tarifák táblázat */
.tablazat-szekcio { 
    background-color: rgba(0, 0, 0, 0.85); 
    border: 4px solid #0078d4; 
    border-radius: 15px; 
    padding: 30px; 
    max-width: 800px; 
    width: 100%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    box-sizing: border-box; 
    text-align: center; 
}

.tablazat-szekcio h2 { 
    color: #ffffff; 
    margin-top: 0; 
    margin-bottom: 20px; 
}

.price-table { 
    width: 100%; 
    border-collapse: collapse; 
    background-color: #11141c; 
    border-radius: 8px; 
    overflow: hidden; 
}

.price-table th, .price-table td { 
    padding: 12px 15px; 
    text-align: left; 
    color: #ffffff; 
    border-bottom: 1px solid #232936; 
    font-size: 15px; 
}

.price-table th { 
    background-color: #0078d4; 
    font-weight: bold; 
}

.price-table tbody tr:hover { 
    background-color: #1a1e29; 
}

/* Kapcsolati űrlap */
.kapcsolat-urlap { 
    background-color: rgba(0, 0, 0, 0.85); 
    border: 4px solid #0078d4; 
    border-radius: 15px; 
    padding: 40px 20px; 
    max-width: 500px; 
    width: 100%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.kapcsolat-urlap h2 { 
    color: #ffffff; 
    text-align: center; 
    margin-top: 0; 
    margin-bottom: 25px; 
}

.urlap-csoport { 
    margin-bottom: 20px; 
    text-align: left; 
}

.urlap-csoport label { 
    display: block; 
    color: #ffffff; 
    font-weight: bold; 
    margin-bottom: 8px; 
    font-size: 14px; 
}

.urlap-csoport input, .urlap-csoport textarea { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid #323130; 
    border-radius: 6px; 
    background-color: #ffffff !important; 
    color: #323130 !important; 
    font-size: 15px; 
     /* EZ A KÉT ÚJ SOR JAVÍTJA KI AZ ELCSÚSZÁST: */
    box-sizing: border-box; 
    display: block; 
}

.urlap-csoport input:focus, .urlap-csoport textarea:focus { 
    border-color: #0078d4; 
    outline: none; 
}

.kuldes-gomb { 
    display: block; 
    width: 100%; 
    background-color: #2ea44f; 
    color: white; 
    padding: 15px; 
    border: none; 
    border-radius: 6px; 
    font-weight: bold; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background-color 0.4s ease, transform 0.2s ease; 
}

.kuldes-gomb:hover { 
    background-color: #227d3c; 
    transform: scale(0.98);
}

/* Lábléc */
.oldal-lablec { 
    width: 100%; 
    background-color: rgba(0, 0, 0, 0.95); 
    color: #ffffff; 
    text-align: center; 
    padding: 25px 10px; 
    margin-top: auto; 
    font-size: 14px; 
    border-top: 3px solid #0078d4; 
}

.oldal-lablec p { 
    margin: 5px 0; 
}

.lablec-telefon {
    color: #0078d4;
    text-decoration: none;
}

/* ==========================================
   3. RÉSZ: 24. lecke - Vissza a tetejére gomb stílusai
   ========================================== */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: #0078d4;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50px;
    font-size: 18px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s, background-color 0.3s, transform 0.2s;
    opacity: 0.8;
}

#scrollToTopBtn:hover {
    background-color: #00c3ff;
    opacity: 1;
    transform: scale(1.1);
}
/* Referencia képek alatti szövegek javítása fehér színűre */
.galeria-elem p {
    color: #ffffff !important;
}
/* A Referenciák szekció nagy fejlécének javítása kék 3D stílusúra */
.galeria-szekcio h2 {
    color: #FF6F61 !important;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         2px  2px 0 #FF6F61,
         3px  3px 0 #FF6F61,
         4px  4px 0 #FF6F61,
         5px  5px 0 #005a9e,
         6px  6px 10px rgba(0,0,0,0.8) !important;
}
/* ==========================================================================
   25. LECKE: TÉMAVÁLTÓ GOMB ÉS VILÁGOS MÓD STÍLUSAI
   ========================================================================== */

/* A gomb alap stílusa a felső menüben */
.tema-valto-gomb {
    background-color: #0078d4;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    margin-left: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Egérrel fölé víve kicsit sötétebb kék lesz */
.tema-valto-gomb:hover {
    background-color: #005a9e;
    transform: scale(1.05);
}

/* --- VILÁGOS ÜZEMMÓD (LIGHT MODE) DEFINÍCIÓK --- */
/* Amikor a JavaScript rárakja a body-ra a 'light-mode' osztályt, ezek lépnek életbe */

body.light-mode main { background-color: #f4f6f9 !important; background: #f4f6f9 !important; }
body.light-mode, body.light-mode main { background-image: url('vilagos-hatter.jpg') !important; background-size: cover !important; background-attachment: fixed !important; }

/* Világos módú profilkártya, dobozok és táblázat */
body.light-mode .profil-kartya,
body.light-mode .szolgaltatas-doboz,
body.light-mode .tablazat-szekcio,
body.light-mode .galeria-elem,
body.light-mode .kapcsolat-urlap {
    background-color: #ffffff !important; /* Fehér dobozhátterek */
    color: #323130 !important;
    border-color: #0078d4 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important; /* Lágyabb, világos árnyék */
}

/* Szövegek finomítása világos módban */
body.light-mode .profil-kartya p,
body.light-mode .szolgaltatas-doboz p,
body.light-mode .szolgaltatas-doboz h3,
body.light-mode .tablazat-szekcio h2,
body.light-mode .kapcsolat-urlap h2,
body.light-mode .galeria-elem p {
    color: #323130 !important;
}

/* Táblázat belső része világos módban */
body.light-mode .price-table {
    background-color: #fdfdfd !important;
}

body.light-mode .price-table td {
    color: #323130 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

body.light-mode .price-table tbody tr:hover {
    background-color: #f0f4f8 !important;
}
/* VÉGLEGES JAVÍTÁS: A referenciák szövege sötét módban fehér, világos módban sötét */
.galeria-elem p {
    color: #ffffff !important;
}

body.light-mode .galeria-elem p {
    color: #323130 !important;
}
/* VÉGLEGES JAVÍTÁS: A galéria dobozában lévő MINDEN szöveg (alatta, mellette, bárhol) fehér sötét módban */
.galeria-elem, 
.galeria-elem *, 
.galeria-szekcio p {
    color: #ffffff !important;
}

/* Világos módban pedig az összes belső szöveg váltson át sötétszürkére */
body.light-mode .galeria-elem,
body.light-mode .galeria-elem *,
body.light-mode .galeria-szekcio p {
    color: #323130 !important;
}

        transform: rotateY(360deg);
    }
}

/* Világos mód finomítás: a logó háttere világosabb lesz, hogy ne tűnjön el */
body.light-mode .forgo-logo {
    background: radial-gradient(circle, #00c3ff, #ffffff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Világos mód finomítás */
body.light-mode .forgo-logo {
    background: radial-gradient(circle, #00c3ff, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* ==========================================================================
   26. LECKE JAVÍTÁS: A LOGÓKAT LEJJEBB TOLTUK A MENÜ ALÁ (`top: 85px`)
   ========================================================================== */

/* A logók közös beállításai */
.forgo-logo-tarolo {
    position: fixed;
    top: 85px;       /* 10px-ről 85px-re növelve, hogy a menü alatt legyenek */
    z-index: 10001; 
    perspective: 1000px;
    pointer-events: none;
}

/* Egyedi pozíció a BAL saroknak */
.bal-sarok {
    left: 25px;
}

/* Egyedi pozíció a JOBB saroknak */
.jobb-sarok {
    right: 25px;
}

/* A logók mérete és 3D ragyogása */
.forgo-logo {
    font-size: 42px;  
    width: 65px;      
    height: 65px;     
    background: radial-gradient(circle, #0078d4, #11141c);
    border: 3px solid #00c3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px #0078d4, inset 0 0 12px #00c3ff;
    
    transform-style: preserve-3d;
    animation: porges3D 5s linear infinite;
}

/* 3D forgás animáció */
@keyframes porges3D {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Világos mód finomítás mindkét gombra */
body.light-mode .forgo-logo {
    background: radial-gradient(circle, #00c3ff, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* ==========================================================================
   27. LECKE: INTERAKTÍV KALKULÁTOR STÍLUSAI
   ========================================================================== */
.kalkulator-szekcio {
    background-color: rgba(0, 0, 0, 0.85); 
    border: 4px solid #0078d4; 
    border-radius: 15px; 
    padding: 40px 20px; 
    max-width: 500px; 
    width: 100%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-align: center;
}

.kalkulator-doboz {
    width: 100%;
}

/* A lenyíló választó egyedi formázása */
.kalkulator-doboz select {
    width: 100%; 
    padding: 12px; 
    border: 2px solid #323130; 
    border-radius: 6px; 
    background-color: #ffffff !important; 
    color: #323130 !important; 
    font-size: 15px;
    box-sizing: border-box; 
    display: block;
    font-weight: bold;
    font-style: italic;
}

.kalkulator-doboz select:focus {
    border-color: #0078d4; 
    outline: none;
}

/* Biztosítjuk, hogy a számbeviteli mező is tökéletesen igazodjon */
.kalkulator-doboz input[type="number"] {
    box-sizing: border-box;
    display: block;
}

/* Világos mód támogatás a kalkulátorhoz */
body.light-mode .kalkulator-szekcio {
    background-color: #ffffff !important;
    color: #323130 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .kalkulator-szekcio h2,
body.light-mode .kalkulator-szekcio label {
    color: #323130 !important;
}

body.light-mode .eredmeny-kijelzo {
    color: #0078d4 !important;
}
