:root {
    /* === FUTURISTIC DARK THEME === */
    /* Primary Accent: Electric Cyan/Teal */
    --primary: #00d4ff;
    --primary-dim: #0099cc;
    --primary-glow: rgba(0, 212, 255, 0.15);
    
    /* Secondary Accent: Soft Violet */
    --secondary: #a855f7;
    --secondary-dim: #7c3aed;
    --secondary-glow: rgba(168, 85, 247, 0.15);
    
    /* Tertiary Accent: Lime for highlights */
    --accent: #84cc16;
    --accent-glow: rgba(132, 204, 22, 0.15);
    
    /* Legacy color mappings */
    --cyan: #00d4ff;
    --purple: #a855f7;
    --green: #84cc16;
    
    /* Backgrounds: Deep Charcoal (not pure black) */
    --bg-dark: #0d1117;
    --bg-darker: #010409;
    --bg-card: #161b22;
    --bg-card-hover: #1c2128;
    --bg-hover: #21262d;
    --bg-elevated: #1a1f26;
    
    /* Borders: Subtle graphite */
    --border: #30363d;
    --border-light: #21262d;
    --border-accent: rgba(0, 212, 255, 0.3);
    
    /* Text: Off-white for readability */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-accent: #00d4ff;
    
    /* Gradients: Subtle and minimal */
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #a855f7 0%, #00d4ff 100%);
    --gradient-3: linear-gradient(135deg, #00d4ff 0%, #84cc16 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
    --gradient-card: linear-gradient(180deg, rgba(22, 27, 34, 0.8) 0%, rgba(13, 17, 23, 0.9) 100%);
    
    /* Shadows: Minimal, no heavy shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.2);
    --shadow-glow-secondary: 0 0 20px rgba(168, 85, 247, 0.2);
    
    /* Glassmorphism */
    --glass-bg: rgba(22, 27, 34, 0.7);
    --glass-border: rgba(48, 54, 61, 0.5);
    --glass-blur: blur(12px);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions: Smooth micro-interactions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Typography */
    --font-primary: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-code: 'Fira Code', 'Consolas', monospace;
}

[data-theme="light"] {
    --bg-dark: #f6f8fa;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f3f4f6;
    --border: #d0d7de;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --text-muted: #8b949e;
    --glass-bg: rgba(255, 255, 255, 0.8);
}

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1400px;
    background: rgba(17, 25, 35, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
}

.main-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%
    );
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.main-header.scrolled {
    top: 0.75rem;
    width: calc(100% - 2rem);
    background: rgba(17, 25, 35, 0.85);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header.nav-hidden {
    transform: translateX(-50%) translateY(-150%);
}

.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;
    transition: all var(--transition);
}

.brand-logo:hover {
    text-shadow: 0 0 20px var(--primary-glow);
}

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

.logo-text {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.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(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

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

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

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

.lang-toggle,
.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;
}

.lang-toggle:hover,
.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);
}

.main-content {
    margin-top: 80px;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.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.1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.greeting-cursor {
    animation: blink 0.8s infinite;
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

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

.hero-name {
    font-family: var(--font-code);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

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

.name-value {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -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.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-darker);
    border-color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow), 0 4px 15px rgba(0, 0, 0, 0.3);
    background: var(--primary-dim);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow);
}

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

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

.social-icon:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--primary-glow);
}

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

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

.profile-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    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(255,107,157,0.3),
        0 0 60px rgba(255,107,157,0.1);
    overflow: hidden;
    background: var(--bg-card);
}

.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.15;
}

.floating-badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: floatBadge 4s ease-in-out infinite;
    min-width: 180px;
    transition: all var(--transition-smooth);
}

.floating-badge:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--border-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 25px var(--primary-glow);
}

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

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

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

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

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

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

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

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

.section {
    padding: 4rem 0;
    position: relative;
    scroll-margin-top: 80px;
}

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

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

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

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

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

.title-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin-inline-start: 2rem;
}

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

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

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

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

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

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

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

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

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

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

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

.code-keyword { color: var(--secondary); }
.code-variable { color: var(--primary); }
.code-operator { color: var(--text-muted); }
.code-brace,
.code-bracket { color: var(--accent); }
.code-property { color: var(--primary); }
.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: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-smooth);
}

.skill-category:hover {
    border-color: var(--border-accent);
}

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

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

.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(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

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

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

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0%;
    position: relative;
    box-shadow: 0 0 12px var(--primary-glow);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2.5s 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: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

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

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

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

.timeline-content:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.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.4rem;
}

.tag {
    background: var(--bg-darker);
    color: var(--primary);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-code);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.tag:hover {
    border-color: var(--border-accent);
    background: var(--primary-glow);
}

