/* =========================================
   MODERN LAYER (2026-10-23)
   Loaded after global/style/responsive. Photos come from
   assets/all-images/generated/ (made locally for this site).
   ========================================= */
:root {
    --navy-900: #070c1f;
    --navy-800: #0b1430;
    --accent-soft: #7cc0ff;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-xl: 0 30px 60px -20px rgba(7, 12, 31, 0.35);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body { -webkit-font-smoothing: antialiased; }
html { overflow-x: clip; }

/* ---------- Header ---------- */
header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: none;
}
.logo img { height: 42px; }

/* ---------- Shared buttons ---------- */
.cta-btn {
    border-radius: 999px !important;
    box-shadow: 0 12px 30px -10px rgba(26, 107, 251, 0.7);
}
.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, transform 0.3s ease;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

/* ---------- Hero showcase slider ---------- */
.showcase {
    position: relative;
    min-height: clamp(620px, 88vh, 860px);
    overflow: hidden;
    background: var(--navy-900);
    color: #fff;
    isolation: isolate;
}

.showcase-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease-out), visibility 0s linear 1s;
}
.showcase-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s var(--ease-out), visibility 0s;
    z-index: 1;
}

.showcase-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    transform: scale(1.12);
    transition: transform 8s linear;
}
.showcase-slide.is-active .showcase-image { transform: scale(1.02); }

/* Dark on the text side, the photo stays visible on the right */
.showcase-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 12, 31, 0.94) 0%, rgba(7, 12, 31, 0.78) 38%, rgba(7, 12, 31, 0.2) 72%, rgba(7, 12, 31, 0.05) 100%),
        linear-gradient(0deg, rgba(7, 12, 31, 0.85) 0%, transparent 35%);
}

.showcase-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding-bottom: 90px;
}
.showcase-content > * {
    max-width: 640px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.showcase-slide.is-active .showcase-content > * { opacity: 1; transform: none; }
.showcase-slide.is-active .showcase-content > :nth-child(2) { transition-delay: 0.12s; }
.showcase-slide.is-active .showcase-content > :nth-child(3) { transition-delay: 0.24s; }
.showcase-slide.is-active .showcase-content > :nth-child(4) { transition-delay: 0.36s; }

.showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(26, 107, 251, 0.18);
    border: 1px solid rgba(124, 192, 255, 0.35);
    color: var(--accent-soft);
    margin-bottom: 22px;
}

.showcase-title {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #fff;
}
.showcase-title .accent {
    background: linear-gradient(90deg, #4f9bff, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.showcase-text {
    font-size: 1.12rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 34px;
}
.showcase-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.showcase-actions > a { margin: 0; padding: 14px 28px; line-height: 1.4; }

/* Controls: numbered tabs with a progress bar + arrows */
.showcase-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.showcase-tabs { display: flex; gap: 22px; flex: 1; max-width: 760px; }
.showcase-tab {
    flex: 1;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.55);
    text-align: left;
    cursor: pointer;
    padding: 0;
    font: inherit;
    transition: color 0.3s ease;
}
.showcase-tab:hover, .showcase-tab.is-active { color: #fff; }
.tab-num { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.tab-label { display: block; font-size: 0.9rem; font-weight: 600; margin: 2px 0 10px; white-space: nowrap; }
.tab-progress {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}
.tab-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4f9bff, #7dd3fc);
}
.showcase-tab.is-active .tab-progress span {
    animation: tabProgress var(--slide-duration, 7000ms) linear forwards;
}
.showcase.is-paused .showcase-tab.is-active .tab-progress span { animation-play-state: paused; }
@keyframes tabProgress { from { width: 0; } to { width: 100%; } }

.showcase-arrows { display: flex; gap: 10px; }
.showcase-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, transform 0.3s ease;
}
.showcase-arrow:hover { background: var(--primary-blue); border-color: var(--primary-blue); transform: translateY(-2px); }

