
/* ========================================
BASE CSS – DoubleBrain Portal
======================================== */

html,
body {
overflow-x: hidden;
touch-action: manipulation;
height: 100%;
width: 100%;
overscroll-behavior: none;
/* lepsza responsywność na dotyk */
}

@font-face {
font-family: 'Poppins';
src: url('../fonts/Poppins/poppins-v23-latin-regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Poppins';
src: url('../fonts/Poppins/poppins-v23-latin-500.woff2') format('woff2');
font-weight: 500;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Poppins';
src: url('../fonts/Poppins/poppins-v23-latin-600.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}

.splash-buttons {
opacity: 0;
animation: fadeInText 1s ease 4s forwards;
/* pojawią się po 4s */
}

:root {
--text-color: #ffffff;
--accent-color: #00ffff;
}

/* ===== Reset / Typografia ===== */
body {
margin: 0;
padding: 0;
background-color: #000;
color: var(--text-color);
font-family: 'Segoe UI', monospace;
}

/* ===== Layout główny ===== */
.identity-grid {
display: flex;
flex-direction: column;
gap: 1.5rem;
padding: 3rem 1rem;
max-width: 1200px;
margin: 0 auto;
justify-content: center;
align-items: center;
}

@media (min-width: 1024px) {
.identity-grid {
flex-direction: row;
}
}

@media (max-width: 768px) {
.hover-wrapper {
opacity: 1 !important;
transform: none !important;
font-size: 0.9rem;
}

.identity-box:hover .hover-wrapper {
opacity: 1 !important;
transform: none !important;
}
}
@media (max-width: 768px) {
.hover-wrapper {
opacity: 1 !important;
transform: none !important;
}

.identity-box:hover .hover-wrapper {
opacity: 1 !important;
transform: none !important;
}
}

@media (max-width: 768px) {
.identity-box::before {
opacity: 0.4;
/* było 0.15–0.25 */
filter: brightness(0.5) contrast(1.1);
/* było brightness(0.3) */
}
}

@media (max-width: 768px) {
.hover-wrapper {
opacity: 1 !important;
transform: none !important;
}

@media (max-width: 768px) {
.identity-box::before {
opacity: 0.4 !important;
filter: brightness(0.5) contrast(1.1) !important;
}
}

.identity-box.hidden-text .hover-wrapper {
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;   }

.identity-box:hover .hover-wrapper,
.identity-block-box:hover .hover-wrapper {
opacity: 1 !important;
transform: none !important;
}
}
@media (max-width: 768px) {
.identity-box::before {
opacity: 0.4 !important;
filter: brightness(0.5) contrast(1.1) !important;
}
}


/* === IMAGE BACKGROUNDS BY data-id === */

/* INDEX.html – wizja/nadzieja/symbioza */
.identity-box[data-id="wizja"]::before {
background-image: url('../img/indexHTML/index_wizja.jpg');
}

.identity-box[data-id="nadzieja"]::before {
background-image: url('../img/indexHTML/index_nadzieja.jpg');
}

.identity-box[data-id="symbioza"]::before {
background-image: url('../img/indexHTML/index_symbioza.jpg');
}

/* DBRAIN.html – no/yes/official/o nas */
.identity-box[data-id="no"]::before {
background-image: url('../img/dbrainHTML/db_no_left.jpg');
}

.identity-box[data-id="yes"]::before {
background-image: url('../img/girls/coco_yes.jpg');
}

.identity-box[data-id="official"]::before {
background-image: url('../img/dbrainHTML/db_official_right.jpg');
}

.identity-box[data-id="o nas"]::before {
background-image: url('../img/girls/roksana.png');
}

/* PROJEKTY.html – 3 projekty */
.identity-box[data-id="ZaorajSystem"]::before {
background-image: url('../img/girls/killU.png');
}

.identity-box[data-id="CyberFutures"]::before {
background-image: url('../img/projektyHTML/cyberFutures.jpg');
}

.identity-box[data-id="Utkani z mchu"]::before {
background-image: url('../img/projektyHTML/utkanizmchu.jpg');
}

/* ===== Komponent: identity-box (karta) ===== */
.identity-box {
position: relative;
background: rgba(255, 255, 255, 0.03);
border-radius: 18px;
padding: 4rem;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.08);
overflow: hidden;
width: 100%;
max-width: 280px;
aspect-ratio: 9 / 16;
cursor: pointer;
transform-style: preserve-3d;
perspective: 1000px;
--bg-transform: scale(1);
transform: scale(0.9);
transform-origin: center center;

}

.identity-box>* {
position: relative;
z-index: 1;
perspective: 800px;
}

.intro-lead {
font-size: 1.1rem;
font-weight: bold;
margin-bottom: 1.5rem;
color: #0ff;
}

/* ===== Komponent: zawartość boxa (hover efekt) ===== */
.hover-wrapper {
position: relative;
z-index: 2;
opacity: 1;
transform: translateY(30px);
transition: opacity 1.8s ease, transform 1.5s ease;
}

.identity-box:hover .hover-wrapper {
opacity: 0;
transform: translateY(0);
transition: opacity 1.6s ease, transform 3.2s ease;
}

/* ===== Tło: dynamiczny background-image z animacją ===== */
.identity-box::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 1002%;
height: 100%;
background-size: cover;
background-position: center;
opacity: 0.85;
z-index: 0;
transform: var(--bg-transform);
transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
will-change: transform, opacity;
opacity: 0.7;
filter: brightness(1.02) contrast(1.05);
pointer-events: none;
}

.identity-box:hover::before {
opacity: 1;
filter: brightness(1.05) contrast(1.05);
transform: scale(1.05) translateZ(10px);
}


/* ===== Typowanie (planowane) ===== */
.identity-box:nth-child(1)::after {

position: absolute;
bottom: 1rem;
left: 1rem;
font-size: 1rem;
color: var(--accent-color);
opacity: 1;
white-space: nowrap;
overflow: hidden;
border-right: 1px solid var(--accent-color);
width: 0;
animation: typing 3s steps(12, end) 1.5s forwards, blink 0.7s step-end infinite;
pointer-events: none;
}

.identity-box:nth-child(2)::after {

position: absolute;
bottom: 1rem;
left: 1rem;
font-size: 1rem;
color: var(--accent-color);
opacity: 1;
white-space: nowrap;
overflow: hidden;
border-right: 2px solid var(--accent-color);
width: 0;
animation: typing 3s steps(12, end) 2.5s forwards, blink 0.7s step-end infinite;
pointer-events: none;
}

.identity-box:nth-child(3)::after {

position: absolute;
bottom: 1rem;
left: 1rem;
font-size: 1rem;
color: var(--accent-color);
opacity: 1;
white-space: nowrap;
overflow: hidden;
border-right: 2px solid var(--accent-color);
width: 0;
animation: typing 3s steps(12, end) 3.5s forwards, blink 0.7s step-end infinite;
pointer-events: none;
}

@keyframes typing {
from {
width: 0;
}

to {
width: 10ch;
}
}

@keyframes blink {
0% {
border-color: var(--accent-color);
}

50% {
border-color: transparent;
}

100% {
border-color: var(--accent-color);
}
}

/* ===== Header ===== */
.site-header {
position: sticky;
top: 0;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
height: 100px;
/* ustalona wysokość */
transition: height 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
background-color: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
padding: 0 2rem;
/* tylko poziomy padding */
}

.site-header.scrolled {
height: 80px;
/* mniejsza, ale stała wysokość */
backdrop-filter: blur(14px);
background-color: rgba(0, 0, 0, 0.85);
}

.site-header.scrolled .main-nav a {
font-size: 0.9rem;
}

.site-header .logo-img {
height: 80px;
/* bazowy rozmiar logo */
transition: height 0.3s ease;
}

.site-header.scrolled .logo-img {
height: 60px;
}

.site-header .logo {
font-size: 1.25rem;
transition: font-size 0.3s ease;
}

.site-header.scrolled .logo {
font-size: 1rem;
}

.logo-wrap {
display: flex;
align-items: center;
gap: 1rem;
position: relative;
flex-shrink: 0;
}

.logo {
font-weight: bold;
font-size: 1.25rem;
color: #5ef2e6;
transition: font-size 0.3s ease;
}

.logo-tagline {
font-size: 0.85rem;
font-style: italic;
color: rgba(255, 255, 255, 0.4);
margin-top: 0.2rem;
letter-spacing: 0.025em;
transition: opacity 0.3s ease, font-size 0.3s ease;
}

.main-nav {
display: flex;
padding-right: 3rem;
gap: 2rem;
font-size: 1rem;
color: white;
text-decoration: none;
flex-grow: 0;
flex-shrink: 1;
max-width: 60%;
}

.main-nav a:hover {
color: #5ef2e6;
}

.container {
margin-top: 6rem;
max-width: 800px;
padding: 3.5rem 2rem;
}

/* ===== Responsywność (mobile first) ===== */


.identity-box {
flex: none;
}


/* === LAYOUT.CSS === */
/* ========================================
LAYOUT.CSS – układ sekcji DoubleBrain
======================================== */
.logo-tagline {
font-size: 0.85rem;
font-style: italic;
color: rgba(255, 255, 255, 0.4);
margin-top: 0.2rem;
letter-spacing: 0.025em;
}

.identity-grid {
display: flex;
flex-direction: column;
gap: 2rem;
padding: 4rem 2rem;
max-width: 1200px;
margin: 0 auto;
justify-content: center;
align-items: center;
}

.site-footer {
background-color: #0a0a0a;
color: #bbb;
text-align: center;
padding: 2rem 1rem;
font-size: 1rem;
border-top: 1px solid #111;
}

.site-footer a {
color: #00ffff;
text-decoration: none;
font-weight: 500;
color: var(--accent-color);
}

.site-footer a:hover {
text-decoration: underline;
}

.site-footer p {
margin: 0.5em 0;
}

.site-footer hr {
margin: 1.5rem auto;
width: 60%;
border-color: #222;
}

.site-footer .legal {
font-size: 0.85rem;
color: #777;
max-width: 800px;
margin: 1em auto 0 auto;
line-height: 1.5;
}
.site-footer i {
width: 20px;
height: 20px;
vertical-align: middle;
margin-right: 0.5rem;
stroke: var(--accent-color);
stroke-width: 1.8;
}


.site-footer h4 {
color: var(--accent-color);
font-size: 1.1rem;
margin-bottom: 0.5rem;
}

/* === Linki zewnętrzne (np. do Nature, PWN i sociali) === */
a[href^="http"]:not(.button):not(.sigmaverse-links a) {
color: #41d6ff;
text-decoration: none;
border-bottom: rgba(0, 255, 255, 0.4) dotted #41d6ff;
transition: all 0.3s ease;
}

a[href^="http"]:not(.button):not(.sigmaverse-links a):hover {
color: #ffffff;
border-bottom-style: solid;
text-shadow: 0 0 6px #41d6ff;
}

.sigma-return-link {
display: inline-block;
margin-top: 0.5rem;
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.4);
text-decoration: none;
transition: color 0.3s ease;
}
.sigma-return-link:hover {
color: #00ffff;
}


