/* Globalne tło dla całej strony głównej */
body {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 96%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(210, 100%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(210, 100%, 97%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(210, 100%, 95%, 1) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
}

/* Styl dla sekcji "Hero" */
.hero-section {
    background-image: url('../images/senior-home.jpg'); /* Plik ze zdjęciem starszej osoby */
    background-size: cover;
    background-position: right 25%; /* Ustawione na 25% od góry, aby pokazać głowę seniorki */
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 0;
    position: relative;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from dark navy blue to transparent */
    background: linear-gradient(90deg, #021124 0%, #062340 35%, rgba(6, 35, 64, 0.4) 65%, transparent 100%);
    z-index: 0;
}

.hero-main-title {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.hero-icon-circle {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    background: transparent;
}

.hero-btn-primary {
    background-color: #2962ff !important;
    border-color: #2962ff !important;
    color: white !important;
    font-size: 1.1rem;
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background-color: #1c44b2 !important;
    border-color: #1c44b2 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 98, 255, 0.4);
}

.hero-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: white !important;
    background: transparent;
    font-size: 1.1rem;
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white !important;
    transform: translateY(-2px);
}

.hero-phone-container {
    position: relative;
    z-index: 1;
}

.hero-phone-img {
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    bottom: -40px;
    filter: drop-shadow(-10px 10px 25px rgba(0,0,0,0.4));
    transform-origin: bottom center;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-phone-img {
        max-height: 70vh;
        bottom: -20px;
    }
}

@media (max-width: 991.98px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
    .hero-overlay {
        background: linear-gradient(90deg, #021124 0%, #062340 55%, rgba(6, 35, 64, 0.8) 80%, rgba(6, 35, 64, 0.6) 100%);
    }
}

@media (max-width: 767.98px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(2, 17, 36, 0.7) 0%, rgba(6, 35, 64, 0.9) 60%, rgba(6, 35, 64, 0.95) 100%);
    }
    .hero-section {
        background-position: 70% center; /* Adjust to show senior better on narrow screens */
        min-height: auto;
        text-align: left;
    }
    .hero-phone-container {
        display: flex !important;
        justify-content: flex-end; /* Align phone to the right instead of center */
        margin-top: 1rem;
    }
    .hero-phone-img {
        max-height: 55vh;
        bottom: 0;
        margin-right: -15px; /* Slight right offset to look natural, but not cut off entirely */
    }
    .hero-feature {
        justify-content: flex-start;
        text-align: left;
    }
    .d-flex.flex-column.flex-sm-row {
        align-items: flex-start;
    }
    .hero-main-title {
        font-size: 2.2rem;
    }
}

/* Usunięcie teł z sekcji, aby gradient body był widoczny */
#how-it-works,
#features,
#pricing,
#testimonials,
#contact {
    background-color: transparent !important;
}

/* Styl dla ikon funkcji */
.feature-icon {
    font-size: 3rem;
    color: var(--bs-primary);
    transition: transform 0.3s ease;
}

.feature-icon-sm {
    font-size: 2rem;
    color: var(--bs-primary);
    transition: transform 0.3s ease;
}

/* Efekt uniesienia dla kafelków z funkcjami */
.feature-box {
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.feature-icon-sm i {
    z-index: 2;
    position: relative;
}

/* --- Task 4: Przeniesione style z landing_page.html --- */
.pricing-header-fixed {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invisible-item {
    visibility: hidden;
}

/* Sekcja Cennika */
.card-price {
    font-size: 2.5rem;
    font-family: 'Inter', sans-serif;
}

.pricing-features-list {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: 'Inter', sans-serif;
}

.premium-card {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1rem 3rem rgba(13, 110, 253, 0.15) !important;
    border: 2px solid #0d6efd !important;
}

/* Sekcja Opinii */
.testimonial-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.testimonial-card::before {
    content: "\201C";
    font-size: 80px;
    color: rgba(233, 236, 239, 0.5);
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.stars {
    color: #ffc107;
}

/* --- Task 1: Glassmorphism Navbar --- */
.navbar-glass {
    background-color: rgba(255, 255, 255, 0.85) !important;
    /* Półprzezroczyste tło */
    backdrop-filter: blur(12px);
    /* Rozmycie tła */
    -webkit-backdrop-filter: blur(12px);
    /* Wsparcie dla Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* --- Task 2: Ciemna Stopka --- */
.footer-custom {
    background-color: #0b1a2e;
    /* Ciemny granat */
    color: #bdc5d1;
    /* Jasny szary tekst */
}

.footer-custom h5 {
    color: #ffffff;
    /* Białe nagłówki */
}

.footer-custom a {
    color: #bdc5d1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-custom a:hover {
    color: #0d6efd;
    /* Niebieski po najechaniu */
}

.footer-custom hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Nadpisanie Bootstrapowych kolorów w stopce */
.footer-custom .text-muted {
    color: #8c98a9 !important;
}

/* --- Task 3: Sekcja FAQ --- */
.accordion-item {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

.accordion-button {
    font-weight: 600;
}

/* Animacje przycisków */
.btn-lg {
    transition: transform 0.2s;
}

.btn-lg:hover {
    transform: translateY(-2px);
}

/* Poprawka przewijania do sekcji (Scroll Margin) */
section[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 992px) {
    section[id] {
        scroll-margin-top: 310px;
    }
}

/* --- Task 5: Kontakt Hover --- */
.contact-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}