/* ==========================================================================
   BIOTEC PORTFOLIO — PREMIUM BIOCORE SYSTEM STYLE
   Hafiz Muhammad Haseeb // BS Biotechnology (VU Pakistan)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Color Palette */
    --medical-navy: #081426;
    --deep-clinical: #0E1E38;
    --bio-cyan: #4FE3E1;
    --bio-cyan-15: rgba(79, 227, 225, 0.15);
    --bio-cyan-30: rgba(79, 227, 225, 0.3);

    --molecular-green: #19D3A2;
    --molecular-green-15: rgba(25, 211, 162, 0.15);
    --molecular-green-30: rgba(25, 211, 162, 0.3);

    --genome-purple: #6E72FC;
    --genome-purple-15: rgba(110, 114, 252, 0.15);
    --genome-purple-30: rgba(110, 114, 252, 0.3);

    --sterile-white: #F5FAFF;
    --dim-white: rgba(245, 250, 255, 0.6);

    /* Glass Surfaces */
    --glass-bg: rgba(14, 30, 56, 0.6);
    --glass-border: rgba(79, 227, 225, 0.08);
    --glass-hover: rgba(20, 42, 78, 0.85);
    --glass-border-h: rgba(79, 227, 225, 0.22);

    /* Shadows & Glows */
    --shadow-deep: 0 8px 40px rgba(0, 0, 0, 0.65);
    --shadow-cyan: 0 0 35px rgba(79, 227, 225, 0.08);
    --shadow-lift: 0 16px 60px rgba(0, 0, 0, 0.7);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: all 0.18s ease;
    --t-smooth: all 0.38s var(--ease-out);
    --t-slow: all 0.6s var(--ease-out);

    --section-pad: 120px 0;
    --container-max: 1240px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--medical-navy);
    color: var(--sterile-white);
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(79, 227, 225, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 30% at 100% 100%, rgba(110, 114, 252, 0.05) 0%, transparent 50%),
        var(--medical-navy);
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--medical-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--deep-clinical);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bio-cyan);
}

::selection {
    background: rgba(79, 227, 225, 0.18);
    color: var(--bio-cyan);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.section-padding {
    padding: var(--section-pad);
}

/* Holographic Grid overlays */
.bio-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.bio-grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
}

/* ── Section Header Center ── */
.section-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 72px;
}

.section-tag-center {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--bio-cyan);
    margin-bottom: 16px;
}

.section-title-center {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--sterile-white);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-subtitle-center {
    font-size: 0.98rem;
    color: var(--dim-white);
    line-height: 1.7;
}

/* ── Glass panel utility ── */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-deep), var(--shadow-cyan);
    transition: var(--t-smooth);
}

.glass-panel:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border-h);
    box-shadow: var(--shadow-lift);
}

/* ── Button System ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--t-smooth);
    border: none;
}

.btn-primary {
    background: var(--bio-cyan);
    color: var(--medical-navy);
    box-shadow: 0 4px 20px rgba(79, 227, 225, 0.25);
}

.btn-primary:hover {
    background: var(--sterile-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 227, 225, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--sterile-white);
    border: 1px solid var(--slate-edge);
}

.btn-secondary:hover {
    border-color: var(--bio-cyan);
    color: var(--bio-cyan);
    transform: translateY(-2px);
}

/* ── Inline Back Button ── */
.back-btn-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    color: #FF4B5C;
    background: rgba(255, 75, 92, 0.04);
    border: 1px solid rgba(255, 75, 92, 0.25);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    box-shadow:
        inset 0 0 8px rgba(255, 75, 92, 0.05),
        0 0 12px rgba(255, 75, 92, 0.04);
}

.back-btn-inline:hover {
    color: #FFFFFF;
    border-color: #FF4B5C;
    background: #FF4B5C;
    box-shadow: 0 0 20px rgba(255, 75, 92, 0.45);
    transform: translateX(-2px);
}

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 38, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(79, 227, 225, 0.05);
    z-index: -1;
}

