/* 
 * DJ Rezervace Landing Page CSS
 * Implements STYLE_GUIDE.md
 */

/* 1. Color Palette & Variables */
:root {
    /* Primary Blue */
    --brand-primary: #0082FA;
    --brand-primary-rgb: 0, 130, 250;

    /* Primary Dark (Hover) */
    --brand-primary-dark: #0060CA;

    /* Secondary Gradient (Start/End) - Used in Benefits */
    --brand-grad-start: #0082FA;
    --brand-grad-end: #0055AA;

    /* Text Colors */
    --text-dark: #181C32;
    /* Headings */
    --text-body: #444444;
    /* Body */
    --text-muted: #A1A5B7;
    /* Descriptions */

    /* Backgrounds */
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;

    /* Bootstrap Overrides mapped to Brand vars */
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: var(--brand-primary-rgb);
    --bs-body-color: var(--text-body);
    --bs-heading-color: var(--text-dark);
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: var(--text-body);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 2. Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-4 {
    font-weight: 700 !important;
    /* fw-bolder */
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-muted) !important;
}

.lead {
    font-weight: 400;
}

/* 3. Global Utilities & Backgrounds */
.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-white {
    background-color: var(--bg-white) !important;
}

/* 4. Components */

/* Buttons */
.btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 6px;
    /* Default radius from guide */
}

/* Primary Button */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--brand-primary-dark) !important;
    border-color: var(--brand-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 130, 250, 0.3);
}

/* Outline Button */
.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 130, 250, 0.2);
}

/* Dark Outline Button (Hero secondary) */
.btn-outline-dark {
    color: var(--text-dark);
    border-color: #E1E3EA;
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: #ffffff;
    border-color: var(--text-dark);
}

/* Rounded Pill override for Hero buttons if needed */
.rounded-pill {
    border-radius: 50rem !important;
}

/* Cards */
.card {
    background-color: var(--bg-white);
    border: 1px solid #F1F1F4;
    /* Guide: #f1f1f4 */
    border-radius: 1rem;
    /* rounded-4 approx */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect for Pricing/Cards */
.card:hover,
.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08) !important;
    /* Shadow Depth */
    border-color: rgba(0, 130, 250, 0.2);
}

/* Icons */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    transition: transform 0.3s ease;
}

/* Feature blob (Hero/Features) */
.feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    border-radius: 0.75rem !important;
    font-size: 2rem;
    margin-bottom: 1rem;
    /* Primary Gradient for Features? Or Solid? Guide says Icon integrated. */
    background: linear-gradient(135deg, var(--brand-grad-start) 0%, var(--brand-grad-end) 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 130, 250, 0.2);
}

/* Forms */
.form-control {
    background-color: var(--bg-white);
    border: 1px solid #E1E3EA;
    color: var(--text-dark);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 130, 250, 0.15);
    outline: 0;
}

.form-floating>label {
    padding-left: 1.25rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.accordion-item {
    background-color: transparent;
    border: none;
    margin-bottom: 1rem;
}

.accordion-button {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 1px solid #F1F1F4;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    /* Small shadow */
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: var(--brand-primary);
    background-color: #F1FAFF;
    /* Very light blue tint */
    border-color: rgba(0, 130, 250, 0.1);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(0, 130, 250, 0.3);
    box-shadow: none;
}

.accordion-body {
    background-color: var(--bg-white);
    border: 1px solid #F1F1F4;
    border-top: none;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    color: var(--text-muted);
}

/* 5. Specific Sections */

/* Navbar */
#mainNav {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: padding 0.3s ease, background 0.3s ease;

    /* Glassmorphism Effect */
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
}

#mainNav .navbar-nav .nav-item {
    padding: 0 0.5rem;
    /* Increased spacing */
}

#mainNav .nav-link {
    font-weight: 600;
    color: var(--bs-heading-color) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50rem;
    /* Pill shape */
    transition: all 0.2s ease-in-out;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--bs-primary) !important;
    background-color: rgba(0, 130, 250, 0.1);
    /* Soft primary bg */
}

