@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* CSS Variables - Design System */
:root {
    /* Terminal Theme Colors */
    --bg-dark: #0d1117;
    --bg-darker: #010409;
    --text-primary: #00ff41;
    --text-secondary: #c9d1d9;
    --text-dim: #7d8590;
    --accent: #00ff41;
    --border: #21262d;
    
    /* Light Theme Colors */
    --bg-light: #f6f8fa;
    --text-light: #24292f;
    --border-light: #d0d7de;
    
    /* Typography Scale */
    --font-mono: 'JetBrains Mono', monospace;
    --font-serif: 'Crimson Text', serif;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-dark: var(--bg-light);
    --bg-darker: #ffffff;
    --text-primary: #0969da;
    --text-secondary: var(--text-light);
    --text-dim: #656d76;
    --accent: #0969da;
    --border: var(--border-light);
}

/* Base Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--accent);
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation System */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="light"] .nav-container {
    background: rgba(246, 248, 250, 0.95);
}

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

.logo {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem; /* يمكنك تعديل المسافة بين الروابط هنا */
}

.nav-command {
    background: transparent;
    border: none; /* تمت إزالة الإطار */
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem; /* تم تعديل الحشوة */
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-command:hover,
.nav-command.active {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.nav-command:hover,
.nav-command.active {
    color: var(--accent);
    transform: translateY(-2px); /* تأثير بسيط عند المرور */
    box-shadow: none; /* تمت إزالة الظل */
}

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

.theme-toggle,
.lang-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 2.5rem;
}

.theme-toggle:hover,
.lang-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Main Content Layout */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 150px);
    flex: 1;
}

.page {
    display: none;
    padding: 4rem 0;
}

.page.active {
    display: block;
}

/* Home Page Layout Fix */
#home .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    min-height: calc(100vh - 160px);
    justify-content: center;
    padding: 2rem;
}

/* Multiple Logo Versions CSS - Perfectly Centered */
.logo-art {
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    order: 1; /* Logo appears first */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px; /* Consistent height */
}

.logo-img {
    width: 100%; /* اجعل الصورة تملأ الحاوية الخاصة بها */
    max-width: 750px; /* حد أقصى للعرض ليتناسب مع المحتوى السفلي */
    height: auto;
    transition: all 0.5s ease;
    display: block;
    margin: 0 auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* Dark theme logo - visible by default */
.logo-dark {
    opacity: 1;
    visibility: visible;
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.4));
    display: block;
}