header.scrolled::after {
    background: rgba(8, 20, 38, 0.94);
    box-shadow: 0 1px 0 rgba(79, 227, 225, 0.08);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: clamp(10px, 2vw, 30px);
    width: 100%;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--sterile-white);
    display: flex;
    align-items: center;
    transition: var(--t-fast);
    flex-shrink: 0;
    white-space: nowrap;
}

.logo:hover {
    color: var(--bio-cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    background: rgba(14, 30, 56, 0.4);
    border: 1px solid rgba(79, 227, 225, 0.08);
    padding: 3px;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 1;
    min-width: 0;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dim-white);
    text-decoration: none;
    position: relative;
    padding: 6px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    color: var(--sterile-white);
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
    color: var(--medical-navy);
    background: var(--bio-cyan);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(79, 227, 225, 0.4);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bio-cyan);
    box-shadow: 0 0 8px var(--bio-cyan);
    animation: pulse-bio-dot 2.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse-bio-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.8);
    }
}

.domain-badge-bio {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bio-cyan);
    background: rgba(79, 227, 225, 0.04);
    border: 1px solid rgba(79, 227, 225, 0.25);
    padding: 5px 12px;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow:
        inset 0 0 8px rgba(79, 227, 225, 0.05),
        0 0 12px rgba(79, 227, 225, 0.04);
    display: inline-flex;
    align-items: center;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.burger-line {
    width: 22px;
    height: 1.5px;
    background: var(--sterile-white);
    transition: var(--t-fast);
    display: block;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

#canvas-bio {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 227, 225, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    filter: blur(75px);
    z-index: 1;
    animation: drift-glow 14s ease-in-out infinite alternate;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 114, 252, 0.06) 0%, transparent 70%);
    bottom: 0;
    left: 5%;
    filter: blur(80px);
    z-index: 1;
    animation: drift-glow 20s ease-in-out infinite alternate-reverse;
}

@keyframes drift-glow {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(40px, 30px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    padding: 80px 32px;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Premium Welcome Capsule Badge */
.welcome-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bio-cyan);
    background: rgba(79, 227, 225, 0.05);
    border: 1px solid var(--bio-cyan-30);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(79, 227, 225, 0.08);
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--sterile-white);
    margin-bottom: 20px;
}

.hero-name-accent {
    display: block;
    font-size: 25px;
    color: transparent;
    -webkit-text-stroke: 1px var(--bio-cyan);
    text-shadow: 0 0 30px rgb(23, 163, 145);
}

.hero-role-line {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dim-white);
}

.hero-role-sep {
    width: 1px;
    height: 16px;
    background: var(--slate-edge);
}

.hero-role-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--molecular-green);
    letter-spacing: 0.1em;
    background: var(--molecular-green-15);
    border: 1px solid var(--molecular-green-30);
    padding: 3px 10px;
    border-radius: 4px;
}

.hero-protocol {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dim-white);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-protocol .highlight {
    color: var(--bio-cyan);
    font-weight: 500;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Social circles links */
.hero-social-circles {
    display: flex;
    gap: 10px;
}

.social-circle {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim-white);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--t-smooth);
}

.social-circle:hover {
    color: var(--bio-cyan);
    border-color: var(--bio-cyan);
    background: var(--bio-cyan-15);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(79, 227, 225, 0.25);
}

/* Metric Strip */
.hero-metric-strip {
    display: flex;
    gap: 36px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-metric-val {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--sterile-white);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-metric-val span {
    color: var(--bio-cyan);
    font-size: 1.15rem;
}

.hero-metric-lbl {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim-white);
}

