/* About Page - Professional Hardware & IoT Aesthetic */

:root {
    --about-bg: var(--bg-primary);
    --about-cyan: var(--accent-blue);
    --about-gold: var(--accent-gold);
    --about-text: var(--text-white);
    --about-muted: var(--text-muted);
    --glass-bg: var(--glass);
    --glass-border: var(--glass-border);
}

/* --- Hero Section V2 (PCB Aesthetic) --- */
.hero-about-v2 {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

/* PCB Grid & Tracks */
.hero-about-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 212, 191, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.pcb-tracks {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.pcb-line {
    stroke: var(--about-cyan);
    stroke-width: 1.2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawTrack 4s ease-out forwards;
}

@keyframes drawTrack {
    to {
        stroke-dashoffset: 0;
    }
}

.about-hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1000px;
    padding: 0 2rem;
}

/* --- Generative Background (Canvas) --- */
#frame {
    position: absolute;
    /* Changed from fixed to scroll with content */
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    opacity: 0;
    /* Starts at 0 for show animation */
    pointer-events: none;
    background-color: var(--primary-deep);
    animation: fadeInBg 2s ease-out 0.5s forwards;
}

@keyframes fadeInBg {
    to {
        opacity: 0.08;
    }

    /* Mild background effect */
}

/* --- Signal Injection Reveal --- */
.company-reveal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    padding: 1.5rem 0;
}