#mainNav.navbar-shrink {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    #mainNav {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }

    #mainNav .navbar-collapse {
        background-color: #fff;
        border-radius: 1rem;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}


/* Hero */
.masthead {
    /* Radial gradient white/light-blue */
    background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F5F9FF 100%);
    padding-top: 8rem !important;
    /* Huge top padding for Rezeo look */
    padding-bottom: 4rem !important;
    min-height: auto;
    /* Fixed spacing relative to content */
}

/* Hero dashboard obrázek — responsivní override */
@media (max-width: 992px) {
    .hero-dashboard-img {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
}

.fs-4 {
    font-size: 2rem !important;
}

/* Floating Elements Animation */
.animate-up-down {
    animation: upDown 4s ease-in-out infinite;
}

@keyframes upDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.shadow-xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Partners Grayscale */
.grayscale-wrapper {
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.grayscale-wrapper:hover {
    filter: grayscale(0%);
}

.text-gray-400 {
    color: #CED4DA;
    /* Placeholder logo color */
}

.hover-dark:hover {
    color: #212529 !important;
    transition: color 0.3s ease;
}

/* Benefits Gradient Section */
.bg-gradient-primary-to-secondary {
    background: linear-gradient(135deg, var(--brand-grad-start) 0%, var(--brand-grad-end) 100%);
}

/* Contact Section */
#kontakt .bg-white {
    border: 1px solid #F1F1F4;
}

/* Footer */
footer {
    background-color: #181C32 !important;
    /* Text Dark as bg */
}

footer a {
    color: rgba(255, 255, 255, 0.6);
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Utils */
.fw-bolder {
    font-weight: 700 !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.fs-7 {
    font-size: 0.85rem;
}

.fs-8 {
    font-size: 0.75rem;
}

section {
    scroll-margin-top: 100px;
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* ============================================
   RESPONSIVE — Tablet (max 992px)
   ============================================ */
@media (max-width: 992px) {
    .masthead {
        text-align: center;
        padding-top: 6rem !important;
        padding-bottom: 4rem !important;
        min-height: auto;
    }

    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .masthead .d-flex {
        justify-content: center !important;
    }

    .masthead .ms-n5 {
        margin-left: 0 !important;
    }

    .masthead .masthead-device-mockup img {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    /* Sekce nadpisy — zmenšení */
    h2.fs-1 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* Hero — tlačítka pod sebe na tabletu */
    .masthead .lead {
        max-width: 100% !important;
    }

    /* "Jak to funguje?" kroky — 2 sloupce na tabletu */
    section .row .col-lg-3 {
        margin-bottom: 1.5rem;
    }

    /* Výhody — pod sebe */
    section .col-lg-4 {
        margin-bottom: 2rem;
    }

    /* Kontakt sekce */
    #kontakt .bg-white {
        padding: 2rem 1.5rem !important;
    }
}

/* ============================================
   RESPONSIVE — Mobil (max 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Globální sekce padding */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    section .container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Nadpisy */
    h2.fs-1 {
        font-size: 1.5rem !important;
    }

    h3.h4,
    h3.fw-bold {
        font-size: 1.15rem !important;
    }

    /* Hero obrázek — schovat přetékající obrázek */
    .masthead .col-lg-6.position-relative {
        overflow: hidden;
    }

    /* "Jak to funguje?" — vertikální layout s čárou */
    section .row.gx-5.gy-4 .col-sm-6.col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: 1.5rem;
    }

    /* Funkce grid — pod sebe */
    section .row.gx-5 .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    /* Pricing tabulka — mobilní karty */
    .pricing-table-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }

    .pricing-header-price {
        font-size: 1.25rem;
    }

    .pricing-header-title {
        font-size: 1rem;
    }

    .pricing-header-period {
        font-size: 0.7rem;
    }

    .event-limit-select {
        font-size: 0.7rem;
        min-width: 90px;
        padding: 0.25rem 1.2rem 0.25rem 0.4rem;
    }

    /* Populární badge — vycentrovat */
    .popular-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }

    /* Doplňkové služby — kompaktnější */
    .service-card .card-body {
        padding: 1rem !important;
    }

    .service-icon-wrapper {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .service-price-tag {
        min-width: auto;
    }

    /* Kontakt */
    #kontakt .bg-white {
        padding: 1.5rem 1rem !important;
    }

    #kontakt h2 {
        font-size: 1.4rem !important;
    }

    /* FAQ */
    .accordion-button {
        font-size: 0.9rem;
        padding: 1rem;
    }

    /* Partners strip — menší písmo */
    .grayscale-wrapper h4 {
        font-size: 1.1rem !important;
    }

    .grayscale-wrapper .gap-5 {
        gap: 1rem !important;
    }

    /* Billing toggle */
    .billing-toggle-wrapper {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    /* Sticky order bar */
    #order-summary-bar .h4 {
        font-size: 1.1rem !important;
    }

    #order-summary-bar .border-start {
        padding-left: 0.75rem !important;
    }
}

