:root {
    --primary: #0a0a0a;
    --secondary: #0a0a0a;
    --accent: #0a0a0a;
    --cyan: #0a0a0a;
    --purple: #0a0a0a;
    --green: #0a0a0a;
    --bg-dark: #fafafa;
    --bg-darker: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --border: #e5e5e5;
    --text-primary: #1f2937;
    --text-secondary: #6b6b6b;
    --text-muted: #9ca3af;
    --gradient-1: #0a0a0a;
    --gradient-2: #0a0a0a;
    --gradient-3: #0a0a0a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 24px 56px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08), 0 24px 56px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12), 0 48px 80px rgba(0, 0, 0, 0.15);
    --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', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    --font-code: 'Fira Code', ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Monaco, monospace;
}

[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-darker: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --border: #e5e5e5;
    --text-primary: #1f2937;
    --text-secondary: #6b6b6b;
    --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 {
    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(--primary);
    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;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1rem 1rem 0;
}

.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
}

.logo {
    grid-column: 1;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-decoration: none;
    color: var(--text);
}

.nav-links {
    grid-column: 2;
    justify-self: center;
    display: none;
    gap: 2rem;
}

@media (min-width: 1280px) {
    .nav-links { display: flex; }
}

.nav-links a {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.3s ease;
}

.nav-links a:hover { opacity: 0.6; }

.nav-buttons {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-resume {
    display: none;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-resume:hover { background: rgba(0,0,0,0.05); }

.btn-talk {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: var(--dark);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-talk:hover { transform: translateY(-4px); }

.hamburger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (min-width: 1280px) {
    .hamburger { display: none; }
    .btn-resume { display: block; }
}

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

.logo {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.95rem;
    box-shadow:
        0 0 0 1px rgba(17, 24, 39, 0.04),
        0 0 10px rgba(17, 24, 39, 0.12),
        var(--shadow-sm);
    animation: brandGlow 3.2s ease-in-out infinite;
    isolation: isolate;
}

.brand-mark::after {
    content: '';
    position: absolute;
    inset: -0.35rem;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.14) 0%, rgba(17, 24, 39, 0.04) 35%, transparent 72%);
    filter: blur(6px);
    opacity: 0.55;
    z-index: -1;
    animation: brandHalo 3.2s ease-in-out infinite;
}

.brand-mark i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(17, 24, 39, 0.16));
}

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

.brand-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    padding-inline-start: 0.15rem;
}

@keyframes brandGlow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(17, 24, 39, 0.04),
            0 0 10px rgba(17, 24, 39, 0.12),
            var(--shadow-sm);
        transform: translateY(0);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(17, 24, 39, 0.08),
            0 0 16px rgba(17, 24, 39, 0.20),
            var(--shadow-sm);
        transform: translateY(-0.5px);
    }
}

@keyframes brandHalo {
    0%, 100% {
        opacity: 0.40;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.68;
        transform: scale(1.02);
    }
}

.nav-links {
    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);
}

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

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

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

.lang-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 {
    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;
    background: var(--bg-dark);
}

.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;
    will-change: transform;
}

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

@media (max-width: 768px) {
    .hero-background::before {
        animation-duration: 30s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background::before {
        animation: none;
    }
}

.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;
    will-change: transform, opacity;
}

@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;
    }
}

@media (max-width: 768px) {
    .particle {
        animation: float 20s infinite ease-in-out;
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle {
        animation: none;
        opacity: 0.05;
    }
}

.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: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

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

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

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

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

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

.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(--primary);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.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: var(--shadow-md);
}

.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(10, 10, 10, 0.1) 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.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

