/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DESIGN TOKENS â€” LIGHT (DEFAULT) + DARK THEMES
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root {
    --font-ar: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-en: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* â”€â”€ LIGHT THEME (Default) â”€â”€ */
    --bg-base:      #f0f4f8;
    --bg-surface:   #ffffff;
    --bg-card:      #ffffff;
    --bg-card-2:    #f8fafc;

    --accent:       #2563eb;
    --accent2:      #7c3aed;
    --accent3:      #0891b2;
    --accent-glow:  rgba(37,99,235,0.2);
    --accent2-glow: rgba(124,58,237,0.2);

    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;

    --border:       rgba(15,23,42,0.08);
    --border-glow:  rgba(37,99,235,0.3);

    --shadow-card:  0 4px 24px -8px rgba(15,23,42,0.08), 0 1px 4px rgba(15,23,42,0.04);
    --shadow-glow:  0 0 30px -5px var(--accent-glow);

    --cmd-bar-bg:   rgba(255,255,255,0.88);
    --orb-opacity:  0.04;
    --particle-opacity: 0.2;
    --grid-opacity: 0.5;

    --radius-sm:  8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* â”€â”€ DARK THEME â”€â”€ */
[data-theme="dark"] {
    --bg-base:      #050810;
    --bg-surface:   #0a0e1a;
    --bg-card:      #0d1220;
    --bg-card-2:    #111827;

    --accent:       #3b82f6;
    --accent2:      #8b5cf6;
    --accent3:      #06b6d4;
    --accent-glow:  rgba(59,130,246,0.35);
    --accent2-glow: rgba(139,92,246,0.35);

    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #475569;

    --border:       rgba(148,163,184,0.08);
    --border-glow:  rgba(59,130,246,0.25);

    --shadow-card:  0 20px 60px -20px rgba(0,0,0,0.7);
    --shadow-glow:  0 0 40px -5px var(--accent-glow);

    --cmd-bar-bg:   rgba(5,8,16,0.85);
    --orb-opacity:  0.06;
    --particle-opacity: 0.55;
    --grid-opacity: 0.15;
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   GLOBAL RESET & BASE
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, span, a {
    font-family: var(--font-ar);
}

[lang="en"] body, [lang="en"] button, [lang="en"] input, [lang="en"] select, [lang="en"] textarea, [lang="en"] h1, [lang="en"] h2, [lang="en"] h3, [lang="en"] h4, [lang="en"] h5, [lang="en"] h6, [lang="en"] p, [lang="en"] span, [lang="en"] a,
[lang="ru"] body, [lang="ru"] button, [lang="ru"] input, [lang="ru"] select, [lang="ru"] textarea, [lang="ru"] h1, [lang="ru"] h2, [lang="ru"] h3, [lang="ru"] h4, [lang="ru"] h5, [lang="ru"] h6, [lang="ru"] p, [lang="ru"] span, [lang="ru"] a {
    font-family: var(--font-en);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none; /* Custom cursor active */
    transition: background-color 0.4s, color 0.4s;
}

.font-mono {
    font-family: 'Outfit', monospace;
    font-variant-numeric: tabular-nums;
}
[lang="ar"] .font-mono,
html[lang="ar"] .font-mono,
[lang="ar"] .font-mono *,
html[lang="ar"] .font-mono * {
    font-family: var(--font-ar) !important;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: none; }

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   PARTICLE CANVAS (fills viewport, fixed background)
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--particle-opacity);
    transition: opacity 0.4s;
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   CUSTOM CURSOR
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
#cursor-outer, #cursor-inner {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s var(--ease-smooth), opacity 0.3s;
    will-change: transform;
}

#cursor-outer {
    width: 36px; height: 36px;
    border: 1.5px solid var(--accent);
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, border-color 0.25s, transform 0.08s linear;
    mix-blend-mode: difference;
}

#cursor-inner {
    width: 6px; height: 6px;
    background-color: var(--accent);
    transform: translate(-50%, -50%);
    transition: transform 0.03s linear, width 0.2s, height 0.2s;
}

