/* ========================================================================== */
/* RESET + GLOBAL BASE */
/* ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #dffefe;
    font-family: 'Inter', sans-serif;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    padding-top: 30px;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================================================== */
/* GLOBAL NAV */
/* ========================================================================== */

.global-nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.12);
    z-index: 1000;
}

.global-nav .nav-right a {
    margin-left: 24px;
    color: #baffff;
    font-size: 15px;
    white-space: nowrap;
    transition: 0.25s ease;
}

.global-nav .nav-right a:hover,
.global-nav .nav-right a.active {
    color: #00faff;
    text-shadow: 0 0 6px #00eaff;
}

/* ========================================================================== */
/* HERO (wspólny dla wszystkich stron) */
/* ========================================================================== */

.hero {
    height: 18vh;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 120px;
    padding-left: 32px;
    padding-right: 32px;
    text-align: center;
    position: relative;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 52px;
    letter-spacing: 1px;
    color: #00faff;
    text-shadow: 0 0 18px #00eaff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.88;
    max-width: 720px;
    color: #c2ffff;
}

/* ========================================================================== */
/* HERO ORB */
/* ========================================================================== */

.hero-orb {
    width: 480px;
    height: 480px;
    border-radius: 50%;
    position: absolute;
    filter: blur(10px);
    top: 55%;
    transform: translateY(-50%);
    animation: orbPulse 6s infinite ease-in-out;
    z-index: -1;
}

@keyframes orbPulse {
    0% { transform: translateY(-50%) scale(0.9); opacity: 0.6; }
    50% { transform: translateY(-50%) scale(1.15); opacity: 1; }
    100% { transform: translateY(-50%) scale(0.9); opacity: 0.6; }
}

