/**
 * About-Me Laboratory Styles (Full Collection)
 */

/* 1. Identity Scanner */
.id-scanner {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-card {
    position: relative;
    width: 1400px;
    /* Standardized wide format */
    max-width: 98vw;
    min-height: 600px;
    background: rgba(15, 23, 42, 0.4);
    /* Consistent subtle background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 5rem;
    overflow: visible;
    /* Allow carousel parts to breathe */
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scanner-card.step-3-active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.scanner-line {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #72808D, transparent);
    box-shadow: 0 0 15px #72808D;
    z-index: 10;
    pointer-events: none;
}

/* Premium: Dual Scan Lines */
.scanner-line-primary {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, rgba(114, 128, 141, 0.9) 50%, transparent 95%);
    box-shadow: 0 0 12px rgba(114, 128, 141, 0.6), 0 0 25px rgba(114, 128, 141, 0.3);
    z-index: 11;
    pointer-events: none;
}

.scanner-line-secondary {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(114, 128, 141, 0.5) 50%, transparent 90%);
    box-shadow: 0 0 8px rgba(114, 128, 141, 0.4);
    z-index: 10;
    pointer-events: none;
    opacity: 0.6;
}

/* Premium: Film Grain Overlay */
.scanner-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

.scanner-reveal {
    opacity: 0;
    transform: translateY(14px);
    will-change: transform, opacity;
}

.about-step {
    transition: all 0.6s ease;
}

/* Interaction Components */
/* Navigation Arrows */
.step-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 2rem;
}

.step-nav-arrow:hover {
    color: #72808D;
    text-shadow: 0 0 15px rgba(114, 128, 141, 0.5);
}

.step-nav-arrow.prev {
    left: 1rem;
}

.step-nav-arrow.next {
    right: 1rem;
}

.about-step-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
    margin-top: 2rem;
}

.step-indicator {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.step-indicator::after {
    content: '';
    position: absolute;
    inset: -10px;
}

.step-indicator.active {
    background: #72808D;
    width: 50px;
    box-shadow: 0 0 15px rgba(114, 128, 141, 0.5);
}

.step-indicator:hover:not(.active) {
    background: rgba(114, 128, 141, 0.4);
}

.step-hint {
    animation: pulse-opacity 2s infinite ease-in-out;
}

@keyframes pulse-opacity {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

.scanner-card {
    cursor: pointer;
    /* Suggests interactivity */
}

/* Removed old scan buttons */
.scan-trigger-btn {
    display: none;
}

.system-tag {
    font-family: monospace;
    font-size: 0.7rem;
    color: #72808D;
    opacity: 0.6;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.scanner-reveal.badge {
    background: rgba(79, 96, 112, 0.1);
    border: 1px solid rgba(79, 96, 112, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #72808D;
}

/* Premium: Scanner Bloom (during scan) */
.scanner-card.scanning {
    box-shadow: 0 0 40px rgba(114, 128, 141, 0.15);
}

.scanner-card.scanned {
    box-shadow: none;
    transition: box-shadow 0.5s ease-out;
}

/* 2. Split Reality */
.split-reality {
    height: 450px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.split-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.split-side.code {
    background: rgba(79, 96, 112, 0.05);
}

.split-side.automation {
    background: rgba(107, 114, 128, 0.05);
}

.split-reality .split-side:hover {
    flex: 2;
    opacity: 1;
    filter: blur(0);
}

.split-reality:hover .split-side:not(:hover) {
    opacity: 0.3;
    filter: blur(2px);
}

.split-divider {
    position: absolute;
    left: 50%;
    top: 5%;
    bottom: 5%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 5;
}

/* 3. Timeline Cinematic */
.timeline-step {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(79, 96, 112, 0.1);
    line-height: 1;
}

/* 4. Glass Workflows */
.glass-table {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
}

.glass-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

/* 5. Monogram Morph */
.monogram-container {
    filter: drop-shadow(0 0 20px rgba(79, 96, 112, 0.3));
}

/* 6. Product Hero */
.product-hero h2 {
    background: linear-gradient(to right, white, #4F6070);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 7. Passport */
.passport-container {
    max-width: 500px;
    perspective: 1000px;
}

.passport-book {
    background: #334155;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    border: 4px solid #1e293b;
    position: relative;
}

.passport-page {
    background: #fefce8;
    border-radius: 4px;
    padding: 1.5rem;
    color: #1e293b;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.05);
}

/* 8. Spotlight Cards */
.spotlight-card:hover .card-extra {
    opacity: 1;
}

/* 9. Command Palette */
.cmd-palette {
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

/* 10. Story Orb */
.orb-satellite {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #72808D;
    transition: all 0.3s ease;
    cursor: pointer;
}

.orb-satellite:hover {
    background: rgba(79, 96, 112, 0.2);
    border-color: #72808D;
    transform: scale(1.2);
}

/* Global Module System */
/* 11. Personal Mountain Carousel */
.about-carousel-container {
    margin-top: 3rem;
    position: relative;
    height: 550px;
    /* Increased height for better proportions */
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-carousel-track {
    display: flex;
    gap: 3rem;
    /* More space between images */
    padding: 2rem 5rem;
    cursor: grab;
    align-items: center;
    /* Vertical center within track */
}

.about-carousel-item {
    position: relative;
    width: 320px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    background: #0a0a0a;
}

.about-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.about-carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%,
            rgba(79, 96, 112, 0.05) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.4;
}

.about-carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 25, 0.9), transparent 60%);
    opacity: 0.8;
}

.carousel-caption {
    position: absolute;
    bottom: 24px;
    left: 20px;
    right: 20px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace, 'Courier New';
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.carousel-caption .data-tag {
    color: #72808D;
    font-weight: 900;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(114, 128, 141, 0.4);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .scanner-card {
        padding: 3rem;
        min-height: 500px;
    }

    .about-carousel-container {
        height: 450px;
    }

    .about-carousel-item {
        width: 280px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .scanner-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        min-height: auto;
    }

    .scanner-line,
    .scanner-line-primary,
    .scanner-line-secondary {
        display: none;
    }

    .step-nav-arrow {
        padding: 1rem;
        font-size: 1.2rem;
    }

    .about-carousel-container {
        height: 400px;
        margin-top: 2rem;
    }

    .about-carousel-item {
        width: 240px;
        height: 340px;
    }

    .carousel-caption {
        font-size: 0.6rem;
    }

    .step-indicator {
        width: 20px;
    }

    .step-indicator.active {
        width: 35px;
    }
}

@media (max-width: 480px) {
    .scanner-card {
        padding: 1.5rem 1rem;
    }

    .about-step h2.section-title {
        font-size: 1.8rem !important;
    }

    .about-carousel-track {
        gap: 1.5rem;
        padding: 1rem 2rem;
    }

    .about-carousel-item {
        width: 200px;
        height: 280px;
    }
}