/* ── Profile Picture concentric rings ── */
.hero-graphic-block {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-pic-container {
    width: 320px;
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-profile 7s ease-in-out infinite;
}

@keyframes float-profile {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* Concentric rings decors styled */
.circle-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: var(--t-smooth);
}

.deco-solid-teal {
    width: 36px;
    height: 36px;
    background: var(--molecular-green);
    bottom: 25px;
    left: -15px;
    z-index: 2;
    box-shadow: 0 0 15px rgba(25, 211, 162, 0.5);
    animation: pulse-deco-teal 4s ease-in-out infinite alternate;
}

.deco-hollow-cyan {
    width: 76px;
    height: 76px;
    border: 2px solid var(--bio-cyan);
    bottom: -15px;
    right: 25px;
    z-index: 2;
    box-shadow: 0 0 15px rgba(79, 227, 225, 0.3);
    animation: rotate-deco-hollow 12s linear infinite;
}

.deco-hollow-white {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    top: 20%;
    right: -25px;
    z-index: 2;
    animation: float-deco-white 5s ease-in-out infinite alternate;
}

.deco-blue-semicircle {
    width: 48px;
    height: 48px;
    background: var(--genome-purple);
    bottom: -5px;
    right: -12px;
    z-index: 2;
    box-shadow: 0 0 20px rgba(110, 114, 252, 0.6);
    animation: pulse-deco-blue 3s ease-in-out infinite alternate;
}

@keyframes pulse-deco-teal {
    from {
        transform: scale(0.9);
        opacity: 0.85;
    }

    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes pulse-deco-blue {
    from {
        transform: scale(1.05);
        opacity: 1;
    }

    to {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

@keyframes rotate-deco-hollow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float-deco-white {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-6px) scale(0.9);
    }
}

/* Orbit line rings */
.profile-pic-container::before {
    content: '';
    position: absolute;
    width: 112%;
    height: 112%;
    border-radius: 50%;
    border: 1.5px solid rgba(79, 227, 225, 0.12);
    animation: spin-ring 60s linear infinite;
    z-index: 1;
}

.profile-pic-container::after {
    content: '';
    position: absolute;
    width: 124%;
    height: 124%;
    border-radius: 50%;
    border: 1.5px dashed rgba(110, 114, 252, 0.15);
    animation: spin-ring 90s linear infinite reverse;
    z-index: 1;
}

@keyframes spin-ring {
    to {
        transform: rotate(360deg);
    }
}

.profile-pic-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 227, 225, 0.16) 0%, rgba(110, 114, 252, 0.06) 50%, transparent 75%);
    filter: blur(25px);
    z-index: 0;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        opacity: 0.6;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

.profile-pic-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 3;
    border: 2px solid rgba(79, 227, 225, 0.15);
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(79, 227, 225, 0.1),
        0 0 100px rgba(110, 114, 252, 0.08);
    transition: var(--t-smooth);
}

.profile-pic-container:hover .profile-pic-frame {
    border-color: rgba(79, 227, 225, 0.35);
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.4),
        0 0 70px rgba(79, 227, 225, 0.2),
        0 0 140px rgba(110, 114, 252, 0.12);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: contrast(1.05) brightness(0.95);
    transition: var(--t-slow);
}

.profile-pic-container:hover .profile-img {
    transform: scale(1.06);
    filter: contrast(1.08) brightness(1);
}

/* Floating Plus Sign decorations */
.plus-marker {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(79, 227, 225, 0.4);
    pointer-events: none;
    z-index: 4;
}

.pm-1 {
    top: -10px;
    left: -10px;
    animation: float-plus 5s ease-in-out infinite;
}

.pm-2 {
    bottom: 30px;
    right: -20px;
    color: rgba(110, 114, 252, 0.4);
    animation: float-plus 6s ease-in-out infinite alternate;
}

@keyframes float-plus {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(45deg);
    }
}

.profile-status-badge {
    position: absolute;
    bottom: 12px;
    right: 6px;
    background: rgba(8, 20, 38, 0.95);
    border: 1px solid rgba(79, 227, 225, 0.25);
    border-radius: 4px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.status-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bio-cyan);
}