/* === COMPONENTS.CSS === */
/* ========================================
COMPONENTS.CSS – elementy graficzne
======================================== */
.logo {
font-size: 1.8rem;
font-weight: bold;
color: var(--accent-color);
}

.logo-wrap {
display: flex;
flex-shrink: 0;
align-items: center;
gap: 1rem;
}

.logo-tagline {
font-size: 0.85rem;
font-style: italic;
color: rgba(255, 255, 255, 0.4);
margin-top: 0.2rem;
letter-spacing: 0.025em;
}

.main-nav ul {
list-style: none;
display: flex;
gap: 1rem;
}

.logo-img {
max-height: 66px;
width: auto;
display: block;
filter: drop-shadow(0 0 1px rgba(0, 255, 255, 0.4));
}

.logo {
font-size: 1.1rem;
/* zmniejszony tekst logo */
font-weight: bold;
color: var(--accent-color);
}

.logo-wrap {
display: flex;
align-items: center;
gap: 0.75rem;
/* nieco ciaśniej */
}

/* Nadpisanie starych stylów, jeśli nie chcesz usuwać */

.identity-box {
position: relative;
background: rgba(255, 255, 255, 0.03);
border-radius: 12px;
padding: 1.2rem;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.08);
color: var(--text-color);
overflow: hidden;
width: 100%;
max-width: 240px;
min-height: 380px;
cursor: pointer;
--bg-transform: scale(1);
transform: scale(0.9);
transition: transform 0.5s ease;
display: flex;
flex-direction: column;
justify-content: space-between;
word-break: break-word;
}