/* Oddzielne gradienty dla każdej sekcji */
.eco-orb     { background: radial-gradient(circle, #00faffaa, #003b3b11 70%); }
.tech-orb    { background: radial-gradient(circle, #00faffaa, #002e2e11 70%); }
.flux-orb    { background: radial-gradient(circle, #00faffaa, #00404011 70%); }
.security-orb{ background: radial-gradient(circle, #00faffaa, #00252511 70%); }
.style-orb   { background: radial-gradient(circle, #00faffaa, #00464611 70%); }
.promo-orb   { background: radial-gradient(circle, #00faffaa, #00313111 70%); }
.contact-orb { background: radial-gradient(circle, #00faffaa, #00202011 70%); }
.reg-orb     { background: radial-gradient(circle, #00faffaa, #00191911 70%); }
.privacy-orb { background: radial-gradient(circle, #00faffaa, #00151511 70%); }

/* ========================================================================== */
/* SECTIONS */
/* ========================================================================== */

.section {
    padding: 50px 40px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 18px;
    color: #00faff;
    text-shadow: 0 0 14px #00eaff;
}

.section-sub {
    font-size: 18px;
    color: #c8ffff;
    opacity: 0.85;
    margin-bottom: 50px;
}

/* ========================================================================== */
/* GRIDY */
/* ========================================================================== */

.grid-3,
.grid-4,
.grid-2 {
    display: grid;
    gap: 26px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .grid-4,
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .grid-4,
    .grid-3,
    .grid-2 { grid-template-columns: 1fr; }
}

/* ========================================================================== */
/* CARDS */
/* ========================================================================== */

.card {
    padding: 32px;
    background: rgba(0, 20, 20, 0.4);
    border: 1px solid rgba(0,255,255,0.18);
    border-radius: 16px;
    transition: 0.3s ease;
}

.card:hover {
    background: rgba(0, 60, 60, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(0,255,255,0.25);
}

.card h3 {
    font-size: 20px;
    color: #00faff;
    margin-bottom: 12px;
}

.card p {
    font-size: 16px;
    color: #dfffff;
    opacity: 0.9;
}

/* ========================================================================== */
/* SPECYFICZNE DLA RÓŻNYCH PODSTRON */
/* ========================================================================== */

/* EKOSYSTEM */
.eco-grid .card {}

/* TECH */
.tech-grid .card {}

/* FLUX */
.flux-grid .card {}

/* BEZPIECZEŃSTWO */
.pillar-card,
.safe-card {
    padding: 28px;
    border-radius: 14px;
    background: rgba(0,20,20,0.4);
    border: 1px solid rgba(0,255,255,0.22);
    transition: 0.3s;
}
.pillar-card:hover,
.safe-card:hover {
    background: rgba(0,60,60,0.35);
}

/* STYLE – KSIĘGA WIZUALNA */
.color-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(5, 1fr);
}

.color-card {
    padding: 10px;
    background: rgba(0,40,40,0.3);
    border-radius: 12px;
    border: 1px solid rgba(0,255,255,0.18);
}

.color-sample {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* PROMO */
.element-grid,
.goal-grid,
.shorts-grid,
.ui-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.element-card,
.goal-card,
.shorts-card,
.ui-card {
    background: rgba(0,20,20,0.35);
    padding: 30px;
    border-radius: 14px;
    border: 1px solid rgba(0,255,255,0.18);
    transition: 0.3s;
}

.element-card:hover,
.goal-card:hover,
.shorts-card:hover,
.ui-card:hover {
    background: rgba(0,60,60,0.3);
}

/* KONTAKT */
.contact-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.contact-card {
    padding: 32px;
    border-radius: 14px;
    background: rgba(0,20,20,0.35);
    border: 1px solid rgba(0,255,255,0.2);
}

.form-box {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: auto;
}

.form-box input,
.form-box textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,255,0.2);
    background: rgba(0,25,25,0.4);
    color: #cfffff;
}

.form-box button {
    padding: 14px;
    border-radius: 10px;
    background: rgba(0,255,255,0.25);
    border: 1px solid rgba(0,255,255,0.4);
    color: #000;
    font-weight: 600;
    cursor: pointer !important;
}

/* ========================================================================== */
/* REGULAMIN / POLITYKA */
/* ========================================================================== */

.reg-box,
.privacy-box {
    max-width: 900px;
    margin: auto;
    padding: 40px;
    background: rgba(0,20,20,0.4);
    border: 1px solid rgba(0,255,255,0.18);
    border-radius: 14px;
    text-align: left;
    line-height: 1.7;
}

.reg-box p,
.privacy-box p {
    font-size: 16px;
    margin-bottom: 14px;
}

/* ========================================================================== */
/* FOOTER */
/* ========================================================================== */

.global-footer {
    text-align: center;
    padding: 40px;
    margin-top: 80px;
    border-top: 1px solid rgba(0,255,255,0.12);
    color: #7cecec;
}

.footer-links a {
    margin: 0 12px;
    color: #78ffff;
    transition: 0.25s;
}

.footer-links a:hover {
    color: #00faff;
    text-shadow: 0 0 6px #00eaff;
}

/* ========================================================================== */
/* RESPONSYWNOŚĆ */
/* ========================================================================== */

@media (max-width: 680px) {
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 16px; }

    .section h2 { font-size: 30px; }

    .global-nav { padding: 14px 20px; }
    .global-nav .nav-right a { margin-left: 14px; font-size: 14px; }

    .color-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .element-grid,
    .goal-grid,
    .ui-grid,
    .shorts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .hero {
        height: auto !important;
        min-height: 280px !important;
        padding-top: 140px !important;
        padding-bottom: 40px !important;
        justify-content: flex-start !important;
    }
}

/* ========================== */
/* FLUX LOADING ANIMATION     */
/* ========================== */

.flux-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
    transition: 0.3s ease;
}

.hidden {
    display: none;
}

.flux-orb-loader {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, #00faffcc, #00333300 70%);
    filter: blur(8px);
    animation: fluxPulse 5s infinite ease-in-out;
    position: absolute;
}

.flux-ring {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(0,255,255,0.25);
    border-top-color: #00faff;
    border-radius: 50%;
    animation: fluxSpin 1.6s linear infinite;
    margin-bottom: 200px;
}

.flux-loading p {
    margin-top: 260px;
    color: #a8ffff;
    font-size: 22px;
    text-shadow: 0 0 12px #00faff;
    letter-spacing: 1px;
}

/* Animacje */
@keyframes fluxPulse {
    0%   { transform: scale(0.85); opacity: 0.7; }
    50%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.85); opacity: 0.7; }
}

@keyframes fluxSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ========================== */
/* SUCCESS MESSAGE FLUX STYLE */
/* ========================== */

.flux-success {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 60, 60, 0.45);
    padding: 16px 28px;
    border-radius: 12px;
    border: 1px solid rgba(0,255,255,0.4);
    color: #a8ffff;
    font-size: 18px;
    text-shadow: 0 0 10px #00faff;
    backdrop-filter: blur(6px);
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.flux-success.show {
    opacity: 1;
}

.hidden {
    display: none;
}

/* ========================================================= */
/* FIX: FLUX overlay + success message overriding          */
/* ========================================================= */

/* Nadpisujemy wszystkie wcześniejsze konflikty, niczego nie kasując */

/* 1. Jedna wersja .hidden, absolutny priorytet */
.hidden {
    display: none !important;
}

/* 2. Overlay — upewniamy się, że przykrywa stronę CAŁĄ */
#flux-loading.flux-loading {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}

/* 3. Tekst w overlay ma być centralny, nie na dole */
#flux-loading p {
    margin-top: 240px !important;
    text-align: center;
    font-size: 22px;
    color: #a8ffff;
}

/* 4. Orb loader – upewniamy się, że ma absolutną pozycję i świeci */
#flux-loading .flux-orb-loader {
    position: absolute !important;
    top: 40% !important;
    transform: translateY(-50%);
}

/* 5. Kręcący się ring */
#flux-loading .flux-ring {
    position: relative;
    z-index: 10;
}

/* 6. Success box — zawsze widoczny nad footerem */
#flux-success.flux-success {
    position: fixed !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000000 !important;
    opacity: 0;
    transition: opacity .4s ease-in-out;
}

#flux-success.show {
    opacity: 1 !important;
}

.form-box button:hover {
    background: rgba(0,255,255,0.35) !important;
    box-shadow: 0 0 12px #00faff !important;
    animation: fluxButtonPulse 1.8s infinite ease-in-out;
}

@keyframes fluxButtonPulse {
    0%   { box-shadow: 0 0 6px #00faff; }
    50%  { box-shadow: 0 0 16px #00faff; }
    100% { box-shadow: 0 0 6px #00faff; }
}
