/* ==========================================================================
   CINEMATIC UI COMPONENTS & STYLESHEET
   ========================================================================== */

/* --- Glassmorphic Panels & Bento Grid --- */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.04), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

@media (max-width: 1024px) {
    .col-8, .col-6, .col-4, .col-3 {
        grid-column: span 6;
    }
}
@media (max-width: 768px) {
    .col-8, .col-6, .col-4, .col-3, .col-12 {
        grid-column: span 12;
    }
    .bento-grid {
        gap: 1rem;
    }
}

/* --- Navigation Command HUD --- */
.command-hud {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: calc(100% - 3rem);
    max-width: var(--max-width);
    height: 4rem;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    transition: var(--transition-smooth);
}

.hud-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.hud-logo span {
    color: var(--accent-cyan);
}

.hud-logo-icon {
    width: 24px;
    height: 24px;
    stroke: var(--accent-cyan);
    fill: none;
    stroke-width: 2px;
}

.hud-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hud-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.02em;
    position: relative;
}

.hud-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: var(--transition-smooth);
    transform: translate3d(-50%, 0, 0);
}

.hud-link:hover {
    color: var(--text-primary);
}

.hud-link:hover::after {
    width: 60%;
}

.hud-link.active {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}

.hud-system-telemetry {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-beacon {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-status 2s infinite ease-in-out;
}

.audio-toggle-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-snappy);
}

.audio-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.audio-toggle-btn.active {
    color: var(--accent-cyan);
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.06);
}

@media (max-width: 900px) {
    .hud-system-telemetry {
        display: none;
    }
}

@media (max-width: 600px) {
    .hud-nav {
        display: none; /* Can switch to hamburger/overlay or bottom bar in production */
    }
}

/* --- Asymmetric & Symmetrical Editorial Headings --- */
.section-header {
    margin-bottom: 6rem;
    text-align: left; /* Shifted to off-center left alignment */
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.section-header::after {
    content: '';
    position: absolute;
    top: 60%;
    left: calc(100% + 2rem);
    width: 20vw;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
    pointer-events: none;
}

.section-header.center-aligned {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header.center-aligned::after {
    display: none;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 1.1rem;
    max-width: 650px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .section-header::after {
        display: none;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

/* --- Broken Grid & Overlapping Layout Helpers --- */
.asymmetric-cols-7-5 {
    display: grid;
    grid-template-columns: 7.2fr 4.8fr;
    gap: 2.5rem;
}

.asymmetric-cols-5-7 {
    display: grid;
    grid-template-columns: 4.8fr 7.2fr;
    gap: 2.5rem;
}

.asymmetric-cols-8-4 {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 3rem;
}

.asymmetric-cols-3-9 {
    display: grid;
    grid-template-columns: 3fr 9fr;
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .asymmetric-cols-7-5, .asymmetric-cols-8-4, .asymmetric-cols-3-9 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Asymmetrical vertical offsets */
.stagger-y-sm { transform: translate3d(0, calc(var(--offset-y-sm) + var(--parallax-y, 0px)), 0); }
.stagger-y-md { transform: translate3d(0, calc(var(--offset-y-md) + var(--parallax-y, 0px)), 0); }
.stagger-y-lg { transform: translate3d(0, calc(var(--offset-y-lg) + var(--parallax-y, 0px)), 0); }

.overlap-left-md {
    margin-left: -5rem;
    position: relative;
    z-index: var(--z-layer-3);
    transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.overlap-right-md {
    margin-right: -5rem;
    position: relative;
    z-index: var(--z-layer-3);
    transform: translate3d(0, var(--parallax-y, 0px), 0);
}

@media (max-width: 1024px) {
    .stagger-y-sm, .stagger-y-md, .stagger-y-lg {
        transform: translate3d(0, 0, 0) !important;
    }
    .overlap-left-md, .overlap-right-md {
        margin-left: 0;
        margin-right: 0;
        transform: translate3d(0, 0, 0) !important;
    }
}

/* --- Vertical Editorial Typography --- */
.vertical-editorial-label-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-editorial-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    user-select: none;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
}

/* --- Floating Telemetry Fragment Tags --- */
.floating-telemetry-tag {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    background: rgba(9, 9, 11, 0.7);
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    color: var(--accent-cyan);
    z-index: var(--z-layer-3);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.floating-telemetry-tag::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.floating-telemetry-tag.purple-beacon {
    color: var(--accent-violet);
}

.floating-telemetry-tag.purple-beacon::before {
    background: var(--accent-violet);
}

/* --- Blueprint Grid Crosshairs --- */
.grid-crosshair {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}
.grid-crosshair::before, .grid-crosshair::after {
    content: '';
    position: absolute;
    background: var(--text-muted);
}
.grid-crosshair::before {
    top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%);
}
.grid-crosshair::after {
    top: 0; left: 50%; width: 1px; height: 100%; transform: translateX(-50%);
}
.crosshair-coord {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    opacity: 0.4;
    white-space: nowrap;
    top: -15px;
    left: 10px;
}


/* --- Buttons (Futuristic & Magnetic ready) --- */
.btn-cyber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    box-shadow: 0 4px 30px rgba(6, 182, 212, 0.25);
    border-color: var(--accent-cyan);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.03);
}

.btn-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2px;
}

/* --- Technical Skills Cards --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
}

.skill-card {
    background: rgba(9, 9, 11, 0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    transform: translate3d(-100%, 0, 0);
    transition: var(--transition-smooth);
}

.skill-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.03);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.05);
}

.skill-card:hover::after {
    transform: translate3d(100%, 0, 0);
    transition: all 0.8s ease-in-out;
}

.skill-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon-wrap {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.skill-icon {
    width: 22px;
    height: 22px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5px;
    transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon {
    stroke: var(--accent-cyan);
    transform: scale(1.05);
}

.skill-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.skill-card:hover .skill-name {
    color: var(--text-primary);
}

/* --- Featured Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.project-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%), rgba(139, 92, 246, 0.04), transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.project-glow-underlay {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-color, var(--accent-cyan));
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.6s ease;
}

.project-card:hover {
    border-color: var(--accent-color, var(--accent-cyan));
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.project-card:hover .project-glow-underlay {
    opacity: 0.15;
}

.project-header {
    position: relative;
    z-index: 2;
    transform: translateZ(20px);
}

.project-sys-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-color, var(--accent-cyan));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.project-card:hover .project-title {
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-weight: 300;
}

.project-footer {
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.project-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-link:hover {
    color: var(--text-primary);
}

.project-link svg {
    width: 14px;
    height: 14px;
    stroke-width: 2px;
}

/* --- Journey Timeline --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--border-light) 5%, var(--border-light) 95%, transparent);
    transform: translateX(-50%);
}

.timeline-track-glow {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0%; /* Updated dynamically in JS or remains sleek */
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-violet));
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: height 0.5s ease;
}

