 /* ================================
   Root Variables & General Styling
================================ */

:root {
    --bg-dark: #0b0f19;
    --card-bg: rgba(22, 30, 46, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-button: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    --glow-color: rgba(139, 92, 246, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    direction: rtl;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Background Ambient Glows */
.glow-effect {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    top: -50px;
    right: -50px;
    background: rgba(139, 92, 246, 0.2);
}

.glow-2 {
    bottom: -50px;
    left: -50px;
    background: rgba(6, 182, 212, 0.2);
}

/* CV Container */
.cv-container {
    position: relative;
    z-index: 1;
    width: min(1000px, calc(100% - 32px));
    margin: 40px auto;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ================================
   Hero Header
================================ */

.hero {
    position: relative;
    padding: 70px 60px 60px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0) 100%);
    border-bottom: 1px solid var(--card-border);
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    margin-bottom: 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 700;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h1 {
    font-size: clamp(34px, 5.5vw, 54px);
    font-weight: 900;
    margin-bottom: 12px;
    background: var(--gradient-primary);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 25px;
}

.hero h2 .divider {
    margin: 0 8px;
    color: var(--accent-purple);
}

.intro {
    color: #d1d5db;
    font-size: 16px;
    line-height: 2;
}

/* ================================
   Sections Setup
================================ */

.section {
    padding: 50px 60px;
    border-bottom: 1px solid var(--card-border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 35px;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    direction: ltr;
    box-shadow: 0 4px 15px var(--glow-color);
}

.section-title h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
}

/* ================================
   Skills
================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
 .skill-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.15);
}

.skill-card.full-width {
    grid-column: span 2;
}

.skill-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.skill-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ================================
   Projects
================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.project-card {
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 15px 30px -10px rgba(6, 182, 212, 0.2);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 4px 12px;
    border-radius: 30px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.project-code-icon {
    font-family: monospace;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-purple);
    direction: ltr;
}

.project-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.9;
}

/* ================================
   Education
================================ */

.education-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
}

.education-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    box-shadow: 0 8px 20px var(--glow-color);
}

.education-status {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 6px;
}

.education-details h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.education-details p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ================================
   Contact
================================ */

.contact-section {
    border-bottom: none;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 22px;
}

.contact-label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.phone-link {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    direction: ltr;
    unicode-bidi: plaintext;
    letter-spacing: 1px;
}
 .whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--gradient-button);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(34, 197, 94, 0.5);
}

.whatsapp-icon {
    font-size: 20px;
}

/* ================================
   Footer
================================ */

footer {
    padding: 30px;
    text-align: center;
    background: rgba(11, 15, 25, 0.8);
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 13px;
}

/* ================================
   Responsive Design
================================ */

@media (max-width: 850px) {
    .cv-container {
        margin: 20px auto;
        border-radius: 20px;
    }

    .hero {
        padding: 50px 30px 40px;
    }

    .section {
        padding: 40px 30px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skill-card.full-width {
        grid-column: span 1;
    }

    .contact-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .phone-link {
        display: block;
        margin-bottom: 10px;
    }

    .whatsapp-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 15px;
    }

    .hero h2 .divider {
        display: none;
    }

    .section-title h2 {
        font-size: 22px;
    }
}