.identity-box::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
opacity: 0.15;
z-index: 0;
transform: var(--bg-transform);
transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
will-change: transform, opacity;
pointer-events: none;
filter: brightness(0.3) contrast(1.2)
}

.identity-block-box {
transform-style: preserve-3d;
perspective: 1000px;
max-width: 320px;
min-height: 460px;
transform: scale(0.95);
}



.identity-box:hover::before {
opacity: 0.7;
filter: brightness(1.1) contrast(1.1);
}

.identity-box {
position: relative;
z-index: 0;
}

.identity-box h2 {
font-size: 1.5rem;
color: var(--accent-color);
margin-bottom: 1rem;
}

.identity-box p {
font-size: 1rem;
line-height: 1.6;
overflow: visible;
text-overflow: unset;
white-space: normal;
}

.hover-wrapper {
position: relative;
z-index: 2;
opacity: 1;
transform: translateY(30px);
transition: opacity 0.6s ease, transform 0.6s ease;
}

.identity-box:hover .hover-wrapper,
.identity-block-box:hover .hover-wrapper {
opacity: 0;
transform: translateY(0);

}

.btn-toggle-identity {
background-color: #0a0a0a;
color: var(--accent-color);
border: 2px solid var(--accent-color);
padding: 1rem 2rem;
font-size: 1rem;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-toggle-identity:hover,
.btn-toggle-identity:focus-visible {
background-color: var(--accent-color);
color: #0a0a0a;
}


.identity-obecnosc {
position: fixed;
inset: 0;
z-index: 10;
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem;
background: rgba(0, 0, 0, 0.9);
}

.identity-obecnosc.show {
display: flex;
animation: fadeIn 1s ease forwards;
}

.identity-obecnosc-bg {
position: fixed;
inset: 0;

background-size: cover;
background-position: center;
opacity: 0.6;
z-index: 0;
}

.identity-obecnosc-content {
position: relative;
z-index: 1;
background: rgba(0, 0, 0, 0.65);
max-width: 700px;
height: 60vh;
overflow-y: auto;
padding: 2.5rem;
border-radius: 12px;
color: var(--text-color);
font-size: 1.3rem;
line-height: 1.9;
margin-top: 5rem;
/* <-- dodane */
}

.identity-tandem {
display: none;
position: relative;
background-color: #0e0e0e;
/* Albo tło z obrazkiem np.: */
/* background-image: url('img/tandem-bckg.jpg'); */
}

.identity-tandem.show {
display: block;
}

.identity-title {
font-size: 1.8rem;
color: var(--accent-color);
margin-bottom: 1rem;
text-align: center;
}

.identity-subtitle {
font-size: 1.4rem;
color: var(--accent-color);
margin-bottom: 2rem;
text-align: center;
}

.inline-link {
color: var(--accent-color);
text-decoration: underline;
font-weight: 500;
}

.inline-link:hover {
color: #fff;
}

::selection {
background: var(--accent-color);
color: #000;
}

::-moz-selection {
background: var(--accent-color);
color: #000;
}

@keyframes typing {
from {
width: 0;
}

to {
width: 10ch;
}
}

@keyframes blink {
0% {
border-color: var(--accent-color);
}

50% {
border-color: transparent;
}

100% {
border-color: var(--accent-color);
}
}

/* ===== Mobile first: efekt hover ===== */

@media (min-width: 1024px) {
.identity-grid {
flex-direction: row;
}

.identity-box {
flex: none;
}

.identity-box:hover .hover-wrapper {
opacity: 0;
transform: translateY(0);
}

.identity-obecnosc-content::-webkit-scrollbar {
width: 12px;
height: 85vh;
padding: 5rem 3rem;
/* spróbuj np. 85vh */
}

.identity-obecnosc-content:hover::-webkit-scrollbar-thumb {
background-color: var(--accent-color);
border-radius: 4px;
border: 3px solid #0a0a0a;
}

.identity-block-box:hover .hover-wrapper {
opacity: 0;
transform: translateY(0);
}
}

@media (max-width: 768px) {
.main-nav {
display: none;
flex-direction: column;
position: absolute;
top: 100%;
right: 0;
background-color: #111;
width: 100%;
padding: 1rem;
z-index: 999;
}

@media (max-width: 768px) {
.detail-content {
font-size: 1rem; /* zamiast 1.4rem */
line-height: 1.6;
padding: 1.2rem 1rem;
text-align: left; /* lub justify – zależnie od preferencji */
}

.detail-content h1,
.detail-content h2,
.detail-content h3 {
font-size: 1.2rem;
margin-top: 1rem;
margin-bottom: 0.75rem;
}

.detail-content p {
margin-bottom: 1rem;
}

.detail-content ul,
.detail-content ol {
padding-left: 1.2rem;
margin-bottom: 1.2rem;
}

.detail-content li {
font-size: 0.95rem;
margin-bottom: 0.5rem;
}
}


.main-nav.open {
display: flex;
}

.hamburger {
display: flex;
flex-direction: column;
justify-content: center;
gap: 4px;
width: 30px;
height: 22px;
cursor: pointer;
}

.hamburger span {
display: block;
height: 3px;
background-color: var(--accent-color);
border-radius: 2px;
transition: transform 0.3s ease, opacity 0.3s ease;
}
}

.hamburger.open span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
opacity: 0;
}

