:root {
    --primary: #c084fc;
    --secondary: #a78bfa;
    --accent: #fbbf24;
    --cyan: #67e8f9;
    --purple: #a78bfa;
    --green: #86efac;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #c084fc 0%, #a78bfa 50%, #67e8f9 100%);
    --gradient-2: linear-gradient(135deg, #67e8f9 0%, #a78bfa 50%, #fbbf24 100%);
    --gradient-3: linear-gradient(135deg, #86efac 0%, #67e8f9 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(192,132,252,0.3);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Tajawal', sans-serif;
    --font-code: 'Fira Code', monospace;
}

[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-darker: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f1f3f5;
    --border: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
}

[dir="rtl"] { direction: rtl; text-align: right; }
[dir="ltr"] { direction: ltr; text-align: left; }

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

html {
    font-size: 16px;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow: hidden;
    height: 100%;
    transition: background var(--transition-fast), color var(--transition-fast);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Full-page sections */
.main-content {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 80px;
    overflow: hidden;
}

.section,
.hero-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.section.active,
.hero-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 5;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.hero-name,
.section-title,
.timeline-title,
.project-title,
.category-title {
    font-weight: 800;
}

* {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-code-text {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.code-line {
    display: block;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.code-line[data-line="1"] { animation-delay: 0.1s; }
.code-line[data-line="2"] { animation-delay: 0.3s; }
.code-line[data-line="3"] { animation-delay: 0.5s; }
.code-line[data-line="4"] { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.loader-spinner-wrapper {
    margin: 2rem 0;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-right-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.loader-progress-wrapper {
    width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 2rem auto;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    animation: progress 2s ease forwards;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes progress {
    to { width: 100%; }
}

.loader-percentage {
    font-family: var(--font-code);
    color: var(--primary);
    font-size: 1rem;
    margin-top: 1rem;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}

.main-header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-bracket {
    color: var(--purple);
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::before {
    width: 80%;
}

.nav-link i {
    font-size: 1rem;
}

.nav-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle,
.menu-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.6rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hero-section {
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-background {
    /* Replaced by the DotField interactive background (dotfield.js) */
    display: none;
}

.code-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.1;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.2;
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    z-index: 1;
}

.hero-greeting {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.greeting-cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-name {
    font-family: var(--font-code);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.code-line {
    display: block;
    white-space: nowrap;
}

.name-prefix {
    color: var(--purple);
}

.name-var {
    color: var(--text-primary);
    margin-left: 0.5rem;
}

.name-operator {
    color: var(--cyan);
    margin: 0 0.5rem;
}

.name-string {
    color: var(--green);
}

.name-value {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-suffix {
    color: var(--primary);
}

.hero-title {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.title-prefix {
    color: var(--text-muted);
    margin-inline-end: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(192,132,252,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(192,132,252,0.3);
}

.hero-social {
    display: flex;
    gap: 2rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.social-icon {
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(192,132,252,0.2);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,107,157,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.profile-image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 
        0 0 30px rgba(192,132,252,0.3),
        0 0 60px rgba(192,132,252,0.15);
    overflow: hidden;
    background: transparent;
}

.morph-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    pointer-events: auto;
    border-radius: 50%;
}

.profile-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    will-change: transform;
}

.profile-placeholder {
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.3;
}

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: floatBadge 3s ease-in-out infinite;
    min-width: 200px;
    transition: all var(--transition);
    z-index: 10;
}

.floating-badge {
    transition: all var(--transition-smooth);
}

.floating-badge:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(192,132,252,0.25);
}

.floating-badge i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.badge-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-libs {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.badge-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    right: -15%;
    animation-delay: 1s;
}

.badge-3 {
    top: 50%;
    left: -15%;
    animation-delay: 2s;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.section {
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.section-title {
    font-family: var(--font-code);
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-bracket {
    color: var(--purple);
}

.title-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    flex: 1;
    height: 2px;
    background: var(--gradient-1);
    margin-inline-start: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text.about-headline {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.about-text.about-main {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.about-text.about-main strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-text.about-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.85;
}

/* Journey Timeline */
.about-journey {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.journey-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.journey-title i {
    color: var(--primary-color);
}

.journey-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.journey-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.journey-year {
    min-width: 50px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.journey-text {
    color: var(--text-secondary);
}

.journey-item.current {
    padding: 0.5rem 0.75rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 6px;
    margin-left: -0.75rem;
}

.journey-item.current .journey-year {
    color: #4ade80;
}

.journey-item.current .journey-text {
    color: #4ade80;
    font-weight: 600;
}

/* Code block enhancements */
.code-line.indent-2 {
    padding-left: 3rem;
}

.code-string.current-status {
    color: #4ade80;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-text.about-headline {
        font-size: 1.4rem;
    }
    
    .journey-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition);
}

.stat-item {
    transition: all var(--transition-fast);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.stat-number {
    font-family: var(--font-code);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-image-container {
    position: relative;
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    margin: 0.5rem 0;
}

.code-line.indent {
    padding-inline-start: 2rem;
}

.code-keyword { color: var(--purple); }
.code-variable { color: var(--cyan); }
.code-operator { color: var(--primary); }
.code-brace,
.code-bracket { color: var(--accent); }
.code-property { color: var(--cyan); }
.code-string { color: var(--accent); }
.code-comma,
.code-semicolon { color: var(--text-muted); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
}

.category-title {
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    position: relative;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-family: var(--font-code);
    color: var(--cyan);
    font-weight: 600;
}

.skill-percent {
    font-family: var(--font-code);
    color: var(--primary);
    font-weight: 600;
}

.skill-bar {
    height: 12px;
    background: var(--bg-darker);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 6px;
    width: 0%;
    position: relative;
    box-shadow: 0 0 10px rgba(255,107,157,0.5);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.timeline {
    position: relative;
    padding-inline-start: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    padding-bottom: 4rem;
    padding-inline-start: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    animation: pulse 2s infinite;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    transition: all var(--transition);
}

.timeline-content {
    transition: all var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-year {
    font-family: var(--font-code);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-badge {
    background: var(--gradient-1);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-code);
}

.timeline-title {
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-company {
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-company i {
    font-size: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-darker);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.achievement-item i {
    color: var(--green);
    font-size: 1rem;
    flex-shrink: 0;
}

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

.tag {
    background: var(--bg-darker);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-code);
    border: 1px solid var(--border);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.project-card {
    transition: all var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: var(--bg-darker);
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 2rem;
}

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition);
}

.project-link {
    transition: all var(--transition-fast);
}

.project-link:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(192,132,252,0.3);
}

.project-content {
    padding: 3rem;
}

.project-title {
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 2rem;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition);
}

.contact-item {
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    font-family: var(--font-code);
}

.contact-value {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-code);
    display: block;
}

.contact-value:hover {
    color: var(--cyan);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,157,0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    align-self: flex-start;
}

.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.6;
}

.footer-copyright {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-divider {
    color: var(--text-muted);
    margin: 0 0.3rem;
}

.footer-built {
    color: var(--text-secondary);
}

.footer-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-by-text {
    color: var(--text-muted);
}

.footer-author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-fast);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.footer-author-link:hover {
    color: var(--cyan);
    background: rgba(192,132,252,0.1);
    transform: translateY(-2px);
}

.footer-author-link i {
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.footer-social-link {
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

[dir="rtl"] .timeline {
    padding-inline-start: 2rem;
    padding-inline-end: 0;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .timeline-marker {
    left: auto;
    right: -2.5rem;
}

[dir="rtl"] .timeline-content:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .contact-item:hover {
    transform: translateX(-10px);
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image-wrapper {
        order: -1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .nav-controls {
        gap: 0.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem 1rem;
        border-top: 1px solid var(--border);
        transition: left var(--transition);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .code-line {
        white-space: nowrap;
    }
    
    .hero-title {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }
    
    .hero-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-number {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-wrap: wrap;
    }
    
    .section-line {
        width: 100%;
        margin-inline-start: 0;
        margin-top: 0.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .code-block {
        padding: 1.5rem;
        font-size: 0.8rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-category {
        padding: 2rem;
    }
    
    .category-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline {
        padding-inline-start: 1.5rem;
    }
    
    .timeline-item {
        padding-inline-start: 2rem;
        padding-bottom: 3rem;
    }
    
    .timeline-marker {
        left: -1.75rem;
        width: 14px;
        height: 14px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .timeline-achievements {
        padding: 1rem;
        gap: 0.6rem;
    }
    
    .achievement-item {
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-content {
        padding: 2rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
    
    .contact-form {
        gap: 1.5rem;
    }
    
    .form-input {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-text-wrapper {
        text-align: center;
    }
    
    .footer-text {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .footer-author {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .footer-social {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-image-container {
        width: 280px;
        height: 280px;
    }
    
    .floating-badge {
        display: none;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .badge-content {
        display: none;
    }
    
    .floating-badge {
        min-width: auto;
        padding: 0.8rem 1rem;
    }
    
    .floating-badge i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .nav-container {
        padding: 0.7rem 0.8rem;
    }
    
    .brand-logo {
        font-size: 1.2rem;
    }
    
    .nav-controls {
        gap: 0.5rem;
    }
    
    .theme-toggle {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-container {
        padding: 0 0.8rem;
    }
    
    .hero-name {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .name-prefix,
    .name-operator,
    .name-suffix {
        font-size: 0.9em;
    }
    
    .hero-title {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-container {
        padding: 0 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-number {
        font-size: 1rem;
    }
    
    .hero-image-container {
        width: 220px;
        height: 220px;
    }
    
    .profile-image-glow {
        width: 110%;
        height: 110%;
    }
    
    .about-stats {
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.75rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .skill-items {
        gap: 1.5rem;
    }
    
    .skill-name,
    .skill-percent {
        font-size: 0.9rem;
    }
    
    .timeline {
        padding-inline-start: 1rem;
    }
    
    .timeline-item {
        padding-inline-start: 1.5rem;
        padding-bottom: 2.5rem;
    }
    
    .timeline-marker {
        left: -1.25rem;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 1.2rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-company {
        font-size: 0.95rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-achievements {
        padding: 0.8rem;
        gap: 0.5rem;
    }
    
    .achievement-item {
        font-size: 0.85rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-label {
        font-size: 0.85rem;
    }
    
    .contact-value {
        font-size: 0.95rem;
    }
    
    .form-input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-author {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .footer-author-link {
        padding: 0.3rem 0.8rem;
    }
    
    .footer-social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .loader-code-text {
        font-size: 1rem;
    }
    
    .loader-spinner {
        width: 50px;
        height: 50px;
    }
    
    .loader-progress-wrapper {
        width: 180px;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .hero-name {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero-image-container {
        width: 180px;
        height: 180px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ================================
   PERIODIC TABLE EXPERIENCE SECTION
   ================================ */

.experience-section {
    position: relative;
}

.exp-grid-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 2rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.exp-grid-view.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.exp-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Periodic Table Grid - Full 18-column layout */
.periodic-table {
    display: grid;
    grid-template-columns: repeat(3, 160px);
    grid-gap: 20px;
    margin: 3rem auto;
    justify-content: center;
}

.periodic-table.full-table {
    grid-template-columns: repeat(18, minmax(58px, 1fr));
    grid-template-rows: repeat(5, 75px) 30px repeat(2, 75px);
    grid-gap: 6px;
    margin: 2rem auto;
    width: 100%;
    max-width: 1300px;
    padding: 1rem;
}

.periodic-element {
    position: relative;
    padding: 3px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.full-table .periodic-element {
    aspect-ratio: 1;
}

.periodic-element-inner {
    background: var(--bg-card);
    border-radius: 6px;
    padding: 0.5rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.full-table .periodic-element-inner {
    padding: 4px;
}

.periodic-element .exp-year {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-code);
}

.periodic-element .number {
    font-size: 9px;
    position: absolute;
    top: 7px;
    left: 9px;
    color: var(--text-muted);
    opacity: 0.6;
}

.periodic-element .title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0.3rem 0;
    background: linear-gradient(135deg, var(--el-color-1), var(--el-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.full-table .periodic-element .title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1;
}

.periodic-element .description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.full-table .periodic-element .description {
    font-size: 9px;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 4px;
}

.periodic-element .role {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.periodic-element:hover {
    transform: scale(1.15);
    z-index: 50;
}

.periodic-element:hover .periodic-element-inner {
    background: transparent;
    border-color: transparent;
}

.periodic-element:hover .title {
    -webkit-text-fill-color: var(--bg-dark);
}

.periodic-element:hover .description,
.periodic-element:hover .role,
.periodic-element:hover .exp-year,
.periodic-element:hover .number {
    color: var(--bg-dark);
}

/* Tooltip for skills */
.periodic-element[data-tooltip]:after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
    width: 180px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    pointer-events: none;
}

.periodic-element[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
    top: 110%;
}

.current-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* Series labels and spacer */
.series-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
}

.series-indicator {
    font-size: 16px;
    font-weight: 700;
}

.series-indicator.career {
    color: #f43f5e;
}

.series-indicator.projects {
    color: #d946ef;
}

.series-name {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.series-spacer {
    height: 25px;
}

/* Legend inside periodic table center gap */
.periodic-legend-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.periodic-legend-center .legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 2rem;
}

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

.periodic-legend-center .legend-marker {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.periodic-legend-center .legend-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Element Colors - 8 Categories */

/* Enterprise Systems - Blue */
.periodic-element.enterprise {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --el-color-1: #0ea5e9;
    --el-color-2: #38bdf8;
}

/* Network & Security - Green */
.periodic-element.network {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --el-color-1: #22c55e;
    --el-color-2: #4ade80;
}

/* AI & Automation - Purple */
.periodic-element.ai {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    --el-color-1: #a855f7;
    --el-color-2: #c084fc;
}

/* Data & Analytics - Cyan */
.periodic-element.data {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --el-color-1: #06b6d4;
    --el-color-2: #22d3ee;
}

/* Integration & APIs - Orange */
.periodic-element.integration {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --el-color-1: #f97316;
    --el-color-2: #fb923c;
}

/* Leadership & Process - Yellow */
.periodic-element.leadership {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    --el-color-1: #eab308;
    --el-color-2: #facc15;
}

/* Career Elements - Red/Rose */
.periodic-element.career {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --el-color-1: #f43f5e;
    --el-color-2: #fb7185;
}

/* Personal Projects - Pink/Fuchsia */
.periodic-element.projects {
    background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%);
    --el-color-1: #d946ef;
    --el-color-2: #e879f9;
}

/* Legacy colors for backward compatibility */
.periodic-element.engineering {
    background: linear-gradient(135deg, #37cfdc 0%, #5a88e5 100%);
    --el-color-1: #37cfdc;
    --el-color-2: #5a88e5;
}

.periodic-element.support {
    background: linear-gradient(135deg, #ff616d 0%, #ffc171 100%);
    --el-color-1: #ff616d;
    --el-color-2: #ffc171;
}

.periodic-element.admin {
    background: linear-gradient(135deg, #f3f9a6 0%, #cbc634 100%);
    --el-color-1: #f3f9a6;
    --el-color-2: #cbc634;
}

/* Legend */
.exp-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.exp-legend.full-legend {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.legend-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.full-legend .legend-item {
    gap: 0.4rem;
}

.full-legend .legend-text {
    font-size: 0.8rem;
}

.legend-marker {
    width: 20px;
    height: 20px;
}

.full-legend .legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-marker.enterprise {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.legend-marker.network {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.legend-marker.ai {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.legend-marker.data {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.legend-marker.integration {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.legend-marker.leadership {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.legend-marker.career {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.legend-marker.projects {
    background: linear-gradient(135deg, #d946ef, #c026d3);
}

/* Legacy */
.legend-marker.engineering {
    background: linear-gradient(135deg, #37cfdc, #5a88e5);
}

.legend-marker.support {
    background: linear-gradient(135deg, #ff616d, #ffc171);
}

.legend-marker.admin {
    background: linear-gradient(135deg, #f3f9a6, #cbc634);
}

.legend-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================================
   EXPERIENCE DETAIL VIEW (ZOOM)
   ================================ */

.exp-detail-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    padding: 2rem;
    overflow-y: auto;
}

.exp-detail-view.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    filter: blur(0);
}

.exp-back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 25;
}

.exp-back-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.exp-detail {
    display: none;
    width: 100%;
    max-width: 700px;
}

.exp-detail.active {
    display: block;
    animation: zoomIn 0.5s ease forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.exp-detail-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.exp-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.exp-detail-symbol {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.exp-detail-symbol.leadership {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.exp-detail-symbol.engineering {
    background: linear-gradient(135deg, #37cfdc, #5a88e5);
}

.exp-detail-symbol.support {
    background: linear-gradient(135deg, #ff616d, #ffc171);
}

.exp-detail-symbol.admin {
    background: linear-gradient(135deg, #f3f9a6, #cbc634);
}

.exp-detail-symbol.career {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.exp-detail-symbol.projects {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.exp-detail-info {
    flex: 1;
}

.exp-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.exp-detail-company,
.exp-detail-location,
.exp-detail-period {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.exp-detail-company i,
.exp-detail-location i,
.exp-detail-period i {
    color: var(--primary);
    width: 16px;
}

.exp-detail-body {
    color: var(--text-secondary);
}

.exp-detail-desc {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.exp-achievements,
.exp-tech-stack {
    margin-bottom: 1.5rem;
}

.exp-achievements h4,
.exp-tech-stack h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-achievements h4 i,
.exp-tech-stack h4 i {
    color: var(--accent);
}

.exp-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-achievements li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.exp-achievements li i {
    color: var(--green);
    font-size: 0.85rem;
}

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

.exp-tag {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-code);
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1400px) {
    .periodic-table.full-table {
        max-width: 98%;
        grid-template-rows: repeat(5, 65px) 25px repeat(2, 65px);
        grid-gap: 5px;
    }
    
    .full-table .periodic-element .title {
        font-size: 1.3rem;
    }
    
    .full-table .periodic-element .description {
        font-size: 8px;
    }
}

@media (max-width: 1200px) {
    .periodic-table.full-table {
        grid-template-rows: repeat(5, 55px) 20px repeat(2, 55px);
        grid-gap: 4px;
    }
    
    .full-table .periodic-element .title {
        font-size: 1.1rem;
    }
    
    .full-table .periodic-element .description {
        font-size: 7px;
    }
    
    .full-table .periodic-element .number {
        font-size: 7px;
    }
}

@media (max-width: 1000px) {
    .periodic-table.full-table {
        grid-template-rows: repeat(5, 48px) 18px repeat(2, 48px);
        grid-gap: 3px;
    }
    
    .full-table .periodic-element .title {
        font-size: 0.95rem;
    }
    
    .full-table .periodic-element .description {
        font-size: 6px;
    }
    
    .series-name {
        font-size: 10px;
    }
    
    .legend-row {
        gap: 0.75rem;
    }
    
    .full-legend .legend-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 850px) {
    .periodic-table.full-table {
        grid-template-rows: repeat(5, 40px) 15px repeat(2, 40px);
    }
    
    .full-table .periodic-element .title {
        font-size: 0.8rem;
    }
    
    .full-table .periodic-element .description {
        display: none;
    }
    
    .full-table .periodic-element .number {
        font-size: 6px;
        top: 4px;
        left: 5px;
    }
}

@media (max-width: 768px) {
    .periodic-table {
        grid-template-columns: repeat(2, 140px);
        grid-gap: 15px;
    }
    
    .periodic-table.full-table {
        grid-template-rows: repeat(5, 30px) 10px repeat(2, 30px);
    }
    
    .periodic-element .title {
        font-size: 2rem;
    }
    
    .full-table .periodic-element .title {
        font-size: 0.6rem;
    }
    
    .exp-legend {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .exp-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .exp-detail-company,
    .exp-detail-location,
    .exp-detail-period {
        justify-content: center;
    }
    
    .exp-back-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .periodic-table {
        grid-template-columns: repeat(1, 160px);
    }
}

/* ================================
   PROJECTS REEL SECTION
   ================================ */

.projects-reel-section {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}

.projects-reel-header {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.projects-reel-header .section-number {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    font-family: var(--font-code);
    margin-bottom: 0.5rem;
}

.projects-reel-header .section-title {
    font-size: 2rem;
}

.projects-reel-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

@media (max-width: 768px) {
    .projects-reel-header .section-title {
        font-size: 1.5rem;
    }
    
    .projects-reel-header {
        top: 1rem;
    }
    
    .reel-modal {
        width: 95vw;
        max-height: 85vh;
        border-radius: 16px;
    }
    
    .reel-modal-content {
        padding: 0 15px 15px;
        max-height: calc(85vh - 40px);
    }
    
    .modal-skills-circles {
        gap: 15px;
    }
    
    .modal-skill-circle {
        width: 60px;
        height: 60px;
    }
    
    .modal-circle-progress {
        width: 60px;
        height: 60px;
    }
    
    .modal-skill-label {
        font-size: 9px;
    }
    
    .modal-role-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .projects-reel-section {
        min-height: 300px;
    }
    
    .reel-modal {
        width: 98vw;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .modal-skills-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-skills-circles {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==================== Reel Modal ==================== */
.reel-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.reel-modal-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.reel-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    background: #0d0d0d;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(139, 92, 246, 0.2);
    overflow: hidden;
}

.reel-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.reel-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.reel-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.reel-modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 14px auto;
}

.reel-modal-content {
    padding: 0 20px 20px;
    max-height: calc(80vh - 40px);
    overflow-y: auto;
}

.reel-modal-content::-webkit-scrollbar {
    width: 6px;
}

.reel-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.reel-modal-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

/* Skills Report Section */
.modal-skills-report {
    margin-bottom: 20px;
}

.modal-skills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-skills-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.modal-type-badge {
    background: rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.5);
    padding: 5px 12px;
    border-radius: 15px;
    color: #a78bfa;
    font-size: 11px;
    font-weight: 600;
}

.modal-skills-circles {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-skill-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.modal-circle-progress {
    position: relative;
    width: 60px;
    height: 60px;
}

.modal-circle-progress svg {
    transform: rotate(-90deg);
    width: 60px;
    height: 60px;
}

.modal-circle-progress .bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.modal-circle-progress .progress {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

.modal-circle-progress .value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.modal-skill-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Role Summary Section */
.modal-role-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.modal-role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-role-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.modal-role-period {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.modal-role-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-role-item:last-child {
    border-bottom: none;
}

.modal-role-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.modal-role-icon.orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.modal-role-icon.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.modal-role-icon.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.modal-role-icon.purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }

.modal-role-info-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.modal-role-info-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Visitor Counter */
.visitor-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    text-align: center;
}

.counter-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

/* Visitor Counter Responsive */
@media (max-width: 768px) {
    .visitor-counter {
        margin-top: 25px;
    }
    
    .counter-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .counter-label {
        font-size: 10px;
    }
    
    .counter-value {
        font-size: 22px;
    }
}

/* ============================================================
   MERGED PORTFOLIO TAB  (About + Experience + Projects)
   Modern timeline + project grid — purple theme
   ============================================================ */

.xp-merged { padding-bottom: 5rem; }

/* sub-section headers within the merged tab */
.xp-section-header { flex-wrap: wrap; margin-top: 5.5rem; margin-bottom: 2.5rem; }
.xp-subtitle {
    flex-basis: 100%;
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.95rem;
}

/* details used to be click-to-reveal — now always shown as cards */
.xp-merged .exp-detail {
    display: block;
    width: 100%;
    max-width: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    animation: none;
}

/* modern glass card */
.xp-merged .exp-detail-content {
    background: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.9rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.xp-merged .exp-detail-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45), var(--shadow-glow);
}

/* compact badge + header inside merged tab */
.xp-merged .exp-detail-symbol { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 14px; }
.xp-merged .exp-detail-header { gap: 1.1rem; margin-bottom: 1.4rem; padding-bottom: 1.1rem; }
.xp-merged .exp-detail-title { font-size: 1.25rem; }
.xp-merged .exp-detail-desc { font-size: 0.95rem; }

/* ===== EXPERIENCE — vertical timeline ===== */
.xp-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-left: 2.75rem;
}
.xp-timeline::before {
    content: '';
    position: absolute;
    left: 0.55rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary) 60%, transparent);
    opacity: 0.55;
}
.xp-timeline .exp-detail { position: relative; }
.xp-timeline .exp-detail::before {
    content: '';
    position: absolute;
    left: -2.8rem;
    top: 1.7rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.18);
    z-index: 1;
}

/* ===== PROJECTS — responsive card grid ===== */
.xp-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}
.xp-projects .exp-detail { max-width: none; }

/* responsive */
@media (max-width: 768px) {
    .xp-timeline { padding-left: 2rem; }
    .xp-timeline .exp-detail::before { left: -2.05rem; }
    .xp-projects { grid-template-columns: 1fr; }
    .xp-section-header { margin-top: 4rem; }
}

/* ============================================================
   MAGIC BENTO  — interactive card effects (magicbento.js)
   spotlight + proximity border-glow + particles + click ripple
   ============================================================ */

.bento-section { position: relative; }

.magic-bento-card--border-glow {
    position: relative;
    overflow: hidden;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 320px;
}

/* glowing border ring that follows the cursor (masked to the border only) */
.magic-bento-card--border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: radial-gradient(
        var(--glow-radius) circle at var(--glow-x) var(--glow-y),
        rgba(168, 85, 247, calc(var(--glow-intensity) * 0.85)) 0%,
        rgba(168, 85, 247, calc(var(--glow-intensity) * 0.4)) 30%,
        transparent 60%
    );
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.magic-bento-card--border-glow:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(168, 85, 247, 0.28);
}

/* hover particles */
.mb-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 1);
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
    pointer-events: none;
    z-index: 3;
    animation: mb-particle-float 3s ease-in-out infinite alternate,
               mb-particle-pulse 1.5s ease-in-out infinite;
}
@keyframes mb-particle-float {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(var(--pdx, 20px), var(--pdy, -20px)); }
}
@keyframes mb-particle-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* click ripple */
.mb-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
    animation: mb-ripple 0.8s ease-out forwards;
}
@keyframes mb-ripple {
    from { transform: scale(0); opacity: 1; }
    to   { transform: scale(1); opacity: 0; }
}

/* global cursor spotlight */
.global-spotlight {
    mix-blend-mode: screen;
    will-change: transform, opacity;
    pointer-events: none;
}

/* ============================================================
   TARGET CURSOR — spinning crosshair (target-cursor.js + GSAP)
   ============================================================ */

/* hide the native cursor everywhere while the custom cursor is active */
.target-cursor-active,
.target-cursor-active * { cursor: none !important; }

.target-cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.target-cursor-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #c084fc;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.target-cursor-corner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 3px solid #c084fc;
    will-change: transform;
}

.corner-tl { transform: translate(-150%, -150%); border-right: none; border-bottom: none; }
.corner-tr { transform: translate(50%, -150%);   border-left: none;  border-bottom: none; }
.corner-br { transform: translate(50%, 50%);      border-left: none;  border-top: none; }
.corner-bl { transform: translate(-150%, 50%);    border-right: none; border-top: none; }

/* ============================================================
   ADMIN LOGIN button in the nav (persistent on every section)
   ============================================================ */
.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.6rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.nav-login:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(192, 132, 252, 0.08);
}
.nav-login i { font-size: 0.8rem; }

@media (max-width: 560px) {
    .nav-login-text { display: none; }   /* icon-only on small screens */
    .nav-login { padding: 0.45rem 0.6rem; }
}

/* ============================================================
   NG monogram logo (replaces <itguru/> wordmark)
   ============================================================ */
.logo-ng {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.06em 0.34em;
    border-radius: 0.4em;
    position: relative;
    background: rgba(192, 132, 252, 0.10);
    line-height: 1;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
/* glowing gradient border ring */
.logo-ng::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.4em;
    padding: 1.5px;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.8;
    pointer-events: none;
}
.logo-ng-text {
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-logo:hover .logo-ng {
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.45);
    transform: translateY(-1px);
}

/* ============================================================
   ABOUT extras — Certifications (left) + Tools (right)
   ============================================================ */
.about-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3.5rem;
}
.extras-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1.1rem; margin-bottom: 1.25rem; color: var(--text-primary);
}
.extras-title i { color: var(--primary); }

.cert-list { display: flex; flex-direction: column; gap: 0.7rem; }
.cert-item {
    display: flex; align-items: center; gap: 0.85rem;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid var(--border); border-radius: 12px;
    padding: 0.7rem 1rem;
    transition: border-color 0.2s ease, transform 0.15s ease;
}
.cert-item:hover { border-color: var(--primary); transform: translateX(3px); }
.cert-ico { color: var(--accent); font-size: 1rem; flex-shrink: 0; }
.cert-info { display: flex; flex-direction: column; min-width: 0; }
.cert-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.cert-meta { font-size: 0.76rem; color: var(--text-muted); font-family: var(--font-code); }

.tool-groups { display: flex; flex-direction: column; gap: 1.1rem; }
.tool-cat {
    display: block; font-family: var(--font-code); font-size: 0.74rem;
    color: var(--text-muted); margin-bottom: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.tool-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tool-tag {
    font-size: 0.8rem; padding: 0.3rem 0.7rem; border-radius: 7px;
    background: rgba(192, 132, 252, 0.08);
    border: 1px solid var(--border); color: var(--text-secondary);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.tool-tag:hover { border-color: var(--primary); color: var(--primary); background: rgba(192, 132, 252, 0.14); }

@media (max-width: 820px) {
    .about-extras { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   PROJECTS — personal/work groups + GitHub link / internal badge
   ============================================================ */
.xp-proj-label {
    font-family: var(--font-code);
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 2.5rem 0 1.25rem;
    display: flex; align-items: center; gap: 0.55rem;
}
.xp-proj-label:first-child { margin-top: 0; }
.xp-proj-label i { color: var(--primary); }
.proj-foot { margin-top: 1rem; }
.proj-link {
    font-size: 0.82rem; color: var(--primary); text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600;
    transition: opacity 0.2s ease;
}
.proj-link:hover { text-decoration: underline; }
.proj-internal {
    font-size: 0.78rem; color: var(--text-muted);
    display: inline-flex; align-items: center; gap: 0.45rem;
}

/* ============================================================
   HERO TYPEWRITER — hide greeting + code until JS types them
   ============================================================ */
.hero-content.tw-init .hero-greeting .greeting-text,
.hero-content.tw-init #heroName .code-line span {
    opacity: 0;
}