.hud-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(79, 227, 225, 0.4);
    border-style: solid;
    z-index: 4;
}

.hud-tl {
    top: 14px;
    left: 14px;
    border-width: 1px 0 0 1px;
}

.hud-tr {
    top: 14px;
    right: 14px;
    border-width: 1px 1px 0 0;
}

.hud-bl {
    bottom: 14px;
    left: 14px;
    border-width: 0 0 1px 1px;
}

.hud-br {
    bottom: 14px;
    right: 14px;
    border-width: 0 1px 1px 0;
}

/* ================================================================
   SECTION: ABOUT / PHILOSOPHY SPLIT PANELS
   ================================================================ */
.philosophy-section {
    background: var(--deep-clinical);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.philosophy-panel {
    position: relative;
    border-radius: 4px;
    padding: 40px;
    overflow: hidden;
}

.panel-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--bio-cyan), transparent);
    animation: scannerScan 6s infinite linear;
}

.panel-scanner.scanner-violet {
    background: linear-gradient(90deg, transparent, var(--genome-purple), transparent);
    animation: scannerScan 6.8s infinite linear;
}

@keyframes scannerScan {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(350px);
    }

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

.panel-brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
}

.panel-brand-header i {
    color: var(--bio-cyan);
}

.philosophy-panel:nth-child(2) .panel-brand-header i {
    color: var(--genome-purple);
}

.philosophy-panel h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--sterile-white);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.philosophy-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--dim-white);
    margin-bottom: 24px;
}

.phil-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.phil-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dim-white);
}

.phil-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.philosophy-panel:nth-child(1) .phil-list li::before {
    background-color: var(--bio-cyan);
    box-shadow: 0 0 6px var(--bio-cyan);
}

.philosophy-panel:nth-child(2) .phil-list li::before {
    background-color: var(--genome-purple);
    box-shadow: 0 0 6px var(--genome-purple);
}

/* ================================================================
   SECTION: LABORATORY PRACTICAL EXPERIENCE
   ================================================================ */
.practicals-section {
    background: var(--medical-navy);
}

.practicals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.practical-card {
    border-radius: 4px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
}

.practical-card h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sterile-white);
    margin-bottom: 14px;
    line-height: 1.25;
}

.practical-card p {
    font-size: 0.88rem;
    color: var(--dim-white);
    line-height: 1.6;
    margin-bottom: 24px;
}

.practical-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 12px;
}

.exp-code {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}

.exp-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--bio-cyan);
    background: var(--bio-cyan-15);
    border: 1px solid var(--bio-cyan-30);
    padding: 2px 8px;
    border-radius: 3px;
}

.practical-card:nth-child(2n) .exp-badge {
    color: var(--molecular-green);
    background: var(--molecular-green-15);
    border-color: var(--molecular-green-30);
}

.practical-card:nth-child(3n) .exp-badge {
    color: var(--genome-purple);
    background: var(--genome-purple-15);
    border-color: var(--genome-purple-30);
}

