/* v11.0 AI Nexus - High Tech Identity */
:root {
    --core-red: #bb2525;
    /* Darker, richer red per image */
    --core-red-dim: rgba(187, 37, 37, 0.1);
    --core-red-glow: rgba(187, 37, 37, 0.6);
}

/* --- GLOBAL STYLES & SCROLLBAR --- */
:root {
    --core-red: #ff3d3d;
    --core-red-glow: rgba(255, 61, 61, 0.5);
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --font-display: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--core-red);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--core-red-glow);
}

::-webkit-scrollbar-thumb:hover {
    background: #e62e2e;
}

a {
    text-decoration: none !important;
    color: inherit;
}

.red-txt {
    color: var(--core-red);
    text-shadow: 0 0 20px var(--core-red-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    /* Forces browser UI (scrollbars) to dark mode */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-display);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- STAGGERED TRANSITIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.stagger-1 {
    transition-delay: 0.1s;
}

.reveal.stagger-2 {
    transition-delay: 0.2s;
}

.reveal.stagger-3 {
    transition-delay: 0.3s;
}

.reveal.stagger-4 {
    transition-delay: 0.4s;
}

.reveal.stagger-5 {
    transition-delay: 0.5s;
}

.section-transition {
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s;
}

/* --- CYBER CURSOR (Single Reticle - 100% Precision) --- */
/* --- CYBER CURSOR (Single Reticle - 100% Precision) --- */
.command-cursor {
    position: fixed;
    width: 0;
    height: 0;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: exclusion;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}

/* Language Switcher Upgraded */
.lang-switcher {
    background: #bb2525;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(187, 37, 37, 0.3);
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    letter-spacing: 1px;
    margin-left: 10px;
}

.lang-switcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(187, 37, 37, 0.5);
}

/* --- PREMIUM MINIMALIST CURSOR --- */
.cursor-reticle {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 61, 61, 0.4);
    position: absolute;
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    mix-blend-mode: difference;
}

/* Precise Crosshair Lines */
.cursor-reticle::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: rgba(255, 61, 61, 0.6);
    transition: 0.3s;
}

.cursor-reticle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(255, 61, 61, 0.6);
    transition: 0.3s;
}

/* Center Dot */
.cursor-dot-inner {
    width: 2px;
    height: 2px;
    background: var(--core-red);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--core-red);
    z-index: 2;
}

/* Active State (Hovering Interactives) */
.command-cursor.active .cursor-reticle {
    width: 10px;
    height: 10px;
    border-color: var(--core-red);
    transform: rotate(45deg);
}

.command-cursor.active .cursor-reticle::before,
.command-cursor.active .cursor-reticle::after {
    background: var(--core-red);
    height: 80%;
    width: 1px;
}

/* Lock-on State (Titles) */
.command-cursor.lock-on .cursor-reticle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-style: dashed;
    animation: cursorRotate 4s linear infinite;
}

@keyframes cursorRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Flash effect for shutter */
.shut-flash {
    position: absolute;
    inset: 0;
    background: var(--core-red);
    opacity: 0;
    pointer-events: none;
    z-index: 20001;
    transition: opacity 0.2s ease-out;
}

.shutter-flash-active {
    opacity: 0.8;
}

/* HOVER / ACTIVE STATE */
.command-cursor.active {
    z-index: 20000;
}

.command-cursor.lock-on .cursor-reticle::after {
    display: block;
    /* Keep dot */
    transform: scale(1.5);
}

/* Cursor Label Hover */
.command-cursor.active .cursor-label {
    opacity: 1;
    transform: translate(5px, -5px);
}

/* --- MATRIX BG --- */
.network-matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

/* --- SHUTTER TRANSITION --- */
.transition-shutter {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 20000;

    display: flex;
    flex-direction: column;
}

.shut-top,
.shut-bottom {
    flex: 1;
    background: #050505;
    transform: scaleY(0);
    /* Default Open */
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
    border-bottom: 3px solid var(--core-red);
    position: relative;
    overflow: hidden;
}

