@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root{
  --bg:#071016;
  --panel:#0d1a22;
  --panel-2:#101f29;
  --text:#f7f7f7;
  --muted:#c8d0d4;
  --gold:#f5b82e;
  --gold-2:#d39b19;
  --line:rgba(245,184,46,.5);
  --glass:rgba(255,255,255,.06);
  --shadow: 0 30px 80px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Cairo', Arial, sans-serif;
  background:
    radial-gradient(circle at 70% 15%, rgba(245,184,46,.12), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.08), transparent 25%),
    linear-gradient(135deg,#050a0e,#0b1821 45%,#05090d);
  color:var(--text);
  line-height:1.8;
}

a{color:inherit;text-decoration:none}
a:hover{color:var(--gold)}
.row{
  width: 100%;
}
.sidebar, .content{
  direction:rtl;
  padding: 20px;

}
.sidebar-card{
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.11);
  border-radius:20px;
  padding:30px 24px;
  box-shadow:var(--shadow);
  position:sticky;
  top:20px;
}
.side-section{
  padding:0 0 24px;
  margin-bottom:24px;
  border-bottom:1px solid rgba(245,184,46,.35);
}
.side-section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.side-section h2{
  margin:0 0 22px;
  color:var(--gold);
  font-size:28px;
  font-weight:900;
  text-align:center;
  position:relative;
}
.side-section h2:after{
  content:"";
  width:80px;height:2px;background:var(--gold);
  display:block;margin:10px auto 0;
}
.contact ul, .bullets{list-style:none;padding:0;margin:0}
.contact li{
  display:flex;align-items:center;gap:14px;margin:14px 0;
  color:#fff;font-size:18px;direction:rtl;
}
.ico{
  min-width:38px;height:38px;border-radius:50%;
  background:var(--gold);
  color:#071016;
  display:grid;place-items:center;
  font-weight:900;
  font-size:17px;
}
.mini-block{text-align:center;font-size:18px}
.large-icon{
  width:70px;height:70px;border:2px solid var(--gold);
  color:var(--gold);border-radius:50%;
  display:grid;place-items:center;margin:0 auto 14px;font-size:32px;
}
.mini-block strong{color:var(--gold);font-size:24px;display:block;margin-top:6px}
.skills h3{
  color:var(--gold);
  margin:18px 0 10px;
  font-size:21px;
}
.bullets li{
  position:relative;
  padding-right:22px;
  margin:5px 0;
  color:#f5f7f8;
}
.bullets li:before{
  content:"";
  position:absolute;right:0;top:15px;
  width:7px;height:7px;border-radius:50%;background:var(--gold);
}

.content{
  background:rgba(7,16,22,.35);
  border-radius:28px;
  padding:38px;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.06);
}
.hero{
  display:grid;
  grid-template-columns:1fr 260px;
  align-items:center;
  gap:34px;
  padding-bottom:28px;
  border-bottom:2px solid var(--line);
}
.hero h1{
  color: #fff;
  margin:0;
  font-size:76px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:-2px;
  text-shadow:0 10px 20px rgba(0,0,0,.35);
}
.main-title{
  margin:12px 0 0;color:var(--gold);
  font-size:24px;font-weight:800;
}
.sub-title{font-size:26px;margin:5px 0 22px}
.quote{
  font-size:22px;
  color:#fff;
  margin:24px 0 0;
}
.quote:before,.quote:after{color:var(--gold);font-size:42px;vertical-align:middle}
.photo-frame{
  width:260px;height:260px;border-radius:32px;
  overflow:hidden;border:3px solid rgba(245,184,46,.85);
  background:#111;box-shadow:0 18px 35px rgba(0,0,0,.4);
}
.photo-frame img{
  width:100%;height:100%;object-fit:cover;object-position:center top;
}
.section{
  padding:28px 0;
  border-bottom:1px solid rgba(245,184,46,.38);
}
.section h2{
  margin:0 0 18px;
  color:var(--gold);
  font-size:34px;
  font-weight:900;
}
.about p{
  font-size:20px;
  margin:0;
  color:#f0f3f4;
  max-width:900px;
}
.about strong{color:var(--gold)}