body.cursor-hover #cursor-outer {
    width: 52px; height: 52px;
    border-color: var(--accent2);
    background-color: rgba(139,92,246,0.06);
}
body.cursor-hover #cursor-inner {
    width: 4px; height: 4px;
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   AMBIENT ORBS (Mouse Reactive)
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.8s var(--ease-smooth), opacity 0.4s;
    will-change: transform;
}
.orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -200px; left: -200px;
    opacity: var(--orb-opacity);
}
.orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent2) 0%, transparent 70%);
    bottom: -200px; right: -200px;
    opacity: var(--orb-opacity);
}
.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent3) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: calc(var(--orb-opacity) * 0.6);
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   COMMAND BAR (Top Fixed Header)
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.cmd-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    z-index: 1000;
    background-color: var(--cmd-bar-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.cmd-bar-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cmd-status-dot {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
}
.cmd-status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #22c55e;
    animation: pulse-green 2s infinite;
    opacity: 0.5;
}
@keyframes pulse-green {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.cmd-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.cmd-version {
    font-size: 0.62rem;
    color: var(--text-muted);
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.cmd-nav {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.2rem;
}

.cmd-nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s var(--ease-smooth);
}
.nav-num {
    font-size: 0.65rem;
    opacity: 0.6;
}
.cmd-nav-btn.active {
    background: var(--accent);
    color: #fff;
}
.cmd-nav-btn.active .nav-num {
    opacity: 0.8;
}
.cmd-nav-btn:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-card);
}

.cmd-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switcher {
    display: flex;
    gap: 0.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.2rem;
}
.lang-pill {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}
.lang-pill.active {
    background: var(--accent);
    color: #fff;
}
.lang-pill:hover:not(.active) {
    color: var(--text-primary);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 34px; height: 34px;
    border-radius: 8px;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-smooth);
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
    transform: translateY(-1px);
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle-btn .icon-sun  { display: none; }
.theme-toggle-btn .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }

.print-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: 6px;
    transition: all 0.25s var(--ease-smooth);
}
.print-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px var(--accent-glow);
}

/* Magnetic button effect */
.magnetic-btn {
    position: relative;
    transform-style: preserve-3d;
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   GENERAL SECTION LAYOUT
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 120px 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 5rem;
}
.section-num {
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    opacity: 0.7;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-glow), transparent);
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   SECTION 01 â€” HERO
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 6rem;
    align-items: center;
    flex: 1;
}

/* â”€â”€ Portrait Frame (3D card) â”€â”€ */
.portrait-zone {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portrait-frame {
    position: relative;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: var(--shadow-card);
    will-change: transform;
    transition: box-shadow 0.3s;
}

.portrait-frame:hover {
    box-shadow: var(--shadow-card), 0 0 60px -10px var(--accent-glow);
}

/* Sci-fi corner brackets */
.frame-corner {
    position: absolute;
    width: 20px; height: 20px;
    z-index: 5;
    border-color: var(--accent);
    border-style: solid;
}
.frame-corner.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.frame-corner.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
.frame-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
.frame-corner.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }

/* Grid overlay for tech look */
.workspace-grid-overlay {
    display: none;
}
@keyframes scan {
    0% { top: -2px; }
    100% { top: calc(100% + 2px); }
}

.portrait-photo-layer {
    position: absolute;
    inset: 0;
    transform: translateZ(-20px) scale(1.05);
    transition: transform 0.1s linear;
}
.portrait-img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.4) 0%,
        transparent 35%
    );
}

.portrait-hud {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.75rem;
    z-index: 3;
    transform: translateZ(30px);
    transition: transform 0.1s linear;
}

.hud-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.hud-status-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hud-dot {
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}
.hud-status-text {
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.08em;
}

.glass-sheen {
    position: absolute; inset: 0; z-index: 4;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    opacity: 0;
    transform: translate(-100%, -100%);
    transition: opacity 0.3s;
}
.portrait-frame:hover .glass-sheen {
    opacity: 1;
}

/* â”€â”€ Contact Dock â”€â”€ */
.contact-dock {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: all 0.25s var(--ease-smooth);
}
.contact-chip svg { color: var(--accent); flex-shrink: 0; }
.chip-text { font-size: 0.75rem; }

.contact-chip.copyable { cursor: none; }
.contact-chip:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: translateX(-3px);
    background: var(--bg-card-2);
    box-shadow: 0 0 20px -5px var(--accent-glow);
}
[dir="rtl"] .contact-chip:hover { transform: translateX(3px); }