.shut-top {
    transform-origin: top;
}

.shut-bottom {
    transform-origin: bottom;
    border-top: 3px solid var(--core-red);
    border-bottom: none;
}

.shut-top canvas,
.shut-bottom canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.shut-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--core-red);
    box-shadow: 0 0 50px var(--core-red);
    transform: scaleX(0);
    transition: 0.4s;
    opacity: 0;
    z-index: 2;
}

/* Active State: CLOSED */
.transition-shutter.active .shut-top,
.transition-shutter.active .shut-bottom {
    transform: scaleY(1);
    pointer-events: all;
    animation: shutterGlitch 0.2s infinite;
}

/* Ensure shutter canvases cover full screen on all sizes */
.shut-top canvas,
.shut-bottom canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@keyframes shutterGlitch {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }

    100% {
        filter: brightness(1);
    }
}

.transition-shutter.active .shut-line {
    transform: scaleX(1);
    opacity: 1;
    transition-delay: 0.5s;
    /* Wait for shut */
    animation: laserPulse 1s ease-in-out infinite;
}

@keyframes laserPulse {
    0% {
        box-shadow: 0 0 20px var(--core-red);
    }

    50% {
        box-shadow: 0 0 60px var(--core-red), 0 0 100px var(--core-red);
        opacity: 1;
    }

    100% {
        box-shadow: 0 0 20px var(--core-red);
    }
}

/* --- GATE SYSTEM --- */
.agency-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Much more transparent to show Matrix */
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gate-status.top-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--scanner-blue);
    /* Cyan */
    margin-bottom: 20px;
    text-transform: uppercase;
}

.gate-content {
    text-align: center;
    position: relative;
}

.gate-num {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 40px;
    opacity: 0.7;
}

.fingerprint-hub {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* --- NEXT-GEN BIOMETRIC GATE HUD --- */
.agency-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: transparent;
    /* Made transparent to show main matrix */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 1.2s cubic-bezier(1, 0, 0, 1), opacity 0.8s;
}

.gate-bg-waves {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* Corner HUD Layers */
.hud-overlay-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.hud-overlay-layers>div {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #fff;
    /* Changed to White */
    opacity: 0.5;
    letter-spacing: 2px;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.hud-corner-top-left {
    top: 40px;
    left: 40px;
    border-left: 1px solid var(--core-red);
    padding-left: 15px;
}

.hud-corner-top-right {
    top: 40px;
    right: 40px;
    border-right: 1px solid var(--core-red);
    text-align: right;
    padding-right: 15px;
}

.hud-corner-bottom-left {
    bottom: 40px;
    left: 40px;
    border-left: 1px solid var(--core-red);
    padding-left: 15px;
}

.hud-corner-bottom-right {
    bottom: 40px;
    right: 40px;
    border-right: 1px solid var(--core-red);
    text-align: right;
    padding-right: 15px;
}

/* Biometric Hub */
.fingerprint-hub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    z-index: 10;
}

.biometric-scanner-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Revolutionary Circular HUD Progress */
.scanning-hud-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-track {
    fill: none;
    stroke: rgba(255, 61, 61, 0.05);
    stroke-width: 4;
}

.ring-progress {
    fill: none;
    stroke: var(--core-red);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    /* 2 * PI * 90 */
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 0.1s linear;
    filter: drop-shadow(0 0 10px var(--core-red-glow));
}

.fp-scanner {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--core-red);
    transition: 0.3s;
    cursor: pointer;
    z-index: 100;
    touch-action: none;
}

.technical-blueprint-svg {
    width: 60%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: 0.5s;
}

.technical-blueprint-svg svg {
    filter: drop-shadow(0 0 5px var(--core-red));
}

.agency-gate.scanning .technical-blueprint-svg {
    opacity: 1;
    transform: scale(1.05);
}

.scan-laser {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--core-red);
    box-shadow: 0 0 15px var(--core-red);
    animation: laserMove 2.5s infinite ease-in-out;
    opacity: 0;
}

.agency-gate.scanning .scan-laser {
    opacity: 1;
}

