
/* =====================================
   ARNOLD LABS — ROBOTICS COLLECTION
===================================== */

main {
    padding-top: 100px;
}

/* ROBOTICS HERO */

.robotics-hero {
    min-height: 70vh;
    padding: 100px 9% 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.collection-intro {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.collection-intro h1 {
    font-size: clamp(3rem, 7vw, 6.3rem);
    line-height: 1.06;
    letter-spacing: -3px;
    margin: 25px 0;
}

.collection-intro h1 span {
    display: block;
    background: linear-gradient(
        100deg,
        #00d9ff,
        #8b5cf6,
        #ffffff
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.collection-description {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 35px;
}

.collection-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-radius: 40px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: .85rem;
    letter-spacing: 1px;
    transition: .35s ease;
}

.collection-button:hover {
    transform: translateY(-4px);
}

.collection-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: auto;
    padding-top: 70px;
    color: var(--text-secondary);
    font-size: .7rem;
    letter-spacing: 2px;
}

.robotics-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: 2%;
    top: 5%;
    background: radial-gradient(
        circle,
        rgba(0, 217, 255, .15),
        transparent 70%
    );
    filter: blur(70px);
    pointer-events: none;
}

/* ROBOTICS GALLERY */

.robotics-gallery {
    padding: 100px 9%;
}

.robotics-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 50px;
}

.robotics-heading h2 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    letter-spacing: -2px;
    margin-top: 15px;
}

.robotics-heading h2 span {
    color: var(--accent-cyan);
}

.robotics-heading > p {
    max-width: 350px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ROBOTICS GRID */

.robotics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

/* ==========================================
   ARNOLD LABS — ROBOTICS LIQUID GLASS CARDS
========================================== */

.robotics-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 */
.robotics-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 */
.robotics-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 */
.robotics-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);
}

.robotics-card:hover::before {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .robotics-card {
        transition: none;
    }

    .robotics-card:hover {
        transform: none;
    }
}
/* PROJECT IMAGES */

.robotics-image {
    height: 270px;
    position: relative;
    overflow: hidden;
}

.robotics-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.robotics-card:hover .robotics-image img {
    transform: scale(1.07);
}

.robotics-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 12, 22, .55),
        transparent 55%
    );
    pointer-events: none;
}

.robotics-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, .35);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* PROJECT INFORMATION */

.robotics-info {
    padding: 28px;
}

.robotics-type {
    color: var(--accent-cyan);
    font-size: .7rem;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

.robotics-info h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 14px;
}

.robotics-info > p:not(.robotics-type) {
    color: var(--text-secondary);
    font-size: .94rem;
    line-height: 1.8;
}

.robotics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.robotics-tags span {
    padding: 8px 13px;
    border-radius: 30px;
    color: var(--text-primary);
    font-size: .75rem;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .12);
}

/* BACK BUTTON */

.collection-back {
    padding: 20px 9% 100px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 800px) {

    .robotics-hero {
        padding: 75px 7% 30px;
    }

    .robotics-gallery {
        padding: 75px 7%;
    }

    .robotics-heading {
        align-items: start;
        flex-direction: column;
    }

    .robotics-grid {
        gap: 20px;
    }
}

@media (max-width: 600px) {

    .collection-intro h1 {
        font-size: clamp(2.7rem, 10vw, 4.5rem);
        letter-spacing: -1.5px;
    }

    .collection-meta {
        font-size: .6rem;
        letter-spacing: 1px;
        padding-top: 55px;
    }

    .robotics-grid {
        grid-template-columns: 1fr;
    }

    .robotics-image {
        height: 230px;
    }

    .robotics-info {
        padding: 23px;
    }

    
/* PREMIUM GLASS BACK BUTTON */

.collection-back {
    min-height: 72px;
min-width: 280px;
padding: 0 38px;
border-radius: 22px;
gap: 20px;
}

.collection-back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    padding: 16px 27px;
    border-radius: 50px;

    color: var(--text-primary);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 1.2px;

    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .22);

    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 10px 35px rgba(0, 0, 0, .2);

    transition: all .35s ease;
}

.collection-back a:hover {
    transform: translateY(-5px);
    background: rgba(0, 217, 255, .10);
    border-color: rgba(0, 217, 255, .55);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .25),
        0 15px 40px rgba(0, 217, 255, .12);
}

@media (max-width: 600px) {
    .collection-back {
        padding: 20px 7% 75px;
    }

    .collection-back a {
        padding: 14px 21px;
        font-size: .75rem;
    }
}

}


/* ===== ROBOTICS SCROLL REVEAL ===== */

.robotics-card,
.robotics-heading > div,
.robotics-heading > p {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.7,.2,1);
}

.robotics-card.reveal-visible,
.robotics-heading > div.reveal-visible,
.robotics-heading > p.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the cards */

.robotics-card:nth-child(2) {
    transition-delay: .12s;
}

.robotics-card:nth-child(3) {
    transition-delay: .08s;
}

.robotics-card:nth-child(4) {
    transition-delay: .16s;
}

.robotics-card:nth-child(5) {
    transition-delay: .12s;
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .robotics-card,
    .robotics-heading > div,
    .robotics-heading > p {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
