:root {
    --primary-color: #0057ff;
    --secondary-color: #0a1133;
    --accent-color: #00d4ff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #212529;
    background-color: #f7f9fc;
}

.navbar-brand {
    letter-spacing: 0.5px;
}

.hero {
    background: linear-gradient(120deg, rgba(0, 87, 255, 0.9), rgba(0, 212, 255, 0.8)), url('../img/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero .overlay-shape {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 55%);
    z-index: 1;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero-cta .btn {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.feature-card {
    border: none;
    border-radius: 1rem;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(10, 17, 51, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(10, 17, 51, 0.12);
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 999px;
}

.service-card {
    background: linear-gradient(140deg, #ffffff, #f3f7ff);
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 14px 35px rgba(0, 87, 255, 0.09);
    padding: 2rem;
}

.testimonial {
    border-left: 4px solid var(--primary-color);
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
}

form .form-control {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

form .btn {
    border-radius: 0.75rem;
}

footer ul li::marker {
    color: var(--accent-color);
}

.event-popup {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(340px, 92vw);
    z-index: 1050;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.event-popup.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.event-popup__card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(10, 17, 51, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-popup__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9ecef;
}

.event-popup__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-popup__body {
    padding: 1.25rem 1.25rem 0.5rem;
}

.event-popup__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-popup__description {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #495057;
}

.event-popup__actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1.25rem;
    flex-wrap: wrap;
}

.event-popup__actions .btn {
    flex: 1 1 auto;
}

.chat-bubble {
    display: inline-block;
    max-width: min(780px, 100%);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
}

.chat-bubble--assistant {
    background: #eef3ff;
    border: 1px solid #c5d4ff;
    color: #0a1133;
    box-shadow: inset 0 0 0 1px rgba(10, 17, 51, 0.04);
}

.chat-bubble--user {
    background: #e9f7ef;
    border: 1px solid #a7e0c0;
    color: #0d3b21;
    box-shadow: inset 0 0 0 1px rgba(13, 59, 33, 0.05);
}

.chat-bubble pre {
    margin: 0.65rem 0;
    padding: 0.9rem 1rem;
    background: #1f2430;
    color: #f8f8f2;
    border-radius: 0.75rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Fira Code", Consolas, "Courier New", monospace;
    line-height: 1.45;
}

.chat-bubble code {
    font-family: "Fira Code", Consolas, "Courier New", monospace;
    background: rgba(15, 23, 42, 0.08);
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
    display: inline-block;
    word-break: break-word;
}

.ad-spotlight__link {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(10, 17, 51, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    background: #fff;
}

.ad-spotlight__link:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(10, 17, 51, 0.15);
}

.ad-spotlight__image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.ad-spotlight__item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #f8faff;
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 28px rgba(10, 17, 51, 0.08);
}

.ad-spotlight__copy {
    flex: 1 1 0;
}

.ad-spotlight .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

@media (max-width: 575.98px) {
    .ad-spotlight__link {
        min-height: 130px;
    }

    .ad-spotlight__image {
        width: 110px;
        height: 110px;
    }

    .ad-spotlight__item {
        flex-direction: column;
        text-align: center;
    }

    .ad-spotlight__link {
        min-height: 120px;
    }
}

@media (max-width: 991.98px) {
    .hero {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }
}