/* Workflow steps list inside practical cards */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.15);
    padding: 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.w-step {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--dim-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.w-step span {
    color: var(--bio-cyan);
    font-size: 0.65rem;
    border: 1px solid var(--bio-cyan-30);
    padding: 1px 5px;
    border-radius: 2px;
}

.practical-card:nth-child(2n) .w-step span {
    color: var(--molecular-green);
    border-color: var(--molecular-green-30);
}

.practical-card:nth-child(3n) .w-step span {
    color: var(--genome-purple);
    border-color: var(--genome-purple-30);
}

/* ================================================================
   SECTION: BIOTECHNOLOGY SKILLS MATRIX
   ================================================================ */
.skills-section {
    background: var(--deep-clinical);
}

.capability-network-wrapper {
    position: relative;
    width: 100%;
    min-height: 480px;
    border-radius: 4px;
    overflow: hidden;
}

.network-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.network-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.network-nodes-grid {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

/* Positioning coordinates of the 10 verified skill nodes */
.network-nodes-grid .matrix-node {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(14, 30, 56, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--t-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.network-nodes-grid .matrix-node i {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--t-fast);
}

.network-nodes-grid .node-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    transition: var(--t-fast);
}

/* Coordinates matrix */
.network-nodes-grid .matrix-node:nth-child(1) {
    top: 40px;
    left: 10%;
}

.network-nodes-grid .matrix-node:nth-child(2) {
    top: 120px;
    left: 24%;
}

.network-nodes-grid .matrix-node:nth-child(3) {
    top: 30px;
    left: 38%;
}

.network-nodes-grid .matrix-node:nth-child(4) {
    top: 140px;
    left: 50%;
}

.network-nodes-grid .matrix-node:nth-child(5) {
    top: 40px;
    left: 62%;
}

.network-nodes-grid .matrix-node:nth-child(6) {
    top: 130px;
    left: 74%;
}

.network-nodes-grid .matrix-node:nth-child(7) {
    top: 50px;
    left: 88%;
}

.network-nodes-grid .matrix-node:nth-child(8) {
    top: 220px;
    left: 15%;
}

.network-nodes-grid .matrix-node:nth-child(9) {
    top: 240px;
    left: 45%;
}

.network-nodes-grid .matrix-node:nth-child(10) {
    top: 230px;
    left: 78%;
}

/* Active glow states on hover */
.network-nodes-grid .matrix-node:hover,
.network-nodes-grid .matrix-node.hovered {
    border-color: var(--bio-cyan);
    box-shadow: 0 0 20px rgba(79, 227, 225, 0.3);
    transform: scale(1.1);
}

.network-nodes-grid .matrix-node:hover i,
.network-nodes-grid .matrix-node.hovered i {
    color: var(--bio-cyan);
}

.network-nodes-grid .matrix-node:hover .node-label,
.network-nodes-grid .matrix-node.hovered .node-label {
    color: var(--bio-cyan);
    opacity: 1;
}

/* Telemetry Display panel style */
.network-telemetry-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(8, 20, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 20px;
    z-index: 10;
}

.telemetry-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.telemetry-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--sterile-white);
}

.telemetry-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--bio-cyan);
}

.telemetry-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--dim-white);
}

/* ================================================================
   SECTION: CERTIFICATIONS HUB
   ================================================================ */
.certifications-section {
    background: var(--medical-navy);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cert-card {
    border-radius: 4px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
}

.cert-institution {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--bio-cyan);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    display: block;
}

.cert-card:nth-child(2) .cert-institution {
    color: var(--molecular-green);
}

.cert-card:nth-child(3) .cert-institution {
    color: var(--genome-purple);
}

.cert-card h4 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sterile-white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.cert-card p {
    font-size: 0.88rem;
    color: var(--dim-white);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cert-meta-row {
    margin-top: auto;
    display: flex;
}

.cert-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--dim-white);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-tag i {
    color: var(--bio-cyan);
}

.cert-card:nth-child(2) .cert-tag i {
    color: var(--molecular-green);
}

.cert-card:nth-child(3) .cert-tag i {
    color: var(--genome-purple);
}

/* ================================================================
   SECTION: ACADEMIC PROFILE
   ================================================================ */
.academic-section {
    background: var(--deep-clinical);
}

.academic-timeline-box {
    border-radius: 4px;
    padding: 40px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--bio-cyan);
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 14px;
}

.timeline-body-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
}

.timeline-main-info h4 {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sterile-white);
    margin-bottom: 6px;
}

.timeline-duration {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--bio-cyan);
    margin-bottom: 20px;
}

.timeline-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dim-white);
}

.timeline-achievements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-achievements-list h5 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.timeline-ach-item {
    position: relative;
    padding-left: 20px;
    display: flex;
    gap: 12px;
}

.ach-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--bio-cyan);
    box-shadow: 0 0 6px var(--bio-cyan);
    margin-top: 6px;
    flex-shrink: 0;
}

