/* it-solulutions/public/assets/css/style.css */

/* ─── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body { font-family: 'Inter', sans-serif; }

::selection { background: #dbeafe; color: #1e293b; }

h1, h2, h3 { letter-spacing: -0.03em; }

/* ─── Bento Card ────────────────────────────────────────── */
.bento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;          /* 20px */
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -8px rgba(30,41,59,.12);
    border-color: #3b82f6;
}

/* ─── Service Card (icon + title + desc) ────────────────── */
.service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
                background 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 24px 48px -12px rgba(30,41,59,.1);
}

.service-card .card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 900;
    font-style: italic;
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
}

.service-card:hover .card-icon {
    background: #3b82f6;
    color: #ffffff;
}

/* ─── Industry Card ─────────────────────────────────────── */
.industry-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: flex-end;
}

.industry-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(67,56,202,.25));
    opacity: .2;
    transition: opacity .4s;
}

.industry-card:hover .card-overlay { opacity: .45; }

.industry-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    width: 100%;
}

.industry-card .card-bar {
    width: 2rem;
    height: 3px;
    background: #3b82f6;
    border-radius: 9999px;
    margin-top: .5rem;
    transition: width .6s cubic-bezier(0.16,1,0.3,1);
}

.industry-card:hover .card-bar { width: 5rem; }

/* ─── Passport Card ─────────────────────────────────────── */
.passport-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: border-color .3s, box-shadow .3s;
    height: 100%;
}

.passport-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(59,130,246,.08);
}

.passport-card .card-id {
    font-size: .625rem;
    font-weight: 800;
    color: #3b82f6;
    opacity: .5;
    letter-spacing: .1em;
    font-family: monospace;
    margin-bottom: 1rem;
    transition: opacity .3s;
}

.passport-card:hover .card-id { opacity: 1; }

/* ─── Card Number Badge ─────────────────────────────────── */
.card-number {
    font-size: .7rem;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: .1em;
    margin-bottom: 1.25rem;
    display: block;
}

/* ─── Scroll Reveal ─────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(0.25,0.46,0.45,0.94);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Image Grayscale Hover ─────────────────────────────── */
.img-gray {
    filter: grayscale(100%);
    transition: filter .8s cubic-bezier(0.16,1,0.3,1);
}
.img-gray:hover { filter: grayscale(0%); }

/* ─── RTL Support ───────────────────────────────────────── */
[dir="rtl"] .bento-card,
[dir="rtl"] .service-card,
[dir="rtl"] .passport-card {
    text-align: right;
}

/* ─── Focus Visible ─────────────────────────────────────── */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 4px;
}
