/* style.css - BY : 𝐁𝟕𝐑ｼ - تصميم بنفسجي متحرك بالكامل */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Orbitron', 'Cairo', monospace;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* ========== طبقات الخلفية المتطورة ========== */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -7;
    filter: blur(10px) brightness(0.3);
    transform: scale(1.05);
}

.overlay-dark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: -6;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(170, 102, 255, 0.25), transparent 70%);
    z-index: -5;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjciIG51bU9jdGF2ZXM9IjMiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjZikiIG9wYWNpdHk9IjAuMTUiLz48L3N2Zz4=');
    background-repeat: repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: -4;
}

.color-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(170, 102, 255, 0.12), transparent);
    pointer-events: none;
    z-index: -3;
    animation: colorPulse 6s ease-in-out infinite;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(170, 102, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(170, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -2;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 2px, transparent 2px, transparent 6px);
    pointer-events: none;
    z-index: -1;
}

@keyframes colorPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ========== كانفازات الحركة ========== */
#matrixCanvas, #particleCanvas, #waveCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* ========== الحاوية الرئيسية ========== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* ========== البطاقة الشخصية ========== */
.profile-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.profile-card {
    text-align: center;
    padding: 40px;
    max-width: 550px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card {
    background: rgba(10, 25, 55, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(170, 102, 255, 0.3);
    transition: all 0.4s;
}

.glass-card:hover {
    border-color: #aa66ff;
    box-shadow: 0 0 40px rgba(170, 102, 255, 0.4);
}

.profile-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(170, 102, 255, 0.1), transparent);
    pointer-events: none;
}

.profile-image-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.profile-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #aa66ff;
    border-right-color: #8e44ad;
    animation: ringSpin 2s linear infinite;
}

.profile-ring-second {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: #b877ff;
    border-left-color: #aa66ff;
    animation: ringSpinReverse 3s linear infinite;
    opacity: 0.6;
}

.profile-ring-third {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: #ff00aa;
    border-right-color: #ff6600;
    animation: ringSpin 4s linear infinite;
    opacity: 0.4;
}

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

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

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #aa66ff;
    box-shadow: 0 0 25px rgba(170, 102, 255, 0.5);
}

