:root {
    --bg-main: #07080c;
    --bg-card: #101218;
    --bg-hover: #181b24;
    --border: #2a2f3a;
    --text-white: #f4f6fb;
    --text-grey: #9aa3b2;
    --text-dark-grey: #6b7280;
    --blue: #3b82f6;
    --highlight-blue: #60a5fa;
    --accent-purple: #a855f7;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --font: "Outfit", "Segoe UI", sans-serif;
    --display: "Syne", "Outfit", sans-serif;
    --name-font: "Bricolage Grotesque", "Syne", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --glow: 0 0 40px rgba(59, 130, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

.site-ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(59, 130, 246, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 45% at 90% 20%, rgba(168, 85, 247, 0.1), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(16, 185, 129, 0.08), transparent 55%),
        var(--bg-main);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: ambient-drift 22s ease-in-out infinite alternate;
}

.orb-one {
    width: 420px;
    height: 420px;
    top: -8%;
    left: -4%;
    background: #2563eb;
}

.orb-two {
    width: 360px;
    height: 360px;
    right: -6%;
    bottom: 10%;
    background: #7c3aed;
    animation-delay: -8s;
}

.orb-three {
    width: 280px;
    height: 280px;
    left: 40%;
    top: 55%;
    background: #0891b2;
    opacity: 0.28;
    animation-delay: -14s;
}

#particle-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at center, black 15%, transparent 72%);
    opacity: 0.5;
}

/* Page loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #06080d;
    transition: opacity 0.55s var(--ease), visibility 0.55s;
}

.page-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    width: min(220px, 70vw);
}

.loader-mark {
    font-family: var(--name-font);
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    background: linear-gradient(120deg, #fff, #60a5fa 55%, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.loader-bar {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #22d3ee);
    transition: width 0.2s linear;
}

.loader-label {
    display: block;
    margin-top: 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-layout {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

body.is-ready .app-layout {
    opacity: 1;
    transform: none;
}

@keyframes ambient-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(3%, 4%, 0) scale(1.08); }
}

body {
    background-color: transparent;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    padding: 20px 0 20px 40px;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- MAIN LAYOUT GRID --- */
.app-layout {
    display: grid;
    /* Left: 343px | Center: Fluid | Right: 353px */
    grid-template-columns: 343px 1fr 353px;
    gap: 20px;
    width: 100%;
    max-width: none; 
    height: 100%; 
    align-items: stretch;
}

/* ================= CUSTOM SCROLLBARS ================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

.col-left,
.col-center,
.col-right {
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.35) transparent;
}

.col-left::-webkit-scrollbar,
.col-center::-webkit-scrollbar,
.col-right::-webkit-scrollbar {
    width: 6px;
}

.col-left::-webkit-scrollbar-track,
.col-center::-webkit-scrollbar-track,
.col-right::-webkit-scrollbar-track {
    background: transparent;
}

.col-left::-webkit-scrollbar-thumb,
.col-center::-webkit-scrollbar-thumb,
.col-right::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.35);
    border-radius: 999px;
}

.col-left::-webkit-scrollbar-thumb:hover,
.col-center::-webkit-scrollbar-thumb:hover,
.col-right::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.55);
}


/* ================= LEFT COLUMN ================= */
.col-left { 
    display: flex; 
    flex-direction: column; 
    gap: 18px; 
    overflow-y: auto; 
    height: 100%;
    /* Padding Right: 23px */
    padding-right: 23px; 
}

/* Profile Header */
.profile-header {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-align: center;
    margin-bottom: 5px;
    position: relative;
}

/* Avatar Container handles image + switch positioning */
.avatar-container {
    position: relative; 
    display: inline-block; 
    margin-bottom: 12px;
}

.avatar-container img {
    width: 140px; 
    height: 140px;
    border-radius: 0; 
    background: transparent;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 0;
}

/* Switch moved to the right of image */
.switch { 
    position: absolute;
    top: 50%;
    right: -60px; /* Offset to the right */
    transform: translateY(-50%);
    display: inline-block; 
    width: 46px; 
    height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #3f3f46; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #52525b; }
input:checked + .slider:before { transform: translateX(20px); }

.name-row {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    position: relative;
    margin-bottom: 2px;
}

.name-row h1 { 
    font-family: var(--name-font);
    font-size: 1.8rem; 
    font-weight: 700; 
    color: white;
    letter-spacing: -0.04em;
    margin-left: 0; 
}

.handle { 
    font-size: 0.9rem; 
    color: #71717a; 
    font-weight: 500;
}


/* Bio Section */
.bio-section { 
    text-align: left; 
    font-size: 0.95rem; 
    color: #a1a1aa; 
    line-height: 1.6;
}
.bio-text { margin-bottom: 15px; }
.bio-text strong { color: white; font-weight: 700; }

.status-lines { 
    font-size: 0.95rem;
    line-height: 1.6;
}
.status-lines p { margin-bottom: 6px; }
.status-lines strong { color: white; font-weight: 700; }

/* Social Grid */
.social-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
}