/* ============================================
   RESPONSIVE — Malý mobil (max 576px)
   ============================================ */
@media (max-width: 576px) {
    .masthead {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }

    .masthead h1 {
        font-size: 1.6rem !important;
        margin-right: 0 !important;
    }

    .masthead h1 .text-primary {
        font-size: 1.2rem !important;
    }

    .masthead .lead {
        font-size: 0.9rem !important;
    }

    .masthead .btn-lg {
        font-size: 0.9rem !important;
        padding: 0.7rem 1.2rem !important;
    }

    .masthead .icon-circle {
        width: 32px !important;
        height: 32px !important;
    }

    /* Hero CTA — tlačítka pod sebe */
    .masthead .d-flex.align-items-center.gap-4 {
        flex-direction: column;
        gap: 1rem !important;
    }

    .masthead .btn-lg {
        width: 100%;
        justify-content: center;
    }

    /* Sekce nadpisy */
    h2.fs-1 {
        font-size: 1.3rem !important;
    }

    .lead {
        font-size: 0.9rem !important;
    }

    /* "Jak to funguje?" — vertikální čára mezi kroky */
    section .row.gx-5.gy-4 .col-sm-6.col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Kroky — ikona menší */
    section .row.gx-5.gy-4 .col-sm-6.col-lg-3 .rounded-circle {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.2rem !important;
    }

    .pricing-table th:first-child,
    .pricing-table td:first-child {
        min-width: 120px;
        font-size: 0.75rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }

    .pricing-header-price {
        font-size: 1rem;
    }

    /* Doplňkové služby */
    .service-card .card-body h5 {
        font-size: 1rem;
    }

    /* Kontaktní formulář */
    .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        text-align: center;
    }

    footer .d-flex {
        flex-direction: column;
        align-items: center !important;
    }

    /* Sticky order bar — kompaktní na mobilu */
    #order-summary-bar {
        padding: 0.75rem 0;
    }

    #order-summary-bar .row {
        gap: 0.5rem;
    }

    #order-summary-bar .h4 {
        font-size: 1rem !important;
    }

    #order-summary-bar .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem !important;
    }

    /* Partners — skrýt na nejmenších zařízeních kvůli přetékání */
    .grayscale-wrapper h4 {
        font-size: 0.9rem !important;
    }

    .grayscale-wrapper a {
        margin: 0 0.5rem !important;
    }

    /* Modal na celou šířku */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem !important;
    }

    /* Input group ARES — pod sebe */
    #billingInputs .input-group {
        flex-direction: column;
    }

    #billingInputs .input-group .btn {
        border-radius: 0.5rem !important;
        margin-top: 0.5rem;
        width: 100%;
    }

    #billingInputs .input-group .form-floating {
        width: 100%;
    }

    #billingInputs .input-group .form-control {
        border-radius: 0.5rem !important;
    }
}