@keyframes laserMove {

    0%,
    100% {
        top: 10%;
        transform: scaleX(0.8);
    }

    50% {
        top: 90%;
        transform: scaleX(1);
    }
}

.gate-action-text {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--core-red);
    text-shadow: 0 0 10px var(--core-red-glow);
    opacity: 0.6;
}

/* --- NAVIGATION --- */
.agency-nav {
    position: fixed;
    top: 20px;
    /* adjusted top */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    /* Wider */
    max-width: 1600px;
    height: 80px;
    /* Taller */
    background: rgba(5, 5, 8, 0.85);
    /* Darker */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    /* Pill shape */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 30px;
    height: 30px;
}

.brand-logo.sm {
    width: 24px;
    height: 24px;
}

.nav-brand span {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--core-red);
    transition: 0.3s ease;
}

.nav-item:hover {
    color: white;
}

.nav-item:hover::after {
    width: 100%;
}

/* --- GLOBAL BUTTONS --- */
.nav-cta,
.terminal-btn-red {
    background: #bb2525;
    /* Deep Red */
    color: #fff;
    /* White Text */
    border: none;
    padding: 14px 32px;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(187, 37, 37, 0.3);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-cta::before,
.terminal-btn-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    opacity: 0.1;
    z-index: -1;
    transition: 0.3s;
}

.nav-cta:hover,
.terminal-btn-red:hover,
.read-more-terminal:hover,
.transmit-btn-white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(187, 37, 37, 0.6);
    /* Red Glow */
}

.nav-cta:hover::before,
.terminal-btn-red:hover::before,
.read-more-terminal:hover::before {
    width: 100%;
}

/* --- READ MORE BUTTON (Upgraded) --- */
.read-more-terminal {
    background: transparent;
    color: #bb2525;
    /* Red */
    border: 2px solid #bb2525;
    /* Thicker Red Border */
    padding: 12px 30px;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.read-more-terminal .arrow {
    transition: 0.3s;
}

.read-more-terminal:hover .arrow {
    transform: translateX(5px);
}


.nav-extra {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-left: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.lang-switcher:hover {
    color: white;
}

/* --- HERO SECTION --- */
.agency-section {
    min-height: 100vh;
    padding: 140px 10%;
    display: flex;
    align-items: center;
    position: relative;
}

.hero {
    justify-content: space-between;
}

.hero-text {
    max-width: 600px;
    z-index: 2;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--core-red);
    margin-bottom: 24px;
    background: rgba(255, 42, 42, 0.05);
}

/* --- CURSOR LABEL (REFINED) --- */
.cursor-label {
    display: none !important;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .red-txt {
    background: none;
    -webkit-text-fill-color: var(--core-red);
    text-shadow: 0 0 30px var(--core-red-glow);
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 450px;
}

/* Hero Portrait */
.portrait-box {
    position: relative;
    width: 400px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s var(--ease-out);
    border: 1px solid var(--border-light);
    background: var(--bg-panel);
}

.portrait-box:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    border-color: var(--core-red);
    box-shadow: 0 0 50px rgba(255, 42, 42, 0.1);
}

.user-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: 0.5s;
}

.portrait-box:hover .user-portrait {
    filter: grayscale(0%) contrast(1);
}

/* --- SKILLS GRID (Glass Cards) --- */
.skills-header,
.certs-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
}

.skills-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.skill-node {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Visible border by default */
    padding: 35px;
    border-radius: 20px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.skill-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 42, 42, 0.1), transparent 60%);
    opacity: 0;
    transition: 0.4s;
}