.social-btn {
    background: transparent; 
    /* Lighter border */
    border: 1px solid #3f3f46; 
    color: white; 
    padding: 12px; 
    border-radius: 8px;
    text-align: center; 
    text-decoration: none; 
    font-size: 0.9rem;
    font-weight: 500;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    transition: 0.2s;
}
.social-btn i { font-size: 1.1rem; color: #e4e4e7; }
.social-btn:hover { background: var(--bg-hover); border-color: #52525b; }

/* Newsletter Box */
.newsletter-box {
    background: var(--bg-card); 
    border: 1px solid #3f3f46;
    border-radius: 12px; 
    padding: 18px; 
}

.news-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
}
.news-label { 
    font-size: 0.95rem;
    color: white; 
    font-weight: 600;
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.news-label i { color: #a1a1aa; }
.badge { 
    background: #27272a; 
    color: #a1a1aa; 
    padding: 2px 8px; 
    border-radius: 12px; 
    font-size: 0.75rem; 
    font-weight: 600;
}
.sub-btn { 
    background: transparent; 
    border: 1px solid #3f3f46; 
    color: white; 
    padding: 8px 12px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-bottom { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.8rem; 
    color: #71717a; 
    align-items: center;
    margin-top: 5px;
}

/* Info Groups */
.info-group h3 { 
    font-size: 0.9rem; 
    color: white; 
    font-weight: 700; 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.info-group h3 i { color: #71717a; font-size: 0.95rem; }

.centered-group h3 { justify-content: center; } 
.centered-group .os-icons { justify-content: center; gap: 40px;}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { 
    background: #0f0f10; 
    border: 1px solid #3f3f46; 
    padding: 6px 10px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    color: #e4e4e7;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.os-icons { 
    background: #0f0f10; 
    padding: 16px; 
    border-radius: 12px; 
    border: 1px solid #3f3f46;
    display: flex; 
    font-size: 1.4rem;
    color: #e4e4e7; 
}

/* Bottom Actions */
.bottom-actions { display: flex; gap: 12px; margin-top: 5px; }
.btn-gallery { 
    flex: 1;
    background: #1f2228; 
    color: white; 
    border: none; 
    padding: 14px;
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    font-size: 0.9rem;
}
.btn-cv { 
    flex: 1;
    background: transparent;
    color: white; 
    border: 1px solid #3f3f46;
    padding: 14px;
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    font-size: 0.9rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* ================= CENTER COLUMN (STICKY NAV) ================= */
.col-center { 
    display: flex; 
    flex-direction: column; 
    width: 100%;
    overflow-y: auto; 
    height: 100%;
    padding-left: 10px;
    padding-right: 30px;
    position: relative; 
    z-index: 0;
}

/* Sticky Navigation */
.main-nav { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-main); 
    padding-top: 5px; 
    padding-bottom: 15px; 
}

.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav li { color: var(--text-grey); cursor: pointer; font-size: 0.9rem; padding-bottom: 5px; position: relative; }
.main-nav li.active { color: white; }
.main-nav li.active::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 100%; height: 2px; background: var(--blue); }

.hero-section { text-align: center; margin-bottom: 40px; }
.hero-section h2 { font-size: 1.7rem; margin-bottom: 10px; }
.hero-sub { color: var(--text-grey); margin-bottom: 25px; font-size: 0.95rem; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; }
.btn-blue { background: var(--blue); color: white; border: none; padding: 10px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-grey { background: #27272a; color: white; border: none; padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; }

.feed { display: flex; flex-direction: column; gap: 15px; }
.feed-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.card-meta { font-size: 0.8rem; color: #71717a; margin-bottom: 10px; }
.feed-card h3 { color: #60a5fa; font-size: 1.1rem; margin-bottom: 10px; cursor: pointer; }
.excerpt { color: #d4d4d8; font-size: 0.9rem; line-height: 1.5; margin-bottom: 15px; }
.read-link { color: #60a5fa; text-decoration: none; font-size: 0.85rem; font-weight: 500; }

/* ================= ALTERNATING TIMELINE STYLES ================= */
.timeline-alt {
    position: relative;
    padding: 20px 0;
    width: 100%;
    margin-bottom: 50px;
}

/* The Vertical Center Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; 
    /* Thicker width: 4px */
    width: 4px;
    background: #27272a; 
    transform: translateX(-50%);
    border-radius: 2px;
}

/* The Row Container */
.t-row {
    position: relative;
    width: 100%;
    min-height: 150px; 
    margin-bottom: 10px;
}

.timeline-row-1digitals {
    margin-top: 52px;
}

.timeline-row-elegansys {
    margin-top: 52px;
}

.timeline-row-imarah {
    margin-top: 52px;
}

.timeline-row-petro {
    margin-top: 52px;
}

.timeline-row-alfazin {
    margin-top: 52px;
}

/* The Card Styling */
.t-card {
    position: relative;
    width: 45%; 
    background: #0f0f10; 
    border: 1px solid var(--border);
    border-radius: 12px;
    padding-top: 15px;
    padding-right: 20px;
    padding-bottom: 15px;
    padding-left: 20px;
    z-index: 10;
    transition: transform 0.2s, border-color 0.2s;
}

.t-card::before,
.t-card::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    pointer-events: none;
}

.t-card.left::before {
    right: -17px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 13px solid var(--border);
}

.t-card.left::after {
    right: -15px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 11px solid #0f0f10;
}

.t-card.right::before {
    left: -17px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-right: 13px solid var(--border);
}

.t-card.right::after {
    left: -15px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-right: 11px solid #0f0f10;
}

.t-card:hover {
    border-color: #3f3f46;
    transform: translateY(-3px);
}

/* Positioning Left vs Right */
.t-card.left {
    float: left;
    text-align: left;
    margin-right: 5%;
}

.t-card.right {
    float: right;
    text-align: left;
    margin-left: 5%;
}

/* Clearfix */
.t-row::after { content: ""; display: table; clear: both; }

/* The Blue Dot */
.t-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Reduced size by half */
    width: 22px;
    height: 22px;
    background: var(--blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    /* Thicker border for better visibility */
    border: 4px solid var(--bg-main); 
    z-index: 20;
    box-shadow: 0 0 0 1px #27272a; 
}

/* Year Text on alternating sides */
.t-dot::after {
    content: attr(data-year);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 700;
    color: #e4e4e7;
    white-space: nowrap;
}

.t-row:not(.right-align) .t-dot::after {
    left: 35px;
}

.t-row.right-align .t-dot::after {
    right: 35px;
    left: auto;
}

.t-dot.qmc-year-dot::after {
    top: 50%;
    left: 35px;
    transform: translateY(-50%);
}

/* --- Content Styling --- */
.t-badge {
    display: inline-block;
    background: #27272a;
    color: var(--text-grey);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.t-badge i { margin-right: 5px; }

.t-card h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 8px;
    line-height: 1.4;
}

.t-card p {
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 15px;
}

.t-card.qmc-card {
    background: rgba(15, 15, 16, 0.98);
    text-align: right;
}

.t-card.qmc-card .timeline-button-row {
    justify-content: flex-end;
}

.t-card.qmc-card .t-badge {
    display: block;
    width: fit-content;
    margin-right: auto;
    text-align: left;
}

.t-card.qmc-card .qmc-wrapper {
    margin-top: 4px;
}

.t-card.petro-card {
    text-align: right;
}

.t-card.petro-card .timeline-button-row {
    justify-content: flex-end;
}

.t-card.alfazin-card {
    text-align: left;
}

.t-card.alfazin-card .timeline-button-row {
    justify-content: flex-start;
}

.t-card.qmc-card:hover {
    border-color: rgba(147, 197, 253, 0.52);
}

.t-card.petro-card:hover {
    border-color: rgba(147, 197, 253, 0.52);
}

.t-card.alfazin-card:hover {
    border-color: rgba(147, 197, 253, 0.52);
}

.t-card.qmc-card.left::before {
    border-left-color: rgba(136, 186, 248, 0.497);
}

.t-card.qmc-card.left:hover::before {
    border-left-color: rgba(147, 197, 253, 0.52);
}

.t-card.petro-card.left:hover::before {
    border-left-color: rgba(147, 197, 253, 0.52);
}

.t-card.alfazin-card.right:hover::before {
    border-right-color: rgba(147, 197, 253, 0.52);
}

.t-card.qmc-card.left::after {
    border-left-color: rgba(15, 15, 16, 0.98);
}

.t-card.qmc-card.right::before {
    border-right-color: rgba(96, 165, 250, 0.28);
}

.t-card.qmc-card.right:hover::before {
    border-right-color: rgba(147, 197, 253, 0.52);
}

.t-card.qmc-card.right::after {
    border-right-color: rgba(15, 15, 16, 0.98);
}

.t-card.qmc-card.left::before,
.t-card.elegansys-card.left::before {
    border-left-color: var(--border);
}

.t-card.qmc-card.right::before,
.t-card.one-digitals-card.right::before {
    border-right-color: var(--border);
}

.t-card.one-digitals-card:hover,
.t-card.elegansys-card:hover,
.t-card.imarah-card:hover {
    border-color: rgba(147, 197, 253, 0.52);
}

.t-card.one-digitals-card.right:hover::before,
.t-card.imarah-card.right:hover::before {
    border-right-color: rgba(147, 197, 253, 0.52);
}

.t-card.elegansys-card.left:hover::before {
    border-left-color: rgba(147, 197, 253, 0.52);
}

.timeline-venue,
.timeline-location,
.timeline-period,
.timeline-client {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.timeline-venue {
    color: #7dd3fc;
    font-weight: 700;
}

.timeline-link a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.timeline-link a:hover {
    text-decoration: underline;
}

.timeline-period {
    color: #94a3b8;
}

.timeline-client {
    color: #9ca3af;
    font-size: 0.82rem;
    padding-top: 10px;
    border-top: 1px solid #27272a;
}

.timeline-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.timeline-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #3f3f46;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.timeline-card-btn:hover {
    background: rgba(96, 165, 250, 0.12);
    border-color: #60a5fa;
    color: #60a5fa;
}

.timeline-icon-row {
    gap: 12px;
}

.timeline-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.timeline-icon-link i {
    font-size: 1.20rem;
}

.timeline-icon-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #4b83c7;
    transform: translateY(-2px);
}

.timeline-icon-link .fa-globe {
    color: #457a66;
}

.timeline-icon-link:hover .fa-globe {
    color: #4b83c7;
}

.timeline-card-btn-linkedin {
    border-color: #0ea5e9;
    color: #4a7590;
}

.timeline-card-btn-linkedin:hover {
    background: rgba(14, 116, 144, 0.14);
    color: #0284c7;
}

.timeline-card-btn-x {
    border-color: #1d9bf0;
    color: #648199;
}

.timeline-card-btn-x:hover {
    background: rgba(29, 155, 240, 0.16);
    color: #38bdf8;
}

.timeline-card-btn-facebook {
    border-color: #1877f2;
    color: #5b7fae;
}

.timeline-card-btn-facebook:hover {
    background: rgba(29, 78, 216, 0.14);
    color: #2563eb;
}

.t-link {
    font-size: 0.8rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

/* --- IMAGE POPUP (Hover Effect) --- */
.t-popup {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 160px;
    height: 100px;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.t-popup img { width: 100%; height: 100%; object-fit: cover; }

/* Trigger Popup */
.t-card:hover .t-popup {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    top: -110px; 
}

/* QMC suffix image inside timeline card */
.qmc-suffix {
    position: absolute;
    top: 8px;
    left: 12px;
    height: 52px;
    width: auto;
    opacity: 0.95;
    border-radius: 4px;
    z-index: 20;
    transform-origin: center;
    transition: transform 0.45s ease;
}

.t-card.qmc-card:hover .qmc-suffix {
    transform: rotate(108deg);
}

.one-digitals-card {
    padding-top: 20px;
}

.one-digitals-wrapper {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    margin-bottom: 0;
}

.one-digitals-logo {
    position: absolute;
    top: 8px;
    right: 12px;
    height: 52px;
    width: auto;
    opacity: 0.95;
    border-radius: 4px;
    z-index: 20;
    transform-origin: center;
    transition: transform 0.45s ease;
}

.t-card.one-digitals-card:hover .one-digitals-logo {
    transform: rotate(360deg);
}

.one-digitals-popup {
    position: absolute;
    top: 51%;
    right: calc(100% + 25.111% + 80px);
    transform: translateY(-50%);
    width: 220px;
    height: 115px;
    background: rgba(0,0,0,0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    overflow: visible;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.one-digitals-popup::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 60px solid rgba(255, 255, 255, 0.5);
}

.one-digitals-popup img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: contain;
    border-radius: 14px;
    padding: 22px;
    background: #7373737c;
}

.elegansys-wrapper {
    position: static;
    margin-top: 4px;
}

.elegansys-logo {
    position: absolute;
    top: 8px;
    left: 12px;
    height: 44px;
    width: auto;
    opacity: 0.95;
    border-radius: 4px;
    z-index: 20;
    transform-origin: center;
    transition: transform 0.45s ease;
}

.t-card.elegansys-card:hover .elegansys-logo {
    transform: rotate(360deg);
}

.t-card.elegansys-card .elegansys-popup {
    position: absolute;
    top: 51%;
    left: calc(100% + 25.111% + 80px);
    transform: translateY(-50%);
    width: 220px;
    height: 115px;
    background: rgba(0,0,0,0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    overflow: visible;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.t-card.elegansys-card .elegansys-popup::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 60px solid rgba(255, 255, 255, 0.5);
}

.t-card.elegansys-card .elegansys-popup img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: contain;
    border-radius: 14px;
    padding-top: 36px;
    padding-right: 32px;
    padding-bottom: 30px;
    padding-left: 30px;
    background: #36049b7a;
}

.t-card.elegansys-card {
    text-align: right;
}

.t-card.elegansys-card .timeline-button-row {
    justify-content: flex-end;
}

.imarah-wrapper {
    position: static;
}

.imarah-popup {
    position: absolute;
    top: 51%;
    right: calc(100% + 25.111% + 80px);
    transform: translateY(-50%);
    width: 220px;
    height: 115px;
    background: rgba(59, 0, 0, 0.356);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    overflow: visible;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.imarah-popup::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 60px solid rgba(255, 255, 255, 0.5);
}

.imarah-popup img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: contain;
    border-radius: 14px;
    padding: 5px;
    background: #7373737c;
}

.petro-wrapper {
    position: static;
}

.petro-popup {
    position: absolute;
    top: 51%;
    left: calc(100% + 25.111% + 80px);
    transform: translateY(-50%);
    width: 220px;
    height: 115px;
    background: rgba(161, 158, 0, 0.382);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    overflow: visible;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.petro-popup::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 60px solid rgba(255, 255, 255, 0.5);
}

.petro-popup img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: contain;
    border-radius: 14px;
    padding: 30px;
    background: #7373737c;
}

.alfazin-wrapper {
    position: static;
}

.alfazin-popup {
    position: absolute;
    top: 51%;
    right: calc(100% + 25.111% + 80px);
    transform: translateY(-50%);
    width: 220px;
    height: 115px;
    background: rgba(0, 20, 98, 0.376);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    overflow: visible;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.alfazin-popup::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 60px solid rgba(255, 255, 255, 0.5);
}

.alfazin-popup img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    object-fit: contain;
    border-radius: 14px;
    padding: 22px;
    background: #7373737c;
}

/* ================= TECHNICAL EXPERTISE TAB ================= */
.tech-expertise {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 30px;
}

.tech-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}

.tech-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tech-section-title i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.16);
    color: #60a5fa;
}

.tech-section-title h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
}

.tech-table-wrap {
    overflow-x: auto;
}

.tech-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.tech-table-delivery {
    min-width: 680px;
}

.tech-table th,
.tech-table td {
    border: 1px solid #27272a;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
}

.tech-table th {
    background: #18181b;
    color: #e4e4e7;
    font-size: 0.78rem;
    font-weight: 700;
}

.tech-table td {
    color: #a1a1aa;
    font-size: 0.78rem;
}

.tech-table td:first-child {
    color: #fff;
    font-weight: 650;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tech-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-mini-list div {
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 11px;
    background: #09090b;
}

.tech-mini-list strong {
    display: block;
    color: #fff;
    font-size: 0.84rem;
    margin-bottom: 5px;
}

.tech-mini-list span,
.tech-mini-list p {
    display: block;
    color: #a1a1aa;
    font-size: 0.76rem;
    line-height: 1.45;
}

.tech-mini-list span {
    color: #60a5fa;
    margin-bottom: 4px;
}

.tech-chip-list,
.strength-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tech-chip-list span,
.strength-grid span {
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 8px 10px;
    background: #09090b;
    color: #cbd5e1;
    font-size: 0.76rem;
    line-height: 1.35;
}

.tech-chip-list.wide span {
    flex: 1 1 260px;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .tech-grid,
    .strength-grid {
        grid-template-columns: 1fr;
    }
}


/* ================= CONTACT TAB STYLES ================= */
/* Header */
.contact-header {
    margin-bottom: 20px;
}
.c-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
/* The purple/blue underline accent */
.c-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #a855f7); 
    border-radius: 2px;
}
.c-sub {
    color: var(--text-grey);
    font-size: 0.95rem;
}

/* Badges Row */
.c-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}
.c-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--text-grey);
    font-size: 0.85rem;
    background: transparent;
}
.c-badge.blue {
    border-color: #1e3a8a; 
    color: #60a5fa; 
    background: rgba(30, 58, 138, 0.2); 
}