/* Pricing Table */
.pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-inner-wrapper {
    min-width: 700px;
}

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

@media (max-width: 576px) {
    .pricing-inner-wrapper {
        min-width: 520px;
    }
}

.pricing-table th,
.pricing-table td {
    padding: 1rem 1.5rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #F1F1F4;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
    text-align: left;
    font-weight: 600;
}

/* Headers */
.pricing-header {
    background-color: transparent;
}

.pricing-header-cell {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding-bottom: 2rem !important;
}

.pricing-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-header-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.pricing-header-period {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Feature Rows */
.feature-group-title {
    background-color: #F9F9F9;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem !important;
}

/* Highlights */
.col-highlight {
    background-color: #F5FAFF;
    /* Very light blue */
    border-left: 1px solid #E1E3EA;
    border-right: 1px solid #E1E3EA;
}

.col-highlight.pricing-header-cell {
    border-top: 1px solid #E1E3EA;
    position: relative;
    /* overflow: hidden; Removed to avoid clipping if we kept badge inside, but kept relative for border logic */
}

.col-highlight.pricing-footer-cell {
    border-bottom: 1px solid #E1E3EA;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding-top: 2rem !important;
}

.popular-badge {
    background-color: #FFC700;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 1rem;
    position: absolute;
    top: -1px;
    left: 64.5%;
    /* Center of 3rd col: 30 + 23 + 11.5 */
    transform: translateX(-50%);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    z-index: 10;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

/* Status Icons */
.check-icon {
    color: #0082FA;
    /* Primary Blue */
    font-size: 1.25rem;
}

.cross-icon {
    color: #E1E3EA;
    font-size: 1.25rem;
}

/* Billing Toggle */
.billing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-check-input.billing-switch {
    width: 3.5rem;
    height: 1.75rem;
    cursor: pointer;
}

.discount-badge {
    background-color: #d1e7dd;
    color: #0f5132;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
}

/* Additional Services */
.service-card {
    transition: transform 0.2s;
    border: 1px solid #f1f1f4;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05) !important;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff0f3;
    /* Light pink/red tint */
    color: #d63384;
    /* Bootstrap pink */
    border-radius: 0.75rem;
    font-size: 1.75rem;
}

.service-price-tag {
    text-align: right;
    min-width: 100px;
}


/* Event Limit Select */
.event-limit-select {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.35rem 2rem 0.35rem 0.75rem;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    width: auto;
    display: inline-block;
    min-width: 140px;
}

.event-limit-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}


/* Sticky Pricing Footer */
#pricing-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    /* Glassmorphism Effect */
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05) !important;

    z-index: 1030;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem 0;
}

#pricing-sticky-footer.is-visible {
    transform: translateY(0);
}

.sticky-footer-inner {
    max-width: 100%;
    margin: 0 auto;
}

/* Mimic table columns in flex */
.pricing-col-spacer {
    width: 30%;
}

.pricing-col-item {
    width: 23%;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    #pricing-sticky-footer {
        display: none !important;
    }
}

/* ============================================
   CONTACT SECTION - Gradient Animation
   ============================================ */

/* Main Contact Section styling */
#kontakt {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff 0%, #f8faff 50%, transparent 100%);
}

/* Remove bottom margin on container inside kontakt */
#kontakt>.container {
    margin-bottom: 0 !important;
}

#kontakt>.container>.bg-white {
    margin-bottom: 0 !important;
}

/* Animated Gradient Background - Full Section Coverage */
.gradient-background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Fade to white at top (for bottom gradient - kontakt, cenik) */
.gradient-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 30%, transparent 100%);
    z-index: 1;
}

