/**
 * Technology page – glassmorphic layout (reference image).
 * Original site colors only: no purple. Text and background stay as theme.
 */

.technology-page #technology {
    scroll-margin-top: 5rem;
}

/* ----- Hero ----- */
.technology-page .tech-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ----- Glassmorphic tab bar ----- */
.technology-page .tech-tab-bar {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(51, 65, 85, 0.5);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.technology-page .tech-tab-active {
    background: rgba(2, 6, 23, 0.9);
    color: #fff;
}

/* ----- Feature grid: 3x2 glass cards ----- */
.technology-page .tech-feature-grid {
    display: grid;
}

.technology-page .tech-glass-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.25);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.technology-page .tech-glass-card:hover {
    border-color: rgba(232, 138, 36, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.technology-page .tech-card-expand {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}

.technology-page .tech-card-icon {
    min-height: 48px;
}

.technology-page .tech-hub-block {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(51, 65, 85, 0.5);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ----- Light theme: keep original text/background intent ----- */
[data-theme="light"] .technology-page #technology,
[data-theme="light"] .technology-page .tech-section {
    background-color: #ffffff;
}

[data-theme="light"] .technology-page .tech-tab-bar {
    background: rgba(248, 250, 252, 0.85);
    border-color: rgba(226, 232, 240, 0.9);
}

[data-theme="light"] .technology-page .tech-tab {
    color: #475569;
}

[data-theme="light"] .technology-page .tech-tab:hover {
    color: #0f172a;
}

[data-theme="light"] .technology-page .tech-tab-active {
    background: #0f172a;
    color: #fff;
}

[data-theme="light"] .technology-page .tech-glass-card {
    background: rgba(248, 250, 252, 0.9);
    border-color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .technology-page .tech-glass-card:hover {
    border-color: rgba(232, 138, 36, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .technology-page .tech-glass-card h3 {
    color: #0f172a;
}

[data-theme="light"] .technology-page .tech-glass-card p {
    color: #475569;
}

[data-theme="light"] .technology-page .tech-glass-card .tech-card-icon svg {
    color: #64748b;
}

[data-theme="light"] .technology-page .tech-card-expand {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
}

[data-theme="light"] .technology-page .tech-card-expand:hover {
    background: var(--p, #E88A24);
    border-color: var(--p, #E88A24);
    color: #000;
}

[data-theme="light"] .technology-page .tech-hero-title,
[data-theme="light"] .technology-page .tech-features-heading {
    color: #0f172a;
}

[data-theme="light"] .technology-page .tech-features-sub {
    color: #475569;
}

[data-theme="light"] .technology-page .tech-hub-block {
    background: linear-gradient(to bottom right, #f1f5f9, #e2e8f0);
    border-color: #cbd5e1;
}

[data-theme="light"] .technology-page .tech-hub-block h2 {
    color: #0f172a;
}

[data-theme="light"] .technology-page .tech-hub-block .text-slate-400 {
    color: #475569;
}

/* Legacy selectors for any remaining .tech-pillar / .tech-feature-card */
.technology-page #technology .tech-pillar h2,
.technology-page #technology .tech-feature-card h3,
.technology-page #technology .tech-hub-block h2 {
    font-weight: 700;
}

[data-theme="light"] .technology-page #technology .tech-pillar h2,
[data-theme="light"] .technology-page #technology .tech-feature-card h3 {
    color: #0f172a;
}

[data-theme="light"] .technology-page #technology .tech-pillar p,
[data-theme="light"] .technology-page #technology .tech-feature-card p {
    color: #475569;
}