/* Main Grid Layout */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px;
    margin-bottom: 40px;
}

/* Card Containers */
.c-card-container {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    background: transparent; 
    display: flex;
    flex-direction: column;
}

/* --- Form Styling --- */
.c-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.c-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.c-form label {
    font-size: 0.9rem;
    color: #e4e4e7;
}
.c-form input,
.c-form textarea {
    background: #18181b; 
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}
.c-form input:focus,
.c-form textarea:focus {
    border-color: var(--blue);
}
.c-send-btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.95rem;
}
.c-form-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-grey);
    margin-top: 10px;
}
.c-form-footer a {
    color: #a1a1aa;
    text-decoration: underline;
}

/* --- Right Side Styling --- */
.c-find-me h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 5px;
}
.c-find-me p {
    font-size: 0.85rem;
    color: var(--text-grey);
    margin-bottom: 20px;
}

.c-social-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.c-social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.c-social-row:hover {
    background: var(--bg-hover);
}
.cs-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}
.cs-right {
    color: var(--text-dark-grey);
    font-size: 0.85rem;
}

/* "What works best" Box */
.c-info-box {
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}
.c-info-box h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.c-info-box ul {
    list-style: none;
    padding: 0;
}
.c-info-box li {
    color: var(--text-grey);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 6px;
}


