/* 
  NEPP TSA Hub 
  Aesthetic: Premium, Tech, Circuit/Hardware, Cyber-influenced but clean
*/

:root {
    --bg-dark: #090a0f;
    --bg-panel: rgba(13, 17, 23, 0.8);
    --gold-primary: #E5C100;
    --accent-cyan: #00f0ff;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --border-dim: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 240, 255, 0.3);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* --- Dynamic Background --- */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.bottom-left {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    bottom: -100px;
    left: -100px;
}

.top-right {
    width: 600px;
    height: 600px;
    background: var(--gold-primary);
    top: -200px;
    right: -100px;
}

.circuit-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.1), transparent);
    animation: scan 8s linear infinite;
    z-index: 1;
}

@keyframes scan {
    0% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(100vh);
    }
}

/* --- App Bridge Nav --- */
.app-bridge {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
    z-index: 100;
}

.bridge-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.bridge-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.bridge-back svg {
    width: 14px;
    height: 14px;
}

.bridge-back:hover {
    color: var(--accent-cyan);
}

.bridge-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bridge-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.bridge-divider {
    color: var(--text-muted);
    font-weight: 300;
}

.bridge-hub-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
}

.bridge-link {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.bridge-link:hover {
    color: var(--text-main);
}


/* --- Main Wrapper --- */
.hub-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 32px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Hero Section --- */
.hub-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-glow);
    border-radius: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 900;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

.tech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.tech-btn.primary {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.tech-btn.primary:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.tech-btn.outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-dim);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.tech-btn.outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
}

/* Hero Tech Visuals */
.hero-visuals {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Tech Cube */
.tech-cube-container {
    perspective: 1000px;
    width: 200px;
    height: 200px;
}

.tech-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 15s linear infinite;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: rgba(0, 240, 255, 0.5);
    box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.1);
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate {
    0% {
        transform: rotateX(-15deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(-15deg) rotateY(360deg);
    }
}

.data-panel {
    position: absolute;
    bottom: 20px;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    padding: 16px;
    backdrop-filter: blur(10px);
    border-left: 3px solid var(--accent-cyan);
}

.panel-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.panel-body {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Content Sections --- */
.hub-section {
    position: relative;
    margin-bottom: 120px;
    z-index: 10;
}

.section-header {
    display: inline-block;
    border-bottom: 1px solid var(--border-glow);
    padding-bottom: 16px;
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}

/* Tech Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    position: relative;
    background: var(--bg-panel);
    padding: 2px;
    /* Border space */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: transform 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--border-dim) 0%, transparent 50%, var(--border-glow) 100%);
    z-index: 0;
}

.tech-card:hover .card-border {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, transparent 50%, var(--gold-primary) 100%);
}

.card-content {
    position: relative;
    background: #0d1117;
    /* Solid to hide border behind */
    padding: 32px;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    clip-path: inherit;
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 24px;
}

.card-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.card-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 32px 0;
    flex: 1;
}

.text-sm {
    font-size: 0.8rem;
}

.card-link {
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: auto;
    transition: color 0.2s;
}

.card-link:hover {
    color: var(--gold-primary);
}

/* --- Footer --- */
.hub-footer {
    margin-top: auto;
    border-top: 1px dashed var(--border-dim);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-brand img {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.5);
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* Responsive */
@media (max-width: 1024px) {
    .hub-hero {
        flex-direction: column;
    }

    .hero-visuals {
        display: none;
        /* Hide complex 3D on smaller screens for performance */
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .bridge-actions,
    .bridge-brand {
        display: none;
    }
}