/* Technology Page Specific Styles */

/* Tech Hero Section */
.tech-hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    margin-top: 70px;
    overflow: hidden;
}

.tech-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.code-matrix {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 0%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(0, 212, 255, 0.05) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px,
            rgba(0, 212, 255, 0.05) 100px
        );
    animation: matrix-scroll 20s linear infinite;
}

.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 127, 0.1) 0%, transparent 50%);
    animation: stream-flow 25s ease-in-out infinite alternate;
}

.tech-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #ffffff;
    animation: slideInUp 1s ease-out both;
}

.tech-title .highlight {
    background: linear-gradient(135deg, #00d4ff, #00ff7f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.tech-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.tech-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.stat-text {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Tech Overview Section */
.tech-overview {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
}

.overview-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-align: center;
}

.overview-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cccccc;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.tech-highlight {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    color: #00d4ff;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 100%;
    height: 100%;
}

.tech-highlight p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
    margin: 0;
}

/* Tech Pillars Section */
.tech-pillars {
    padding: 6rem 0;
    background: linear-gradient(135deg, #16213e 0%, #0f0f1a 100%);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #ffffff;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #00ff7f);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pillar-icon {
    width: 50px;
    height: 50px;
    color: #00d4ff;
    flex-shrink: 0;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.pillar-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.pillar-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    color: #cccccc;
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '▶';
    color: #00d4ff;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Code Preview */
.code-preview {
    background: linear-gradient(135deg, #0a0a0a 0%, #16213e 50%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.code-header {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.code-lang {
    color: #00d4ff;
    font-size: 0.85rem;
    font-weight: 500;
}

.code-dots {
    display: flex;
    gap: 0.3rem;
}

.code-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca3f; }

.code-content {
    padding: 1rem;
    background: rgba(10, 10, 10, 0.5);
}

.code-content code {
    color: #cccccc;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre;
    display: block;
}

/* Data Visualization */
.data-visualization {
    margin-top: 1.5rem;
}

.chart-container {
    background: linear-gradient(135deg, #0a0a0a 0%, #16213e 50%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    height: 180px;
    margin-top: 2rem;
    overflow: visible;
}

.chart-line {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 2.5rem;
    border-radius: 2px;
    position: relative;
    overflow: visible;
}

.chart-labels {
    position: absolute;
    bottom: 0.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #888;
    font-family: 'JetBrains Mono', monospace;
}

.data-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ff7f;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 127, 1);
    animation: data-pulse 2s ease-in-out infinite;
    z-index: 5;
}

.data-point:nth-child(odd) {
    background: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 1);
    animation-delay: 0.5s;
}

.data-point:nth-child(2) { animation-delay: 0.3s; }
.data-point:nth-child(3) { animation-delay: 0.6s; }
.data-point:nth-child(4) { animation-delay: 0.9s; }
.data-point:nth-child(5) { animation-delay: 1.2s; }
.data-point:nth-child(6) { animation-delay: 1.5s; }

@keyframes data-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.5);
        opacity: 1;
    }
}

.chart-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.chart-polyline {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-line 4s ease-in-out infinite;
}

@keyframes draw-line {
    0% {
        stroke-dashoffset: 300;
        opacity: 0.4;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(0, 255, 127, 0.8));
    }
    100% {
        stroke-dashoffset: -300;
        opacity: 0.4;
    }
}

/* Infrastructure Diagram */
.infrastructure-diagram {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    position: relative;
}

.infra-nodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.node {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: #00d4ff;
    font-weight: 500;
    position: relative;
    animation: node-pulse 2s ease-in-out infinite;
    cursor: default;
}

.node.trading { animation-delay: 0s; }
.node.risk { animation-delay: 0.5s; }
.node.data { animation-delay: 1s; }
.node.cloud { animation-delay: 1.5s; }

/* Security Meters */
.security-meters {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.meter {
    background: linear-gradient(135deg, #0f0f1a 0%, #16213e 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.meter-label {
    font-size: 0.8rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.meter-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.meter-fill.low {
    background: linear-gradient(90deg, #00ff7f, #00d4ff);
    width: 15%;
}

.meter-fill.optimal {
    background: linear-gradient(90deg, #00ff7f, #27ca3f);
    width: 100%;
}

.meter-fill.high {
    background: linear-gradient(90deg, #00d4ff, #0080ff);
    width: 67%;
}

.meter-value {
    font-size: 0.8rem;
    color: #00d4ff;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* Innovation Section */
.innovation-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.innovation-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-align: center;
}

.innovation-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.innovation-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.innovation-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.innovation-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.innovation-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    text-align: left;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff7f);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

.progress-label {
    font-size: 0.8rem;
    color: #00d4ff;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* Animations */
@keyframes matrix-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

@keyframes stream-flow {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(2deg); }
}

@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Active Navigation Link */
.nav-link.active {
    color: #00d4ff;
}

.nav-link.active::after {
    width: 100%;
}

/* Default: show desktop code, hide mobile code */
.code-desktop {
    display: block;
}

.code-mobile {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Adjust tech hero for mobile */
    .tech-hero {
        height: auto;
        min-height: 70vh;
        padding: 100px 0 3rem;
    }
    
    .tech-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .tech-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .tech-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    /* Normal spacing for tech pillars */
    .tech-pillars {
        padding-top: 4rem;
    }

    .tech-highlight {
        flex-direction: column;
        text-align: center;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .pillar-header {
        flex-direction: column;
        text-align: center;
    }

    .innovation-grid {
        grid-template-columns: 1fr;
    }

    .infra-nodes {
        grid-template-columns: 1fr;
    }

    .overview-content h2,
    .section-title,
    .innovation-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .tech-pillars,
    .tech-overview,
    .innovation-section {
        padding: 4rem 0;
    }

    .pillar-card,
    .innovation-card {
        padding: 1.5rem;
    }

    .tech-title {
        font-size: 2rem;
    }

    .code-content code {
        font-size: 0.75rem;
    }
    
    /* Hide desktop code on mobile, show mobile code */
    .code-desktop {
        display: none;
    }
    
    .code-mobile {
        display: block;
    }
} 