/* â”€â”€ Hero Identity â”€â”€ */
.hero-identity {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.identity-tag {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.identity-tag::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
}

.hero-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.name-line-1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.name-line-2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--accent2) 100%);
    background-size: 200% auto;
    animation: gradient-shine 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0.25em; /* Prevent descender clipping */
    margin-bottom: -0.15em;
    line-height: 1.3;
}
@keyframes gradient-shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glitch effect on name */
.name-line-2::before,
.name-line-2::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.name-line-2::before {
    left: 2px;
    animation: glitch-1 4s infinite linear alternate-reverse;
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
}
.name-line-2::after {
    left: -2px;
    animation: glitch-2 3.5s infinite linear alternate;
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}
@keyframes glitch-1 {
    0%, 90%, 100% { transform: none; opacity: 0; }
    92% { transform: translate(-2px, 1px); opacity: 0.6; filter: hue-rotate(90deg); }
    94% { transform: translate(2px, -1px); opacity: 0.5; }
    96% { transform: none; opacity: 0; }
}
@keyframes glitch-2 {
    0%, 85%, 100% { transform: none; opacity: 0; }
    87% { transform: translate(2px, -1px); opacity: 0.5; filter: hue-rotate(-90deg); }
    90% { transform: translate(-1px, 2px); opacity: 0.4; }
    93% { transform: none; opacity: 0; }
}

.hero-summary {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 520px;
    position: relative;
    padding-inline-start: 1.25rem;
    border-inline-start: 2px solid var(--accent);
}

/* â”€â”€ Stats Grid â”€â”€ */
.stat-grid {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-smooth);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-en);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* â”€â”€ Language Badges â”€â”€ */
.lang-badges-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lang-badge {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 130px;
    transition: all 0.25s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}
.lang-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.lang-badge:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}
.lang-badge:hover::after { opacity: 1; }

.flag { font-size: 1.5rem; flex-shrink: 0; }
.lb-name { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.lb-level { font-size: 0.68rem; color: var(--text-muted); }
.lb-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--bg-surface);
}
.lb-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 1px;
}

/* Scroll hint */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    opacity: 0.4;
    animation: float-hint 2s ease-in-out infinite;
}
@keyframes float-hint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
.scroll-hint span { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--text-muted); }
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECTION 02 â€” EXPERIENCE (Orbital Timeline)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.exp-section {
    padding-top: 80px;
}

.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-inline-start: 3.5rem;
}

.orbital-path {
    position: absolute;
    top: 0;
    inset-inline-start: 16px;
    width: 40px;
    height: 100%;
    overflow: visible;
}

.timeline-node {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
}

.node-orb {
    position: relative;
    flex-shrink: 0;
    width: 32px; height: 32px;
    margin-inline-start: -3.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-ring {
    position: absolute;
    inset: -6px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: orb-spin 6s linear infinite;
}
@keyframes orb-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.node-ring::before {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    top: -2px; left: 50%; transform: translateX(-50%);
}

.node-dot {
    width: 12px; height: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-glow);
}

.edu-orb .node-dot {
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    box-shadow: 0 0 15px var(--accent2-glow);
}
.edu-orb .node-ring { border-color: var(--accent2); }
.edu-orb .node-ring::before { background: var(--accent2); }

/* â”€â”€ Experience Cards â”€â”€ */
.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s var(--ease-smooth);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth), border-color 0.3s, box-shadow 0.3s;
}

.exp-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.exp-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card), 0 0 40px -10px var(--accent-glow);
    transform: translateY(-4px);
}

.exp-card-inner {
    position: relative;
    padding: 2.25rem;
    overflow: hidden;
}

.exp-card-glow {
    position: absolute;
    top: -40px; right: -40px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.exp-card:hover .exp-card-glow { opacity: 1; }

.edu-glow {
    background: radial-gradient(circle, var(--accent2-glow), transparent 70%);
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.exp-year {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.08em;
}

.exp-sector-tag, .edu-tag-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.65rem;
    background: rgba(59,130,246,0.12);
    color: var(--accent);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.edu-tag-badge {
    background: rgba(139,92,246,0.12);
    color: var(--accent2);
    border-color: rgba(139,92,246,0.25);
}

.exp-role {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.exp-company {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}
.exp-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
    text-align: justify;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.exp-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.exp-tag:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
}

/* Cert mini card inside education */
.cert-inline {
    margin-top: 1.25rem;
}
.cert-mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}
.cert-mini-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.8rem;
}
.cert-mini-src {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-en);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECTION 03 â€” SKILLS (Constellation Mosaic)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.skills-section {
    padding-top: 80px;
}