.skill-node:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--core-red);
    background: rgba(20, 20, 25, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.skill-node:hover::before {
    opacity: 1;
}

.node-icon-svg {
    width: 40px;
    height: 40px;
    color: var(--core-red);
    margin-bottom: 20px;
}

.skill-node h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.node-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* --- CERTS MATRIX --- */
.certs-matrix-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.cert-item {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    aspect-ratio: auto;
    /* Remove forced square ratio if it was breaking flow */
    min-height: 200px;
}

.cert-item:hover {
    border-color: var(--core-red);
    background: rgba(20, 10, 10, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(187, 37, 37, 0.1);
}

.cert-item h3 {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-top: 15px;
    color: #fff;
    font-weight: 600;
}

.c-icon {
    color: var(--core-red);
    width: 32px;
    height: 32px;
    margin: 0 auto 15px;
    opacity: 0.8;
}

.cert-item h3 {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

/* --- AGENCY MODAL (Removed) --- */
.agency-modal {
    display: none !important;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
}



.modal-header h2 {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 20px;
}

.modal-header .red-txt {
    color: var(--core-red);
    text-shadow: 0 0 20px var(--core-red-glow);
}

.terminal-frame {
    background: #000;
    border: 1px solid var(--core-red);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(187, 37, 37, 0.15);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-family: var(--font-mono);
    cursor: pointer;
}

/* --- FORM INPUTS --- */
/* --- FORM REFINEMENTS --- */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid var(--core-red);
    border-radius: 0 8px 8px 0;
    padding: 18px 25px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 42, 42, 0.05);
    border-color: var(--core-red);
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.1);
}

/* Redefine terminal button to match global style if needed, 
   but it is already covered by the group selector above unless overridden */
.terminal-btn-red {
    width: 100%;
    border-radius: 8px;
    /* Slightly less rounded for form context if preferred, or keep pill */
    margin-top: 10px;
}

/* --- UTILS --- */
.hidden {
    display: none !important;
}



/* --- CONNECT UPLINK SECTION --- */
.connect-uplink-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.uplink-content {
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.uplink-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.uplink-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.uplink-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
}

.bg-sym {
    position: absolute;
    color: var(--core-red);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    opacity: 0.5;
    transition: 0.5s;
}

/* Positioning Symbols (approximate to random matrix look) */
.s-1 {
    top: 20%;
    left: 10%;
    opacity: 0.2;
}

.s-2 {
    top: 60%;
    left: 15%;
    opacity: 0.1;
}

.s-3 {
    top: 30%;
    right: 20%;
    opacity: 0.3;
}

.s-4 {
    top: 70%;
    right: 10%;
    opacity: 0.2;
}

.s-5 {
    top: 10%;
    right: 40%;
    opacity: 0.1;
}

.s-6 {
    bottom: 20%;
    left: 30%;
    opacity: 0.2;
}

.s-7 {
    top: 15%;
    left: 5%;
    color: yellow;
    opacity: 0.4;
    font-size: 0.8rem;
}

/* HOVER EFFECTS (Button Logic) */
.connect-uplink-section:hover {
    background: rgba(20, 0, 0, 0.6);
    border-top: 1px solid var(--core-red);
    box-shadow: 0 0 50px rgba(187, 37, 37, 0.1);
}

.connect-uplink-section:hover .uplink-title {
    text-shadow: 0 0 40px var(--core-red), 0 0 80px var(--core-red);
    transform: scale(1.05);
}

.connect-uplink-section:active {
    transform: scale(0.98);
    background: rgba(50, 0, 0, 0.8);
}

.connect-uplink-section:hover .uplink-sub {
    color: #fff;
    letter-spacing: 6px;
    text-shadow: 0 0 10px white;
}

.connect-uplink-section:hover .bg-sym {
    transform: translateY(-10px);
    opacity: 0.8;
}