.showcase-stats {
    position: absolute;
    right: max(5%, calc((100vw - 1200px) / 2));
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    gap: 14px;
}
.showcase-stats div {
    padding: 18px 24px;
    border-radius: var(--radius-md);
    background: rgba(7, 12, 31, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-width: 190px;
}
.showcase-stats strong { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: #fff; }
.showcase-stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- Section headings ---------- */
.section-header h2 { letter-spacing: -0.03em; }
.section-tag {
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem !important;
}

/* ---------- Rounded, full-bleed photos everywhere ---------- */
.card-media,
.portfolio-image,
.service-detail-visual img,
.about-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Service cards: photo on top, icon overlapping it */
.service-card {
    padding: 12px 12px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.service-card::before { display: none; }
.card-media {
    aspect-ratio: 16 / 10;
    margin-bottom: -34px;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-out);
}
.service-card:hover .card-media img { transform: scale(1.06); }
.service-card .service-icon {
    position: relative;
    margin: 0 0 18px 16px;
    width: 64px;
    height: 64px;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.25);
}
.service-card h3, .service-card p, .service-card .service-link { margin-left: 16px; margin-right: 16px; }
.service-card .service-link { display: inline-flex; }
.service-card:hover { box-shadow: var(--shadow-xl); }

/* Portfolio cards: full photo, category chip, arrow on hover */
.portfolio-card {
    border-radius: var(--radius-lg);
    padding: 10px;
    border: 1px solid var(--border-light);
}
.portfolio-image {
    height: auto;
    aspect-ratio: 4 / 3;
    background: var(--navy-800) !important;
}
.portfolio-image::before { display: none; }
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-out);
}
.portfolio-card:hover .portfolio-image img { transform: scale(1.07); }
.portfolio-view {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
    background: var(--primary-blue);
    box-shadow: 0 10px 24px -6px rgba(26, 107, 251, 0.8);
    opacity: 0;
    transform: translateY(10px) rotate(-45deg);
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}
.portfolio-card:hover .portfolio-view { opacity: 1; transform: rotate(-45deg); }
.portfolio-info { padding: 18px 10px 10px; }

/* Services page: big rounded photos */
.service-detail-visual img {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    box-shadow: var(--shadow-xl);
}

/* About: photo with the mission card and chips floating on it */
.about-visual { min-height: 480px; }
.about-photo {
    position: absolute;
    inset: 0 0 0 8%;
    width: 92%;
    height: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}
.about-visual .about-card-main {
    top: auto;
    left: 0;
    bottom: 28px;
    transform: none;
    width: 250px;
    padding: 28px 24px;
    box-shadow: 0 24px 48px -16px rgba(26, 107, 251, 0.6);
}
.about-visual .card-1 { top: 24px; left: auto; right: 24px; }
.about-visual .card-2 { top: auto; bottom: 96px; right: -12px; }
.about-visual .card-3 { top: auto; bottom: 30px; left: auto; right: 36px; }
.about-card-small { backdrop-filter: blur(8px); background: rgba(255, 255, 255, 0.92); }

/* ---------- Inner page heroes: dark with an image ---------- */
.page-hero {
    padding: 130px 0 110px;
    background:
        linear-gradient(180deg, rgba(7, 12, 31, 0.72), rgba(7, 12, 31, 0.92)),
        var(--page-hero-img, url("../all-images/generated/page-hero-bg.webp")) center / cover no-repeat,
        var(--navy-900);
    color: #fff;
}
.page-hero-pattern { display: none; }
.page-hero-content h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
.page-hero-content p { color: rgba(255, 255, 255, 0.78); }
.page-hero .section-tag { background: rgba(26, 107, 251, 0.2); color: var(--accent-soft); border-color: rgba(124, 192, 255, 0.35); }
.page-hero .breadcrumb { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.8); }
.page-hero .breadcrumb a { color: #fff; }

/* ---------- CTA banner with image ---------- */
.cta-banner {
    background:
        linear-gradient(100deg, rgba(26, 107, 251, 0.92), rgba(7, 12, 31, 0.75)),
        url("../all-images/generated/cta-bg.webp") center / cover no-repeat !important;
}
.cta-banner::before { opacity: 0.25; }

/* ---------- Cards & misc polish ---------- */
.why-card, .testimonial-card, .value-card, .team-card, .stat-box, .contact-info-card, .faq-item {
    border-radius: var(--radius-md) !important;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.why-card:hover, .testimonial-card:hover, .value-card:hover, .team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .showcase-stats { display: none; }
}

@media (max-width: 900px) {
    .showcase { min-height: 640px; }
    .showcase-slide::after {
        background: linear-gradient(0deg, rgba(7, 12, 31, 0.96) 15%, rgba(7, 12, 31, 0.7) 60%, rgba(7, 12, 31, 0.35) 100%);
    }
    .showcase-image { object-position: 65% center; }
    .showcase-content { padding: 0 6% 120px; text-align: left; }
    .tab-label { display: none; }
    .showcase-tabs { gap: 10px; }
    .showcase-controls { padding: 0 6%; bottom: 28px; align-items: center; }
    .showcase-arrow { width: 44px; height: 44px; }

    .about-visual { min-height: 420px; }
    .about-photo { inset: 0; width: 100%; }
}

@media (max-width: 600px) {
    .showcase { min-height: 600px; }
    .showcase-content { padding-bottom: 110px; }
    .showcase-text { font-size: 1rem; }
    .showcase-actions a { flex: 1 1 auto; justify-content: center; }
    .showcase-arrows { display: none; }

    /* About: photo first, then the mission card and chips below it */
    .about-visual { min-height: 0; }
    .about-photo {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .about-visual .about-card-main { position: static; width: 100%; max-width: none; margin-top: -40px; }
    .about-visual .about-card-small { position: static; }

    .page-hero { padding: 90px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-image, .showcase-slide.is-active .showcase-image { transform: none; transition: none; }
    .reveal { opacity: 1; transform: none; }
}