/* Light theme logo - hidden by default */
.logo-light {
    opacity: 0;
    visibility: hidden;
    filter: drop-shadow(0 0 20px rgba(9, 105, 218, 0.4));
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Light theme active */
[data-theme="light"] .logo-dark {
    opacity: 0;
    visibility: hidden;
    display: none;
}

[data-theme="light"] .logo-light {
    opacity: 1;
    visibility: visible;
    display: block;
    position: static;
    transform: none;
    margin: 0 auto;
}

/* Hover effects - centered scaling */
.logo-img:hover {
    transform: scale(1.05);
}

[data-theme="dark"] .logo-dark:hover {
    /* تحويل اللون الأخضر إلى أبيض */
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    transform: scale(1.05);
}

[data-theme="light"] .logo-light:hover {
    /* تحويل اللون الأزرق إلى أسود */
    filter: grayscale(1) brightness(0) drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
    transform: scale(1.05);
}

/* Loading state for logos */
.logo-img.loading {
    opacity: 0.7;
    filter: grayscale(100%);
}

/* Responsive sizing for centered logo */
@media (max-width: 1024px) {
    .logo-img {
        width: clamp(200px, 40vw, 400px);
    }
    .logo-art {
        min-height: 120px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        width: clamp(180px, 45vw, 350px);
    }
    .logo-art {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: clamp(150px, 50vw, 280px);
    }
    .logo-art {
        min-height: 80px;
    }
}

@media (max-width: 320px) {
    .logo-img {
        width: clamp(120px, 55vw, 220px);
    }
    .logo-art {
        min-height: 70px;
    }
}

/* Animated Slogan - Positioned after logo */
.slogan-container {
    text-align: center;
    margin: 0;
    padding: 1rem 0;
    order: 2; /* Slogan appears second */
    width: 100%;
}

.slogan-line {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: bold;
}

.typed-text {
    color: var(--text-secondary);
    min-height: 1.5rem;
}

.cursor {
    color: var(--accent);
    animation: blink 1s infinite;
    font-weight: bold;
}

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

.slogan-subtitle {
    color: var(--text-dim);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-dim);
    font-size: 1.2rem;
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(33, 38, 45, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
}

[data-theme="light"] .profile-section {
    background: rgba(255, 255, 255, 0.8);
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    flex-shrink: 0;
}

[data-theme="light"] .profile-img {
    box-shadow: 0 0 30px rgba(9, 105, 218, 0.3);
}

.profile-info h2 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.profile-info .titles {
    margin-bottom: 1rem;
}

.profile-info .titles span {
    display: block;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 0.3rem 0;
}

.profile-info .location {
    color: var(--text-dim);
    font-size: 1rem;
    font-style: italic;
}

/* Terminal System - Positioned after slogan */
.terminal-container {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
    order: 3; /* Terminal appears third */
}

.terminal-header {
    background: var(--border);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca3f; }

.terminal-title {
    margin-left: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 2rem;
    min-height: 300px;
    font-family: var(--font-mono);
    background: var(--bg-darker);
}

.terminal-output {
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    white-space: pre-wrap;
}

.terminal-input-container {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.terminal-input-container .terminal-prompt {
    color: var(--accent);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    flex: 1;
    caret-color: var(--accent);
}

/* Quick Actions - Positioned last */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    flex-wrap: wrap;
    order: 4; /* Quick actions appear last */
    width: 100%;
}

.quick-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

[data-theme="light"] .quick-btn:hover {
    box-shadow: 0 0 20px rgba(9, 105, 218, 0.4);
}

/* Professional Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Contact Information Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(33, 38, 45, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

[data-theme="light"] .contact-card {
    background: rgba(255, 255, 255, 0.8);
}

.contact-card h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-method:hover {
    background: rgba(0, 255, 65, 0.05);
    border-color: var(--accent);
}

[data-theme="light"] .contact-method:hover {
    background: rgba(9, 105, 218, 0.05);
}

/* Minimalistic Icons */
.contact-icon,
.social-icon,
.availability-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon,
.social-connect-link:hover .social-icon {
    border-color: var(--accent);
    background: rgba(0, 255, 65, 0.1);
}

[data-theme="light"] .contact-method:hover .contact-icon,
[data-theme="light"] .social-connect-link:hover .social-icon {
    background: rgba(9, 105, 218, 0.1);
}

/* Icons */
.icon-email::before { content: ''; width: 16px; height: 12px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M0 2v8c0 1 1 2 2 2h12c1 0 2-1 2-2V2c0-1-1-2-2-2H2C1 0 0 1 0 2zm14 0L8 6 2 2h12z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }
.icon-phone::before { content: ''; width: 14px; height: 14px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1C2 1 1 2 1 3v8c0 1 1 2 2 2h8c1 0 2-1 2-2V3c0-1-1-2-2-2H3zm2 2h4v1H5V3zm0 2h4v1H5V5zm0 2h3v1H5V7z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }
.icon-location::before { content: ''; width: 12px; height: 16px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M6 0C3 0 0 3 0 6c0 4 6 10 6 10s6-6 6-10c0-3-3-6-6-6zm0 8C5 8 4 7 4 6s1-2 2-2 2 1 2 2-1 2-2 2z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }
.icon-clock::before { content: ''; width: 14px; height: 14px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0C3 0 0 3 0 7s3 7 7 7 7-3 7-7-3-7-7-7zm0 12c-3 0-5-2-5-5s2-5 5-5 5 2 5 5-2 5-5 5z'/%3E%3Cpath d='M7 3v4l3 2-1 1-3-2V3h1z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }
.icon-linkedin::before { content: ''; width: 14px; height: 14px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M0 0v14h14V0H0zm3 12H1V5h2v7zm-1-8C1 4 1 3 2 3s1 1 1 2-1 1-1 1zm10 8h-2V8c0-1 0-2-1-2s-1 1-1 2v4H6V5h2v1c0-1 1-1 2-1 2 0 3 1 3 3v4z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }
.icon-xing::before { content: ''; width: 14px; height: 14px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M9 0l-3 5 2 3h2l-2-3 3-5H9zM4 6L3 8h2l1-2H4zM1 4l1 2h2L3 4H1z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }
.icon-github::before { content: ''; width: 14px; height: 14px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0C3 0 0 3 0 7c0 3 2 6 5 7v-2c-1 0-2 0-2-1 0 0 0-1-1-1h3c1 0 1 1 1 1v2c3-1 5-4 5-7 0-4-3-7-7-7z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }
.icon-education::before { content: ''; width: 16px; height: 12px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M8 0L0 4l8 4 6-3v5h2V4L8 0zM2 6v4c0 2 3 2 6 2s6 0 6-2V6l-6 3L2 6z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }
.icon-work::before { content: ''; width: 14px; height: 12px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M4 0v2H1C0 2 0 3 0 3v8c0 1 1 1 1 1h12s1 0 1-1V3s0-1-1-1h-3V0H4zm2 2h2v1H6V2zm-4 3h10v5H2V5z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }
.icon-research::before { content: ''; width: 14px; height: 14px; background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M6 0C3 0 0 3 0 6s3 6 6 6c1 0 2 0 3-1l4 4 1-1-4-4c1-1 1-2 1-3 0-3-3-6-6-6zm0 10c-2 0-4-2-4-4s2-4 4-4 4 2 4 4-2 4-4 4z'/%3E%3C/svg%3E") no-repeat center; mask-size: contain; }

.contact-details h4 {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-details a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details span {
    color: var(--text-secondary);
    font-weight: 600;
}

.contact-details p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Social Connect */
.social-connect {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-connect-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.social-connect-link:hover {
    background: rgba(0, 255, 65, 0.05);
    border-color: var(--accent);
    transform: translateY(-1px);
}

[data-theme="light"] .social-connect-link:hover {
    background: rgba(9, 105, 218, 0.05);
}

.social-icon {
    width: 2rem;
    height: 2rem;
}

.social-details h4 {
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.social-details p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Specializations */
.specializations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.specialization-item {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.specialization-item:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 65, 0.05);
}

[data-theme="light"] .specialization-item:hover {
    background: rgba(9, 105, 218, 0.05);
}

.specialization-item h4 {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.specialization-item p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Availability Status */
.availability-card {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 65, 0.05));
}

[data-theme="light"] .availability-card {
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.1), rgba(9, 105, 218, 0.05));
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 8px;
}

[data-theme="light"] .availability-status {
    background: rgba(9, 105, 218, 0.1);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.available::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-status 2s infinite;
}

.status-indicator.available::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

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

.availability-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.availability-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.availability-item:hover {
    background: rgba(0, 255, 65, 0.05);
}

[data-theme="light"] .availability-item:hover {
    background: rgba(9, 105, 218, 0.05);
}

.availability-icon {
    width: 2rem;
    height: 2rem;
    margin-top: 0.2rem;
}

.availability-content h4 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.availability-content p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Contact Form Section */
.contact-form-section {
    display: flex;
    flex-direction: column;
}

.contact-form-card {
    background: rgba(33, 38, 45, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    height: fit-content;
}

[data-theme="light"] .contact-form-card {
    background: rgba(255, 255, 255, 0.8);
}

.contact-form-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.form-description {
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-darker);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.form-group textarea {
    min-height: 120px;
    line-height: 1.6;
}

/* Custom Select Styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Checkbox Styling */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 0.1rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: var(--bg-dark);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Error Messages */
.error-message {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Submit Button */
.submit-btn {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.4);
}

[data-theme="light"] .submit-btn:hover:not(:disabled) {
    box-shadow: 0 5px 20px rgba(9, 105, 218, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Form Status Messages */
.form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
}

.form-status.success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid #27ae60;
    color: #27ae60;
}

.form-status.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    color: #ff4757;
}

/* Blog System */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-card {
    background: rgba(33, 38, 45, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .article-card {
    background: rgba(255, 255, 255, 0.8);
}

.article-card:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
}

[data-theme="light"] .article-card:hover {
    box-shadow: 0 5px 20px rgba(9, 105, 218, 0.1);
}

.article-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    color: var(--text-dim);
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.read-more {
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.read-more::after {
    content: " →";
    transition: transform 0.3s ease;
}

.article-card:hover .read-more::after {
    transform: translateX(5px);
}

/* Empty State */
.no-posts-message {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* Reading View */
.reading-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.back-to-blog {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.back-to-blog::before {
    content: "←";
    transition: transform 0.3s ease;
}

.back-to-blog:hover::before {
    transform: translateX(-3px);
}

.back-to-blog:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Professional Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-left {
    text-align: left;
}

.footer-logo {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Content Sections */
.content-section {
    background: rgba(33, 38, 45, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

[data-theme="light"] .content-section {
    background: rgba(255, 255, 255, 0.8);
}

.content-section h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--accent);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

[data-theme="light"] .timeline-item::before {
    box-shadow: 0 0 10px rgba(9, 105, 218, 0.5);
}

.timeline-date {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Styling */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background: rgba(33, 38, 45, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .service-card {
    background: rgba(255, 255, 255, 0.8);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 5px 20px rgba(9, 105, 218, 0.1);
}

.service-card h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    margin: 1.5rem 0;
}

.service-features h5 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.service-features li::before {
    content: "→";
    color: var(--accent);
    position: absolute;
    left: 0;
}

.service-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.price {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

.duration {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: var(--accent);
    color: var(--bg-dark);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 65, 0.05));
    border: 1px solid var(--accent);
}

[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.1), rgba(9, 105, 218, 0.05));
}

.cta-button {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

[data-theme="light"] .cta-button:hover {
    box-shadow: 0 0 20px rgba(9, 105, 218, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    #home .container {
        gap: 1.5rem;
    }
    
    .logo-img {
        width: clamp(200px, 45vw, 450px);
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    #home .container {
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .logo-img {
        width: clamp(180px, 50vw, 400px);
    }
    
    .slogan-line {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .terminal-container {
        max-width: 100%;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-command {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .terminal-body {
        padding: 1rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-methods {
        gap: 1rem;
    }
    
    .contact-method {
        padding: 0.8rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
    }
    
    .contact-icon,
    .social-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .availability-icon {
        width: 1.8rem;
        height: 1.8rem;
    }
}

@media (max-width: 480px) {
    #home .container {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .logo-img {
        width: clamp(150px, 60vw, 300px);
    }
    
    .slogan-line {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .slogan-subtitle {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }
    
    .page {
        padding: 2rem 0;
    }
    
    .page-header {
        margin-bottom: 2rem;
    }
    
    .terminal-container {
        margin: 2rem 0;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .social-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .contact-info-section {
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        align-items: center;
    }
    
    .availability-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.8rem;
    }
    
    .social-connect-link {
        justify-content: center;
        padding: 0.8rem;
    }
    
    .contact-form-card {
        padding: 1rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
}

/* Remove the old ASCII art styles */
.ascii-art,
.ascii-content {
    display: none !important;
}
/* New Nav Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
}

.nav-logo-img {
    height: 45px; /* تم تكبير الحجم */
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease; /* تحديد الخصائص للإصلاح */
    user-select: none; /* لمنع التحديد */
    -webkit-user-drag: none; /* لمنع السحب */
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* المسافة بين اللوجو والروابط */
}
.nav-logo-light {
    display: none;
}

[data-theme="light"] .nav-logo-dark {
    display: none;
}

[data-theme="light"] .nav-logo-light {
    display: block;
}
.logo-img {
    user-select: none;
    -webkit-user-drag: none;
}
/* Hover and Active effect for the logo */
.logo-link:hover .nav-logo-img,
.logo-link.active .nav-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--accent));
}