@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* --- ZMIENNE KOLORYSTYCZNE --- */
:root {
    /* Główny Ciemny Motyw (Hub, WebDev) */
    --main-dark-bg: #050505;
    --main-dark-card: #111111;
    --main-cyan: #00f2fe; /* Neon Cyan */
    --main-text-on-dark: #ffffff;
    --main-muted-on-dark: #a0a0a0;
    --main-border-dark: #333;

    /* Motyw Edukacja (Jasny) */
    --edu-light-bg: #f9f9f9; /* Czysty, jasny szary */
    --edu-light-card: #ffffff;
    --edu-blue: #3498db; /* Spokojny Niebieski */
    --edu-text-on-light: #2c3e50;
    --edu-muted-on-light: #666666;
    --edu-border-light: #e0e0e0;
}

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

/* --- BAZA & NAPRAWA SCROLLA --- */
html, body {
    width: 100%; height: 100%;
    overflow: hidden; /* Blokujemy scroll całego okna */
    font-family: 'Poppins', sans-serif;
    background: var(--main-dark-bg); /* Domyślne tło */
    color: var(--main-text-on-dark);
}

/* System Ekranów (SPA) */
.screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
    display: flex; flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: 10;
    background: var(--main-dark-bg); /* Domyślne tło dla wszystkich */
}

.hidden-screen { transform: translateY(100%); opacity: 0; pointer-events: none; }
.active-screen { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* KONTENER PRZEWIJANIA - KLUCZ DO DZIAŁAJĄCEGO SCROLLA */
.scroll-container {
    flex: 1; /* Zajmuje całą dostępną wysokość pod navbarem */
    width: 100%;
    overflow-y: auto; /* Włącza przewijanie wewnątrz */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Płynność na iOS */
    position: relative;
    z-index: 5;
    padding-bottom: 60px; /* Margines na dole */
}

/* Particles Tło - wspólne dla wszystkich ekranów, zmieniamy tylko kolor w JS */
.particles-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }

/* --- NAVBARY --- */
.navbar {
    width: 100%; padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; min-height: 80px; flex-shrink: 0;
}
/* Hub Navbar - zawsze na wierzchu, przezroczysty, na ciemnym tle */
.hub-nav { position: absolute; top: 0; left: 0; background: transparent; }

/* Sticky Navbar dla podstron (ciemny/jasny) */
.sticky-nav { border-bottom: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); background: rgba(5,5,5,0.9); }
.light-nav { background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--edu-border-light); }