/* Mobile & Accessibility Optimizations */
@media (prefers-reduced-motion: reduce) {
    .profile-image-glow {
        animation: none;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .profile-image-glow {
        animation: pulse 4s ease-in-out infinite;
    }
    
    .profile-image-frame {
        box-shadow: 0 0 20px rgba(10, 10, 10, 0.15),
                    0 0 40px rgba(10, 10, 10, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-image-glow {
        animation: none;
        opacity: 0.3;
    }
}

.profile-image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 
        0 0 30px rgba(10, 10, 10, 0.15),
        0 0 60px rgba(10, 10, 10, 0.08);
    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;
}

@media (max-width: 768px) {
    .floating-badge {
        animation: floatBadge 4s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-image-glow {
        animation: none;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .profile-image-glow {
        animation: pulse 4s ease-in-out infinite;
    }
    
    .profile-image-frame {
        box-shadow: 0 0 20px rgba(10, 10, 10, 0.15),
                    0 0 40px rgba(10, 10, 10, 0.08);
    }
}
}

@media (prefers-reduced-motion: reduce) {
    .floating-badge {
        animation: none;
        transform: translateY(0);
    }
}

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

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.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);
    will-change: transform;
}

@media (max-width: 768px) {
    .floating-badge {
        animation: floatBadge 4s ease-in-out infinite;
        min-width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .floating-badge i {
        font-size: 1.5rem;
    }
    
    .badge-title {
        font-size: 0.9rem;
    }
    
    .badge-libs {
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-badge {
        animation: none;
        transform: translateY(0);
    }
}

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

.floating-badge:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

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

@media (max-width: 779px) {
    .badge-1 {
        top: 97%;
        left: 40px;
        right: auto;
        bottom: auto;
    }
    
    .badge-2 {
        top: 20%;
        right: -70px;
        left: auto;
        bottom: auto;
    }
    
    .badge-3 {
        bottom: 90px;
        right: 140px;
        left: auto;
        top: auto;
    }
}

@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 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;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 3.25rem;
    text-align: center;
}

.section-number {
    display: none;
}

.section-title {
    font-family: var(--font-code);
    font-size: 2.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: block;
    line-height: 1.15;
}

.title-bracket {
    display: none;
}

.title-text {
    color: var(--primary);
    font-weight: 800;
}

.section-line {
    display: none;
}

.trusted-by-section {
    padding-top: 1rem;
}

.trusted-by-shell {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.03), rgba(10, 10, 10, 0));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.trusted-by-marquee {
    position: relative;
    overflow: hidden;
}

.trusted-by-marquee::before,
.trusted-by-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 1;
    pointer-events: none;
}

.trusted-by-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark), rgba(255, 255, 255, 0));
}

.trusted-by-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-dark), rgba(255, 255, 255, 0));
}

.trusted-by-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: trustedScroll 24s linear infinite;
}

.trusted-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 78px;
    padding: 0.85rem 1.15rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    flex: 0 0 auto;
}

.trusted-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.92;
    transition: transform var(--transition-fast), filter var(--transition-fast), opacity var(--transition-fast);
}

.trusted-logo-card:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.03);
}

.trusted-logo-card.logo-broken {
    background: var(--bg-darker);
}

.trusted-logo-card.logo-broken img {
    display: none;
}

.trusted-logo-card.logo-broken::after {
    content: attr(data-name);
    color: var(--text-primary);
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-align: center;
}

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

.services-section {
    padding-top: 1rem;
}

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

.service-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.service-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.service-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--bg-darker);
    color: var(--primary);
    font-size: 1.35rem;
}

.service-feature-title {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.service-feature-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    min-height: 5.1em;
}

.service-feature-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    min-height: 1.6em;
}

.service-feature-points li {
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 0.85rem;
    padding: 0;
    background: none;
    border: none;
}

.service-request-btn {
    width: fit-content;
    min-width: 170px;
    margin-top: auto;
    padding-top: 1.25rem;
    align-self: center;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    padding-inline: 1rem;
    padding-block: 0.65rem;
    border-radius: 999px;
}

.about-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

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

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

