/* * LOKALNE ŁADOWANIE CZCIONKI BRISTOL (TYLKO DLA TYTUŁU) */
@font-face {
    font-family: 'Bristol'; 
    src: url('fonts/bristol.otf') format('opentype'); 
    font-weight: normal;
    font-style: normal;
}

/*
 * 0. UKRYWANIE PASKA PRZEWIJANIA (SCROLLBAR) ORAZ ZACHOWANIE PŁYNNEGO PRZEWIJANIA
 */

/* Dla przeglądarek bazujących na Webkit (Chrome, Safari, Edge) */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; 
    width: 0;
    background: transparent;
}

/* Dla Firefoxa i Edge/IE */
html, body {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
    /* FIX: Agresywne ukrycie wszystkich ewentualnych marginesów/overflow */
    overflow-x: hidden; 
}

/*
 * 1. DEFINICJA ANIMACJI PODSKAKIWANIA (BOUNCE) - WERSJA ELASYCZNA
 */
@keyframes bounce {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        /* NOWA WYSOKOŚĆ SKOKU */
        transform: translateX(-50%) translateY(-12px); 
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Prefiks dla przeglądarek WebKit (Chrome, Safari) */
@-webkit-keyframes bounce {
    0% {
        -webkit-transform: translateX(-50%) translateY(0);
    }
    50% {
        -webkit-transform: translateX(-50%) translateY(-12px);
    }
    100% {
        -webkit-transform: translateX(-50%) translateY(0);
    }
}


/*
 * 2. STYLE CSS DLA STRONY
 */
body {
    background-color: white; 
    /* KLUCZOWY FIX: Pełne zerowanie marginesów i paddingów */
    margin: 0;
    padding: 0; 
    
    display: flex;
    flex-direction: column; 
    align-items: center; 
    font-family: 'Bristol', sans-serif; 
    min-height: 200vh; 
    
    /* FIX: Agresywne ukrycie wszystkich ewentualnych marginesów/overflow */
    overflow-x: hidden; 
}

/* STYL KONTENERA NA PIERWSZY EKRAN (HERO) */
.hero-section {
    height: 100vh; 
    width: 100%; 
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
    
    transform: translateY(-4vh); 
    text-align: center; 
}

.tytul {
    font-size: 10vw; 
    color: #333333; 
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center; 
    width: 100%; 
}

/* CENTROWANIE NAPISÓW */
.podpis {
    text-align: center; 
    width: auto; 
    margin: 10px 0 0 0; 
    padding: 0; 
    
    font-size: 3vw; 
    color: #555555;
}

.podpis span {
    display: inline-block; 
    /* FIX SYMTERII: Margines tylko po prawej stronie elementu (dla PC) */
    margin: 0 1.5vw 0 0; 
    white-space: nowrap; 
}

/* Usuwamy margines tylko dla ostatniego elementu (Społeczność), */
.podpis span:last-child {
    margin-right: 0;
}

/* 3. STYLE DLA SEKCJI OPISU */
.opis-bota-section {
    width: 100%;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
    
    background-color: white; 
}

.opis-bota-section h2 {
    font-family: 'Bristol', sans-serif; 
    font-size: 4rem;
    color: #2c3e50; 
    margin-bottom: 50px;
    position: relative;
}

/* Dekoracyjna linia pod tytułem H2 */
.opis-bota-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #3498db; 
    border-radius: 2px;
}

.opis-tekst {
    width: 90%; 
    max-width: 900px; 
    text-align: center; 
    font-size: 1.3rem; 
    color: #333;
    
    font-family: 'Montserrat', sans-serif; 
    font-weight: 400; 
    line-height: 1.8;
    padding: 0; 
    
    background-color: transparent; 
    box-shadow: none; 
    border: none; 
}

.opis-tekst p {
    margin-bottom: 25px; 
}

/*
 * 4. STYLE DLA STRZAŁKI
 */
.strzalka {
    font-size: 30px; 
    color: #333333; 
    opacity: 1;
    cursor: pointer; 
    
    /* KLUCZOWY FIX PŁYNNOŚCI: 1.8s i nowa funkcja timingowa */
    -webkit-animation: bounce 1.8s infinite cubic-bezier(0.28, 0.84, 0.42, 1) !important; 
    animation: bounce 1.8s infinite cubic-bezier(0.28, 0.84, 0.42, 1) !important; 
    
    transition: opacity 0.3s ease-in-out; 
    
    position: fixed;
    bottom: 20px; 
    left: 50%;
    z-index: 100;
}