/* ================= RIGHT COLUMN ================= */
.col-right { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    overflow-y: auto; 
    height: 100%;
    margin-left: -15px;
    position: relative;
    z-index: 20;
    /* Padding Right: 5px */
    padding-right: 20px; 
    padding-left: 15px; 
}

.section-header { text-align: center; margin-bottom: 5px; }
.section-header h3 { font-size: 0.8rem; letter-spacing: 1px; color: var(--text-grey); text-transform: uppercase; }
.cert-header { margin-top: 20px; }

.project-list, .cert-list { display: flex; flex-direction: column; gap: 10px; }

.project-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px;
    display: flex; align-items: center; gap: 15px;
}

.cert-card {
    gap: 10px;
    padding: 9px 10px;
}

.p-thumb { width: 45px; height: 45px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.t-nepal { background: #e0f2fe; background-image: url('https://source.unsplash.com/random/50x50?food'); background-size: cover; }
.t-array { background: white; color: black; font-size: 1.2rem; }
.t-movie { background: #1e293b; color: white; }
.t-hse { background: linear-gradient(145deg, #422006, #1c1917); color: #fbbf24; font-size: 1.1rem; }
.t-incident { background: linear-gradient(145deg, #0c1c38, #04101f); color: #60a5fa; font-size: 1.1rem; }
.t-asset { background: linear-gradient(145deg, #10241e, #04110d); color: #5eead4; font-size: 1.1rem; }
.t-cert { background: white; color: black; font-size: 1.1rem; }

.p-info { flex: 1; text-align: left; }
.p-info h4 { font-size: 0.9rem; color: white; margin-bottom: 3px; }
.p-info p { font-size: 0.75rem; color: var(--text-grey); }

.cert-card .p-thumb {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
}

.cert-card .cert-badge-icon {
    background: #fff;
    border-radius: 8px;
    padding: 3px;
}

.cert-card .cert-badge-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cert-badge-icon .cert-popup {
    top: auto;
    bottom: calc(100% + 8px);
    left: 155%;
    width: 110px;
    height: 110px;
    background: #000;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.72);
    padding: 7px;
    z-index: 2000;
    transform: translateX(0) translateY(8px) scale(0.96);
}

.cert-badge-icon:hover .cert-popup {
    transform: translateX(0) translateY(0) scale(1);
}

.cert-card .p-info h4 {
    font-size: 0.78rem;
    line-height: 1.25;
}

.cert-card .p-info h4 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.cert-card .p-info h4 a:hover {
    border-bottom-style: solid;
}

.cert-card .p-info p {
    font-size: 0.68rem;
    line-height: 1.35;
}

.btn-view {
    background: white; color: black; border: none;
    padding: 6px 16px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
}

a.btn-view {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.p-info h4 a {
    color: inherit;
    text-decoration: none;
}

.p-info h4 a:hover {
    text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .app-layout { 
        grid-template-columns: 1fr; 
        width: 100%;
        max-width: 600px; 
        height: auto;
    }
    body { height: auto; overflow: auto; }
    .col-left, .col-center, .col-right { overflow-y: visible; height: auto; }
    .col-left { order: 1; }
    .col-center { order: 2; margin-top: 20px; }
    .col-right { order: 3; margin-top: 20px; }
}
/* Responsive for the Grid */
@media (max-width: 768px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
    }
    .responsibilities-grid {
        grid-template-columns: 1fr;
    }
    .job-header-styled {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================= NEW SKILLS TAGS STYLES ================= */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #18181b;
    border: 1px solid #3f3f46;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #e4e4e7;
    line-height: 1.2;
}

/* ================= QMC HOVER POPUP STYLE ================= */
/* Updates based on visual design from screenshot */
.qmc-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.qmc-popup {
    position: absolute;
    bottom: 120%; /* Sits above text */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px; /* Wider rectangular shape */
    height: 130px;
    background: transparent; /* No bg, or white if needed */
    border: 4px solid white; /* Thick white border */
    border-radius: 15px; /* Rounded corners */
    padding: 0; /* No padding */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    overflow: hidden; /* Ensures image respects border radius */
}

.qmc-wrapper:hover .qmc-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.t-card.qmc-card .qmc-wrapper {
    position: static;
}

.t-card.qmc-card .qmc-popup {
    position: absolute;
    top: 51%;
    left: calc(100% + 25.111% + 80px);
    transform: translateY(-50%);
    width: 220px;
    height: 115px;
    background: rgba(0,0,0,0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    overflow: visible;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.t-card.qmc-card:hover .qmc-popup {
    transform: translateY(-50%);
}

.t-card.qmc-card .qmc-popup::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 60px solid rgba(255, 255, 255, 0.5);
}

.t-card.qmc-card:hover .qmc-popup::before {
    border-right-width: 60px;
}

.qmc-popup img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image fills the rounded rectangle */
    border-radius: 0; /* Radius handled by parent overflow */
}

.t-card.qmc-card .qmc-popup img {
    border-radius: 14px;
}

/* Social Icons specific colors */
.social-btn i.fa-envelope { color: #f59e0b; } /* Amber */
.social-btn i.fa-github { color: #a78bfa; } /* Light Purple */
.social-btn i.fa-linkedin { color: #0ea5e9; } /* Sky Blue */
.social-btn i.fa-globe { color: #10b981; } /* Emerald */

/* Newsletter */
.news-label i { color: #f43f5e; } /* Rose */
.sub-btn i { color: #fbbf24; } /* Amber */
.news-bottom i { color: #f97316; } /* Orange */

/* Core Competencies */
.info-group h3 i { color: #8b5cf6; } /* Violet */

/* OS Icons */
.os-icons i.fa-apple { color: #e4e4e7; } /* Zinc/White */
.os-icons i.fa-windows { color: #00a4ef; } /* Windows Blue */
.os-icons i.fa-linux { color: #fcc624; } /* Linux Yellow */

/* Bottom Buttons */
.btn-cv i { color: #3b82f6; } /* Blue */

/* ================= ABOUT SECTION STYLES ================= */
.about-card {
    padding: 28px 28px;
    background: #0f0f10;
    border: 1px solid #27272a;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border-color: #3f3f46;
}

.highlight-border {
    border-top: 1px solid #27272a; /* Reset top border */
}

/* Header Row for cards */
.card-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header-row h3 {
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    margin: 0;
}

.card-header-row.small {
    margin-bottom: 10px;
}

.card-header-row.small h4 {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    margin: 0;
}

/* Colorful Icon Boxes */
.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.icon-box.purple { background: rgba(168, 85, 247, 0.2); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.icon-box.gold { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-box.blue { background: rgba(37, 99, 235, 0.2); color: var(--blue); border: 1px solid rgba(37, 99, 235, 0.3); }
.icon-box.green { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.3); }

/* About Text */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #a1a1aa; 
    font-weight: 300;
    margin: 0;
    padding: 0;
    text-align: left;
}

.project-section {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-section .about-text {
    margin-top: 0;
}

.project-section .card-header-row {
    margin-bottom: 0;
}

.card-header-row,
.job-header-styled {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* New Highlight Colors */
.highlight { font-weight: 500; }
.text-purple { color: #c084fc; }
.text-gold { color: #fbbf24; }
.text-teal { color: #2dd4bf; }
.text-rose { color: #fb7185; }
.text-pink { color: #f472b6; }
.text-cyan { color: #22d3ee; }
.text-indigo { color: #818cf8; }
.text-lime { color: #a3e635; }
.text-orange { color: #fb923c; }
.text-blue { color: #60a5fa; }
.text-emerald { color: #34d399; }
.text-violet { color: #a78bfa; }
.text-neon-mint { color: #ff6bcb; text-shadow: 0 0 10px rgba(255, 107, 203, 0.25); }
.text-white { color: #fff; }
.text-pmp { color: #005eb8; text-shadow: 0 0 10px rgba(0, 94, 184, 0.3); }
.text-pmp-project { color: #ff600e; }
.text-pmp-management { color: #04bfe0; }

.highlight i {
    margin-right: 5px; /* Spacing for icons inside highlight */
}

.flutter-mark {
    position: relative;
    display: inline-block;
    width: 13px;
    height: 14px;
    margin-right: 5px;
    vertical-align: -2px;
}

.flutter-mark::before,
.flutter-mark::after {
    content: "";
    position: absolute;
    left: 3px;
    width: 10px;
    height: 5px;
    background: currentColor;
    transform: skewY(-38deg);
    transform-origin: left center;
}

.flutter-mark::before {
    top: 1px;
}

.flutter-mark::after {
    top: 8px;
    width: 8px;
    opacity: 0.85;
}

.cert-preview-wrap {
    position: relative;
    display: inline-block;
}

.cert-link {
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.cert-link:hover {
    border-bottom-style: solid;
}

.cert-popup {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: 180px;
    height: 180px;
    border: 4px solid #fff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px) scale(0.96);
    transition: all 0.25s ease;
    visibility: hidden;
    z-index: 120;
}

.cert-preview-wrap:hover .cert-popup {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    visibility: visible;
}

.cert-popup img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Job Header - UPDATED LOGO STYLES */
.job-header-styled {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.qmc-logo-rounded {
    width: 208px;
    height: 158px;
    object-fit: contain; 
    border-radius: 15px;
    padding: 12px;
    /* Removed background and border as per user snippet request */
}

.job-meta h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 5px;
}

.job-role {
    font-size: 1rem;
    color: #a1a1aa;
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.divider-line {
    height: 1px;
    background: #27272a;
    width: 100%;
    margin-bottom: 25px;
}

/* Responsibilities Grid */
.responsibilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Fancy List */
.fancy-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.fancy-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

.fancy-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--highlight-blue); /* Bullet color */
    font-size: 1.2rem;
    top: -2px;
}

/* Responsive fix for grid */
@media (max-width: 768px) {
    .responsibilities-grid {
        grid-template-columns: 1fr;
    }
    .job-header-styled {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================= PROFESSIONAL POLISH PASS ================= */
.col-left,
.col-right {
    background: rgba(16, 18, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 22px 18px;
    backdrop-filter: blur(14px);
}

.col-left {
    padding-right: 18px;
}

.col-right {
    margin-left: 0;
    padding-left: 16px;
    padding-right: 16px;
}

.col-center {
    padding-left: 8px;
    padding-right: 16px;
}

.name-row h1 {
    font-family: var(--name-font);
    font-size: clamp(1.45rem, 1.9vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.15;
    background: linear-gradient(125deg, #fff 20%, #7dd3fc 55%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.handle {
    min-height: 1.4em;
    color: var(--text-grey);
    font-weight: 600;
}

.typer-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--highlight-blue);
    animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
    50% { opacity: 0; }
}

.live-status {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #a7f3d0;
    font-size: 0.78rem;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: live-pulse 2s infinite;
}

.live-sep { opacity: 0.55; }

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.contact-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.contact-lines a {
    color: var(--text-grey);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.contact-lines a:hover { color: var(--text-white); }
.contact-lines i.fa-phone-alt { color: #22c55e; width: 16px; }
.contact-lines i.fa-envelope { color: #f59e0b; width: 16px; }

.working-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.working-label {
    color: #34d399;
    font-weight: 700;
    white-space: nowrap;
}

.qmc-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.qmc-name a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.35);
}

.qmc-name a:hover { border-bottom-style: solid; }
.qmc-name img { height: 18px; width: auto; }

.focus-block { margin-bottom: 14px !important; }
.stack-label { margin-bottom: 4px !important; }

.social-btn {
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.social-btn:hover {
    transform: translateY(-1px);
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.45);
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.skill-tag:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.35);
}

.btn-gallery,
.btn-cv {
    border-radius: 10px;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn-gallery {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.btn-gallery:hover,
.btn-cv:hover {
    transform: translateY(-1px);
}

.btn-cv:hover {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

.main-nav {
    background: rgba(7, 8, 12, 0.72);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 16px;
    margin-bottom: 24px;
}

.main-nav ul {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.main-nav li {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.86rem;
    transition: color 0.2s, background 0.2s;
}

.main-nav li:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.main-nav li.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.18);
}

.main-nav li.active::after {
    display: none;
}

.hero-section {
    margin-bottom: 28px;
}

.hero-section h2 {
    font-family: var(--font);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #e2e8f0;
}

.pro-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
}

.pro-stat {
    padding: 14px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-stat strong {
    display: block;
    font-size: 1.35rem;
    color: #93c5fd;
    letter-spacing: -0.03em;
}

.pro-stat span {
    font-size: 0.75rem;
    color: var(--text-grey);
    font-weight: 600;
}

.feed-card,
.tech-section,
.project-card,
.c-card-container {
    background: rgba(16, 18, 24, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feed-card:hover,
.project-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.tech-table-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-table th {
    background: rgba(59, 130, 246, 0.12);
    color: #dbeafe;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tech-table td {
    border-color: rgba(255, 255, 255, 0.06);
}

.tech-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.tab-pane {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.tab-pane.active,
.tab-pane.tab-enter {
    opacity: 1;
    transform: none;
}

.section-header h3 {
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #cbd5e1;
}

.btn-view {
    border-radius: 8px;
    transition: transform 0.2s, background 0.2s;
}

.btn-view:hover {
    transform: translateY(-1px);
    background: #e2e8f0;
}

body.theme-soft {
    --bg-main: #0c1118;
    --bg-card: #141b24;
    --bg-hover: #1c2530;
}

body.theme-soft .site-ambient {
    background:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(56, 189, 248, 0.12), transparent 55%),
        radial-gradient(ellipse 55% 45% at 90% 20%, rgba(52, 211, 153, 0.08), transparent 50%),
        var(--bg-main);
}

@media (max-width: 1024px) {
    body { padding: 16px; }
    .col-left, .col-right { margin-bottom: 12px; }
    .pro-stats { grid-template-columns: 1fr 1fr; }
    .main-nav { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot, .typer-caret, .ambient-orb { animation: none !important; }
    .tab-pane, .feed-card, .project-card { transition: none !important; }
}

/* ================= NEXT POLISH PASS ================= */
.avatar-container img {
    border-radius: 28px;
    background: linear-gradient(160deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.18);
}

.switch {
    right: -52px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.job-meta h2 {
    letter-spacing: -0.02em;
}

.platform-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.platform-chips span {
    font-size: 0.75rem;
    font-weight: 650;
    padding: 6px 10px;
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.skills-marquee {
    margin-top: 22px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-x 28s linear infinite;
}

.marquee-half {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 14px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.m-dot { opacity: 0.45; color: #60a5fa; }

@keyframes marquee-x {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tech-section {
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.tech-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tech-section-title i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.tech-section-title h3 {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.t-row {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.t-row.is-shown {
    opacity: 1;
    transform: none;
}

.timeline-line {
    background: linear-gradient(180deg, #3b82f6, rgba(39, 39, 42, 0.4));
}

.t-dot {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.c-badge {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

button.c-badge {
    font: inherit;
    cursor: pointer;
    color: inherit;
}

.c-badge.blue {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
}

.c-form input,
.c-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.c-form input:focus,
.c-form textarea:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.c-send-btn {
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    transition: transform 0.2s, filter 0.2s;
}

.c-send-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.p-thumb {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: #93c5fd;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.t-nepal { color: #fdba74; }
.t-array { color: #93c5fd; background: linear-gradient(145deg, #1e293b, #0f172a); }
.t-movie { color: #f9a8d4; }
.t-hse { color: #fbbf24; background: linear-gradient(145deg, #422006, #1c1917); }
.t-incident { color: #60a5fa; background: linear-gradient(145deg, #0c1c38, #04101f); }
.t-asset { color: #5eead4; background: linear-gradient(145deg, #10241e, #04110d); }
.t-ai { color: #86efac; }
.t-folio { color: #c4b5fd; }

.strength-grid span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.strength-grid span:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(96, 165, 250, 0.3);
}

.info-group h3 {
    letter-spacing: 0.02em;
}

.os-icons {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    gap: 18px;
    justify-content: center;
}

.tag {
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .t-row { opacity: 1; transform: none; }
}

/* ================= AWESOME UPLIFT ================= */
.hero-section h2,
.c-title,
.job-meta h2,
.t-card h3,
.tech-section-title h3,
.card-header-row h3 {
    font-family: var(--display);
}

.hero-section h2 {
    font-family: var(--font);
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f1f5f9;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.name-row h1 {
    font-family: var(--name-font);
    font-size: clamp(1.45rem, 1.9vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.col-left,
.col-right {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 50px rgba(0,0,0,0.25);
}

.col-center::before {
    content: "";
    position: sticky;
    top: 0;
    display: block;
    height: 0;
}

.highlight-border {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%),
        rgba(16, 18, 24, 0.3) !important;
}

.highlight-border::before {
    content: none;
    display: none;
}

.highlight-border::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -30%;
    width: 45%;
    height: 180%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: translateX(-120%) rotate(12deg);
    transition: transform 0.8s var(--ease);
    pointer-events: none;
}

.highlight-border:hover::after {
    transform: translateX(320%) rotate(12deg);
}

.feed-card,
.project-card,
.tech-section,
.c-card-container {
    backdrop-filter: blur(10px);
}

.icon-box {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.main-nav {
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.main-nav li.active {
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.pro-stat {
    position: relative;
    overflow: hidden;
}

.pro-stat::after {
    content: none;
    display: none;
}

.pro-stat.is-filled::after {
    content: none;
    display: none;
}

.avatar-container {
    animation: avatar-in 0.9s var(--ease) both;
}

@keyframes avatar-in {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: none; }
}

.cascade-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.cascade-item.is-in {
    opacity: 1;
    transform: none;
}

.t-card {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}

.t-card:hover {
    border-color: rgba(96, 165, 250, 0.4) !important;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.18), var(--glow);
}

.timeline-icon-link {
    transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s !important;
}

.timeline-icon-link:hover {
    transform: translateY(-2px) scale(1.05);
}

.cert-card:hover,
.project-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
}

.live-status {
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.12);
}

.btn-gallery {
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.social-btn.is-magnetic {
    will-change: transform;
}

/* Center column reading comfort */
.about-text {
    line-height: 1.75;
}

.tech-table td:first-child {
    color: #bfdbfe;
    font-weight: 700;
}

.c-title {
    font-size: 1.9rem;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.theme-soft .page-loader {
    background: #0a1018;
}

@media (max-width: 1024px) {
    .page-loader { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader, .app-layout, .cascade-item, .avatar-container {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .highlight-border::after { display: none; }
}

/* ================= GREATER / CINEMATIC PASS ================= */
::selection {
    background: rgba(59, 130, 246, 0.45);
    color: #fff;
}

.ambient-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.progress-rail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    background: rgba(255,255,255,0.04);
}

#tab-progress {
    display: block;
    height: 100%;
    width: 14%;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #22d3ee);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader-stage {
    position: relative;
    width: min(260px, 78vw);
    display: grid;
    place-items: center;
}

.loader-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2), inset 0 0 30px rgba(139, 92, 246, 0.12);
    animation: ring-spin 3.5s linear infinite;
}

.loader-ring::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: #38bdf8;
    border-right-color: #a78bfa;
    animation: ring-spin 1.4s linear infinite reverse;
}

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

.loader-mark {
    font-size: 2.8rem;
    filter: drop-shadow(0 0 24px rgba(96, 165, 250, 0.35));
}

body {
    padding: 18px 14px 18px 28px;
}

.app-layout {
    gap: 16px;
    grid-template-columns: minmax(300px, 340px) 1fr minmax(300px, 340px);
}

.col-left,
.col-right {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.col-left.sidebar-in,
.col-right.sidebar-in {
    opacity: 1;
    transform: none;
}

.col-right.sidebar-in {
    transition-delay: 0.12s;
}

.avatar-container img {
    border-radius: 32px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.12),
        0 0 0 8px rgba(59, 130, 246, 0.08),
        0 20px 50px rgba(37, 99, 235, 0.28);
}

.name-row h1 {
    font-family: var(--name-font);
    font-size: clamp(1.45rem, 1.9vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.15;
    background: linear-gradient(125deg, #fff 20%, #7dd3fc 55%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 8px 24px rgba(56, 189, 248, 0.15));
}

.hero-spotlight {
    position: relative;
    padding: 28px 20px 8px;
    border-radius: 22px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 28px !important;
}

.hero-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 10px;
}

.hero-spotlight h2 {
    font-family: var(--font) !important;
    font-size: 1.28rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    margin-bottom: 10px !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #f1f5f9 !important;
    filter: none !important;
}

.hero-spotlight .hero-sub {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.pro-stats {
    margin-top: 22px;
    gap: 12px;
}

.pro-stat {
    padding: 18px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.pro-stat strong {
    font-family: var(--display);
    font-size: 1.7rem !important;
    background: linear-gradient(120deg, #e0f2fe, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.featured-role {
    position: relative;
    padding: 34px 28px 28px !important;
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(56, 189, 248, 0.08), transparent 55%),
        rgba(16, 18, 24, 0.32) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18) !important;
}

.featured-ribbon {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f172a;
    background: linear-gradient(90deg, #7dd3fc, #a5b4fc);
    padding: 5px 10px;
    border-radius: 999px;
}

.qmc-logo-rounded {
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
}

.main-nav {
    background: rgba(8, 10, 16, 0.78) !important;
    border: 1px solid rgba(125, 211, 252, 0.12) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.03) !important;
}

.main-nav li.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(129, 140, 248, 0.18)) !important;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.15);
}

.platform-chips span {
    transition: transform 0.2s var(--ease), background 0.2s;
}

.platform-chips span:hover {
    transform: translateY(-2px);
    background: rgba(56, 189, 248, 0.22);
}

.t-card {
    transition: transform 0.2s ease, border-color 0.25s, box-shadow 0.25s !important;
    will-change: transform;
}

.tech-section {
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.45), transparent);
}

.col-left,
.col-right {
    border-color: rgba(125, 211, 252, 0.1) !important;
    background: linear-gradient(180deg, rgba(18, 22, 32, 0.72), rgba(12, 14, 20, 0.55)) !important;
}

.project-card,
.cert-card {
    position: relative;
    overflow: hidden;
}

.project-card::after,
.cert-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.05), transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease);
    pointer-events: none;
}

.project-card:hover::after,
.cert-card:hover::after {
    transform: translateX(120%);
}

.btn-gallery {
    background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #8b5cf6) !important;
    box-shadow: 0 14px 34px rgba(14, 165, 233, 0.35) !important;
}

.c-send-btn {
    background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
}

.skills-marquee {
    margin-top: 26px;
}

.marquee-half {
    font-size: 0.92rem;
    color: #cbd5e1;
}

.contact-header {
    text-align: center;
    margin-bottom: 22px;
}

.c-sub {
    color: #94a3b8;
}

/* Reading pane scroll comfort */
.col-left,
.col-center,
.col-right {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tab-pane.tab-enter .hero-section h2 {
    animation: title-rise 0.55s var(--ease) both;
}

@keyframes title-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
    .progress-rail { position: sticky; }
    .featured-ribbon { top: 10px; right: 10px; }
    .col-left, .col-right { opacity: 1; transform: none; }
}

/* ================= CONTINUOUS POLISH PASS ================= */

/* Shared section titles — match refined About Me style */
.hero-section h2,
.hero-spotlight h2,
.c-title {
    font-family: var(--font) !important;
    font-size: 1.22rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #f1f5f9 !important;
    filter: none !important;
}

.hero-section {
    padding: 18px 12px 6px;
    margin-bottom: 22px !important;
}

.hero-spotlight {
    padding: 22px 18px 10px !important;
    border-radius: 18px !important;
}

.hero-kicker {
    font-size: 0.72rem !important;
    letter-spacing: 0.16em !important;
    color: #94a3b8 !important;
    margin-bottom: 8px !important;
}

.hero-sub,
.hero-spotlight .hero-sub,
.c-sub {
    font-size: 0.95rem !important;
    line-height: 1.55;
    color: #94a3b8 !important;
    margin-bottom: 18px !important;
    font-weight: 500;
}

/* Card titles — calmer hierarchy under section titles */
.card-header-row h3 {
    font-family: var(--font) !important;
    font-size: 1.12rem !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
    color: #f8fafc !important;
}

.card-header-row.small h4 {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #e2e8f0;
}

.tech-section-title h3 {
    font-family: var(--font) !important;
    font-size: 0.98rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.01em;
    color: #e2e8f0 !important;
}

.job-meta h2 {
    font-family: var(--font) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: #f8fafc !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.job-role {
    color: #94a3b8 !important;
    font-size: 0.92rem;
    font-weight: 500;
}

/* Stats — tighter, cleaner */
.pro-stats {
    max-width: 520px;
    gap: 10px !important;
    margin-top: 18px !important;
}

.pro-stat {
    padding: 14px 10px !important;
    border-radius: 14px !important;
}

.pro-stat strong {
    font-size: 1.4rem !important;
}

.pro-stat span {
    font-size: 0.72rem !important;
    letter-spacing: 0.02em;
}

/* Body text readability */
.about-text {
    font-size: 0.96rem !important;
    line-height: 1.78 !important;
    color: #a8b0bc !important;
}

.highlight {
    font-weight: 600;
}

/* Nav — slightly denser */
.main-nav {
    padding: 8px 12px !important;
    margin-bottom: 18px !important;
    border-radius: 12px !important;
}

.main-nav li {
    font-size: 0.82rem !important;
    padding: 7px 11px !important;
    letter-spacing: 0.01em;
}

/* Right column headers */
.section-header {
    margin-bottom: 10px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-header h3 {
    font-family: var(--font);
    font-size: 0.72rem !important;
    letter-spacing: 0.16em !important;
    color: #94a3b8 !important;
    font-weight: 700;
}

.project-list,
.cert-list {
    gap: 8px !important;
}

.project-card,
.cert-card {
    border-radius: 12px !important;
    padding: 11px 12px !important;
}

.p-info h4 {
    font-size: 0.88rem !important;
    font-weight: 650;
}

.p-info p {
    font-size: 0.74rem !important;
}

/* Tables — cleaner rhythm */
.tech-table th {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 14px !important;
}

.tech-table td {
    font-size: 0.86rem;
    line-height: 1.55;
    padding: 12px 14px !important;
    vertical-align: top;
}

.tech-section {
    padding: 16px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
}

/* Featured role polish */
.featured-ribbon {
    font-size: 0.65rem !important;
    letter-spacing: 0.14em !important;
    padding: 4px 9px !important;
    opacity: 0.95;
}

.featured-role {
    border-color: rgba(255,255,255,0.1) !important;
    box-shadow: 0 14px 36px rgba(0,0,0,0.2) !important;
}

.platform-chips {
    margin-top: 14px !important;
    gap: 7px !important;
}

.platform-chips span {
    font-size: 0.72rem !important;
    padding: 5px 9px !important;
}

/* Left sidebar denser rhythm */
.col-left {
    gap: 14px !important;
}

.info-group h3 {
    font-size: 0.82rem;
    font-weight: 650;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.skill-tag {
    font-size: 0.72rem !important;
    padding: 5px 9px !important;
}

.social-btn {
    padding: 10px !important;
    font-size: 0.84rem !important;
}

.btn-gallery,
.btn-cv {
    padding: 12px !important;
    font-size: 0.84rem !important;
}

/* Contact polish */
.c-badges {
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
}

.c-badge {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 10px;
}

.contact-grid-layout {
    gap: 16px;
}

/* Timeline meta */
.timeline-period {
    font-size: 0.82rem;
    color: #94a3b8;
}

.timeline-location {
    font-size: 0.86rem;
}

.t-card h3 {
    font-family: var(--font) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em;
}

/* Soften divider */
.divider-line {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent) !important;
    margin: 20px 0 !important;
}

/* Strength chips */
.strength-grid {
    gap: 8px;
}

.strength-grid span {
    font-size: 0.84rem;
    padding: 10px 12px;
    line-height: 1.4;
}

/* Professional Summary — restrained accents (subtle color) */
.summary-card .about-text {
    color: #9aa3b2 !important;
}

.summary-card .hl {
    color: #b8c9de;
    font-weight: 600;
}

.summary-card .hl.emph {
    color: #f1f5f9;
    font-weight: 650;
}

.summary-card .hl.tech {
    color: #7dd3fc;
    font-weight: 650;
}

.summary-card .hl.platform {
    color: #86efac;
    font-weight: 600;
}

.summary-card .hl.cloud {
    color: #93c5fd;
    font-weight: 650;
}

.summary-card .hl.link {
    color: #fbbf24;
    text-decoration: none;
    border-bottom: 1px solid rgba(251, 191, 36, 0.4);
    font-weight: 650;
}

.summary-card .hl.link:hover {
    color: #fde68a;
    border-bottom-color: rgba(253, 230, 138, 0.6);
}

.summary-card .icon-box.blue {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.22);
}

/* ================= CONTAINER STANDARD SYSTEM ================= */
:root {
    --surface: rgba(16, 18, 24, 0.32);
    --surface-2: rgba(20, 24, 32, 0.42);
    --surface-border: rgba(255, 255, 255, 0.09);
    --surface-border-hover: rgba(148, 163, 184, 0.3);
    --surface-radius: 16px;
    --surface-radius-sm: 12px;
    --surface-pad: 24px;
    --surface-pad-sm: 14px;
    --surface-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    --surface-shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.26);
    --surface-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.feed-card,
.about-card,
.tech-section,
.project-card,
.cert-card,
.c-card-container,
.pro-stat,
.main-nav,
.os-icons,
.t-card {
    background: var(--surface) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: var(--surface-radius) !important;
    box-shadow: var(--surface-shadow) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition:
        border-color 0.25s var(--surface-ease),
        box-shadow 0.25s var(--surface-ease),
        transform 0.25s var(--surface-ease),
        background 0.25s var(--surface-ease) !important;
}

.feed-card,
.about-card,
.c-card-container,
.tech-section {
    padding: var(--surface-pad) !important;
}

.about-card,
.summary-card,
.featured-role {
    padding: 26px !important;
}

.featured-role {
    padding-top: 34px !important;
    background:
        linear-gradient(165deg, rgba(56, 189, 248, 0.05), transparent 42%),
        var(--surface-2) !important;
}

.project-card,
.cert-card {
    padding: var(--surface-pad-sm) 16px !important;
    border-radius: var(--surface-radius-sm) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) !important;
}

.pro-stat {
    padding: 14px 10px !important;
    border-radius: var(--surface-radius-sm) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14) !important;
}

.main-nav {
    padding: 8px 12px !important;
    border-radius: var(--surface-radius-sm) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

.os-icons {
    padding: 14px !important;
    border-radius: var(--surface-radius-sm) !important;
}

.hero-spotlight {
    padding: 22px 18px 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    isolation: auto;
}

.hero-spotlight .pro-stat {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.hero-spotlight .skills-marquee {
    opacity: 0.85;
}

.hero-spotlight:hover {
    background: rgba(255, 255, 255, 0.045) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Keep About Me out of opaque surface group overrides */
.hero-spotlight.feed-card,
.feed-card.hero-spotlight {
    background: rgba(255, 255, 255, 0.03) !important;
}

.t-card {
    border-radius: var(--surface-radius-sm) !important;
    padding: 18px 18px !important;
}

/* Hover standard */
.feed-card:hover,
.about-card:hover,
.tech-section:hover,
.project-card:hover,
.cert-card:hover,
.c-card-container:hover,
.t-card:hover {
    border-color: var(--surface-border-hover) !important;
    box-shadow: var(--surface-shadow-hover) !important;
    background: var(--surface-2) !important;
}

.feed-card:hover,
.about-card:hover,
.project-card:hover,
.cert-card:hover {
    transform: translateY(-2px);
}

.pro-stat:hover {
    border-color: var(--surface-border-hover) !important;
    background: var(--surface-2) !important;
}

/* Inner chrome consistency */
.tech-table-wrap {
    border: 1px solid var(--surface-border) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
}

.platform-chips span,
.skill-tag,
.tag,
.strength-grid span,
.c-badge {
    border: 1px solid var(--surface-border) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.platform-chips span:hover,
.skill-tag:hover,
.strength-grid span:hover {
    border-color: var(--surface-border-hover) !important;
    background: rgba(255, 255, 255, 0.055) !important;
}

.social-btn,
.btn-cv {
    border: 1px solid var(--surface-border) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.025) !important;
}

.social-btn:hover,
.btn-cv:hover {
    border-color: var(--surface-border-hover) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.btn-gallery {
    border-radius: 12px !important;
}

/* Neutralize leftover loud container accents */
.featured-role {
    border-color: var(--surface-border) !important;
}

.highlight-border {
    border: 1px solid var(--surface-border) !important;
}

.col-left,
.col-right {
    border: 1px solid var(--surface-border) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(16, 18, 24, 0.32), rgba(12, 14, 20, 0.22)) !important;
    box-shadow: var(--surface-shadow) !important;
}

/* Contact inputs match container language */
.c-form input,
.c-form textarea {
    border: 1px solid var(--surface-border) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.c-form input:focus,
.c-form textarea:focus {
    border-color: rgba(147, 197, 253, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

/* Keep timeline transform tilt without fighting hover lift */
.t-card:hover {
    transform: none;
}

/* About Me — clear glass so background motion shows through */
.hero-spotlight {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.hero-spotlight .pro-stat {
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.hero-spotlight:hover,
.hero-spotlight.feed-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ensure center column does not paint over ambient */
.col-center {
    background: transparent !important;
}