.skills-universe {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    min-height: 600px;
}

.constellation-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Core element */
.skills-core {
    position: relative;
    width: 120px; height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    flex-shrink: 0;
    margin-top: 160px;
}

.core-ring {
    position: absolute;
    border: 1px solid var(--border-glow);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}
.core-ring.r1 { inset: 0; animation-duration: 8s; }
.core-ring.r2 { inset: -20px; opacity: 0.5; animation-duration: 14s; animation-direction: reverse; }
.core-ring.r3 { inset: -40px; opacity: 0.2; animation-duration: 20s; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.core-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-secondary);
    z-index: 2;
    letter-spacing: 0.08em;
}

/* Skill orbs container */
.skill-orbs-container {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    z-index: 1;
}

.skill-orb {
    position: absolute;
    width: 110px; height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: none;
    transition: all 0.3s var(--ease-smooth);
    z-index: 2;
}

.skill-orb:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px -5px var(--accent-glow);
    transform: scale(1.12);
    background: var(--bg-card-2);
}

.orb-icon { font-size: 1.35rem; }

.orb-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
    padding: 0 0.25rem;
}

.orb-progress {
    position: absolute;
    inset: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    transform: rotate(-90deg);
}
.orb-progress-bg {
    fill: none;
    stroke: rgba(148,163,184,0.06);
    stroke-width: 1.5;
}
.orb-progress-fill {
    fill: none;
    stroke: url(#skillGrad);
    stroke-width: 1.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s var(--ease-smooth);
}

/* Orb positions (clock-like around core at center 300,300 of 600x600) */
.orb-s1 { top: 30px;  left: 245px; }   /* 12 o'clock */
.orb-s2 { top: 140px; left: 455px; }   /* 2 o'clock */
.orb-s3 { top: 360px; left: 455px; }   /* 4 o'clock */
.orb-s4 { top: 460px; left: 245px; }   /* 6 o'clock */
.orb-s5 { top: 360px; left: 35px; }    /* 8 o'clock */
.orb-s6 { top: 140px; left: 35px; }    /* 10 o'clock */

/* Add SVG gradient def for orb progress */
.skills-universe::before {
    content: '';
    position: absolute;
}

/* Hobbies */
.hobbies-strip {
    width: 100%;
    z-index: 1;
    padding-top: 2rem;
    margin-top: 640px;
}
.strip-label {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    opacity: 0.7;
}
.hobbies-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.hobby-node {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.25s var(--ease-smooth);
}
.hob-icon { font-size: 1rem; }
.hobby-node:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px var(--accent-glow);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SECTION 04 â€” COVER LETTER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.letter-section {
    padding-top: 80px;
}

.letter-cinematic {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 0 auto;
}

.letter-terminal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 0.4rem; }
.tdot {
    width: 11px; height: 11px;
    border-radius: 50%;
}
.tdot.red    { background: #ef4444; }
.tdot.yellow { background: #f59e0b; }
.tdot.green  { background: #22c55e; }
.terminal-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.letter-body {
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.letter-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.letter-salutation {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.letter-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.letter-paragraphs p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-secondary);
    text-align: justify;
}

.letter-closing {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.letter-sig {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.75rem;
}
.sig-name {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sig-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.sig-divider {
    width: 40px; height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 0.5rem 0;
}
.sig-contact {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FOOTER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cv-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 1.25rem 5%;
}
.footer-grid-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-id, .footer-build {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOAST
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 80px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s var(--ease-spring), opacity 0.4s;
}
.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}
.toast-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    background: var(--bg-card-2);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px -5px var(--accent-glow);
}
.toast-inner svg { color: #22c55e; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   REVEAL ANIMATIONS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.reveal-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .portrait-frame { height: 360px; }
    .skill-orbs-container { width: 360px; height: 360px; }
    .skills-core { margin-top: 90px; }
    .orb-s1 { top: 15px; left: 130px; }
    .orb-s2 { top: 75px; left: 255px; }
    .orb-s3 { top: 215px; left: 255px; }
    .orb-s4 { top: 275px; left: 130px; }
    .orb-s5 { top: 215px; left: 5px; }
    .orb-s6 { top: 75px; left: 5px; }
    .skill-orb { width: 90px; height: 90px; }
    .hobbies-strip { margin-top: 380px; }
    .letter-body { padding: 2rem; }
    .cmd-bar { padding: 0 1rem; }
    .cmd-bar-center { display: none; }
    .stat-grid { gap: 0.75rem; }
}

@media (max-width: 600px) {
    .section { padding: 100px 4% 60px; }
    .name-line-1 { font-size: 2.5rem; }
    .name-line-2 { font-size: 3.5rem; }
    .hero-grid { gap: 2rem; }
    .lang-badges-row { flex-direction: column; }
}




/* ════════════════════════════════════════════════════════
   A4 DIRECT PDF GENERATION TEMPLATE STYLING
════════════════════════════════════════════════════════ */
#pdf-print-template {
    background: #ffffff !important;
    color: #111111 !important;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
}
.pdf-page {
    width: 794px;
    height: 1122px; /* Perfect A4 height at 96 DPI */
    padding: 45px 50px;
    background: #ffffff !important;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}
.pdf-container {
    width: 100%;
}
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.pdf-header-right {
    text-align: right;
}
.pdf-header-left {
    text-align: left;
    line-height: 1.5;
}
.pdf-divider {
    height: 2px;
    background: #0f172a;
    margin-bottom: 15px;
}
.pdf-body-grid {
    display: flex;
    gap: 30px;
}
.pdf-main-content {
    flex: 1;
}
.pdf-side-content {
    width: 220px;
    border-inline-start: 1px solid #e2e8f0;
    padding-inline-start: 20px;
}
.pdf-sec-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1.5px solid #0f172a;
    padding-bottom: 3px;
    margin-bottom: 12px;
    margin-top: 15px;
    text-transform: uppercase;
}
.pdf-item {
    margin-bottom: 12px;
}
.pdf-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.pdf-item-role {
    font-size: 11px;
    font-weight: bold;
    color: #0f172a;
}
.pdf-item-year {
    font-size: 9.5px;
    font-weight: bold;
    color: #1e3a8a;
}
.pdf-item-org {
    font-size: 10px;
    font-weight: bold;
    color: #475569;
    margin-bottom: 3px;
}
.pdf-item-desc {
    font-size: 10px;
    color: #334155;
    line-height: 1.5;
}
.pdf-skill-node {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    margin-bottom: 6px;
    padding-bottom: 3px;
    border-bottom: 1px dashed #e2e8f0;
}
.pdf-skill-lbl {
    font-weight: bold;
    color: #334155;
}
.pdf-skill-pct {
    color: #1e3a8a;
    font-weight: bold;
}
/* ════════════════════════════════════════════════════════
   PRINT STYLESHEET — Clean A4 White
════════════════════════════════════════════════════════ */
@media print {
    @page {
        size: A4 portrait;
        margin: 1.5cm;
    }

    /* Force linear block layout and white page styling */
    html, body {
        background: #ffffff !important;
        color: #111111 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        font-size: 10pt !important;
        line-height: 1.5 !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        cursor: default !important;
    }

    /* Hide digital-only ornaments */
    #particle-canvas, #cursor-outer, #cursor-inner,
    .orb, .scan-line, .scroll-hint, .cmd-bar,
    .toast, .frame-corner, .node-ring, .orbital-path,
    .constellation-bg, .core-ring, .exp-card-glow,
    .glass-sheen, .hud-status-row, .cv-footer,
    .hobbies-strip .strip-label, .letter-terminal,
    .node-orb, .scroll-line, .exp-tags {
        display: none !important;
    }

    /* Strip all transitions, animations, absolute transforms and shadows */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transform: none !important;
        background-color: transparent !important;
        float: none !important;
    }

    /* Ensure standard clean fonts in black for printing */
    body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, span, a {
        font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
        color: #111111 !important;
    }

    /* Linearized Page Containers */
    .section {
        display: block !important;
        position: static !important;
        padding: 0 !important;
        margin: 0 0 2rem 0 !important;
        width: 100% !important;
        min-height: auto !important;
        max-width: 100% !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* PAGE 1: Header / Hero (Centered block layout for stability) */
    .hero-section {
        page-break-after: always !important;
        break-after: page !important;
        display: block !important;
    }
    .hero-grid {
        display: block !important;
        width: 100% !important;
    }
    .portrait-zone {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }
    .portrait-frame {
        width: 150px !important;
        height: 170px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        margin: 0 auto !important; /* Centered */
        background: #f1f5f9 !important;
        display: block !important;
    }
    .portrait-photo-layer {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }
    .portrait-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .portrait-hud {
        display: block !important;
        margin-top: 0.5rem !important;
        text-align: center !important;
    }
    .hud-badge {
        display: inline-block !important;
        background: #0f172a !important;
        color: #ffffff !important;
        font-size: 8pt !important;
        font-weight: bold !important;
        padding: 0.2rem 0.6rem !important;
        border-radius: 4px !important;
    }

    .contact-dock {
        display: block !important;
        text-align: center !important;
        margin-top: 1rem !important;
    }
    .contact-chip {
        display: inline-block !important;
        margin: 0.25rem 0.75rem !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
    }
    .contact-chip svg {
        display: none !important;
    }
    .chip-text {
        font-size: 9pt !important;
        color: #1e293b !important;
        text-decoration: none !important;
    }

    .hero-identity {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
    .identity-tag {
        font-size: 8pt !important;
        color: #475569 !important;
        font-weight: bold !important;
        margin-bottom: 0.5rem !important;
        justify-content: center !important;
    }
    .identity-tag::after { display: none !important; }
    
    .hero-name {
        display: block !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    .name-line-1 {
        font-size: 22pt !important;
        font-weight: 300 !important;
        color: #475569 !important;
    }
    .name-line-2 {
        font-size: 24pt !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
    }
    .name-line-2::before, .name-line-2::after { display: none !important; }

    .hero-summary {
        font-size: 9.5pt !important;
        color: #334155 !important;
        border-inline-start: 3px solid #0f172a !important;
        padding-inline-start: 0.75rem !important;
        margin: 1.5rem auto !important;
        max-width: 90% !important;
        text-align: start !important;
    }

    .stat-grid {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 1.5rem !important;
    }
    .stat-card {
        display: inline-block !important;
        width: 28% !important;
        margin: 0 2% !important;
        padding: 0.5rem !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 4px !important;
        text-align: center !important;
        vertical-align: top !important;
    }
    .stat-num {
        font-size: 16pt !important;
        font-weight: bold !important;
        color: #1e3a8a !important;
        -webkit-text-fill-color: #1e3a8a !important;
    }
    .stat-label {
        font-size: 8pt !important;
        color: #64748b !important;
    }

    .lang-badges-row {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 1.5rem !important;
    }
    .lang-badge {
        display: inline-block !important;
        width: 28% !important;
        margin: 0 2% !important;
        padding: 0.5rem !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 4px !important;
        text-align: center !important;
        vertical-align: top !important;
    }
    .flag {
        font-size: 14pt !important;
    }
    .lb-name {
        font-size: 8.5pt !important;
        font-weight: bold !important;
        color: #0f172a !important;
    }
    .lb-level {
        font-size: 7.5pt !important;
        color: #64748b !important;
    }
    .lb-bar {
        display: block !important;
        height: 3px !important;
        background: #e2e8f0 !important;
        margin-top: 0.25rem !important;
        border-radius: 2px !important;
    }
    .lb-fill {
        display: block !important;
        height: 100% !important;
        background: #1e3a8a !important;
    }

    /* Section Headers */
    .section-header {
        display: block !important;
        margin-bottom: 1.5rem !important;
        border-bottom: 2px solid #0f172a !important;
        padding-bottom: 0.5rem !important;
        text-align: start !important;
    }
    .section-num {
        display: none !important;
    }
    .section-title {
        font-size: 13pt !important;
        font-weight: bold !important;
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
    }
    .section-line {
        display: none !important;
    }

    /* PAGE 2: Experience & Education (Linear list) */
    .exp-section {
        page-break-before: always !important;
        break-before: page !important;
        page-break-after: always !important;
        break-after: page !important;
        display: block !important;
    }
    .timeline-container {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .timeline-node {
        display: block !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        page-break-inside: avoid !important;
    }
    .exp-card {
        display: block !important;
        width: 100% !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        padding: 1.25rem !important;
        box-sizing: border-box !important;
    }
    .exp-card-inner {
        padding: 0 !important;
    }
    .exp-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 0.5rem !important;
    }
    .exp-year {
        font-size: 8.5pt !important;
        font-weight: bold !important;
        color: #1e3a8a !important;
    }
    .exp-sector-tag {
        font-size: 8pt !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        color: #334155 !important;
        padding: 0.15rem 0.5rem !important;
        border-radius: 4px !important;
    }
    .exp-role {
        font-size: 11pt !important;
        font-weight: bold !important;
        color: #0f172a !important;
        margin-bottom: 0.25rem !important;
        text-align: start !important;
    }
    .exp-company {
        font-size: 9pt !important;
        font-weight: bold !important;
        color: #475569 !important;
        margin-bottom: 0.5rem !important;
        text-align: start !important;
    }
    .exp-desc {
        font-size: 9pt !important;
        color: #334155 !important;
        line-height: 1.5 !important;
        text-align: start !important;
    }

    .cert-inline {
        display: block !important;
        margin-top: 0.75rem !important;
    }
    .cert-mini-card {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 4px !important;
    }
    .cert-mini-title {
        font-size: 9pt !important;
        font-weight: bold !important;
        color: #0f172a !important;
    }
    .cert-mini-src {
        font-size: 8pt !important;
        color: #64748b !important;
    }

    /* PAGE 3: Skills & Hobbies */
    .skills-section {
        page-break-before: always !important;
        break-before: page !important;
        page-break-after: always !important;
        break-after: page !important;
        display: block !important;
    }
    .skills-universe {
        display: block !important;
        width: 100% !important;
    }
    .skill-orbs-container {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }
    .skill-orb {
        display: inline-block !important;
        width: 45% !important;
        margin: 0.5rem 2% !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        padding: 0.6rem 1rem !important;
        border-radius: 6px !important;
        text-align: center !important;
        vertical-align: top !important;
        box-sizing: border-box !important;
    }
    .orb-icon {
        font-size: 11pt !important;
        display: inline-block !important;
        margin-inline-end: 0.35rem !important;
    }
    .orb-label {
        font-size: 9.5pt !important;
        font-weight: bold !important;
        color: #0f172a !important;
        display: inline-block !important;
    }
    .orb-progress {
        display: none !important;
    }

    .hobbies-strip {
        display: block !important;
        margin-top: 2rem !important;
        text-align: start !important;
    }
    .hobbies-flow {
        display: block !important;
        text-align: center !important;
    }
    .hobby-node {
        display: inline-block !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        padding: 0.35rem 0.65rem !important;
        border-radius: 4px !important;
        font-size: 9pt !important;
        color: #334155 !important;
        margin: 0.25rem 0.5rem !important;
    }
    .hob-icon {
        font-size: 10pt !important;
    }

    /* PAGE 4: Cover Letter */
    .letter-section {
        page-break-before: always !important;
        break-before: page !important;
        display: block !important;
    }
    .letter-cinematic {
        display: block !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
    .letter-body {
        display: block !important;
        padding: 0 !important;
    }
    .letter-date {
        font-size: 8.5pt !important;
        color: #64748b !important;
        margin-bottom: 1rem !important;
        text-align: start !important;
    }
    .letter-salutation {
        font-size: 10pt !important;
        font-weight: bold !important;
        color: #0f172a !important;
        margin-bottom: 1rem !important;
        text-align: start !important;
    }
    .letter-paragraphs p {
        font-size: 10pt !important;
        color: #334155 !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
        text-align: start !important;
    }
    .letter-closing {
        font-size: 10pt !important;
        font-weight: bold !important;
        color: #0f172a !important;
        margin-top: 1.5rem !important;
        text-align: start !important;
    }
    .letter-sig {
        display: block !important;
        margin-top: 1.5rem !important;
        text-align: start !important;
        page-break-inside: avoid !important;
    }
    .sig-name {
        font-size: 12pt !important;
        font-weight: bold !important;
        color: #0f172a !important;
    }
    .sig-title {
        font-size: 9pt !important;
        color: #475569 !important;
    }
    .sig-divider {
        display: block !important;
        height: 1px !important;
        background: #cbd5e1 !important;
        margin: 0.5rem 0 !important;
        width: 150px !important;
    }
    .sig-contact {
        font-size: 8.5pt !important;
        color: #64748b !important;
    }
}
