/* === GLOBALNE USTAWIENIA === */
:root {
    --nexus-dark: #16181e;
    --nexus-card: #1e2029;
    --nexus-header: #2b2d36;
    --nexus-accent: #8bd94e;
    --nexus-accent-hover: #76b840;
}

body {
    background-color: var(--nexus-dark);
    color: #e5e7eb;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    opacity: 0;
    animation: pageLoad 0.5s ease-out forwards;
}

@keyframes pageLoad {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--nexus-dark); }
::-webkit-scrollbar-thumb { background: var(--nexus-header); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--nexus-accent); }

/* Ukrywanie scrollbara dla sekcji horyzontalnych */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* === ANIMACJE === */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-left { animation: fadeInLeft 0.8s ease-out forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease-out forwards; }

/* === MODAL ANIMATION (POP EFFECT) === */
.modal-content {
    /* Startujemy z mniejszej skali, aby efekt powiększenia był wyraźny */
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    /* Cubic-bezier daje efekt "sprężynowania" (bouncy) przy otwieraniu */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Stan aktywny - pełny rozmiar i widoczność */
.modal-active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Tło modala (backdrop) */
.modal-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-active .modal-backdrop {
    opacity: 1;
}

/* === TŁO GWIAZD (Hero) === */
.stars-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    animation: animStar 150s linear infinite;
}

.stars {
    width: 2px; height: 2px; background: transparent;
    box-shadow: 100px 100px #FFF, 200px 400px #FFF, 500px 300px #FFF, 800px 100px #FFF, 
                150px 600px #FFF, 300px 800px #FFF, 900px 700px #FFF, 1100px 200px #FFF,
                50px 200px #FFF, 1200px 900px #FFF, 400px 500px #FFF, 700px 800px #FFF,
                1000px 400px #FFF, 600px 100px #FFF, 250px 900px #FFF, 850px 300px #FFF,
                1150px 600px #FFF, 350px 150px #FFF, 750px 50px #FFF, 1250px 350px #FFF,
                1300px 800px #FFF, 1400px 100px #FFF, 1500px 500px #FFF, 1600px 300px #FFF;
    opacity: 0.8;
}

.stars2 {
    width: 3px; height: 3px; background: transparent;
    box-shadow: 200px 300px #b19cf8, 600px 100px #b19cf8, 900px 500px #b19cf8, 
                1200px 800px #b19cf8, 400px 900px #b19cf8, 100px 700px #b19cf8;
    animation-duration: 200s;
    opacity: 0.5;
}

.stars3 {
    width: 1px; height: 1px; background: transparent;
    box-shadow: 150px 250px #FFF, 550px 150px #FFF, 850px 550px #FFF, 1250px 850px #FFF;
    animation-duration: 100s;
    opacity: 1;
}

@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

/* === ASTEROIDY === */
.asteroid {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    z-index: 1;
}

.anim-asteroid-1 {
    top: 10%;
    left: -100px;
    width: 40px;
    animation: flyAsteroid1 35s linear infinite;
}

.anim-asteroid-2 {
    top: 60%;
    left: -150px;
    width: 60px;
    animation: flyAsteroid2 45s linear infinite;
    animation-delay: 5s;
}

.anim-asteroid-3 {
    top: 30%;
    right: -100px;
    width: 30px;
    animation: flyAsteroid3 55s linear infinite;
    animation-delay: 2s;
}

@keyframes flyAsteroid1 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translate(110vw, 20vh) rotate(360deg); opacity: 0; }
}

@keyframes flyAsteroid2 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translate(110vw, -30vh) rotate(-180deg); opacity: 0; }
}

@keyframes flyAsteroid3 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translate(-120vw, 40vh) rotate(200deg); opacity: 0; }
}

/* === NOWE TŁO DLA SEKCJI FEATURES (GRID) === */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* === EFEKT SZKŁA DLA KART === */
.glass-card {
    background: rgba(30, 32, 41, 0.6); /* Półprzezroczyste tło */
    backdrop-filter: blur(12px);       /* Rozmycie tła pod spodem */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Subtelna ramka */
}