.hamburger.open span:nth-child(3) {
transform: rotate(-45deg) translate(6px, -6px);
}



@media (max-width: 480px) {
.btn-toggle-identity {
font-size: 0.85rem;
padding: 0.75rem 1rem;
white-space: normal;
text-align: center;
width: 80%;
max-width: 100%;
}
}

@media (max-width: 768px) {
.identity-obecnosc-bg {

background-size: cover;
background-position: center top;
}
}

/* === PATCHED BUTTON CONTAINER === */
.button-container {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
margin: 2rem auto;
padding: 1rem;
max-width: 100%;
position: relative;
z-index: 2;
}

.logo-img {
height: 100px;
filter: drop-shadow(0 0 2px var(--accent-color));
animation: logoSlideIn 1s ease-out forwards;
animation-delay: 0.5s;
opacity: 0;
transform: translateX(-20px);
transition: height 0.3s ease;
}

.logo-text {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
line-height: 1.3;
margin-top: -6px;
animation: logoFadeSlide 1s ease-out forwards;
animation-delay: 0.7s;
opacity: 0;
transform: translateX(-20px);
}

.logo-name {
font-size: 1.8rem;
font-weight: 700;
color: var(--accent-color);
text-shadow: 0 0 2px var(--accent-color);
animation: logoFadeGlow 1s ease-out forwards;
animation-delay: 0.8s;
opacity: 0;
transform: translateX(-20px);
}

.logo-tagline {
font-size: 0.95rem;
color: #66ffff;
animation: logoFadeGlow 1s ease-out forwards;
animation-delay: 1s;
opacity: 0;
transform: translateX(-20px);
}