.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;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.skill-group {
    cursor: pointer;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.skill-name {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.skill-percent {
    font-size: 1rem;
    font-weight: 900;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.skill-group:hover .skill-percent {
    opacity: 1;
}

.skill-bar {
    height: 2px;
    background: rgba(0,0,0,0.1);
    width: 100%;
}

.skill-fill {
    height: 100%;
    background: var(--text-primary);
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.code-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.code-window-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.code-window-controls .filename {
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-code);
    font-size: 12px;
    letter-spacing: 0.05em;
}

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

.window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.window-control.red {
    background: #ff5f57;
}

.window-control.yellow {
    background: #ffbd2e;
}

.window-control.green {
    background: #28ca42;
}

.code-block {
    background: var(--primary);
    border: 1px solid var(--primary);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 2.5rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.7;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

@supports not (backdrop-filter: blur(10px)) {
.code-block {
    background: var(--primary);
    color: #d4d4d4;
    border: 1px solid var(--primary);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 2.5rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.7;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.code-line {
    margin: 0.4rem 0;
    position: relative;
    color: #d4d4d4;
}

.code-line.indent {
    padding-inline-start: 1.5rem;
    border-left: 2px solid var(--border);
    margin-left: 0.5rem;
}

.code-line.indent-2 {
    padding-inline-start: 3rem;
    border-left: 2px solid var(--border);
    margin-left: 0.5rem;
}

.code-keyword,
.code-variable,
.code-operator,
.code-brace,
.code-bracket,
.code-property {
    color: #ffffff;
    font-weight: 600;
}

.code-string {
    color: #c0c0c0;
    font-style: normal;
}

.code-comma,
.code-semicolon {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.code-block {
    color: #d4d4d4;
}

.code-block .code-keyword { color: #ffffff; font-weight: 600; }
.code-block .code-variable { color: #ffffff; font-weight: 600; }
.code-block .code-operator { color: #ffffff; font-weight: 500; }
.code-block .code-brace,
.code-block .code-bracket { color: #ffffff; font-weight: 600; }
.code-block .code-property { color: #ffffff; font-weight: 500; }
.code-block .code-string { color: #c0c0c0; }
.code-block .code-comma,
.code-block .code-semicolon { color: rgba(255, 255, 255, 0.4); }

.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(--primary);
    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(--primary);
    border-radius: 6px;
    width: 0%;
    position: relative;
    box-shadow: 0 0 10px rgba(10, 10, 10, 0.2);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.1), 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(--primary);
}

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

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.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(--primary);
    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(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-company {
    color: var(--primary);
    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(--primary);
    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-carousel-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.projects-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    cursor: grab;
}

.projects-carousel:active {
    cursor: grabbing;
}

.projects-carousel::-webkit-scrollbar {
    height: 6px;
}

.projects-carousel::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 10px;
}

.projects-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    opacity: 0.5;
}

.projects-carousel::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.1rem;
    transition: all var(--transition);
    flex-shrink: 0;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--bg-darker);
    transform: scale(1.1);
}

.carousel-prev {
    order: -1;
}

.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;
    min-width: 350px;
    scroll-snap-align: start;
}

.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;
    background: var(--bg-darker);
    object-fit: cover;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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: var(--shadow-md);
}

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

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.dashboard-auth-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-status i {
    color: var(--success);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.dashboard-section-header {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 3rem;
    text-align: center;
}

.dashboard-header-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1 1 100%;
    text-align: center;
}

.dashboard-section-header #logoutBtn,
.dashboard-section-header #exportBtn,
.dashboard-section-header #importBtn {
    margin-inline: 0.25rem;
}

#logoutBtn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

#logoutBtn i {
    font-size: 1rem;
}

.dashboard-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.dashboard-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    border-bottom: 2px solid transparent;
}

.dashboard-tab:hover {
    color: var(--primary);
}

.dashboard-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .projects-carousel-container {
        gap: 1rem;
    }
    
    .project-card {
        min-width: 280px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
}

.dashboard-form-panel,
.dashboard-list-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

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

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

.dashboard-form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.dashboard-list {
    display: grid;
    gap: 1.5rem;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-card-content {
    padding: 2rem;
}

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

.dashboard-card-header h4 {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-code);
    white-space: nowrap;
}

.dashboard-card-header span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dashboard-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.dashboard-card-link,
.project-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--primary);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.dashboard-card-link:hover,
.project-link-inline:hover {
    background: var(--primary);
    color: white;
}

.dashboard-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem 2rem 2rem;
    background: var(--bg-card);
}

.empty-message {
    color: var(--text-secondary);
    padding: 2rem;
    background: var(--bg-darker);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-dark);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    font-family: var(--font-code);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

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

.logo-text {
    color: var(--primary);
    font-weight: 800;
}

.login-title {
    font-family: var(--font-code);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.form-label {
    font-family: var(--font-code);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.btn-login {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.login-back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.login-back-link:hover {
    color: var(--primary);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

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

.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: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    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(--primary);
}

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

.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(10, 10, 10, 0.1);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0a0a0a;
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: all var(--transition);
}

.form-checkbox:hover {
    border-color: var(--primary);
}

.form-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    user-select: none;
    transition: color var(--transition);
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.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(--primary);
    background: var(--bg-hover);
    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: 3rem;
    }

    .code-block-header {
        padding: 0.5rem 1rem;
    }

    .code-block {
        padding: 2rem;
        font-size: 0.8rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .code-line.indent {
        padding-inline-start: 1rem;
        margin-left: 0.25rem;
    }

    .code-line.indent-2 {
        padding-inline-start: 2rem;
        margin-left: 0.25rem;
    }
    
    .dashboard-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .nav-inner {
        padding: 0.5rem 1rem;
        grid-template-columns: 1fr auto;
    }
    
    .nav-brand {
        grid-column: 1;
    }
    
    .nav-buttons {
        grid-column: 2;
        gap: 0.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        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 - 70px);
        overflow-y: auto;
        grid-column: 1 / -1;
        justify-self: stretch;
        gap: 0.5rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .btn-resume {
        display: none;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .trusted-by-shell {
        padding: 1.25rem 1rem;
    }

    .trusted-by-marquee::before,
    .trusted-by-marquee::after {
        width: 48px;
    }

    .trusted-logo-card {
        width: 150px;
        height: 70px;
        padding: 0.7rem 0.95rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-feature-card {
        padding: 1.5rem;
    }
    
    .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 {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .section-number {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.15;
    }
    
    .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;
    }

    .dashboard-panel {
        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;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .floating-badge {
        display: flex;
        min-width: auto;
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
        position: absolute;
        gap: 0.7rem;
    }
    
    .floating-badge i {
        font-size: 1.3rem;
    }
    
    .badge-content {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .badge-title {
        font-size: 0.8rem;
    }
    
    .badge-libs {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .nav-inner {
        padding: 0.7rem 0.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-buttons {
        gap: 0.5rem;
    }
    
    .lang-toggle {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-container {
        padding: 0 0.8rem;
    }
    
    .hero-name {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .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;
    }

    .trusted-by-track {
        gap: 0.75rem;
        animation-duration: 18s;
    }
    
    .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;
    }

    .service-feature-card {
        padding: 1.25rem;
    }
    
    .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;
    }

    .trusted-by-marquee::before,
    .trusted-by-marquee::after {
        width: 32px;
    }

    .trusted-logo-card {
        width: 132px;
        height: 62px;
        padding: 0.6rem 0.8rem;
    }
}

@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;
    }
}

.section-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    opacity: 0.35;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.section-desc {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 32rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.bento-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,0,0,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.bento-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bento-desc {
    font-size: 0.875rem;
    opacity: 0.6;
    line-height: 1.6;
    color: var(--text-primary);
}

.skills-marquee-wrapper {
    margin-top: 3rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills-marquee {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skills-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: skillsScroll 40s linear infinite;
}

.skills-track:hover {
    animation-play-state: paused;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.skill-chip svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.skill-chip:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

@media (prefers-reduced-motion: reduce) {
    .skills-track {
        animation: none;
    }
}