.profile-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-name {
    font-size: 2rem;
    background: linear-gradient(135deg, #fff, #aa66ff, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.verified-badge {
    color: #aa66ff;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px #aa66ff);
    animation: verifiedPulse 1.5s ease-in-out infinite;
}

@keyframes verifiedPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.profile-title {
    color: #aaa;
    margin-bottom: 12px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.profile-bio {
    color: #aa66ff;
    font-size: 0.8rem;
    margin-bottom: 20px;
    padding: 10px;
    border-top: 1px solid rgba(170, 102, 255, 0.2);
    border-bottom: 1px solid rgba(170, 102, 255, 0.2);
    font-style: italic;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(170, 102, 255, 0.12);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    border: 1px solid rgba(170, 102, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge:hover {
    background: rgba(170, 102, 255, 0.25);
    transform: translateY(-2px);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
}

.whatsapp-btn { background: linear-gradient(135deg, #25D366, #128C7E); color: white; }
.copy-btn { background: linear-gradient(135deg, #aa66ff, #8e44ad); color: white; }
.contact-btn:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* ========== الإحصائيات الرئيسية ========== */
.stats-section { margin-bottom: 50px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.stat-card {
    text-align: center;
    padding: 20px 15px;
    transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-8px); }
.stat-icon i { font-size: 2rem; color: #aa66ff; margin-bottom: 10px; }
.stat-number { font-size: 2rem; font-weight: bold; color: #aa66ff; font-family: monospace; }
.stat-label { color: #aaa; margin-top: 8px; font-size: 0.8rem; }
.stat-desc { color: #555; font-size: 0.65rem; margin-top: 5px; }

/* ========== المهارات ========== */
.skills-section { margin-bottom: 50px; }
.section-header { text-align: center; margin-bottom: 35px; }
.section-title { font-size: 1.8rem; color: #aa66ff; text-shadow: 0 0 12px rgba(170, 102, 255, 0.5); display: inline-block; letter-spacing: 2px; }
.title-line { width: 80px; height: 3px; background: linear-gradient(90deg, transparent, #aa66ff, #8e44ad, transparent); margin: 15px auto; }
.section-desc { color: #aaa; font-size: 0.8rem; margin-top: 8px; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.skill-card {
    background: rgba(10, 25, 55, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(170, 102, 255, 0.3);
    transition: all 0.3s;
}
.skill-card:hover { transform: translateY(-8px); border-color: #aa66ff; }
.skill-icon i { font-size: 2.5rem; color: #aa66ff; margin-bottom: 12px; }
.skill-card h3 { margin-bottom: 12px; color: #fff; font-size: 1.2rem; }
.skill-bar { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; margin: 12px 0; }
.skill-progress { height: 100%; background: linear-gradient(90deg, #aa66ff, #8e44ad); border-radius: 10px; width: 0; transition: width 1s ease; }
.skill-card span { color: #aa66ff; font-weight: bold; font-size: 0.9rem; }
.skill-desc { color: #888; font-size: 0.7rem; margin-top: 8px; }

/* ========== الخدمات ========== */
.services-section { margin-bottom: 50px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.service-card {
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.service-card:hover { transform: translateY(-8px); }
.service-card i { font-size: 2rem; color: #aa66ff; margin-bottom: 12px; }
.service-card h3 { margin-bottom: 10px; color: #fff; font-size: 1.2rem; }
.service-card p { color: #aaa; font-size: 0.8rem; line-height: 1.5; margin-bottom: 12px; }
.service-tag {
    display: inline-block;
    background: rgba(170, 102, 255, 0.12);
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 0.7rem;
    border: 1px solid rgba(170, 102, 255, 0.3);
}

/* ========== المشاريع ========== */
.projects-section { margin-bottom: 50px; }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.project-card {
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.project-card:hover { transform: translateY(-8px); }
.project-icon i { font-size: 2rem; color: #aa66ff; margin-bottom: 12px; }
.project-card h3 { margin-bottom: 8px; color: #fff; font-size: 1.1rem; }
.project-card p { color: #aaa; font-size: 0.8rem; margin-bottom: 12px; line-height: 1.5; }
.project-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.project-tags span { background: rgba(170, 102, 255, 0.12); padding: 3px 10px; border-radius: 20px; font-size: 0.65rem; border: 1px solid rgba(170, 102, 255, 0.3); }

/* ========== الجروبات والقنوات ========== */
.links-section { margin-bottom: 50px; }
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.link-card {
    text-align: center;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
}
.link-card:hover { transform: translateY(-8px); }
.link-card i { font-size: 2.5rem; color: #aa66ff; margin-bottom: 12px; }
.link-name { font-size: 1.1rem; font-weight: bold; color: #fff; margin-bottom: 6px; }
.link-sub { color: #aaa; font-size: 0.75rem; margin-bottom: 8px; }
.link-stats { color: #aa66ff; font-size: 0.7rem; margin-bottom: 12px; }
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(170, 102, 255, 0.15);
    border: 1px solid #aa66ff;
    padding: 8px 20px;
    border-radius: 40px;
    color: #aa66ff;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}
.link-btn:hover { background: #aa66ff; color: #000; box-shadow: 0 0 15px #aa66ff; }

/* ========== قسم التواصل ========== */
.contact-section { margin-bottom: 50px; }
.contact-card {
    text-align: center;
    padding: 35px;
    position: relative;
    overflow: hidden;
}
.contact-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(170, 102, 255, 0.1), transparent);
    animation: contactGlow 4s ease-in-out infinite;
}
@keyframes contactGlow {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(10%, 10%); opacity: 0.6; }
}
.contact-card h3 { font-size: 1.5rem; margin-bottom: 12px; color: #aa66ff; }
.contact-card p { margin-bottom: 18px; color: #aaa; font-size: 0.85rem; }
.contact-quick { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.quick-info { display: flex; align-items: center; gap: 6px; background: rgba(170, 102, 255, 0.1); padding: 6px 15px; border-radius: 40px; font-size: 0.8rem; }
.quick-info i { color: #aa66ff; }
.contact-big-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    padding: 12px 35px;
    border-radius: 60px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
}
.contact-big-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

/* ========== الفوتر ========== */
.cyber-footer {
    text-align: center;
    padding: 35px 20px;
    border-top: 1px solid rgba(170, 102, 255, 0.3);
    margin-top: 20px;
}
.footer-logo { font-size: 1.2rem; color: #aa66ff; margin-bottom: 15px; letter-spacing: 2px; }
.footer-social { margin-bottom: 15px; }
.social-link {
    display: inline-block;
    color: #aa66ff;
    font-size: 1.3rem;
    margin: 0 12px;
    transition: all 0.3s;
    cursor: pointer;
}
.social-link:hover { color: #fff; text-shadow: 0 0 12px #aa66ff; transform: translateY(-3px); }
.footer-copy { color: #666; font-size: 0.75rem; margin-top: 6px; }

/* ========== توست ========== */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(170, 102, 255, 0.95);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    z-index: 10000;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 1px solid #aa66ff;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* ========== استجابة للشاشات المختلفة ========== */
@media (max-width: 968px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-name { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .container { padding: 15px; }
    .stats-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .profile-card { padding: 25px; }
    .profile-name { font-size: 1.3rem; }
    .contact-big-btn { padding: 10px 20px; font-size: 0.85rem; }
    .toast-msg { white-space: normal; text-align: center; max-width: 90%; font-size: 0.75rem; }
}

@media (max-width: 576px) {
    .container { padding: 10px; }
    .stats-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .profile-card { padding: 20px; }
    .profile-name { font-size: 1.2rem; }
    .profile-image-wrapper { width: 120px; height: 120px; }
    .profile-ring { width: 130px; height: 130px; }
    .profile-ring-second { width: 140px; height: 140px; }
    .profile-ring-third { width: 150px; height: 150px; }
    .contact-btn { padding: 6px 14px; font-size: 0.75rem; }
    .section-title { font-size: 1.2rem; }
    .title-line { width: 60px; }
}