/* ---------- RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: radial-gradient(circle at top, #eef6ff, #e3edf9);
    color: #0f172a;
    padding-top: 0;
}

/* ---------- HERO & GLOBAL SLIDESHOW ---------- */

.hero {
    position: relative;
    padding-top: 72px;
    padding-bottom: 72px;
}

/* full hero slideshow */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease-in-out, transform 18s linear;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.12);
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* slightly brighter & sharper, but not washed out */
    filter: brightness(1.1) contrast(1.06);
}

/* softer veil – MUCH more transparent now */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.78), rgba(255,255,255,0.55)),
        linear-gradient(to bottom, rgba(255,255,255,0.80), rgba(255,255,255,0.55));
    mix-blend-mode: screen;
}


/* ---------- HERO CARD ---------- */

.hero-card {
    position: relative;
    z-index: 1; /* above global slideshow */
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

/* card slideshow behind content */
.hero-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    filter: brightness(1.08) contrast(1.05);
}

.hero-card-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.2s ease-in-out, transform 18s linear;
}

/* MORE visible inside the card now */
.hero-card-slide.active {
    opacity: 0.9;
    transform: scale(1.08);
}

.hero-card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* glassy panel for text – more transparent & less blur */
.hero-card-content {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.72);   /* was 0.82 */
    backdrop-filter: blur(2px);             /* was 18px */
}

@media (max-width: 991.98px) {
    .hero-card-content {
        padding: 32px 24px;
    }
}

/* ---------- HERO TEXT ---------- */

.hero-badge {
    display: inline-flex;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d4ed8;
}

.hero-badge span {
    padding-inline: 0.35rem;
}

.hero-title {
    font-size: clamp(2.4rem, 2.2rem + 0.9vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    color: #0f172a;
}

.hero-lead {
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 520px;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------- BUTTONS ---------- */

.btn-pill {
    border-radius: 999px !important;
    padding-inline: 1.8rem;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0284c7, #1d4ed8);
}

.btn-outline-primary {
    border-width: 2px;
}

/* ---------- FEATURE CARDS ---------- */

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card h5 {
    font-size: 1.02rem;
    margin-bottom: 0.25rem;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
    color: #6b7280;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20);
    border-color: rgba(37, 99, 235, 0.55);
}

/* ---------- WORK WITH ME SECTION ---------- */

.work-with-me {
    background: #f7f9ff;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.work-with-me h2 {
    font-weight: 700;
}

.work-with-me .lead {
    max-width: 780px;
    margin-inline: auto;
    color: #4b5563;
}

/* service cards */
.service-card {
    border-radius: 18px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card h5 {
    margin-bottom: 0.3rem;
}

.service-card p {
    color: #7a7d82;
    font-size: 0.94rem;
}

.service-card:hover {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

/* ---------- MISC ---------- */

a {
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
}
