
@import url('https://fonts.googleapis.com/css2?family=Playwrite+IE:wght@100..400&display=swap');

/* ========== CSS Variables ========== */
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-hover: #1a1a2e;
    --primary: #6366f1;
    --primary-glow: rgba(99,102,241,0.3);
    --accent: #10b981;
    --accent-glow: rgba(16,185,129,0.3);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #475569;
    --border: rgba(148,163,184,0.1);
    --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-2: linear-gradient(135deg, #10b981, #06b6d4);
}

/* ========== Reset & Base ========== */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
    font-family:'Inter', sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    line-height:1.6;
}
::selection { background:var(--primary); color:white; }
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--primary); border-radius:4px; }

/* ========== PARTICLES CANVAS ========== */
#particles { position:fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; }

/* ========== NAVIGATION ========== */
nav {
    position:fixed; top:0; left:0; right:0; z-index:1000;
    padding:20px 48px;
    display:flex; justify-content:space-between; align-items:center;
    background:rgba(10,10,15,0.8);
    backdrop-filter:blur(20px);
    border-bottom:1px solid var(--border);
    transition:all 0.3s ease;
}
nav.scrolled { padding:12px 48px; background:rgba(10,10,15,0.95); }
.logo { font-family:"Playwrite IE", cursive; font-weight:700; font-size:20px; color:var(--text); }
.logo span { color:var(--primary); }
.nav-links { display:flex; gap:32px; align-items:center; }
.nav-links a {
    color:var(--text-muted); text-decoration:none; font-size:14px; font-weight:500;
    transition:all 0.3s ease; position:relative;
}
.nav-links a:hover, .nav-links a.active { color:var(--text); }
.nav-links a::after {
    content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px;
    background:var(--gradient-1); transition:width 0.3s ease; border-radius:2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.nav-cta {
    background:var(--gradient-1); color:white; padding:10px 24px;
    border-radius:8px; font-size:14px; font-weight:600; text-decoration:none;
    transition:all 0.3s ease; border:none; cursor:pointer;
}
.nav-cta:hover { transform:translateY(-2px); box-shadow:0 10px 30px var(--primary-glow); }
.menu-toggle { display:none; font-size:24px; color:var(--text); background:none; border:none; cursor:pointer; }

/* ========== HERO ========== */
.hero {
    min-height:100vh; display:flex; align-items:center;
    padding:120px 48px 80px; position:relative; z-index:1;
}
.hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; max-width:1400px; margin:0 auto; width:100%; }
.hero-badge {
    display:inline-flex; align-items:center; gap:8px;
    background:rgba(99,102,241,0.1); border:1px solid rgba(99,102,241,0.2);
    padding:8px 16px; border-radius:50px; font-size:13px; color:var(--primary);
    margin-bottom:24px; font-family:'JetBrains Mono', monospace;
}
.hero-badge .dot { width:8px; height:8px; background:var(--accent); border-radius:50%; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(1.2);} }
.hero h1 { font-size:64px; font-weight:800; line-height:1.1; margin-bottom:20px; }
.hero h1 .gradient-text { background:var(--gradient-1); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hero .typing { font-family:'JetBrains Mono', monospace; font-size:20px; color:var(--text-muted); margin-bottom:32px; min-height:28px; }
.hero .typing .cursor { animation:blink 1s infinite; color:var(--primary); }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
.hero-desc { font-size:18px; color:var(--text-muted); max-width:500px; margin-bottom:40px; }
.hero-btns { display:flex; gap:16px; flex-wrap:wrap; }
.btn-primary {
    background:var(--gradient-1); color:white; padding:14px 32px;
    border-radius:10px; font-size:15px; font-weight:600; text-decoration:none;
    transition:all 0.3s ease; display:inline-flex; align-items:center; gap:10px;
    border:none; cursor:pointer;
}
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 15px 40px var(--primary-glow); }
.btn-outline {
    background:transparent; color:var(--text); padding:14px 32px;
    border-radius:10px; font-size:15px; font-weight:600; text-decoration:none;
    transition:all 0.3s ease; display:inline-flex; align-items:center; gap:10px;
    border:1px solid var(--border); cursor:pointer;
}
.btn-outline:hover { border-color:var(--primary); background:rgba(99,102,241,0.05); }