.timeline{
  position:relative;
  padding-right:190px;
}
.timeline:before{
  content:"";
  position:absolute;
  right:150px;
  top:18px;
  bottom:35px;
  width:2px;
  background:linear-gradient(var(--gold),rgba(245,184,46,.4));
}
.tl-item{
  position:relative;
  display:grid;
  grid-template-columns: 170px 1fr;
  gap:26px;
  margin:0 0 24px;
  padding-bottom:22px;
  border-bottom:1px dashed rgba(255,255,255,.25);
}
.tl-item:last-child{border-bottom:0}
.tl-item:before{
  content:"";
  position:absolute;
  right:-47px;
  top:13px;
  width:16px;height:16px;border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 7px rgba(245,184,46,.14);
}
.date{
  color:var(--gold);
  font-size:22px;
  font-weight:900;
  padding-top:4px;
}
.tl-content h3{
  margin:0 0 4px;
  font-size:24px;
  color:var(--gold);
}
.tl-content span{display:block;color:#e6ecef;margin-bottom:8px}
.tl-content ul{margin:0;padding-right:22px}
.tl-content li{margin:4px 0;color:#f2f4f5}
.tl-content strong{color:var(--gold)}

.projects{border-bottom:0}
.project-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.project-card{
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.1);
  border-radius:22px;
  overflow:hidden;
  transition:.25s ease;
}
.project-card:hover{transform:translateY(-6px);border-color:rgba(245,184,46,.55)}
.project-card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  background:#fff;
}
.project-card div{padding:18px}
.project-card h3{
  margin:0;color:var(--gold);font-size:25px;
}
.project-card span{display:block;margin:0 0 8px;color:#fff;font-weight:700}
.project-card p{margin:8px 0;color:#e8eef0}
.project-card a{color:var(--gold);word-break:break-word}
.tech,.rating{color:var(--gold)!important;font-weight:800}

.footer{
  display:flex;gap:14px;justify-content:center;
  padding:30px 0 0;
}
.footer button,.footer a{
  border:1px solid var(--gold);
  background:var(--gold);
  color:#071016;
  padding:12px 24px;
  border-radius:999px;
  cursor:pointer;
  font-family:inherit;
  font-size:17px;
  font-weight:800;
}
.quick-contact{
    padding-top:70px;
    padding-bottom:50px;
}

.contact-title{
    color:#f3b233;
    font-size:42px;
    font-weight:700;
}

.contact-btn{
    width:170px;
    height:170px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    background:rgba(255,255,255,.03);

    border:2px solid rgba(243,178,51,.25);

    border-radius:25px;

    text-decoration:none;

    color:white;

    transition:.3s;

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 30px rgba(0,0,0,.3);
}

.contact-btn i{
    font-size:48px;
    margin-bottom:15px;
}

.contact-btn span{
    font-size:20px;
    font-weight:600;
}

.contact-btn:hover{
    transform:translateY(-10px);
    border-color:#f3b233;
    box-shadow:
        0 20px 40px rgba(243,178,51,.25);
}

.whatsapp i{
    color:#25D366;
}

.phone i{
    color:#f3b233;
}

.email i{
    color:#4ea3ff;
}

.linkedin i{
    color:#0A66C2;
}

.portfolio i{
    color:#f3b233;
}
.footer a{
  background:transparent;color:var(--gold);
}
.footer button:hover,.footer a:hover{filter:brightness(1.08)}

@media (max-width:980px){
  .page-shell{grid-template-columns:1fr}
  .sidebar-card{position:static}
  .hero{grid-template-columns:1fr;text-align:center}
  .photo-frame{margin:auto;order:-1}
  .timeline{padding-right:0}
  .timeline:before{display:none}
  .tl-item{grid-template-columns:1fr}
  .tl-item:before{display:none}
  .project-grid{grid-template-columns:1fr}
  .hero h1{font-size:54px}
}
@media (max-width:520px){
  .page-shell{width:100%;margin:0}
  .content,.sidebar-card{border-radius:0;padding:24px 18px}
  .hero h1{font-size:44px}
  .main-title,.sub-title{font-size:20px}
  .photo-frame{width:220px;height:220px}
  .about p{font-size:17px}
}
@media print{
  body{background:#071016;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .page-shell{width:100%;margin:0;gap:18px}
  .footer{display:none}
  .sidebar-card,.content{box-shadow:none}
  a{text-decoration:none}
}
.skill-bars{
    margin-top:15px;
}

.skill-item{
    margin-bottom:18px;
}

.skill-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:6px;
    color:#fff;
    font-size:15px;
    font-weight:600;
}

.progress{
    height:8px;
    background:rgba(255,255,255,.08);
    border-radius:20px;
    overflow:hidden;
}

.progress-bar{
    height:100%;
    border-radius:20px;
    background:linear-gradient(90deg,#f3b233,#ffd369);
    box-shadow:0 0 10px rgba(243,178,51,.5);
}

/* نسب المهارات */

.skill-php{
    width:90%;
}

.skill-mysql{
    width:85%;
}

.skill-js{
    width:75%;
}

.skill-html{
    width:95%;
}

.skill-css{
    width:90%;
}

.skill-bootstrap{
    width:90%;
}

.skill-jquery{
    width:80%;
}
.lang-row{
    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:18px 0;

    color:white;

    font-size:16px;
}

.dots{
    display:flex;
    gap:8px;
}

.dots span{
    width:14px;
    height:14px;

    border-radius:50%;

    border:2px solid #f3b233;

    background:transparent;
}

.dots .active{
    background:#f3b233;

    box-shadow:
        0 0 10px rgba(243,178,51,.7);
}
.project-buttons{

    

    gap:10px;

    margin-top:20px;
}

.btn-project{

    flex:1;

    padding:12px 15px;

    border-radius:12px;

    text-align:center;

    text-decoration:none;

    font-size:15px;

    font-weight:600;

    transition:.3s;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;
}

/* زر زيارة الموقع */
a.btn-visit{
  color: #111;
}

.btn-visit{

    background:#f3b233;

    color:#111;
}

.btn-visit:hover{

    background:#ffd369;

    transform:translateY(-3px);

    box-shadow:
        0 10px 20px rgba(243,178,51,.35);
}

/* زر عرض المشروع */

.btn-view{

    background:transparent;

    color:white;

    border:2px solid #f3b233;
}

.btn-view:hover{

    background:#f3b233;

    color:#111;

    transform:translateY(-3px);
}
/* =====================
      الإنجازات
===================== */

.achievement-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

    margin-top:30px;
}


.achievement-card{

    background:
        rgba(255,255,255,.03);

    border:
        1px solid rgba(243,178,51,.25);

    border-radius:20px;

    padding:30px 20px;

    text-align:center;

    transition:.3s;

    backdrop-filter:blur(10px);

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);
}


.achievement-card:hover{

    transform:
        translateY(-8px);

    border-color:#f3b233;

    box-shadow:
        0 20px 40px rgba(243,178,51,.20);
}


.achievement-icon{

    width:70px;
    height:70px;

    margin:auto;

    margin-bottom:20px;

    border-radius:50%;

    background:
        rgba(243,178,51,.15);

    display:flex;

    justify-content:center;

    align-items:center;
}


.achievement-icon i{

    color:#f3b233;

    font-size:28px;
}


.achievement-card h3{

    color:#f3b233;

    font-size:30px;

    font-weight:700;

    margin-bottom:10px;
}


.achievement-card p{

    color:white;

    font-size:16px;

    line-height:1.6;
}

