/* Reset stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #4b2c6f;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #9b51e0;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease-in-out, color 0.3s ease;
}

header h1:hover {
    transform: scale(1.1);
    color: #000;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9);
}

header .btn {
    background-color: #ffffff;
    border: none;
    color: #9b51e0;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-left: auto;
    text-decoration: none;
}

header .btn:hover {
    background-color: #9b51e0;
    color: #fff;
    box-shadow: 0 5px 15px rgba(155, 81, 224, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #7e3cbf, #6a3e91);
    padding: 5rem 2rem;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f1f1f1;
}

.hero-buttons .btn {
    background-color: #ffffff;
    color: #9b51e0;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.hero-buttons .btn.primary {
    margin-right: 1rem;
}

.hero-buttons .btn.primary:hover {
    background-color: #9b51e0;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(155, 81, 224, 0.4);
}

.hero-buttons .btn.secondary {
    background-color: #9b51e0;
    color: #ffffff;
}

.hero-buttons .btn.secondary:hover {
    background-color: #ffffff;
    color: #9b51e0;
    box-shadow: 0 5px 15px rgba(155, 81, 224, 0.4);
}

/* Carousel Section */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 300px;
    margin: auto;
    overflow: hidden;
}

.profile-cards {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Animacje przejścia */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.profile-card {
    display: none; /* Ukrywamy wszystkie kafelki */
    width: 300px;
    background-color: #6e2db8;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.profile-card.active {
    display: block; /* Pokazujemy tylko aktywny kafelek */
    animation: fadeIn 0.5s ease forwards;
}

.profile-image {
    width: 150px; /* Nowa szerokość */
    height: 150px; /* Nowa wysokość */
    border-radius: 50%; /* Okrągły kształt */
    margin-bottom: 1rem; /* Odstęp dolny */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Cień */

}

/* Strzałki */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: #4b2c6f;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.carousel-arrow.active {
    animation: fadeIn 0.5s ease forwards;
}

.carousel-arrow.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.carousel-arrow:hover {
    background-color: #4b2c6f;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.left-arrow {
    left: -10px;
}

.right-arrow {
    right: -10px;
}

/* Additional Profile Info */
.profile-name {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.profile-status {
    color: #15ff00;
    font-size: 1rem;
    margin-top: -0.3rem;
    text-align: center;
    font-weight: bold;
}

.profile-distance {
    color: #1a1717;
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    font-weight: bold;
}

footer {
    background-color: #4b2c6f;
    text-align: center;
    padding: 1.5rem;
    color: #ccc;
    font-size: 1rem;
    border-top: 2px solid #9b51e0;
    margin-top: auto;
}

footer p {
    font-size: 1rem;
    margin: 0;
}

.message-button {
    display: inline-block;
    background-color: #f1f1f1;
    color: #6e2db8;
    border: none;
    width: 80%;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.message-button:hover {
    background-color: #9b51e0;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    /* Wyśrodkowanie i wyrównanie nagłówka */
    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem; /* Odstęp między logo a przyciskiem */
    }

    /* Logo */
    .logo-link h1 {
        font-size: 1.8rem;
        margin: 0;
    }

    /* Przycisk "Darmowa rejestracja!" */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        text-align: center;
        width: auto;
        margin: 0 auto;
        display: inline-block;
    }

    /* Hero Section - mniejszy padding i czcionka */
    .hero {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    /* Przyciski w sekcji Hero - kolumna i wyśrodkowanie */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* Równy odstęp między przyciskami */
        width: 100%;
    }

    .hero-buttons .btn {
        display: block;
        width: 80%; /* Jednakowa szerokość dla obu przycisków */
        max-width: 300px;
        margin: 0 auto;
        padding: 0.8rem; /* Ustalona wysokość przycisków */
        text-align: center;
        font-size: 1rem;
        border-radius: 25px;
        font-weight: bold;
    }

    .hero-buttons .btn.primary {
        display: block;
        width: 90%; /* Ustalona szerokość */
        max-width: 300px; /* Maksymalna szerokość dla spójności */
        margin: 0 auto; /* Wyśrodkowanie */
        padding: 1rem; /* Ustalona wysokość przycisku */
        text-align: center;
        font-size: 1rem;
        border-radius: 25px;
        font-weight: bold;
    }

    /* Karuzela profili - dopasowanie szerokości i wyśrodkowanie */
    .carousel-container {
        max-width: 100%;
    }

    .profile-card {
        width: 90%;
        margin: 0 auto;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    /* Poprawka dla przycisku "Napisz do niej!" */
    .message-button {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem;
    }

    /* Stopka - zmniejszenie rozmiaru czcionki */
    footer p {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.message-button {
    width: 80%;
    max-width: 250px;
    text-align: center;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 20px;
}