.voltage-pulse {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 25%;
    height: 3px;
    background: var(--about-cyan);
    box-shadow: 0 0 25px var(--about-cyan), 0 0 50px var(--about-cyan);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    animation: signalInjection 2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes signalInjection {
    0% {
        left: -10%;
        width: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
        width: 15%;
    }

    80% {
        left: 100%;
        width: 10%;
        opacity: 1;
    }

    100% {
        left: 110%;
        width: 0%;
        opacity: 0;
    }
}

.reveal-line {
    position: relative;
    overflow: hidden;
    height: 5.6rem;
    /* Robust height matching user manual adjustment */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1em 0;
}

.reveal-text {
    display: block;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    opacity: 0.1;
    filter: blur(8px);
    transform: scale(0.98);
    animation: systemBoot 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards,
        digitalFlicker 2s linear 0.6s 1;
}

.reveal-text.delayed {
    background: linear-gradient(90deg, var(--about-cyan), var(--about-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation-delay: 1.1s;
}

@keyframes systemBoot {
    0% {
        opacity: 0.1;
        filter: blur(8px);
        transform: scale(0.98);
    }

    50% {
        opacity: 0.8;
        filter: blur(2px);
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes digitalFlicker {
    0% {
        opacity: 0.1;
        transform: skewX(0deg);
    }

    5% {
        opacity: 0.5;
        transform: skewX(10deg);
    }

    10% {
        opacity: 0.2;
        transform: skewX(-10deg);
    }

    15% {
        opacity: 0.9;
        transform: skewX(0deg);
    }

    20% {
        opacity: 0.3;
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.about-hero-content p {
    font-size: 1.2rem;
    color: var(--about-muted);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInHero 1s ease-out 1.8s forwards;
    font-family: 'Fira Code', monospace;
}

@keyframes fadeInHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Solder Points */
.solder-point {
    fill: var(--about-gold);
    filter: drop-shadow(0 0 5px var(--about-gold));
    opacity: 0;
    animation: pulsePoint 2s infinite ease-in-out;
}

@keyframes pulsePoint {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* --- Story Section V2 --- */
.story-section-v2 {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.story-section-v2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--about-cyan), transparent);
    opacity: 0.15;
}

.story-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.story-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
    color: var(--about-text);
}

.story-text .intro-lead {
    font-size: 1.1rem;
    color: var(--about-gold);
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--about-muted);
    margin-bottom: 1.5rem;
}

.story-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-main);
}

.story-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Mission & Vision Section --- */
.mission-vision-section {
    padding: 3rem 2rem;
    background: transparent;
}

.mission-vision-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mv-card-v2 {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 24px;
    transition: all 0.4s ease;
}

.mv-card-v2:hover {
    border-color: var(--about-cyan);
    background: rgba(45, 212, 191, 0.05);
    transform: translateY(-8px);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: rgba(45, 212, 191, 0.1);
    color: var(--about-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.mv-card-v2 h3 {
    font-size: 1.8rem;
    color: var(--about-gold);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mv-card-v2 p {
    color: var(--about-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.mission-vision-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0rem;
}

/* --- Ecosystem Section --- */
.ecosystem-section {
    padding: 5rem 2rem;
    background: transparent;
}

.ecosystem-header {
    text-align: center;
    margin-bottom: 5rem;
}

.ecosystem-header .tagline {
    color: var(--about-cyan);
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.ecosystem-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--about-text);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.eco-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eco-card:hover {
    border-color: var(--about-gold);
    transform: translateY(-10px);
    background: rgba(251, 191, 36, 0.03);
}

.eco-card i {
    font-size: 2.5rem;
    color: var(--about-cyan);
    margin-bottom: 2rem;
    display: block;
}

.eco-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: var(--about-text);
}

.eco-card p {
    color: var(--about-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Responsive --- */


/* --- Electronics Atom Decor (Integrated Component) --- */
.pl-wrapper {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.pl-hero {
    right: 5%;
    top: 20%;
    transform: scale(0.7);
}

.pl-story {
    left: 2%;
    bottom: 5%;
    transform: scale(0.5) rotate(15deg);
}

.pl {
    --dur: 3s;
    margin: auto;
    position: relative;
    width: 8rem;
    height: 8rem;
}

.pl__nucleus,
.pl__nucleus-particle {
    position: absolute;
}

.pl__nucleus {
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
}

.pl__nucleus-particle,
.pl__ring,
.pl__orbit,
.pl__electron {
    animation: particleTop var(--dur) linear infinite;
}

.pl__nucleus-particle {
    background-color: var(--about-cyan);
    background-image: radial-gradient(37.5% 37.5% at 37.5% 37.5%, rgba(255, 255, 255, 0.2) 48%, transparent 50%);
    border-radius: 50%;
    box-shadow: -0.125em -0.125em 0 rgba(0, 0, 0, 0.2) inset;
    top: calc(50% - 0.5em);
    left: calc(50% - 0.5em);
    width: 1em;
    height: 1em;
}

.pl__nucleus-particle:nth-child(2n) {
    background-color: var(--about-gold);
}

.pl__nucleus-particle:nth-child(n + 4):nth-child(-n + 9) {
    animation-name: particleMiddle;
}

.pl__nucleus-particle:nth-child(n + 10):nth-child(-n + 12) {
    animation-name: particleBottom;
}

.pl__nucleus-particle:nth-child(2) {
    animation-delay: calc(var(--dur) * -0.33);
}

.pl__nucleus-particle:nth-child(3) {
    animation-delay: calc(var(--dur) * -0.67);
}

.pl__nucleus-particle:nth-child(5) {
    animation-delay: calc(var(--dur) * -0.17);
}

.pl__nucleus-particle:nth-child(6) {
    animation-delay: calc(var(--dur) * -0.33);
}

.pl__nucleus-particle:nth-child(7) {
    animation-delay: calc(var(--dur) * -0.5);
}

.pl__nucleus-particle:nth-child(8) {
    animation-delay: calc(var(--dur) * -0.67);
}

.pl__nucleus-particle:nth-child(9) {
    animation-delay: calc(var(--dur) * -0.83);
}

.pl__nucleus-particle:nth-child(11) {
    animation-delay: calc(var(--dur) * -0.33);
}

.pl__nucleus-particle:nth-child(12) {
    animation-delay: calc(var(--dur) * -0.67);
}

.pl__nucleus-particle:last-child {
    animation: none;
}

.pl__rings {
    display: block;
    width: 100%;
    height: auto;
}

.pl__ring {
    animation-name: ring;
    transform-origin: 64px 64px;
}

.pl__ring:nth-child(n + 5):nth-child(-n + 7) {
    animation-delay: calc(var(--dur) * -0.25);
}

.pl__orbit,
.pl__electron {
    animation-name: orbit;
    transition: stroke 0.3s;
}

.pl__orbit:first-child {
    stroke: rgba(45, 212, 191, 0.1);
}

.pl__orbit:nth-child(2) {
    stroke: rgba(45, 212, 191, 0.4);
}

.pl__orbit:nth-child(3) {
    stroke: var(--about-cyan);
}

.pl__ring:nth-child(2) .pl__orbit {
    animation-delay: calc(var(--dur) * -0.125);
}

.pl__ring:nth-child(3) .pl__orbit {
    animation-delay: calc(var(--dur) * -0.25);
}

.pl__ring:nth-child(4) .pl__orbit {
    animation-delay: calc(var(--dur) * -0.375);
}

.pl__ring:nth-child(6) .pl__orbit {
    animation-delay: calc(var(--dur) * -0.25);
}

.pl__ring:nth-child(7) .pl__electron:nth-child(2) {
    animation-delay: calc(var(--dur) * -0.25);
}

.pl__ring:nth-child(8) .pl__electron:nth-child(2) {
    animation-delay: calc(var(--dur) * -0.125);
}

/* Animations */
@keyframes orbit {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 580;
    }
}

@keyframes ring {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(1turn);
    }
}

@keyframes particleTop {
    from {
        transform: rotateY(0) rotateZ(-35deg) translateY(-100%) rotateZ(35deg) rotateY(0);
    }

    to {
        transform: rotateY(-1turn) rotateZ(-35deg) translateY(-100%) rotateZ(35deg) rotateY(1turn);
    }
}

@keyframes particleMiddle {
    from {
        transform: rotateY(0) rotateZ(90deg) translateY(-100%) rotateZ(-90deg) rotateY(0);
    }

    to {
        transform: rotateY(-1turn) rotateZ(90deg) translateY(-100%) rotateZ(-90deg) rotateY(1turn);
    }
}

@keyframes particleBottom {
    from {
        transform: rotateY(0) rotateZ(-145deg) translateY(-100%) rotateZ(145deg) rotateY(0);
    }

    to {
        transform: rotateY(-1turn) rotateZ(-145deg) translateY(-100%) rotateZ(145deg) rotateY(1turn);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .story-text {
        text-align: center;
    }

    .mission-vision-grid-v2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mission-vision-section {
        padding: 4rem 1.5rem;
    }

    .mv-card-v2 {
        padding: 3rem 1rem 1.5rem;
        background: var(--bg-secondary);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        position: relative;
        text-align: center;
        box-shadow: var(--shadow-main);
        margin-top: 2rem;
    }

    .mv-card-v2::before {
        display: none;
    }

    .mv-icon {
        width: 60px;
        height: 60px;
        margin: 0;
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--about-bg);
        border: 2px solid var(--about-cyan);
        box-shadow: 0 0 15px rgba(45, 212, 191, 0.2);
        z-index: 2;
    }

    .mv-card-v2 h3 {
        font-size: 1.6rem;
        font-family: var(--font-main);
        letter-spacing: normal;
        margin-top: 1rem;
        margin-bottom: 1rem;
        background: linear-gradient(90deg, var(--about-cyan), var(--about-gold));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }

    .mv-card-v2 p {
        font-size: 0.86rem;
        color: var(--about-text);
        opacity: 0.9;
        line-height: 1.7;
    }

    /* Ecosystem Section Mobile */
    .ecosystem-section {
        padding: 4rem 1.5rem;
    }

    .ecosystem-header {
        margin-bottom: 3rem;
    }

    .ecosystem-header h2 {
        font-size: 1.8rem;
        position: relative;
        display: inline-block;
    }

    .ecosystem-header h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: var(--about-gold);
        box-shadow: 0 0 10px var(--about-gold);
    }

    .eco-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        text-align: center;
    }

    .eco-card i {
        font-size: 2rem;
        margin-bottom: 0rem;
    }

    .eco-card h3 {
        font-size: 1.4rem;
    }

    .eco-card p {
        font-size: 0.86rem;
    }

    /* Hero Reveal Adjustments */
    .reveal-line {
        height: auto;
        margin-bottom: 1.5rem;
    }

    .reveal-text {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.5;
    }

    .story-text h2 {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
    }

    .story-text p {
        font-size: 0.86rem;
        text-align: justify;
    }

    .pl-story {
        left: 2%;
        bottom: -1%;
        transform: scale(0.5) rotate(15deg);
    }

    .pl-hero {
        right: -2%;
        top: 14%;
        transform: scale(0.7);
    }


    /* Engineering Leadership Section */

    .leadership-section .container .section-header p {
        font-size: 0.86rem;
    }

}