/* --- FOOTER STYLES --- */
/* --- FOOTER STYLES (Stacked/Left Aligned) --- */
.agency-footer-stacked {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    /* Seamless blend */
    padding: 60px 50px;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-links-inline {
    display: flex;
    gap: 20px;
}

.footer-links-inline a {
    color: #bb2525;
    /* RED */
    text-decoration: none;
    /* Clean */
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-inline a:hover {
    color: #fff;
    text-shadow: 0 0 10px #bb2525;
}

/* --- SOCIAL ICONS --- */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(187, 37, 37, 0.3);
    border-radius: 50%;
    color: #bb2525;
    /* Red Icon */
    transition: all 0.3s var(--ease-out);
    background: rgba(187, 37, 37, 0.05);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon:hover {
    background: #bb2525;
    color: #fff;
    border-color: #bb2525;
    box-shadow: 0 0 15px rgba(187, 37, 37, 0.5);
    transform: translateY(-3px);
}

.copy-text {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 700;
}

/* --- IMAGE MATCH: ACADEMIC SECTION --- */
.large-title {
    font-size: 4rem;
    /* Bigger title */
    line-height: 1.1;
    margin-bottom: 20px;
}

.bg-num-float {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
}





/* --- PROFESSIONAL SECTION HEADER (Logo -> Title) --- */
.section-info {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-logo {
    width: 50px;
    height: 50px;
    color: #fff;
    /* Changed to White */
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.section-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px var(--core-red-glow));
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin: 0;
    color: #fff;
    font-weight: 850;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

/* --- HIGH-AUTHORITY FOOTER (REFINE) --- */
.agency-footer-stacked {
    padding: 100px 50px 50px;
    background: #000;
    border-top: 1px solid rgba(255, 61, 61, 0.1);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-col-header {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--core-red);
    letter-spacing: 3px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-brand .nav-brand {
    font-size: 1.5rem;
}

.footer-brand .brand-desc {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 450px;
}

.footer-actions-merge {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-actions-merge a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--core-red);
    border: 1px solid rgba(255, 61, 61, 0.2);
    padding: 8px 20px;
    border-radius: 4px;
    transition: 0.3s;
}

.footer-actions-merge a:hover {
    background: rgba(255, 61, 61, 0.1);
    box-shadow: 0 0 15px var(--core-red-glow);
}


.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav-list a {
    color: #666;
    transition: 0.3s;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.footer-nav-list a:hover {
    color: var(--core-red);
    transform: translateX(5px);
}

.system-status {
    background: rgba(187, 37, 37, 0.05);
    border: 1px solid rgba(187, 37, 37, 0.1);
    padding: 20px;
    border-radius: 4px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.status-label {
    color: #666;
}

.status-value {
    color: var(--core-red);
    text-shadow: 0 0 5px var(--core-red);
}

.footer-bottom-bar {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.social-links-minimal {
    display: flex;
    gap: 20px;
}

.social-links-minimal a {
    color: #555;
    transition: 0.3s;
}

.social-links-minimal a:hover {
    color: var(--core-red);
}

.footer-social-icons {
    display: flex;
    gap: 25px;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    color: #555;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.footer-social-icons a:hover {
    color: var(--core-red);
    border-color: var(--core-red);
    box-shadow: 0 0 20px var(--core-red-glow);
    background: rgba(255, 61, 61, 0.05);
}

.footer-social-icons svg {
    width: 20px;
    height: 20px;
}

.section-content-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* --- TECH CARD SYSTEM --- */
.tech-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 61, 61, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--core-red-glow) 0%, transparent 40%);
    opacity: 0;
    transition: 0.4s;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: var(--core-red);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--core-red-glow);
    background: rgba(20, 20, 20, 0.9);
}

.tech-card:hover::before {
    opacity: 0.2;
}

.card-icon {
    width: 40px;
    height: 40px;
    color: var(--core-red);
    margin-bottom: 20px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- RESPONSIVE ADAPTATION --- */
@media (max-width: 1024px) {
    .agency-section {
        flex-direction: column;
        gap: 40px;
        padding: 60px 30px;
    }

    .section-info {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .section-content-grid {
        grid-template-columns: 1fr;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .agency-nav {
        top: 0;
        border-radius: 0;
        width: 100%;
        max-width: none;
        height: 60px;
        padding: 0 20px;
        background: rgba(0, 0, 0, 0.95);
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now, or hamburger */
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero {
        flex-direction: column-reverse;
        padding-top: 100px;
    }

    .portrait-box {
        width: 100%;
        max-width: 350px;
        height: 400px;
        margin-bottom: 40px;
        transform: none;
    }

    .skills-grid-modern {
        grid-template-columns: 1fr;
    }
}