.timeline-ach-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--sterile-white);
    margin-bottom: 4px;
}

.timeline-ach-item p {
    font-size: 0.84rem;
    color: var(--dim-white);
    line-height: 1.5;
}

/* ================================================================
   SECTION: BIOTECH INTEREST AREAS
   ================================================================ */
.interests-section {
    background: var(--medical-navy);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.interest-module {
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mod-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: var(--bio-cyan-15);
    border: 1px solid var(--bio-cyan-30);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bio-cyan);
    font-size: 1.15rem;
    margin-bottom: 18px;
    transition: var(--t-smooth);
}

.interest-module:nth-child(2n) .mod-icon {
    color: var(--molecular-green);
    background: var(--molecular-green-15);
    border-color: var(--molecular-green-30);
}

.interest-module:nth-child(3n) .mod-icon {
    color: var(--genome-purple);
    background: var(--genome-purple-15);
    border-color: var(--genome-purple-30);
}

.interest-module:hover .mod-icon {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(79, 227, 225, 0.25);
}

.interest-module h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sterile-white);
    margin-bottom: 10px;
}

.interest-module p {
    font-size: 0.84rem;
    color: var(--dim-white);
    line-height: 1.5;
}

/* ================================================================
   CONTACT / CLINICAL COMMUNICATION HUB
   ================================================================ */