/* Projects Carousel */
.projects-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.projects-swiper {
    overflow: hidden;
    padding: 20px 0 60px;
}

.projects-swiper .swiper-slide {
    height: auto;
    transition: all 0.4s ease;
}

.projects-swiper .swiper-slide-active {
    transform: scale(1.02);
}

.projects-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.6;
}

/* Swiper Navigation */
.projects-swiper .swiper-button-prev,
.projects-swiper .swiper-button-next {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--primary);
    transition: all var(--transition);
}

.projects-swiper .swiper-button-prev::after,
.projects-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

.projects-swiper .swiper-button-prev:hover,
.projects-swiper .swiper-button-next:hover {
    background: var(--primary);
    color: var(--bg-darker);
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: scale(1.1);
}

.projects-swiper .swiper-button-prev {
    left: 0;
}

.projects-swiper .swiper-button-next {
    right: 0;
}

/* Swiper Pagination */
.projects-swiper .swiper-pagination {
    bottom: 0;
}

.projects-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--border);
    opacity: 1;
    transition: all var(--transition);
}

.projects-swiper .swiper-pagination-bullet-active {
    width: 35px;
    border-radius: 6px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

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

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

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 40px var(--primary-glow);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 4, 9, 0.85);
    backdrop-filter: blur(4px);
    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: 1.5rem;
}

.project-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--bg-darker);
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition);
    font-weight: 600;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--primary-glow);
}

.project-content {
    padding: 1.75rem;
}

.project-title {
    font-family: var(--font-code);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.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: 1.5rem;
}

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

.contact-item:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 10px;
    color: var(--bg-darker);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    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 var(--primary-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

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

.main-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 2.5rem 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.6rem;
}

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

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

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

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

.footer-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    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: 600;
    transition: all var(--transition-fast);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.footer-author-link:hover {
    color: var(--text-primary);
    background: var(--primary-glow);
    transform: translateY(-2px);
}

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

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

.footer-social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-darker);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s 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) {
    .main-header {
        width: calc(100% - 2rem);
        top: 0.5rem;
        border-radius: 16px;
    }
    
    .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 1.5rem;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .hero-name {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        align-items: center;
        width: 100%;
    }
    
    .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 1.5rem;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 2rem;
        justify-content: center;
        text-align: center;
    }
    
    .section-number {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-wrap: wrap;
        text-align: center;
    }
    
    .section-line {
        width: 100%;
        margin-inline-start: 0;
        margin-top: 0.5rem;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-text p {
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .code-block {
        padding: 1.5rem;
        font-size: 0.8rem;
        overflow-x: auto;
    }
    
    .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;
    }
    
    .projects-carousel-wrapper {
        padding: 0 10px;
    }
    
    .projects-swiper .swiper-button-prev,
    .projects-swiper .swiper-button-next {
        display: none;
    }
    
    .projects-swiper .swiper-slide {
        width: 95% !important;
    }
    
    .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;
    }
    
    .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;
    }
    
    .main-header {
        width: calc(100% - 1.5rem);
        top: 0.5rem;
        border-radius: 14px;
    }
    
    .nav-container {
        padding: 0.7rem 0.8rem;
    }
    
    .brand-logo {
        font-size: 1.2rem;
    }
    
    .nav-controls {
        gap: 0.5rem;
    }
    
    .lang-toggle,
    .theme-toggle {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-container {
        padding: 0 1.2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .hero-name {
        font-size: 1.8rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .name-prefix,
    .name-operator,
    .name-suffix {
        font-size: 0.9em;
    }
    
    .hero-title {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .section-container {
        padding: 0 1.2rem;
    }
    
    .section-header {
        justify-content: center;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .section-number {
        font-size: 1rem;
    }
    
    .hero-image-container {
        width: 220px;
        height: 220px;
    }
    
    .profile-image-glow {
        width: 110%;
        height: 110%;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-text p {
        text-align: center;
    }
    
    .about-stats {
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 1.2rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.75rem;
        overflow-x: auto;
    }
    
    .skill-category {
        padding: 1.5rem;
        text-align: center;
    }
    
    .category-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .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;
    }
    
    .projects-carousel-wrapper {
        padding: 0 5px;
    }
    
    .projects-swiper .swiper-slide {
        width: 98% !important;
    }
    
    .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;
    }
    
    .main-header {
        width: calc(100% - 1rem);
        top: 0.25rem;
        border-radius: 12px;
    }
    
    .hero-container {
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .hero-name {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .section-header {
        justify-content: center;
        text-align: center;
    }
    
    .hero-image-container {
        width: 180px;
        height: 180px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .about-content {
        text-align: center;
    }
    
    .contact-content {
        text-align: center;
    }
    
    .contact-item {
        text-align: center;
    }
}