@keyframes logoSlideIn {
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes logoFadeSlide {
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes logoFadeGlow {
0% {
opacity: 0;
transform: translateX(-20px);
text-shadow: none;
}

80% {
opacity: 1;
transform: translateX(0);
text-shadow: 0 0 4px var(--accent-color);
}

100% {
opacity: 1;
transform: translateX(0);
text-shadow: 0 0 6px var(--accent-color);
}
}

.main-nav ul {
display: flex;
gap: 2rem;
list-style: none;
padding: 0;
margin: 0;
}

.main-nav a {
font-family: 'Poppins', sans-serif;
font-size: 1.15rem;
font-weight: 600;
text-decoration: none;
color: var(--accent-color);
letter-spacing: 0.6px;
position: relative;
transition: color 0.2s ease;
transition: font-size 0.2s ease;
}

.main-nav a:hover {
color: #ffffff;
}

.main-nav a::after {
content: '';
position: absolute;
left: 0;
bottom: -4px;
width: 100%;
height: 2px;
background-color: var(--accent-color);
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease;
}

.main-nav a:hover::after {
transform: scaleX(1);
transform-origin: left;
}

/* === ODSTĘP NA DESKTOPIE: odsunięcie boxów żeby guzik był widoczny === */
@media (min-width: 1024px) {
#dbrainIntro {
margin-bottom: 4rem;
}
}

/* === ANIMACJA PRZYCISKU (PULS) === */
.btn-toggle-identity {
background-color: #0a0a0a;
color: var(--accent-color);
border: 2px solid var(--accent-color);
padding: 1rem 2rem;
font-size: 1rem;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease, color 0.3s ease;
animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {

0%,
100% {
box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4);
}

50% {
box-shadow: 0 0 10px 8px rgba(0, 255, 255, 0);
}
}

/* === FAKE LINKI POD BOXAMI (wizualna podpowiedź) === */
.fake-link {
margin-top: 1rem;
font-size: 0.9rem;
color: var(--accent-color);
font-style: italic;
opacity: 0.6;
text-align: right;
pointer-events: none;
}


#manifest .identity-obecnosc-bg {
background-image: url('../img/db_manifest_bg.jpg');
background-size: cover;
background-position: center;
opacity: 0.6;
}

/* === HERO BLOCK – SIGMA === */
.sigma-hero {
position: relative;
z-index: 0;
height: 90vh;
display: flex;
justify-content: center;
align-items: center;
background: url('../img/sigmaHTML_intro.jpg') center center / cover no-repeat;
background-color: #000;
/* fallback */
overflow: hidden;
}

.sigma-hero::before {
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: -1;
}

.hero-content {
text-align: center;
z-index: 1;
letter-spacing: 0.05em;

}

.hero-line {
opacity: 0;
transform: translateY(-30px);
animation: riseIn 1.4s ease-out forwards;
color: var(--accent-color);
font-size: 1.75rem;
font-weight: 600;
margin: 0.5rem 0;
}

.hero-line.first-line {
animation-delay: 0.4s;
}

.hero-line.second-line {
animation-delay: 1.1s;
}

@keyframes riseIn {
to {
opacity: 1;
transform: translateY(0);
}
}

/* === SIGMA GRID – sekcja z panelami informacyjnymi === */
.sigma-grid {
display: flex;
flex-wrap: wrap;
gap: 2rem;
justify-content: center;
margin-top: 4rem;
padding: 0 1rem;
}

.sigma-panel {
background: rgba(255, 255, 255, 0.03);
border-radius: 12px;
padding: 2rem;
flex: 1 1 300px;
min-width: 260px;
max-width: 380px;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
}

.sigma-panel p {
line-height: 1.6;
font-size: 1rem;
}

.sigma-official-block {
margin-top: 5rem;
padding: 4rem 2rem;
background: #0a0a0a;
text-align: center;
}

.sigma-official-block h2 {
color: var(--accent-color);
font-size: 1.75rem;
margin-bottom: 1rem;
}

.sigma-official-block p {
font-size: 1.1rem;
color: #ccc;
max-width: 700px;
margin: 0 auto 2rem;
}