.footer-section {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 5% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 15;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

/* Command prompt terminal dispatcher */
.terminal-form-card {
    background: rgba(8, 20, 38, 0.7);
    border: 1px solid rgba(79, 227, 225, 0.15);
    border-radius: 4px;
    box-shadow: var(--shadow-deep);
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terminal-pips {
    display: flex;
    gap: 6px;
}

.pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pip-r {
    background-color: #EF4444;
}

.pip-y {
    background-color: #F59E0B;
}

.pip-g {
    background-color: #10B981;
}

.terminal-title-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.terminal-form {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--bio-cyan);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(6, 8, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--sterile-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--bio-cyan);
    box-shadow: 0 0 10px rgba(79, 227, 225, 0.25);
    background: rgba(14, 30, 56, 0.9);
}

.btn-terminal-submit {
    width: 100%;
    padding: 12px;
    background: rgba(79, 227, 225, 0.15);
    border: 1px solid var(--bio-cyan);
    border-radius: 4px;
    color: var(--sterile-white);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-terminal-submit:hover {
    background: var(--bio-cyan);
    color: var(--medical-navy);
    box-shadow: 0 0 20px rgba(79, 227, 225, 0.45);
}

.telemetry-console {
    background: #03050C;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    height: 120px;
    padding: 15px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.console-line {
    display: flex;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
}

.console-prompt {
    color: var(--bio-cyan);
}

.console-text {
    color: var(--sterile-white);
}

/* Portals grid of social metrics */
.identity-portals-card {
    display: flex;
    flex-direction: column;
}

.identity-portals-card h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--sterile-white);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.operator-dossier-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.dossier-item {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.dossier-label {
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.dossier-val {
    color: var(--sterile-white);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.val-g {
    color: var(--bio-cyan);
}

.portal-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.portal-link {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portal-link:hover {
    background: rgba(79, 227, 225, 0.06);
    border-color: rgba(79, 227, 225, 0.3);
    transform: translateY(-2px);
}

.portal-icon {
    font-size: 1.2rem;
    color: var(--bio-cyan);
}

.portal-link:nth-child(2) .portal-icon {
    color: var(--molecular-green);
}

.portal-link:nth-child(3) .portal-icon {
    color: var(--genome-purple);
}

.portal-meta {
    display: flex;
    flex-direction: column;
}

.portal-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--sterile-white);
}

.portal-url {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Footer Bottom styles */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.bottom-system-tag {
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.25);
}

/* ================================================================
   RESPONSIVE DESIGN LAYOUTS COLLAPSE
   ================================================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    /* Collapse navigation links into mobile burger panel at 1024px */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: rgba(8, 20, 38, 0.98);
        border: none;
        border-bottom: 1px solid rgba(79, 227, 225, 0.15);
        padding: 24px 28px;
        gap: 12px;
        box-shadow: var(--shadow-deep);
        border-radius: 0;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 999;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    /* Collapse hero content into a single balanced column at 1024px */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 60px;
        gap: 48px;
    }

    .hero-text-block {
        align-items: center;
    }

    .hero-social-circles {
        justify-content: center;
    }

    .hero-metric-strip {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px 30px;
    }

    .hero-graphic-block {
        order: -1;
    }

    .practicals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Overhaul Genomic Capability Network to a premium, non-overlapping grid layout */
    .capability-network-wrapper {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 20px;
    }

    .network-canvas-container {
        display: none;
    }

    .network-nodes-grid {
        position: relative;
        inset: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
        gap: 12px;
        height: auto;
        padding: 0;
        pointer-events: auto;
    }

    .network-nodes-grid .matrix-node {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 6px !important;
        padding: 14px 12px !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        justify-content: flex-start !important;
        align-items: center !important;
        box-shadow: var(--shadow-deep) !important;
        aspect-ratio: auto !important;
    }

    .network-nodes-grid .node-label {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        font-size: 0.72rem !important;
        color: var(--dim-white) !important;
    }

    .network-nodes-grid .matrix-node i {
        font-size: 1.1rem !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .network-telemetry-panel {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 8px;
        width: 100%;
        background: rgba(8, 20, 38, 0.95) !important;
    }

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

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

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

    .timeline-body-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .profile-pic-container {
        width: 260px;
        height: 260px;
    }

    .hero-name {
        font-size: 2.3rem;
    }

    .hero-metric-strip {
        gap: 16px 20px;
    }
}

/* ================================================================
   CERTIFICATIONS LIGHTBOX MODAL & INTERACTION BUTTONS
   ================================================================ */
.cert-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.cert-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--dim-white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-action-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.cert-action-btn:hover {
    background: rgba(79, 227, 225, 0.06);
    border-color: rgba(79, 227, 225, 0.35);
    color: var(--bio-cyan);
    box-shadow: 0 0 15px rgba(79, 227, 225, 0.15);
    transform: translateY(-1px);
}

.cert-action-btn:hover i {
    transform: scale(1.1);
}

.cert-card:nth-child(2) .cert-action-btn:hover {
    background: rgba(25, 211, 162, 0.06);
    border-color: rgba(25, 211, 162, 0.35);
    color: var(--molecular-green);
    box-shadow: 0 0 15px rgba(25, 211, 162, 0.15);
}

.cert-card:nth-child(3) .cert-action-btn:hover {
    background: rgba(110, 114, 252, 0.06);
    border-color: rgba(110, 114, 252, 0.35);
    color: var(--genome-purple);
    box-shadow: 0 0 15px rgba(110, 114, 252, 0.15);
}

/* Lightbox Modal CSS Overlay */
.cert-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 100000;
    /* Ensure overlay floats on top of all elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(6, 8, 20, 0.96);
    /* Deep clinical backdrop blur */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.cert-modal.show {
    display: flex;
    opacity: 1;
}

.cert-modal-container {
    position: relative;
    max-width: 900px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal.show .cert-modal-container {
    transform: scale(1);
}

.cert-modal-content {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(79, 227, 225, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(79, 227, 225, 0.1);
}

.cert-modal-caption {
    margin-top: 15px;
    color: var(--sterile-white);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-align: center;
    background: rgba(8, 20, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 4px;
}

.cert-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100001;
    line-height: 1;
}

.cert-modal-close:hover {
    color: var(--bio-cyan);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .cert-modal-close {
        top: 20px;
        right: 25px;
        font-size: 30px;
    }

    .cert-modal-content {
        max-height: 70vh;
    }
}