/* styles.css - custom styles (Tailwind used for layout) */

/* base */
:root {
    --brand1: #4f46e5;
    --brand2: #06b6d4;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* header backdrop */
.backdrop {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* chips */
.chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef2ff, #f0f9ff);
    color: #0f172a;
    font-weight: 600;
    font-size: .85rem;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.03);
}

/* cards */
.card {
    background: linear-gradient(180deg, #fff, #fbfbff);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
    transition: transform .18s cubic-bezier(.2, .9, .2, 1), box-shadow .18s;
    will-change: transform;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.08);
}

/* tags */
.tag {
    background: rgba(99, 102, 241, 0.08);
    color: var(--brand1);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* icon button */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef2ff, #f0f9ff);
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.04);
}

/* reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(12px) scale(.997);
    transition: all .7s cubic-bezier(.16, .84, .21, 1);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* nav link active underline */
.nav-link {
    position: relative;
    padding: .25rem .4rem;
    border-radius: .35rem;
    color: inherit;
    text-decoration: none;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand1), var(--brand2));
    border-radius: 4px;
}

/* parallax */
.parallax-img {
    transition: transform .12s linear;
    transform-style: preserve-3d;
}

/* section title underline */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: .25rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 42%;
    background: linear-gradient(90deg, var(--brand1), var(--brand2));
    border-radius: 4px;
    opacity: .18;
}

/* footer buttons */
footer .btn {
    border-radius: 8px;
}

/* accessibility focus */
:focus {
    outline: 3px solid rgba(79, 70, 229, 0.12);
    outline-offset: 2px;
}

/* responsive tweaks */
@media (max-width:768px) {
    .card {
        padding: 14px;
    }

    header {
        position: sticky;
        top: 0;
    }
}