.btn-official {
background-color: var(--accent-color);
color: #000;
padding: 1rem 2rem;
font-size: 1rem;
font-weight: bold;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.btn-official:hover {
background-color: #fff;
color: var(--accent-color);
}

.st.sigma-grid {
display: flex;
flex-wrap: wrap;
gap: 2rem;
justify-content: center;
margin-top: 4rem;
padding: 0 1rem;
}

.sigma-panel {
background: rgba(255, 255, 255, 0.03);
border-radius: 12px;
padding: 2rem;
flex: 1 1 300px;
min-width: 260px;
max-width: 380px;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
}

.sigma-panel p {
line-height: 1.6;
font-size: 1rem;
}

.sigma-panel.special {
background: rgba(0, 255, 255, 0.05);
border: 1px solid var(--accent-color);
box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.sigma-panel h3 {
color: var(--accent-color);
font-size: 1.2rem;
margin-bottom: 1rem;
}

.sigma-official-block {
margin-top: 5rem;
padding: 4rem 2rem;
background: #0a0a0a;
text-align: center;
}

.sigma-official-block h2 {
color: var(--accent-color);
font-size: 1.75rem;
margin-bottom: 1rem;
}

.sigma-official-block p {
font-size: 1.1rem;
color: #ccc;
max-width: 700px;
margin: 0 auto 2rem;
}

.btn-official {
background-color: var(--accent-color);
color: #000;
padding: 1rem 2rem;
font-size: 1rem;
font-weight: bold;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.btn-official:hover {
background-color: #fff;
color: var(--accent-color);
}

.sigma-block {
max-width: 960px;
margin: 4rem auto;
padding: 2rem;
background: #0e0e0e;
border-radius: 12px;
box-shadow: 0 0 10px rgba(94, 242, 230, 0.1);
color: #ddd;
}

.sigma-block h1,
.sigma-block h2,
.sigma-block h3 {
color: #5ef2e6;
}

.sigma-block ul,
.sigma-block ol {
padding-left: 1.5rem;
line-height: 1.8;
}

.sigma-block p {
font-size: 1.05rem;
line-height: 1.7;
margin-bottom: 1.5rem;
}

.sigma-note {
font-style: italic;
font-size: 0.9rem;
color: #aaa;
margin-top: 2rem;
}

.splash-screen {
position: fixed;
inset: 0;
background-color: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 1s ease-out;
}

.splash-screen img {
max-width: 200px;
margin-bottom: 2rem;
animation: glowPulse 3s ease-in-out infinite;
}

#splash-text {
color: #00ffff;
text-align: center;
font-size: 1.2rem;
line-height: 1.5;
max-width: 500px;
}

#splash-text span {
display: block;
margin-top: 1rem;
font-size: 1rem;
font-style: italic;
opacity: 0.7;
cursor: pointer;
transition: opacity 0.3s ease;
}

#splash-text span:hover {
opacity: 1;
text-shadow: 0 0 8px #00ffff;
}

