
/* =====================================
   ARNOLD LABS — SOFTWARE COLLECTION
   ===================================== */

main {
    padding-top: 100px;
}

/* COLLECTION HERO */

.collection-hero {
    min-height: 65vh;
    padding: 100px 9%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.collection-hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    top: 5%;
    right: 5%;
    background: radial-gradient(
        circle,
        rgba(0,217,255,.15),
        transparent 70%
    );
    filter: blur(65px);
    pointer-events: none;
}

.collection-hero > * {
    position: relative;
    z-index: 1;
}

.collection-hero h1 {
    max-width: 900px;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.08;
    letter-spacing: -3px;
    margin: 25px 0;
}

.collection-hero h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(100deg,#00d9ff,#8b5cf6,#fff);
    background-clip: text;
    -webkit-background-clip: text;
}

.collection-hero > p:not(.section-label) {
    max-width: 620px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

.collection-button {
    padding: 15px 24px;
    border-radius: 35px;
    border: 1px solid rgba(0,217,255,.4);
    background: rgba(0,217,255,.07);
    color: var(--text-primary);
    text-decoration: none;
    font-size: .85rem;
    letter-spacing: 1px;
    transition: .35s ease;
}

.collection-button:hover {
    background: rgba(0,217,255,.16);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,217,255,.12);
}

/* SOFTWARE GALLERY */

.software-gallery {
    padding: 90px 9%;
}

.gallery-heading {
    margin-bottom: 45px;
}

.gallery-heading h2 {
    font-size: clamp(2.4rem,4.5vw,4rem);
    letter-spacing: -2px;
    margin-top: 15px;
}

.gallery-heading h2 span {
    color: var(--accent-cyan);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 28px;
}

/* GLASS CARDS */

/* ==========================================
   ARNOLD LABS — SOFTWARE LIQUID GLASS CARDS
========================================== */

.software-card {
    --light-x: 50%;
    --light-y: 50%;

    min-width: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.11),
            rgba(255,255,255,.035) 48%,
            rgba(145,175,255,.055)
        );

    border: 1px solid rgba(255,255,255,.22);

    backdrop-filter: blur(12px) saturate(175%);
    -webkit-backdrop-filter: blur(12px) saturate(175%);

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.28),
        inset 0 -1px 1px rgba(255,255,255,.06),
        0 16px 42px rgba(0,0,0,.24);

    transition:
        transform .45s cubic-bezier(.2,.7,.2,1),
        border-color .4s ease,
        box-shadow .4s ease;
}

/* Pointer-responsive reflection */
.software-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        radial-gradient(
            circle at var(--light-x) var(--light-y),
            rgba(255,255,255,.20),
            rgba(255,255,255,.045) 24%,
            transparent 55%
        );

    opacity: 0;
    transition: opacity .35s ease;
}

/* Crystal edge */
.software-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.20),
            transparent 30%,
            transparent 75%,
            rgba(255,255,255,.07)
        );

    opacity: .55;
}

/* Hover */
.software-card:hover {
    transform: translateY(-8px) scale(1.012);
    border-color: rgba(255,255,255,.36);

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,.32),
        0 24px 55px rgba(0,0,0,.30),
        0 5px 22px rgba(0,217,255,.06);
}

.software-card:hover::before {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .software-card {
        transition: none;
    }

    .software-card:hover {
        transform: none;
    }
}

/* IMAGES */

.software-image {
    height: 270px;
    position: relative;
    overflow: hidden;
}

.software-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.software-card:hover .software-image img {
    transform: scale(1.07);
}

.software-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8,12,22,.5),
        transparent 60%
    );
    pointer-events: none;
}

.software-number {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    padding: 9px 14px;
    border-radius: 30px;
    color: white;
    font-size: .78rem;
    background: rgba(10,15,25,.4);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(15px);
}

/* CARD CONTENT */

.software-info {
    padding: 28px;
}

.software-info h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.software-info > p:not(.project-type) {
    color: var(--text-secondary);
    font-size: .94rem;
    line-height: 1.8;
}

.software-info .project-type {
    color: var(--accent-cyan);
    font-size: .7rem;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

/* BACK LINK */

.collection-back {
    padding: 20px 9% 100px;
}

.collection-back a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .85rem;
    letter-spacing: 1px;
    transition: color .3s ease;
}

.collection-back a:hover {
    color: var(--accent-cyan);
}

/* RESPONSIVE */

@media(max-width: 800px) {
    .collection-hero {
        padding: 80px 7%;
    }

    .software-gallery {
        padding: 70px 7%;
    }

    .software-grid {
        gap: 20px;
    }
}

@media(max-width: 600px) {
    .collection-hero h1 {
        font-size: clamp(2.7rem,10vw,4.5rem);
        letter-spacing: -1.5px;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .software-image {
        height: 230px;
    }

    .software-info {
        padding: 23px;
    }

    .collection-back {
        padding: 20px 7% 75px;
    }
}


/* GLASS BACK BUTTON */

.collection-back {
    padding: 20px 9% 100px;
}

.collection-back a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 40px;

    color: var(--text-primary);
    text-decoration: none;
    font-size: .85rem;
    letter-spacing: 1px;

    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.2);

    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.2),
        0 10px 30px rgba(0,0,0,.15);

    transition: all .35s ease;
}

.collection-back a:hover {
    color: #fff;
    background: rgba(0,217,255,.09);
    border-color: rgba(0,217,255,.5);
    transform: translateY(-4px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.25),
        0 12px 35px rgba(0,217,255,.12);
}

@media(max-width:600px) {
    .collection-back {
        padding: 20px 7% 75px;
    }
}


/* ===== SOFTWARE COLLECTION SCROLL REVEAL ===== */

.software-card {
    opacity: 0;
    translate: 0 30px;
    transition:
        opacity .8s ease,
        translate .8s cubic-bezier(.2, .7, .2, 1),
        border-color .4s ease,
        box-shadow .4s ease;
}

.software-card.reveal-visible {
    opacity: 1;
    translate: 0 0;
}

/* Staggered entrance */

.software-card:nth-child(2) {
    transition-delay: .12s;
}

.software-card:nth-child(3) {
    transition-delay: .20s;
}

.software-card:nth-child(4) {
    transition-delay: .28s;
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .software-card {
        opacity: 1;
        translate: none;
        transition: none;
    }
}
