/* ================= MODERN HEADER ================= */

.modern-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #071c22;
    padding: 15px 0;
    z-index: 1000;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* اللوجو */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.3rem;
    color: white;
}

.brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.highlight {
    color: #00ffd1;
}

/* القائمة */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #00ffd1;
}

/* زر الموبايل */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .nav-menu {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #071c22;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 25px 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}
  .floating-whatsapp {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }







/* ============================= */
/* استيراد الخطوط المحلية */
/* ============================= */

/* خط Inter - أوزان متعددة */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* خط JetBrains Mono */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ============================= */
/* استايلات عامة للموقع */
/* ============================= */
:root {
    --primary-color: #00FFD1;  /* اللون الرئيسي - يمكن تغييره */
    --bg-color: #000000;       /* لون الخلفية */
    --text-color: #FFFFFF;     /* لون النص */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ============================= */
/* ألوان النص والخلفيات */
/* ============================= */
.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

/* ============================= */
/* أزرار */
/* ============================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000000;
}

.btn-primary:hover {
    background-color: rgba(0, 255, 209, 0.8);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #000000;
}

/* ============================= */
/* حاويات وأقسام */
/* ============================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ============================= */
/* كروت وعناصر خاصة */
/* ============================= */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 209, 0.2);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* ============================= */
/* تخطيط الشبكة */
/* ============================= */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================= */
/* التنقل بين الأقسام */
/* ============================= */
html {
    scroll-behavior: smooth;
}

/* ============================= */
/* تأثيرات الحركة */
/* ============================= */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.skill-card {
    animation: fadeIn 0.5s ease-out;
}

/* ============================= */
/* تأثيرات التمرير والتحديد */
/* ============================= */
input:focus, textarea:focus {
    border-color: var(--primary-color) !important;
    outline: none;
}

a:hover {
    color: var(--primary-color) !important;
}

/* ============================= */
/* تصميم متجاوب */
/* ============================= */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}