/* Styl dla ukrytej strzałki (używany po kliknięciu/przewinięciu) */
.strzalka.hidden {
    opacity: 0;
    pointer-events: none;
}

/*
 * 5. MEDIA QUERIES (RESPONSYWNOŚĆ MOBILNA)
 */
@media (max-width: 768px) {
    
    /* 1. SEKCJA HERO */
    .tytul {
        font-size: 15vw; 
    }

    .podpis {
        font-size: 5vw;
        width: 100%; 
        margin: 10px 0 0 0; 
        text-align: center; 
    }

    .podpis span {
        /* FIX SYMTERII W MOBILNYM: Margines tylko po prawej stronie elementu (dla telefonów) */
        margin: 0 10px 0 0; 
    }
    
    .podpis span:last-child {
        margin-right: 0;
    }
    
    /* 2. SEKCJA OPISU */
    .opis-bota-section h2 {
        font-size: 3rem;
    }

    .opis-tekst {
        font-size: 1.1rem;
        padding: 0 15px; 
        width: 95%; 
    }
    
    /* 3. STRZAŁKA */
    .strzalka {
         /* Brak zmian, bo transform jest w definicji animacji */
    }
}
/*
 * 6. STYLE DLA SEKCJI POWITAŃ
 */
.welcome-section {
    width: 100%;
    min-height: 80vh; /* Trochę mniejsza wysokość niż 100vh dla sekcji opisów */
    background-color: #1a1a2e; /* Ciemne tło jak na przykładzie */
    color: #f0f0f0; /* Jasny tekst */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    box-sizing: border-box; /* Wlicza padding w szerokość */
}

.welcome-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Zezwala na zawijanie wierszy na mniejszych ekranach */
    justify-content: center;
    align-items: center;
    gap: 50px; /* Odstęp między obrazkiem a tekstem */
    max-width: 1200px; /* Maksymalna szerokość kontenera */
    width: 100%;
}

.welcome-image-container {
    flex: 1; /* Pozwala na elastyczne rozciąganie */
    min-width: 300px; /* Minimalna szerokość obrazka */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Dla elementów pseudoramki */
    padding: 20px; /* Przestrzeń na ramkę */
    box-sizing: border-box;
}

.welcome-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Zaokrąglone rogi obrazka */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Cień obrazka */
    display: block; /* Usuwa dodatkowy margines pod obrazkiem */
    z-index: 2; /* Obrazek nad ramką */
    position: relative;
}

/* Pseudo-elementy dla efektu ramki */
.welcome-image-container::before,
.welcome-image-container::after {
    content: '';
    position: absolute;
    border-radius: 15px; /* Nieco większe zaokrąglenie niż obrazek */
    background: rgba(49, 49, 63, 0.8); /* Ciemniejsza ramka */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1; /* Pod obrazkiem */
}

.welcome-image-container::before {
    top: 0;
    left: 20px; /* Przesunięcie w lewo */
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    transform: rotate(-3deg); /* Lekkie obrócenie */
}

.welcome-image-container::after {
    bottom: 0;
    right: 20px; /* Przesunięcie w prawo */
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    transform: rotate(3deg); /* Lekkie obrócenie */
}


.welcome-text-content {
    flex: 1;
    min-width: 300px; /* Minimalna szerokość tekstu */
    max-width: 500px;
    text-align: left;
}

.welcome-icon-title {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    font-weight: 600;
    color: #99aab5; /* Szary kolor jak na Discordzie */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-icon-title i {
    font-size: 1.2em;
    margin-right: 10px;
    color: #7289da; /* Kolor Discorda */
}

.welcome-text-content h3 {
    font-family: 'Bristol', sans-serif;
    font-size: 3em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-text-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #b0b0c0;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Media Queries dla responsywności sekcji powitań */
@media (max-width: 900px) {
    .welcome-content-wrapper {
        flex-direction: column; /* Stos pionowy na mniejszych ekranach */
        text-align: center;
    }

    .welcome-text-content {
        text-align: center;
        margin-top: 40px;
    }

    .welcome-icon-title {
        justify-content: center; /* Centruj ikonę i tytuł */
    }

    .welcome-text-content h3 {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .welcome-text-content h3 {
        font-size: 2em;
    }
    .welcome-text-content p {
        font-size: 1em;
    }
    .welcome-image-container::before,
    .welcome-image-container::after {
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
    }
}