/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Theme Colors ===== */
:root {
    --primary: #0c0f13;
    --secondary: #151a20;
    --accent: #00ff9d;
    --accent-secondary: #00c8ff;
    --text: #f5f5f5;
    --text-secondary: #bfbfbf;
}

/* ===== Body ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #0f141b, #080a0c);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    scroll-behavior: smooth;
}

/* ===== Particles Background ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #080a0c 0%, #101418 100%);
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Sections ===== */
header, section, footer {
    text-align: center;
    padding: 40px 25px;
    margin: 25px auto;

    /* شفافية خفيفة للمربعات */
    background: rgba(15, 15, 15, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;

    backdrop-filter: blur(3px); /* ضبابية خفيفة */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header:hover, section:hover, footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 157, 0.15);
}

/* ===== Header Title ===== */
header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(217, 255, 0, 0.7), rgba(0,200,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.2);
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* ===== Section Headings ===== */
section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 3px;
}

/* ===== Skills ===== */
.skills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding-top: 10px;
}

.skills li {
    display: flex;
    align-items: center;
    gap: 8px;

    /* مربعات شبه شفافة */
    background: rgba(15, 15, 15, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);

    padding: 10px 18px;
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* ===== Custom Skill Icons ===== */
.skill-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
}


.skills li:hover {
    background: rgba(0, 255, 157, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 255, 157, 0.2);
    border-color: var(--accent);
}

/* ===== Icon Colors ===== */
.fa-python { color: #3776AB; }
.fa-js { color: #f7df1e; }
.fa-hashtag { color: #9b59b6; }
.fa-code { color: #00599C; }
.fa-database { color: #f29111; }
.fa-node-js { color: #68a063; }
.fa-html5 { color: #e34f26; }
.fa-css3-alt { color: #264de4; }
.fa-shield-halved { color: #1db954; }

/* ===== Projects ===== */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project {
    background: rgba(15, 15, 15, 0.15); /* شفاف */
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.project:hover {
    background: rgba(0, 255, 157, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 255, 157, 0.15);
}

.project h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text);
}

.project p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text);
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: 0.3s ease;
}

.project a:hover {
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 255, 157, 0.25);
}

/* ===== Contact ===== */
.contact a {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(15, 15, 15, 0.15); /* خفيف */
}

.contact a:hover {
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    color: #000;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.3);
}

/* ===== Footer ===== */
footer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(15, 15, 15, 0.15); /* شفاف خفيف */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    header h1 { font-size: 2.2rem; }
    section h2 { font-size: 1.6rem; }
    .skills li { font-size: 0.85rem; padding: 8px 12px; }
}