/* Code Window */
.code-window {
    background:var(--bg-card); border:1px solid var(--border); border-radius:16px;
    overflow:hidden; box-shadow:0 25px 50px -12px rgba(0,0,0,0.5);
    transform:perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition:transform 0.5s ease;
}
.code-window:hover { transform:perspective(1000px) rotateY(0deg) rotateX(0deg); }
.code-header {
    background:rgba(148,163,184,0.05); padding:12px 16px;
    display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--border);
}
.code-dot { width:12px; height:12px; border-radius:50%; }
.code-dot.red { background:#ef4444; } .code-dot.yellow { background:#f59e0b; } .code-dot.green { background:#10b981; }
.code-title { font-size:12px; color:var(--text-muted); margin-left:8px; font-family:'JetBrains Mono', monospace; }
.code-body { padding:24px; font-family:'JetBrains Mono', monospace; font-size:13px; line-height:1.8; }
.code-body .comment { color:var(--text-dim); }
.code-body .keyword { color:#c084fc; }
.code-body .string { color:#4ade80; }
.code-body .function { color:#60a5fa; }
.code-body .variable { color:#f472b6; }
.code-body .number { color:#fbbf24; }

/* ========== STATS ========== */
.stats-section { padding:80px 48px; position:relative; z-index:1; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; max-width:1400px; margin:0 auto; }
.stat-box {
    background:var(--bg-card); border:1px solid var(--border); border-radius:16px;
    padding:32px; text-align:center; transition:all 0.3s ease;
}
.stat-box:hover { transform:translateY(-5px); border-color:rgba(99,102,241,0.3); box-shadow:0 20px 40px rgba(0,0,0,0.3); }
.stat-box .stat-icon { font-size:32px; margin-bottom:16px; }
.stat-box h3 { font-size:36px; font-weight:800; margin-bottom:8px; }
.stat-box h3 .plus { color:var(--primary); font-size:24px; }
.stat-box p { color:var(--text-muted); font-size:14px; }

/* ========== ABOUT ========== */
.about-section { padding:100px 48px; position:relative; z-index:1; }
.section-header { text-align:center; margin-bottom:60px; }
.section-label { font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--primary); margin-bottom:12px; text-transform:uppercase; letter-spacing:2px; }
.section-title { font-size:42px; font-weight:800; margin-bottom:16px; }
.section-subtitle { color:var(--text-muted); font-size:18px; max-width:600px; margin:0 auto; }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; max-width:1200px; margin:0 auto; }
.about-img { position:relative; border-radius:20px; overflow:hidden; border:1px solid var(--border); }
.about-img img { width:100%; height:auto; display:block; }
.about-img::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg, rgba(99,102,241,0.2), rgba(16,185,129,0.1)); z-index:1; }
.about-content h3 { font-size:28px; font-weight:700; margin-bottom:20px; }
.about-content p { color:var(--text-muted); margin-bottom:16px; font-size:16px; }
.about-tags { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.about-tag {
    background:rgba(99,102,241,0.1); border:1px solid rgba(99,102,241,0.2);
    padding:8px 16px; border-radius:50px; font-size:13px; color:var(--primary);
    font-family:'JetBrains Mono', monospace;
}
.about-tag.accent { background:rgba(16,185,129,0.1); border-color:rgba(16,185,129,0.2); color:var(--accent); }

/* ========== SKILLS ========== */
.skills-section { padding:100px 48px; position:relative; z-index:1; }
.skills-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:1200px; margin:0 auto; }
.skill-card {
    background:var(--bg-card); border:1px solid var(--border); border-radius:16px;
    padding:32px; transition:all 0.3s ease;
}
.skill-card:hover { transform:translateY(-5px); border-color:rgba(99,102,241,0.3); }
.skill-card .skill-header { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.skill-card .skill-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.skill-card .skill-icon.purple { background:rgba(99,102,241,0.1); color:var(--primary); }
.skill-card .skill-icon.red { background:rgba(255,0,0,0.1); color:red; }
.skill-card .skill-icon.blue { background:rgba(59,130,246,0.1); color:#f7df1d; }
.skill-card .skill-icon.orange { background:rgba(245,158,11,0.1); color:#f59e0b; }
.skill-card .skill-icon.pink { background:rgba(236,72,153,0.1); color:#ec4899; }
.skill-card .skill-icon.cyan { background:rgba(6,182,212,0.1); color:#06b6d4; }
.skill-card h4 { font-size:18px; font-weight:700; margin-bottom:4px; }
.skill-card .skill-desc { font-size:13px; color:var(--text-muted); margin-bottom:20px; }
.skill-bar { height:6px; background:var(--bg-hover); border-radius:3px; overflow:hidden; margin-bottom:8px; }
.skill-bar .fill { height:100%; border-radius:3px; transition:width 1.5s ease; width:0; }
.skill-card:nth-child(1) .fill { background:var(--gradient-1); }
.skill-card:nth-child(2) .fill { background: red; }
.skill-card:nth-child(3) .fill { background: #f7df1d; }
.skill-card:nth-child(4) .fill { background:linear-gradient(90deg,#f59e0b,#d97706); }
.skill-card:nth-child(5) .fill { background:linear-gradient(90deg,#ec4899,#db2777); }
.skill-card:nth-child(6) .fill { background:linear-gradient(90deg,#06b6d4,#0891b2); }
.skill-card .skill-percent { font-size:13px; color:var(--text-muted); text-align:right; font-family:'JetBrains Mono', monospace; }

/* ========== SERVICES ========== */
.services-section { padding:100px 48px; position:relative; z-index:1; }
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:1200px; margin:0 auto; }
.service-card {
    background:var(--bg-card); border:1px solid var(--border); border-radius:20px;
    padding:40px 32px; transition:all 0.4s ease; position:relative; overflow:hidden;
}
.service-card::before {
    content:''; position:absolute; top:0; left:0; width:100%; height:3px;
    background:var(--gradient-1); transform:scaleX(0); transition:transform 0.4s ease;
}
.service-card:hover::before { transform:scaleX(1); }
.service-card:hover { transform:translateY(-8px); border-color:rgba(99,102,241,0.3); box-shadow:0 25px 50px rgba(0,0,0,0.3); }
.service-card .service-num { font-family:'JetBrains Mono', monospace; font-size:48px; font-weight:800; color:var(--bg-hover); position:absolute; top:20px; right:24px; line-height:1; }
.service-card .service-icon { width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:24px; background:var(--gradient-1); color:white; }
.service-card h3 { font-size:22px; font-weight:700; margin-bottom:12px; }
.service-card p { color:var(--text-muted); font-size:15px; margin-bottom:20px; }
.service-card .service-tags { display:flex; flex-wrap:wrap; gap:8px; }
.service-card .service-tags span { font-size:12px; color:var(--text-muted); background:var(--bg-hover); padding:4px 12px; border-radius:6px; font-family:'JetBrains Mono', monospace; }

/* ========== PROJECTS ========== */
.projects-section { padding:100px 48px; position:relative; z-index:1; }
.projects-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:32px; max-width:1200px; margin:0 auto; }
.project-card {
    background:var(--bg-card); border:1px solid var(--border); border-radius:20px;
    overflow:hidden; transition:all 0.4s ease; position:relative;
}
.project-card:hover { transform:translateY(-8px); border-color:rgba(99,102,241,0.3); box-shadow:0 25px 50px rgba(0,0,0,0.4); }
.project-card .project-img { position:relative; overflow:hidden; height:280px; }
.project-card .project-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s ease; }
.project-card:hover .project-img img { transform:scale(1.05); }
.project-card .project-img::after { content:''; position:absolute; inset:0; background:linear-gradient(to top, var(--bg-card), transparent); }
.project-card .project-overlay {
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    gap:16px; opacity:0; transition:opacity 0.3s ease; z-index:2;
    background:rgba(10,10,15,0.7);
}
.project-card:hover .project-overlay { opacity:1; }
.project-card .project-overlay a {
    width:48px; height:48px; border-radius:50%;
    background:var(--gradient-1); color:white;
    display:flex; align-items:center; justify-content:center;
    font-size:18px; transition:all 0.3s ease; text-decoration:none;
}
.project-card .project-overlay a:hover { transform:scale(1.1); }
.project-card .project-body { padding:28px; }
.project-card .project-tags { display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.project-card .project-tags span { font-size:12px; padding:4px 12px; border-radius:6px; font-family:'JetBrains Mono', monospace; }
.project-card .project-tags .tag-laravel { background:rgba(239,68,68,0.1); color:#ef4444; }
.project-card .project-tags .tag-react { background:rgba(6,182,212,0.1); color:#06b6d4; }
.project-card .project-tags .tag-php { background:rgba(99,102,241,0.1); color:var(--primary); }
.project-card .project-tags .tag-mysql { background:rgba(245,158,11,0.1); color:#f59e0b; }
.project-card .project-tags .tag-js { background:rgba(234,179,8,0.1); color:#eab308; }
.project-card .project-tags .tag-tailwind { background:rgba(16,185,129,0.1); color:var(--accent); }
.project-card h3 { font-size:22px; font-weight:700; margin-bottom:12px; }
.project-card p { color:var(--text-muted); font-size:15px; line-height:1.6; }

/* ========== TESTIMONIALS ========== */
.testimonials-section { padding:100px 48px; position:relative; z-index:1; }
.testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:1200px; margin:0 auto; }
.testimonial-card {
    background:var(--bg-card); border:1px solid var(--border); border-radius:20px;
    padding:32px; transition:all 0.3s ease; position:relative;
}
.testimonial-card:hover { transform:translateY(-5px); border-color:rgba(99,102,241,0.2); }
.testimonial-card .quote-icon { font-size:40px; color:var(--primary); opacity:0.3; margin-bottom:16px; }
.testimonial-card p { color:var(--text-muted); font-size:15px; line-height:1.7; margin-bottom:24px; }
.testimonial-card .client { display:flex; align-items:center; gap:14px; }
.testimonial-card .client img { width:48px; height:48px; border-radius:50%; object-fit:cover; }
.testimonial-card .client-info h4 { font-size:16px; font-weight:600; }
.testimonial-card .client-info span { font-size:13px; color:var(--text-muted); }
.testimonial-card .stars { color:#f59e0b; font-size:14px; margin-bottom:16px; }

/* ========== CONTACT ========== */
.contact-section { padding:100px 48px; position:relative; z-index:1; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; max-width:1200px; margin:0 auto; align-items:start; }
.contact-info h3 { font-size:32px; font-weight:700; margin-bottom:20px; }
.contact-info p { color:var(--text-muted); font-size:16px; margin-bottom:40px; }
.contact-item { display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.contact-item .contact-icon { width:48px; height:48px; border-radius:12px; background:var(--bg-hover); display:flex; align-items:center; justify-content:center; font-size:20px; color:var(--primary); }
.contact-item h4 { font-size:16px; font-weight:600; margin-bottom:4px; }
.contact-item span { font-size:14px; color:var(--text-muted); }
.social-links { display:flex; gap:12px; margin-top:32px; }
.social-links a {
    width:44px; height:44px; border-radius:10px; background:var(--bg-hover);
    display:flex; align-items:center; justify-content:center; font-size:18px;
    color:var(--text-muted); transition:all 0.3s ease; text-decoration:none;
}
.social-links a:hover { background:var(--primary); color:white; transform:translateY(-3px); }
.contact-form { background:var(--bg-card); border:1px solid var(--border); border-radius:20px; padding:40px; }
.contact-form .form-group { margin-bottom:20px; }
.contact-form label { display:block; font-size:14px; font-weight:500; margin-bottom:8px; color:var(--text-muted); }
.contact-form input, .contact-form textarea {
    width:100%; padding:14px 16px; border-radius:10px; border:1px solid var(--border);
    background:var(--bg); color:var(--text); font-size:14px; font-family:inherit;
    transition:all 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-glow); }
.contact-form textarea { resize:vertical; min-height:120px; }
.contact-form button { width:100%; margin-top:8px; }
.form-success { display:none; background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.2); color:var(--accent); padding:16px; border-radius:10px; text-align:center; margin-top:16px; }

/* ========== FOOTER ========== */
/* footer {
    padding:40px 48px; border-top:1px solid var(--border);
    text-align:center; color:var(--text-muted); font-size:14px;
    position:relative; z-index:1;
}
footer .footer-logo { font-family:'JetBrains Mono', monospace; font-weight:700; font-size:20px; color:var(--text); margin-bottom:12px; }
footer .footer-logo span { color:var(--primary); } */

/* ========== SCROLL ANIMATIONS ========== */
.reveal { opacity:0; transform:translateY(40px); transition:all 0.8s ease; }
.reveal.active { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width:1024px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns:1fr; }
    .stats-grid { grid-template-columns:repeat(2,1fr); }
    .skills-grid, .services-grid, .testimonials-grid { grid-template-columns:repeat(2,1fr); }
    .projects-grid { grid-template-columns:1fr; }
    .hero h1 { font-size:48px; }
    .code-window { display:none; }
}
@media (max-width:768px) {
    nav { padding:16px 24px; }
    nav.scrolled { padding:12px 24px; }
    .nav-links { display:none; position:absolute; top:100%; left:0; right:0; background:var(--bg); flex-direction:column; padding:24px; gap:20px; border-bottom:1px solid var(--border); }
    .nav-links.active { display:flex; }
    .menu-toggle { display:block; }
    .hero { padding:100px 24px 60px; }
    .hero h1 { font-size:36px; }
    .stats-grid, .skills-grid, .services-grid, .testimonials-grid { grid-template-columns:1fr; }
    .about-section, .skills-section, .services-section, .projects-section, .testimonials-section, .contact-section, .stats-section { padding:60px 24px; }
    .section-title { font-size:32px; }
}


.fot{
    margin-top: 100px;

}
.main-footer {
    background: var(--card-bg);
    padding: 70px 8% 20px;
    border-top: 1px solid rgba(89, 243, 1, 0.1);
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about p {
    margin-top: 20px;
    color: #888;
    max-width: 350px;
    line-height: 1.8;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

/* خط صغير تحت العناوين */
.footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #888;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

/* أيقونات التواصل */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color:rgb(10 102 194);
    text-decoration: none;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-icons .link1:hover,
.social-icons .link3:hover {
    background:rgb(10 102 194);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgb(10 102 194);
}
.social-icons .link4:hover {
    background: #25d366;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px #25d366;
}
.social-icons .link5:hover {
    background: #EA4335;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px #EA4335;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px #000;
}

/* الجزء السفلي (Copyright) */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom span {
    color: var(--accent-color);
}

/* تحسين الاستجابة للموبايل */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-about p {
        margin: 20px auto 0;
    }

    .footer-links h3::after, .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
}