/* Tech Hero Specific Styles */
:root {
    --tech-bg: #0a0f0d;
    --tech-green-dark: #051510;
    --tech-green-med: #0d2e23;
    --tech-green: #1c6c4d;
    --tech-neon: #2dd4a4;
    --tech-neon-bright: #3ef7ba;
}

body.tech-page {
    background-color: var(--tech-bg);
    color: #fff;
}

/* Override Header for Tech Page */
.tech-page .header {
    background-color: transparent;
    border-bottom: 1px solid rgba(45, 212, 164, 0.1);
    transition: background-color 0.3s, padding 0.3s, border-color 0.3s, transform 0.3s ease-in-out;
}

.tech-page .header.scrolled {
    background-color: rgba(251, 251, 243, 0.85) !important;
    /* Glassy beige */
    border-bottom: 1px solid rgba(28, 108, 77, 0.2);
    padding: 10px 0;
    backdrop-filter: blur(15px);
    /* Enhanced blur */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.tech-page .header.scrolled .nav-list a {
    color: var(--tech-green);
    /* Dark green text */
    text-shadow: none;
}

.tech-page .header.scrolled .nav-list a:hover {
    color: var(--tech-green-med);
    text-shadow: none;
}

.tech-page .header.scrolled .btn-nav {
    border-color: var(--tech-green);
    color: var(--tech-green);
}

.tech-page .header.scrolled .btn-nav:hover {
    background-color: var(--tech-green);
    color: #fff !important;
    box-shadow: none;
}

.tech-page .nav-list a {
    color: var(--tech-neon);
}

.tech-page .nav-list a:hover {
    color: var(--tech-neon-bright);
    text-shadow: 0 0 10px var(--tech-neon);
}

.tech-page .btn-nav {
    border-color: var(--tech-neon);
    color: var(--tech-neon);
}

.tech-page .btn-nav:hover {
    background-color: var(--tech-neon);
    color: var(--tech-bg) !important;
    box-shadow: 0 0 20px rgba(45, 212, 164, 0.4);
}

/* Tech Hero Section */
.tech-hero {
    position: relative;
    height: 80vh;
    width: 100%;
    background-color: var(--tech-bg);
    /* Fallback */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Middle Layer */
    pointer-events: none;
    /* Allow clicks to pass through */
}

/* Background Slider */
.tech-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Bottom Layer */
}

.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.tech-bg.active {
    opacity: 1;
}

/* Background Overlay */
.tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(13, 46, 35, 0.85) 0%, rgba(10, 15, 13, 0.95) 100%);
    z-index: 1;
}

.tech-bg.slide-1 {
    background-image: url('../images/hero-production.png');
}

.tech-bg.slide-2 {
    background-image: url('../images/hero-production.png');
}

.tech-bg.slide-3 {
    background-image: url('../images/hero-production.png');
}

/* Slider Structure */
.tech-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    /* Top Layer */
    pointer-events: none;
    /* Let clicks pass to canvas if needed, but text needs pointer-events */
}

.tech-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.tech-slide.active {
    opacity: 1;
}

.tech-content-inner {
    position: relative;
    z-index: 2;
    /* Above overlay */
    max-width: 800px;
    /* Medium-thin column */
    width: 100%;
    text-align: center;
    padding: 0 20px;
    pointer-events: auto;
    /* Allow text selection if needed */
}

.tech-content-inner h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 200;
    /* Thin font */
    margin-bottom: 20px;
    color: #fff;
    text-transform: none;
    /* Sentence case */
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(45, 212, 164, 0.5), 0 0 40px rgba(28, 108, 77, 0.3);
    line-height: 1.1;
}

.tech-content-inner p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--tech-neon);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(45, 212, 164, 0.3);
    max-width: 600px;
    /* Even thinner for byline */
    margin: 0 auto;
}

/* Removed old rotating-header h1/p styles as they are replaced by .tech-content-inner */

/* Scanline Effect */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    z-index: 4;
    /* Above slider content */
    pointer-events: none;
    opacity: 0.3;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .tech-content-inner h1 {
        font-size: 2.5rem;
    }

    .tech-content-inner p {
        font-size: 1.1rem;
    }

    .tech-hero {
        height: 100vh;
        /* Full height on mobile */
    }
}

@media (max-width: 480px) {
    .tech-content-inner h1 {
        font-size: 2rem;
    }

    .tech-slider-controls {
        bottom: 80px;
        /* Move up to avoid overlap with bottom UI */
    }
}

/* Tech Slider Controls */
.tech-slider-controls {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.tech-slider-controls button {
    background: rgba(45, 212, 164, 0.1);
    border: 1px solid var(--tech-neon);
    color: var(--tech-neon);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tech-slider-controls button:hover {
    background: var(--tech-neon);
    color: var(--tech-green-dark);
    box-shadow: 0 0 15px rgba(45, 212, 164, 0.5);
}

/* Responsive Controls */
@media (max-width: 768px) {
    .tech-slider-controls {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
    }
}

/* The SMC Factor Section */
.smc-factor {
    background: linear-gradient(rgba(13, 46, 35, 0.85), rgba(5, 21, 16, 0.9)), url('../images/smc_factor_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Background accent */
.smc-factor::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45, 212, 164, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.smc-factor .container {
    position: relative;
    z-index: 1;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
}

.section-intro strong {
    color: var(--tech-neon);
    font-weight: 600;
}

/* Factor Grid */
.factor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Reduced min-width */
    gap: 30px;
    margin-bottom: 60px;
}

.factor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(45, 212, 164, 0.1);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.factor-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--tech-neon);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.factor-icon {
    font-size: 3rem;
    color: var(--tech-neon);
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(45, 212, 164, 0.4);
}

.factor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 500;
}

.factor-card p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.5;
}

/* Results Banner */
.factor-results {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 40px;
    background: rgba(13, 46, 35, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(45, 212, 164, 0.2);
}

.result-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--tech-neon-bright);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(45, 212, 164, 0.3);
    font-family: 'Outfit', sans-serif;
}

.result-label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.factor-summary {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: #fff;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .smc-factor {
        padding: 60px 0;
    }

    .factor-results {
        flex-direction: column;
        gap: 40px;
    }

    .result-number {
        font-size: 3rem;
    }

    .section-intro {
        font-size: 1.1rem;
        padding: 0 15px;
    }
}