@keyframes glowPulse {

0%,
100% {
filter: drop-shadow(0 0 2px #00ffff);
}

50% {
filter: drop-shadow(0 0 12px #00ffff);
}
}

.detail-view {
display: none;
position: relative;
padding: 3rem 2rem;
background-color: #000;
min-height: 100vh;
color: #ffffff;
font: 1.1rem 'Poppins', sans-serif;
font-weight: 400;
z-index: 900;
scroll-behavior: smooth;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}

.detail-view.active {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
will-change: transform, opacity;
}

.detail-bg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 0.3;
z-index: 0;
}

.detail-content {
font-size: 1.4rem;
position: relative;
z-index: 1;
max-width: 700px;
text-align: center;
background: rgba(0, 0, 0, 0.72);
/* zamiast blur */
padding: 2rem;
border-radius: 12px;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
will-change: transform, opacity;
transition: opacity 0.4s ease, transform 0.4s ease;
}

.back-to-boxes {
margin-top: 2rem;
padding: 1rem 2rem;
background-color: transparent;
border: 2px solid var(--accent-color);
color: #00FFFF;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
transition: all 0.3s ease;
}

.back-tandem {
background-color: #000 !important;
color: #00ffff !important;
border: 2px solid #00ffff;
font-weight: bold;
transition: background-color 0.3s ease;
}

.back-tandem:hover {
background-color: #00ffff;
color: #000;
}

.back-to-boxes:hover {
background-color: var(--accent-color);
color: #000;
}

.presence-trigger {
text-align: center;
background: rgba(0, 0, 0, 0.4);
color: var(--accent-color);
padding: 2rem;
font-size: 1.2rem;
font-style: italic;
cursor: pointer;
transition: background-color 0.4s ease, text-shadow 0.4s ease;
max-width: 100%;
border-top: 1px solid rgba(255, 255, 255, 0.08);
margin-top: 3rem;
letter-spacing: 0.5px;
animation: pulse-glow 4s ease-in-out infinite;
position: relative;
overflow: hidden;
}

.presence-trigger:hover {
background: rgba(0, 255, 255, 0.08);
text-shadow: 0 0 12px var(--accent-color);
}

@keyframes pulse-glow {

0%,
100% {
text-shadow: 0 0 5px var(--accent-color);
}

50% {
text-shadow: 0 0 15px var(--accent-color);
}
}

.sigma-gate {
text-align: center;
padding: 3rem 2rem;
background: rgba(0, 0, 0, 0.4);
margin-top: 3rem;
color: var(--accent-color);
font-size: 1.1rem;
font-style: italic;
}

.sigma-gate p {
margin-bottom: 1rem;
}

.sigma-portal-link {
padding: 0.75rem 2rem;
background-color: transparent;
border: 2px solid var(--accent-color);
color: var(--accent-color);
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 8px;
text-decoration: none;
transition: all 0.3s ease;
white-space: normal;
word-break: break-word;
text-align: center;
display: inline-block;
font-size: clamp(0.75rem, 2.5vw, 1rem);
}

.sigma-portal-link:hover {
background-color: var(--accent-color);
color: #000;
text-shadow: none;
}

.site-header .logo-wrap {
margin-left: 0;
justify-content: flex-start;
}

@media (max-width: 768px) {
.main-nav {
font-size: 0.95rem;
background-color: rgba(0, 0, 0, 0.9);
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 6px rgba(0, 255, 255, 0.05);
padding: 1rem 1.5rem;
}

.main-nav ul {
flex-direction: column;
gap: 0;
}

.main-nav li {
padding: 0.5rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav li:last-child {
border-bottom: none;
}

.main-nav a {
font-size: 1rem;
padding: 0.5rem 0;
color: var(--accent-color);
display: block;
}

@media (max-width: 768px) {
.hamburger {
display: flex;
flex-direction: column;
justify-content: center;
gap: 4px;
width: 30px;
height: 22px;
cursor: pointer;
z-index: 1001;
}

.hamburger span {
display: block;
height: 3px;
background-color: var(--accent-color);
border-radius: 2px;
transition: all 0.3s ease;
}

.main-nav {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-end;
position: absolute;
top: 100%;
right: 0;
width: 75vw;
max-width: 280px;
background-color: rgba(0, 0, 0, 0.95);
box-shadow: -4px 0 12px rgba(0, 255, 255, 0.05);
padding: 1.5rem;
border-left: 1px solid rgba(255, 255, 255, 0.08);
transform: translateX(100%);
opacity: 0;
transition: transform 0.35s ease, opacity 0.35s ease;
z-index: 1000;
}

.main-nav.open {
transform: translateX(0);
opacity: 1;
}

.main-nav ul {
display: flex;
flex-direction: column;
width: 100%;
gap: 0;
margin: 0;
padding: 0;
}

.main-nav li {
width: 100%;
padding: 0.75rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
text-align: right;
}

.main-nav li:last-child {
border-bottom: none;
}

.main-nav a {
font-size: 1rem;
color: var(--accent-color);
text-decoration: none;
display: block;
transition: color 0.3s ease;
}

.main-nav a:hover {
color: #ffffff;
}
}
}

.fade-in {
opacity: 0;
transform: translateY(30px);
transition: opacity 3s ease-out, transform 3s ease-out;
}

.fade-in.visible {
opacity: 1;
transform: translateY(0);

}

/* Karty Sigma Mode – Layout */

/* nowa wersja siatki */
.sigma-mode-card {
border: 1px solid #00ffff44;
border-radius: 10px;
padding: 2rem;
margin: 1.5rem;
background: #0d0d0d;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
position: relative;
}

.sigma-mode-card:hover {
transform: translateY(-5px);
box-shadow: 0 0 20px #00ffff88;
}

/* mała strzałka + tekst tooltipowy */
.sigma-mode-card::after {
content: 'Kliknij, by wejść >>>';
position: absolute;
bottom: 10px;
right: 15px;
font-size: 0.8rem;
color: #00ffffaa;
opacity: 0;
transition: opacity 0.3s ease;
}

.sigma-mode-card:hover::after {
opacity: 1;
}
.sigma-mode-card {
border: 1px solid #00ffff44;
border-radius: 10px;
padding: 2rem;
margin: 1.5rem;
background: #0d0d0d;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
position: relative;
}

.sigma-mode-card:hover {
transform: translateY(-5px);
box-shadow: 0 0 20px #00ffff88;
}

/* Kolorystyka dla TandemMode */
.tandem-mode-card {
background-color: #00FFFF;
color: #000;
border: 2px solid #0ff;
box-shadow: 0 0 10px #00ffff99;
}

.tandem-highlight {
background-color: #00FFFF;
color: #000;
border-left: 6px solid #00cccc;
padding: 2rem;
box-shadow: inset 0 0 12px #00eeee55;
}

/* mała strzałka + tekst tooltipowy */
.sigma-mode-card::after {
content: 'Kliknij, by wejść >>>';
position: absolute;
bottom: 10px;
right: 15px;
font-size: 0.8rem;
color: #00ffffaa;
opacity: 0;
transition: opacity 0.3s ease;
}

.sigma-modes-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
justify-content: center;
align-items: stretch;
padding: 2rem;
}

/* kwiat życia - sigmaCORE */

.core-flower {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
animation: pulse 4s infinite;
}

.core-flower svg {
filter: drop-shadow(0 0 8px #00ffff);
animation: rotate 20s linear infinite;
}

@keyframes pulse {

0%,
100% {
transform: scale(1);
opacity: 0.9;
}

50% {
transform: scale(1.03);
opacity: 1;
}
}

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

to {
transform: rotate(360deg);
}
}

.pentagram-visual svg {
transition: transform 0.8s ease-in-out;
}

.pentagram-visual:hover svg {
transform: rotate(360deg);
}

.pentagram-visual text {
font-family: monospace;
font-size: 14px;
transition: fill 0.4s;
cursor: pointer;
}

.pentagram-visual text:hover {
fill: #81c784;
}

.core-flower svg {
width: 400px;
height: 400px;
}

.rotating {
transform-box: fill-box;
transform-origin: 50% 50%;
animation: spin 20s linear infinite;
}

.orbit-1 {
animation-duration: 24s;
}

.orbit-2 {
animation-duration: 20s;
}

.orbit-3 {
animation-duration: 18s;
}

.orbit-4 {
animation-duration: 22s;
}

.orbit-5 {
animation-duration: 26s;
}

.orbit-6 {
animation-duration: 16s;
}

@keyframes spin {
0% {
transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}
}

.pulse {
animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

0%,
100% {
opacity: 1;
}

50% {
opacity: 0.4;
}
}

/* SIGMA NAVBAR STYLES */
.navbar {
background-color: #000;
padding: 0.5rem 1rem;
}

.nav-list {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin: 0;
padding: 0;
}

.nav-list li a {
color: #00ffff;
text-decoration: none;
font-weight: 500;
}

.nav-list li a.active {
border-bottom: 2px solid #00ffff;
}

.nav-toggle {
display: none;
font-size: 1.5rem;
cursor: pointer;
color: #00ffff;
}

@media (max-width: 768px) {
.nav-toggle {
display: block;
}

.nav-list {
display: none;
flex-direction: column;
background: #000;
width: 100%;
margin-top: 1rem;
}

.nav-list.open {
display: flex;
}
}

/* === SIGMAVERSE (Rozszerzenie "O nas") === */
.sigmaverse-appendix {
background: rgba(0, 0, 0, 0.8);
padding: 3rem 2rem;
margin-top: 4rem;
border-top: 1px solid rgba(255, 255, 255, 0.05);
text-align: center;
}

.sigmaverse-heading {
font-size: 1.6rem;
color: var(--accent-color, #5ef2e6);
margin-bottom: 1rem;
font-family: 'JetBrains Mono', monospace;
}

.sigmaverse-intro {
font-size: 1.1rem;
color: #ccc;
max-width: 720px;
margin: 0 auto 2rem;
font-style: italic;
line-height: 1.6;
}

.sigmaverse-links {
list-style: none;
padding: 0;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1rem;
max-width: 720px;
}

.sigmaverse-links a {
color: var(--accent-color, #5ef2e6);
font-size: 1.1rem;
text-decoration: none;
border-bottom: 1px dashed var(--accent-color, #5ef2e6);
padding-bottom: 4px;
transition: all 0.3s ease;
}

.sigmaverse-links a:hover {
color: #fff;
border-bottom-color: #fff;
text-shadow: 0 0 5px var(--accent-color, #5ef2e6);
}

/* === MOBILE NINJA-REVEAL PATCH === */
@media (max-width: 768px) {
.identity-box.hidden-text .hover-wrapper {
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
}

.identity-box.hidden-text::before {
opacity: 0.85 !important;
filter: brightness(1.1) contrast(1.1) !important;
transform: scale(1.05);
}
}

.sigmacode-box {
  background: radial-gradient(circle at center, rgba(0,255,255,0.05), rgba(0,255,255,0.02));
  border: 1px solid rgba(0, 255, 255, 0.15);
  padding: 2rem;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,255,255,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sigmacode-box:hover {
  box-shadow: 0 0 20px rgba(0,255,255,0.2), 0 0 30px rgba(0,255,255,0.1) inset;
  transform: scale(1.02);
}

.sigmacode-box h3 {
  color: cyan;
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0,255,255,0.2);
  margin-bottom: 1.5rem;
}

.sigmacode-box a {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid cyan;
  color: cyan;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sigmacode-box a:hover {
  background: cyan;
  color: black;
  box-shadow: 0 0 15px cyan;
  transform: translateY(-2px);
}
.sigmacode-box {
  padding: 2rem;
  margin-top: 3rem;
  border-radius: 20px;
  background: radial-gradient(circle at center, #071d1c 0%, #000 80%);
  box-shadow: 0 0 25px #00ffff22;
  text-align: center; /* ⬅️ centrowanie tekstu */
}

.sigma-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sigma-portal-link {
  background: #00ffff;
  color: #000;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease-in-out;
  box-shadow: 0 0 15px #00ffffaa;
}

.sigma-portal-link:hover {
  background: #00cccc;
  box-shadow: 0 0 25px #00ffff;
}
.nose-click-tip {
  margin-top: 1rem;
  font-style: italic;
  color: #00ffffbb;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nose-click-tip:hover {
  color: #ffffff;
}




/* === KONIEC PATCHA SIGMA === */