/* Logo */
.logo-square-big {
    width: 50px; height: 50px; border: 2px solid var(--main-text-on-dark); color: var(--main-text-on-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.5rem; z-index: 20;
    transition: 0.3s;
}
.logo-square-big:hover { border-color: var(--main-cyan); color: var(--main-cyan); }

.navbar-brand { display: flex; align-items: center; gap: 15px; }
.logo-square-small { width: 40px; height: 40px; border: 2px solid var(--main-text-on-dark); color: var(--main-text-on-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.brand-text { font-size: 1.4rem; font-weight: 700; color: var(--main-text-on-dark); }

/* Logo & tekst w wersji jasnej (dla Edukacji) */
.logo-blue { border-color: var(--edu-blue); color: var(--edu-blue); }
.text-on-light { color: var(--edu-text-on-light); }

/* Przyciski Nawigacji */
.socials-top a { color: var(--main-text-on-dark); font-size: 1.5rem; transition: 0.3s; }
.socials-top a:hover { color: var(--main-cyan); }

.btn-menu-style { background: transparent; border: 1px solid #555; color: var(--main-text-on-dark); padding: 8px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-menu-style:hover { border-color: var(--main-cyan); color: var(--main-cyan); }

.light-menu { border-color: var(--edu-border-light); color: var(--edu-text-on-light); }
.light-menu:hover { border-color: var(--edu-blue); color: var(--edu-blue); }


/* --- HUB CONTENT --- */
#hub-screen { background: var(--main-dark-bg); color: var(--main-text-on-dark); }
.hub-content {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 120px; width: 100%;
}
.hub-header { text-align: center; margin-bottom: 50px; z-index: 10; position: relative; }
.hub-title { font-size: 3rem; margin-bottom: 10px; color: var(--main-text-on-dark); text-shadow: 0 0 20px rgba(0,0,0,0.8); line-height: 1.1; }
.hub-subtitle { color: var(--main-muted-on-dark); background: rgba(0,0,0,0.6); padding: 5px 15px; border-radius: 20px; display: inline-block; }
.highlight { color: var(--main-cyan); }

.hub-cards { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; z-index: 10; width: 100%; padding: 0 20px; }

/* KARTY HUB (SOLIDNE) */
.hub-card {
    width: 100%; max-width: 320px; padding: 40px 30px; border-radius: 20px; text-align: center;
    position: relative; transition: transform 0.3s; cursor: pointer; border: 1px solid;
}
.hub-card:hover { transform: translateY(-10px); }

/* Ciemna Karta (Web) */
.dark-card { background: var(--main-dark-card); border-color: var(--main-border-dark); color: var(--main-text-on-dark); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.dark-card:hover { border-color: var(--main-cyan); }
.badge-cyan { background: var(--main-cyan); color: black; }
.icon-cyan { color: var(--main-cyan); font-size: 3rem; margin-bottom: 20px; }
.btn-outline-cyan { border: 1px solid var(--main-text-on-dark); color: var(--main-text-on-dark); padding: 10px 20px; border-radius: 30px; display: inline-block; margin-top: 20px; transition: 0.3s; font-weight: 600; }
.dark-card:hover .btn-outline-cyan { background: var(--main-text-on-dark); color: black; }
.dark-list { list-style: none; text-align: left; padding: 0; color: #ccc; margin-top: 20px; }
.dark-list i { color: var(--main-cyan); margin-right: 10px; }

/* Jasna Karta (Edu) */
.light-card { background: var(--edu-light-card); border-color: var(--edu-border-light); color: var(--edu-text-on-light); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.light-card:hover { border-color: var(--edu-blue); }
.badge-blue { background: var(--edu-blue); color: white; }
.icon-blue { color: var(--edu-blue); font-size: 3rem; margin-bottom: 20px; }
.btn-outline-blue { border: 1px solid var(--edu-text-on-light); color: var(--edu-text-on-light); padding: 10px 20px; border-radius: 30px; display: inline-block; margin-top: 20px; transition: 0.3s; font-weight: 600; }
.light-card:hover .btn-outline-blue { background: var(--edu-text-on-light); color: white; }
.light-list { list-style: none; text-align: left; padding: 0; color: var(--edu-muted-on-light); margin-top: 20px; }
.light-list i { color: var(--edu-blue); margin-right: 10px; }

.badge { position: absolute; top: 20px; right: 20px; font-size: 0.7rem; padding: 5px 10px; border-radius: 10px; font-weight: 800; }

/* Style dla sekcji Certyfikatów */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* To tworzy kafelki */
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
    max-width: 1200px; /* Zabezpieczenie szerokości */
    margin-left: auto;
    margin-right: auto;
}

.cert-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
    cursor: pointer;
    /* Ważne: To ogranicza wielkość kontenera */
    width: 100%; 
    max-width: 350px; /* Maksymalna szerokość kafelka */
    margin: 0 auto; /* Środkowanie */
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.15); /* Efekt świecenia */
    border-color: rgba(0, 255, 255, 0.5);
}
.cert-card img {
    width: 100%; /* Zdjęcie ma zająć 100% szerokości MAŁEJ KARTY, a nie ekranu */
    height: auto; /* Zachowaj proporcje */
    border-radius: 8px;
    display: block;
    margin-bottom: 15px;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.1);
    transition: 0.3s;
}

.cert-card p {
    color: #fff;
    margin: 0;
}

.highlight-cyan {
    color: #00f2fe;
    font-weight: bold;
}

.cert-card:hover img {
    filter: brightness(1); /* Rozjaśnienie po najechaniu */
}

.cert-card p {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}
/* Style dla kart certyfikatów */
.cert-card {
    cursor: pointer; /* Pokazuje rączkę po najechaniu */
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.5);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cert-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Efekt zoomowania po najechaniu */
.cert-card:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

/* Ikonka lupy po najechaniu */
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #00ffff; /* Twój kolor cyan */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover .zoom-icon {
    opacity: 1;
}

/* --- STYLE DLA POPUPA (MODAL) --- */
.modal {
    display: none; /* <--- TO JEST KLUCZOWE! Domyślnie musi być ukryty */
    position: fixed;
    z-index: 9999;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px; /* Maksymalna szerokość */
    max-height: 85vh; /* Żeby nie było wyższe niż ekran */
    object-fit: contain;
    border: 2px solid #00ffff; /* Ramka w Twoim kolorze */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

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

.close-btn:hover,
.close-btn:focus {
    color: #00ffff;
    text-decoration: none;
    cursor: pointer;
}

/* RWD dla telefonów */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 95%;
    }
    .close-btn {
        top: 10px;
        right: 20px;
    }
}

/* --- ELEMENTY WSPÓLNE PODSTRON --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-pad { padding: 60px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; text-transform: uppercase; font-weight: 800; }
.hero { text-align: center; padding: 60px 20px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.btn-cta { padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 800; display: inline-block; margin-top: 30px; border: none; cursor: pointer; transition: 0.3s; color: #000; }
.btn-cta:hover { transform: scale(1.05); }

/* --- WEBDEV (CIEMNY STYL) --- */
#webdev-screen { background: var(--main-dark-bg); color: var(--main-text-on-dark); }
.highlight-cyan { color: var(--main-cyan); }
.pill-cyan { border: 1px solid rgba(0,242,254,0.3); color: var(--main-cyan); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; margin-bottom: 20px; display: inline-block; }
.cta-cyan { background: var(--main-cyan); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.dark-service-card { background: var(--main-dark-card); border: 1px solid var(--main-border-dark); padding: 30px; border-radius: 15px; text-align: center; }
.dark-service-card i { font-size: 2.5rem; margin-bottom: 15px; display: block; }

/* Proces (Jak Działam) */
.process-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 30px; }
.process-step { background: var(--main-dark-card); border: 1px solid var(--main-border-dark); padding: 20px; width: 280px; border-radius: 15px; text-align: center; position: relative; }
.step-number { position: absolute; top: 10px; right: 10px; font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.05); }
.process-step h4 { color: var(--main-cyan); margin-bottom: 10px; font-size: 1.2rem; }
.process-step p { color: var(--main-muted-on-dark); font-size: 0.9rem; }