.timeline-log-step {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
}
.timeline-log-step.success { color: #10B981; }

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 5rem;
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
}

.timeline-item:nth-of-type(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-of-type(even) {
    justify-content: flex-end;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 10px;
    height: 10px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-cyan);
    border-radius: 2px; /* Technical square style */
    transform: translate3d(-50%, 0, 0);
    z-index: 10;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-node {
    background: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.9);
    transform: translate3d(-50%, 0, 0) rotate(45deg) scale(1.3);
}

.timeline-content {
    width: 45%;
    padding: 2.25rem 2.5rem;
    background: rgba(5, 5, 5, 0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    font-family: var(--font-mono);
    position: relative;
}

.timeline-item:nth-of-type(odd) .timeline-content {
    transform: translateX(-5%);
}

.timeline-item:nth-of-type(even) .timeline-content {
    transform: translateX(5%);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 2.25rem;
    width: 5%;
    height: 1px;
    background: var(--border-light);
    z-index: 0;
}

.timeline-item:nth-of-type(odd) .timeline-content::before {
    right: -5%;
}

.timeline-item:nth-of-type(even) .timeline-content::before {
    left: -5%;
}

.timeline-item:hover .timeline-content {
    border-color: rgba(6, 182, 212, 0.25);
    background: rgba(9, 9, 11, 0.85);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-violet);
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.timeline-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: 1.25rem;
    opacity: 0.85;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* Timeline console diagnostic load lines */
.timeline-log-step {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 1.5rem 0 1.5rem 90px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.55;
    user-select: none;
}

.timeline-log-step::before {
    content: '-->';
    color: var(--accent-cyan);
}

.timeline-log-step.success {
    color: rgba(16, 185, 129, 0.75);
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 0;
    }
    .timeline-track, .timeline-track-glow, .timeline-node {
        left: 20px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-log-step {
        margin-left: 50px;
        font-size: 0.7rem;
    }
}

/* --- Certifications Matrix --- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.cert-card:hover {
    transform: translate3d(0, -8px, 0);
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.05);
}

.cert-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.cert-card:hover .cert-badge {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.cert-badge svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5px;
    transition: var(--transition-smooth);
}

.cert-card:hover .cert-badge svg {
    stroke: var(--accent-purple);
}

.cert-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Contact & Terminal Console Form --- */
.terminal-form {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    background: rgba(9, 9, 11, 0.9);
    border-bottom: 1px solid var(--border-light);
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

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

.dot-close { background-color: #EF4444; }
.dot-minimize { background-color: #F59E0B; }
.dot-maximize { background-color: #10B981; }

.terminal-title-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    background: rgba(5, 5, 5, 0.85);
    padding: 2rem;
    min-height: 350px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.terminal-line {
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.terminal-prompt {
    color: var(--accent-cyan);
    user-select: none;
}

.terminal-field {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    flex-grow: 1;
    width: 100%;
}

textarea.terminal-field {
    resize: none;
    height: 80px;
}

/* Custom interactive system preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.preloader-hud {
    text-align: center;
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.preloader-logo span {
    color: var(--accent-cyan);
}

.preloader-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: width 0.1s linear;
}

.preloader-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
/* --- Certifications Holographic Scatter --- */
.certs-scatter-grid .cert-card {
    transition: transform 0.2s ease-out;
}
.certs-scatter-grid .cert-card:nth-child(2) {
    transform: translateY(calc(var(--parallax-y-slow, 0px) * 0.5));
}
.certs-scatter-grid .cert-card:nth-child(3) {
    transform: translateY(calc(3.5rem + var(--parallax-y-fast, 0px) * 0.8));
}
.certs-scatter-grid .cert-card:nth-child(4) {
    transform: translateY(calc(-2rem + var(--parallax-y-slow, 0px) * -0.4));
}
.certs-scatter-grid .cert-card:nth-child(5) {
    transform: translateY(calc(5rem + var(--parallax-y-fast, 0px) * 0.6));
}
