/* ==========================================================================
   TrustInLabs - FPGA Design Page Styles
   ========================================================================== */

/* Inherit Global Scrollbar & Selection from style.css */
::-moz-selection { background-color: #38B2AC; color: #ffffff; }
::selection { background-color: #38B2AC; color: #ffffff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0D1B2A; }
::-webkit-scrollbar-thumb { background: #4FD1C5; border-radius: 4px; border: 2px solid #0D1B2A; }
::-webkit-scrollbar-thumb:hover { background: #38B2AC; }

section { scroll-margin-top: 80px; }

.dropdown-menu { will-change: transform, opacity; backface-visibility: hidden; }

input:focus, textarea:focus { outline: none; }

#mobile-menu { transition: opacity 0.3s ease, transform 0.3s ease; }

/* Hero Section Accent */
.page-hero {
    background: linear-gradient(135deg, #0D1B2A 0%, #0F1E30 60%, #173142 100%);
    position: relative;
    overflow: hidden;
}

/* Feature Card Hover Effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(56, 178, 172, 0.18);
}

/* Animated underline for section headings */
.section-heading-line {
    width: 48px;
    height: 4px;
    background: #38B2AC;
    border-radius: 2px;
    margin: 16px auto 0;
    transition: width 0.4s ease;
}

/* Tech badge */
.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(56, 178, 172, 0.08);
    border: 1px solid rgba(56, 178, 172, 0.2);
    color: #38B2AC;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: background 0.2s ease;
}

.tech-badge:hover {
    background: rgba(56, 178, 172, 0.15);
}

/* CTA Button pulse on hover */
.cta-btn {
    transition: all 0.25s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(56, 178, 172, 0.45);
}

/* FPGA expertise section */
.fpga-expertise {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.fpga-expertise-title {
    letter-spacing: -0.02em;
}

.expertise-highlight {
    color: #2EDB2E;
}

.expertise-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.expertise-card:hover {
    transform: translateY(-3px);
    border-color: #94a3b8;
}

/* FPGA challenges accordion */
.fpga-challenges {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.challenge-item {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.challenge-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #475569;
    padding: 1rem 0;
    transition: color 0.2s ease;
}

.challenge-summary::-webkit-details-marker {
    display: none;
}

.challenge-item[open] .challenge-summary,
.challenge-summary:hover {
    color: #0D1B2A;
}

.challenge-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #94A3B8;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.challenge-item[open] .challenge-icon {
    transform: rotate(180deg);
    color: #38B2AC;
}

.challenge-body {
    padding: 0 0 1rem 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.75rem;
    max-width: 52rem;
}

.challenge-item:first-child {
    border-top: 1px solid #e2e8f0;
}

.expertise-card-title {
    font-size: clamp(1.5rem, 1.9vw, 2rem);
    line-height: 1.2;
}

.expertise-list {
    font-size: clamp(1.03rem, 1.2vw, 1.15rem);
    line-height: 1.45;
}

.expertise-list li::marker {
    color: #334155;
}

/* FPGA work slider section */
.fpga-work {
    background: #f8fafc;
}

.fpga-work-title {
    letter-spacing: -0.025em;
}

.work-highlight {
    color: #7c7be6;
}

.work-slider-shell {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 16px 30px -26px rgba(15, 23, 42, 0.42);
}

.work-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.work-card {
    flex: 0 0 100%;
    width: 100%;
}

.work-card-image-wrap {
    padding: 14px 14px 0;
}

.work-card-image {
    width: 100%;
    height: 360px;
    border-radius: 10px;
    border: 3px solid #9ca3f7;
    object-fit: cover;
    display: block;
}

.work-card-content {
    padding: 1.4rem 1.2rem 1.7rem;
}

.work-card-title {
    font-size: clamp(1.85rem, 2.8vw, 2.75rem);
    line-height: 1.1;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.work-card-client {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.work-card-text {
    color: #374151;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.62;
    max-width: 78ch;
}

.work-card-content--expandable {
    position: relative;
}

.work-meta-heading,
.work-section-label {
    color: #6b7280;
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 0.45rem;
}

.work-section-title {
    color: #111827;
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.work-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.work-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1;
    padding: 0.45rem 0.8rem;
}

.work-expanded-view {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.3s ease;
}

.work-card-content--expandable.is-expanded .work-summary-view {
    display: none;
}

.work-card-content--expandable.is-expanded .work-expanded-view {
    max-height: 1800px;
    opacity: 1;
}

.work-toggle-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.work-toggle-btn {
    border: none;
    background: transparent;
    color: #0052cc;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.work-toggle-btn:hover {
    color: #0043a4;
    text-decoration: underline;
}

.work-toggle-btn:focus-visible {
    outline: 2px solid #0052cc;
    outline-offset: 2px;
    border-radius: 3px;
}

.work-slider-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.work-next-btn {
    min-width: 155px;
    padding: 0.7rem 1.15rem;
    border-radius: 9999px;
    border: 1px solid #0052cc;
    color: #0052cc;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.work-next-btn:hover {
    background: #0052cc;
    color: #ffffff;
    transform: translateY(-1px);
}

.work-next-btn:focus-visible {
    outline: 2px solid #0052cc;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .fpga-expertise {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .expertise-card {
        padding: 1.25rem;
    }

    .fpga-work {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .work-card-image-wrap {
        padding: 12px 12px 0;
    }

    .work-card-image {
        height: 220px;
    }

    .work-card-content {
        padding: 1.1rem 0.95rem 1.3rem;
    }
}

@media print {
    .site-header, #menu-btn, #mobile-menu { display: none !important; }
    body { color: #000; background: #fff; }
}
