/* ========================================
   TECHNOLOGY PAGE - INFINITRA STUDIOS
   Gold theme, technical, powerful
   ======================================== */

/* ========================================
   HERO TECH
   ======================================== */

.hero-tech {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #000000 0%, #0a0a0f 50%, #1a1a2e 100%);
}

.tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-scroll 20s linear infinite;
    opacity: 0.4;
}

@keyframes grid-scroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content-tech {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tech-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title-tech {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-subtitle-tech {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* ========================================
   ENGINE CARDS
   ======================================== */

.section-stack {
    background: var(--color-background);
    position: relative;
}

/* Hide mobile navigation on desktop */
.engine-tabs,
.scroll-indicators {
    display: none;
}

.stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: var(--spacing-lg);
}

.engine-card {
    position: relative;
    padding: 3.5rem 3rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(10, 10, 15, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
}

.engine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.engine-card:hover::before {
    transform: translateX(0);
}

.engine-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.15);
}

.engine-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.08);
    line-height: 1;
    font-family: var(--font-display);
}

.engine-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    color: var(--color-accent);
    position: relative;
    z-index: 2;
}

.engine-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.engine-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.engine-tagline {
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.engine-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.engine-description strong {
    color: var(--color-accent);
    font-weight: 600;
}

.engine-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.spec-value {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* ========================================
   METRICS SECTION
   ======================================== */

.section-deep-dive {
    background: linear-gradient(180deg, #000000 0%, #0a0a0f 100%);
    position: relative;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: var(--spacing-lg);
}

.metric-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    transition: var(--transition);
}

.metric-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-display);
    margin-bottom: 1rem;
    line-height: 1;
}

.metric-label {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   USE CASES SECTION
   ======================================== */

.section-use-cases {
    background: var(--color-surface);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.use-case-card {
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.use-case-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(26, 26, 46, 0.3);
}

.use-case-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.use-case-card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet et Mobile Large */
@media (max-width: 1024px) {
    .stack-grid {
        gap: 2.5rem;
    }
}

/* Mobile - SYSTÈME DE TABS + HORIZONTAL SCROLL */
@media (max-width: 768px) {
    .hero-tech {
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-title-tech {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle-tech {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .tech-label {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    /* ENGINE CARDS - HORIZONTAL SCROLL AVEC SNAP */
    .section-stack {
        overflow: hidden;
    }

    .section-stack .section-header {
        margin-bottom: 1.5rem;
    }

    /* Tabs navigation */
    .engine-tabs {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0 1rem 1rem;
        margin: 0 -1rem 1.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .engine-tabs::-webkit-scrollbar {
        display: none;
    }

    .engine-tab {
        flex-shrink: 0;
        padding: 0.6rem 1.2rem;
        background: rgba(26, 26, 46, 0.4);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 50px;
        color: var(--color-text-secondary);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .engine-tab:active {
        transform: scale(0.95);
    }

    .engine-tab.active {
        background: rgba(212, 175, 55, 0.2);
        border-color: var(--color-accent);
        color: var(--color-accent);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    }

    /* Horizontal scroll container */
    .stack-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 1rem 2rem;
        margin: 0 -1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .stack-grid::-webkit-scrollbar {
        display: none;
    }

    .engine-card {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
        padding: 2.5rem 1.5rem;
        margin: 0;
    }

    /* Scroll indicators */
    .scroll-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(212, 175, 55, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .scroll-dot:active {
        transform: scale(1.2);
    }

    .scroll-dot.active {
        background: var(--color-accent);
        width: 24px;
        border-radius: 4px;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }

    .engine-number {
        font-size: 4rem;
        top: 1.5rem;
        right: 1.5rem;
    }

    .engine-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.5rem;
    }

    .engine-name {
        font-size: 1.5rem;
    }

    .engine-tagline {
        font-size: 0.85rem;
    }

    .engine-description {
        font-size: 1rem;
    }

    /* SPECS - Layout Compact Horizontal */
    .engine-specs {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .spec-label {
        font-size: 0.65rem;
    }

    .spec-value {
        font-size: 1rem;
    }

    /* METRICS - Grid 2x2 Compact */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .metric-card {
        padding: 2rem 1.5rem;
    }

    .metric-value {
        font-size: 2.5rem;
    }

    .metric-label {
        font-size: 0.85rem;
    }

    .metric-description {
        font-size: 0.85rem;
    }

    /* USE CASES - Grid 2 colonnes */
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .use-case-card {
        padding: 1.5rem 1.25rem;
    }

    .use-case-card h3 {
        font-size: 1.1rem;
    }

    .use-case-card p {
        font-size: 0.85rem;
    }
}

/* Petit Mobile - Ultra Compact */
@media (max-width: 480px) {
    .hero-tech {
        min-height: 100vh;
        padding-top: 70px;
    }

    .hero-title-tech {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle-tech {
        font-size: 0.95rem;
    }

    /* Engine cards prennent 95% width */
    .engine-card {
        flex: 0 0 95%;
        max-width: 95%;
        padding: 2rem 1.25rem;
    }

    .engine-number {
        font-size: 3rem;
    }

    .engine-name {
        font-size: 1.3rem;
    }

    /* Specs en colonnes verticales sur petit écran */
    .engine-specs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .spec-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 6px;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .spec-value {
        font-size: 1.1rem;
    }

    /* Metrics en 1 colonne sur très petit écran */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .metric-label {
        font-size: 0.9rem;
    }

    /* Use cases en 1 colonne */
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .use-case-card {
        padding: 2rem 1.5rem;
    }

    .use-case-card h3 {
        font-size: 1.25rem;
    }

    .use-case-card p {
        font-size: 0.95rem;
    }
}