.dark-form input, .dark-form textarea { background: #1a1a1a; border: 1px solid #333; color: var(--main-text-on-dark); padding: 15px; width: 100%; border-radius: 10px; margin-bottom: 15px; outline: none; }
.dark-form input::placeholder, .dark-form textarea::placeholder { color: var(--main-muted-on-dark); }
.dark-form input:focus, .dark-form textarea:focus { border-color: var(--main-cyan); }

footer { text-align: center; padding: 30px; color: #666; font-size: 0.8rem; }


/* --- EDUKACJA (JASNY STYL) --- */
#korepetycje-screen { background: var(--edu-light-bg); color: var(--edu-text-on-light); }
.highlight-blue { color: var(--edu-blue); }
.pill-blue { border: 1px solid rgba(52, 152, 219, 0.3); color: var(--edu-blue); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; margin-bottom: 20px; display: inline-block; background: rgba(52, 152, 219, 0.05); }
.cta-blue { background: var(--edu-blue); color: white; }

.light-service-card { background: var(--edu-light-card); border: 1px solid var(--edu-border-light); padding: 30px; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.light-service-card p { color: var(--edu-muted-on-light); }

.text-blue { color: var(--edu-blue); font-size: 2.5rem; font-weight: 800; display: block; margin-bottom: 15px; }

/* Terminy */
.schedule-container { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.light-day { background: var(--edu-light-card); padding: 20px; border-radius: 15px; border: 1px solid var(--edu-border-light); }
.light-day h3 { text-align: center; border-bottom: 1px solid var(--edu-border-light); padding-bottom: 10px; margin-bottom: 15px; }
.slot { display: flex; justify-content: space-between; padding: 10px; margin-bottom: 5px; font-size: 0.9rem; border-radius: 5px; }
.free { background: rgba(46, 204, 113, 0.1); color: #27ae60; }
.taken { background: rgba(231, 76, 60, 0.1); color: #c0392b; text-decoration: line-through; }
.ask { background: rgba(221, 188, 3, 0.1); color: #ff7b00; }

.light-form input, .light-form textarea { background: var(--edu-light-card); border: 1px solid var(--edu-border-light); color: var(--edu-text-on-light); padding: 15px; width: 100%; border-radius: 10px; margin-bottom: 15px; outline: none; }
.light-form input::placeholder, .light-form textarea::placeholder { color: var(--edu-muted-on-light); }
.light-form input:focus, .light-form textarea:focus { border-color: var(--edu-blue); }

.light-footer { color: var(--edu-muted-on-light); }


/* --- MOBILE RESPONSIVE --- */
@media(max-width: 768px) {
    .hub-title { font-size: 2.2rem; }
    .navbar { padding: 10px 5%; }
    .hub-content { padding-top: 100px; }
    
    /* Logo na mobile w hubie - wyraźne na obu tłach */
    .logo-square-big { border-color: white; background: rgba(0,0,0,0.6); }
    .hub-cards { flex-direction: column; align-items: center; gap: 20px; }
}

/* Kursor (PC) */
@media(min-width: 1024px) {
    body { cursor: none; }
    .cursor { display: block; width: 8px; height: 8px; background: var(--main-cyan); border-radius: 50%; position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%, -50%); }
    .cursor2 { display: block; width: 40px; height: 40px; border: 2px solid var(--main-cyan); border-radius: 50%; position: fixed; z-index: 9998; pointer-events: none; transition: 0.1s; transform: translate(-50%, -50%); }
    
    /* Zmiana koloru kursora na jasnym tle edukacji */
    #korepetycje-screen .cursor { background: var(--edu-blue); }
    #korepetycje-screen .cursor2 { border-color: var(--edu-blue); }
}