/* Variant: Gradient at TOP of section */
.gradient-background.gradient-top::before {
    top: auto;
    bottom: 0;
    background: linear-gradient(to top, #ffffff 0%, #ffffff 30%, transparent 100%);
}

/* Move blobs to top for .gradient-top variant */
.gradient-background.gradient-top .g1,
.gradient-background.gradient-top .g2,
.gradient-background.gradient-top .g3,
.gradient-background.gradient-top .g4,
.gradient-background.gradient-top .g5 {
    bottom: auto;
    top: -150px;
}

/* Hero section (masthead) styling */
.masthead {
    position: relative;
    overflow: hidden;
}

.masthead .gradient-background {
    opacity: 0.8;
}

/* AI Chatbot section styling */
#ai-chatbot {
    position: relative;
    overflow: hidden;
}

/* Blurred gradient blobs container */
.gradient-background .gradients-container {
    position: absolute;
    inset: 0;
    filter: blur(80px);
    opacity: 0.7;
}

/* Individual gradient blob elements */
.gradient-background .g1,
.gradient-background .g2,
.gradient-background .g3,
.gradient-background .g4,
.gradient-background .g5 {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: normal;
}

/* Blob 1 - Blue */
.gradient-background .g1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.85) 0%, rgba(99, 102, 241, 0) 55%);
    bottom: -150px;
    left: 5%;
    animation: moveBlob1 8s ease-in-out infinite;
    will-change: transform;
}

/* Blob 2 - Purple */
.gradient-background .g2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.85) 0%, rgba(139, 92, 246, 0) 55%);
    bottom: -180px;
    left: 30%;
    animation: moveBlob2 10s ease-in-out infinite;
    will-change: transform;
}

/* Blob 3 - Pink */
.gradient-background .g3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.8) 0%, rgba(236, 72, 153, 0) 55%);
    bottom: -120px;
    left: 50%;
    animation: moveBlob3 7s ease-in-out infinite;
    will-change: transform;
}

/* Blob 4 - Cyan/Teal */
.gradient-background .g4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at center, rgba(45, 212, 191, 0.75) 0%, rgba(45, 212, 191, 0) 55%);
    bottom: -100px;
    left: 70%;
    animation: moveBlob4 9s ease-in-out infinite;
    will-change: transform;
}

/* Blob 5 - Orange/Warm */
.gradient-background .g5 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at center, rgba(251, 146, 60, 0.7) 0%, rgba(251, 146, 60, 0) 55%);
    bottom: -140px;
    left: 85%;
    animation: moveBlob5 12s ease-in-out infinite;
    will-change: transform;
}

/* Gradient movement animations */
@keyframes moveBlob1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(100px, -40px) scale(1.15);
    }

    50% {
        transform: translate(180px, 20px) scale(0.9);
    }

    75% {
        transform: translate(60px, -60px) scale(1.1);
    }
}

@keyframes moveBlob2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-120px, -50px) scale(1.2);
    }

    66% {
        transform: translate(80px, 30px) scale(0.85);
    }
}

@keyframes moveBlob3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    20% {
        transform: translate(80px, -30px) scale(1.1);
    }

    40% {
        transform: translate(-60px, 50px) scale(0.92);
    }

    60% {
        transform: translate(120px, 20px) scale(1.15);
    }

    80% {
        transform: translate(-80px, -20px) scale(0.88);
    }
}

@keyframes moveBlob4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-150px, -60px) scale(1.2);
    }
}

@keyframes moveBlob5 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-140px, 40px) scale(1.12);
    }

    50% {
        transform: translate(-80px, -50px) scale(0.88);
    }

    75% {
        transform: translate(-200px, 20px) scale(1.18);
    }
}

/* Ensure main content stays above gradient */
#kontakt .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   MODAL TEXT READABILITY
   ============================================ */
/* Override text-muted in modal bodies for better readability */
.modal-body .text-muted {
    color: #3F4254 !important;
}

.modal-body p,
.modal-body li,
.modal-body td {
    color: #3F4254;
}

.modal-body h6 {
    color: #181C32 !important;
}

.modal-body .bg-light .text-muted {
    color: #3F4254 !important;
}

/* Badge opacity fix */
footer .badge.bg-success {
    --bs-bg-opacity: 1;
}