/* ======================================================
   GLOBAL RESET
====================================================== */

*,
*::before,
*::after{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;

}

body{
font-family:'Cairo',sans-serif;
background:#0a0a1f;
color:#fff;
overflow-x:hidden;
}


/* ======================================================
   ROOT VARIABLES
====================================================== */

:root{

--header-h:66px;

--violet:#b66bff;
--violet-2:#9933ff;

--profile-gap:30px;
--profile-gap-mobile:20px;

--profile-size:180px;
--profile-size-mobile:130px;

--header-max:1180px;
--header-padding-x:3%;

--links-gap:22px;
--social-gap:16px;

--avatar-desktop-bump:34px;

}


/* ======================================================
   SEO HIDDEN TITLE
====================================================== */

.visually-hidden{
position:absolute!important;
width:1px!important;
height:1px!important;
padding:0!important;
margin:-1px!important;
overflow:hidden!important;
clip:rect(0 0 0 0)!important;
white-space:nowrap!important;
border:0!important;
}


/* ======================================================
   PARTICLES BACKGROUND
====================================================== */

#particles-js{
position:fixed;
inset:0;
width:100%;
height:100%;
z-index:-1;
}

@media (max-width:900px){
#particles-js{
display:none!important;
}
}


/* ======================================================
   HEADER / NAVBAR
====================================================== */

.site-header{

position:fixed;
top:0;
left:0;
right:0;

height:var(--header-h);

z-index:50;

background:rgba(10,10,31,.92);

border-bottom:1px solid rgba(182,107,255,.18);

backdrop-filter:blur(6px);
-webkit-backdrop-filter:blur(6px);

}

.site-header .nav-wrap{

height:100%;

display:flex;
align-items:center;
justify-content:space-between;

gap:16px;

max-width:var(--header-max);
margin-inline:auto;

padding-inline:var(--header-padding-x);

position:relative;

}


/* ======================================================
   NAVIGATION LINKS
====================================================== */

.nav-right{

display:flex;
align-items:center;
gap:var(--links-gap);

}

.nav-right a{

color:#fff;

padding:8px 12px;

border-radius:10px;

text-decoration:none;

opacity:.96;

transition:background .2s, transform .2s;

}

.nav-right a:hover{

background:rgba(182,107,255,.18);
transform:translateY(-1px);

}

.nav-right a.active{

background:linear-gradient(
90deg,
rgba(182,107,255,.28),
rgba(153,51,255,.22)
);

border:1px solid rgba(182,107,255,.25);

}


/* ======================================================
   BRAND
====================================================== */

.brand{

display:none;

color:var(--violet);

font-weight:800;

letter-spacing:.3px;

}


/* ======================================================
   SOCIAL ICONS
====================================================== */

.social-left{

display:flex;
align-items:center;

gap:var(--social-gap);

}

.social-left a{

display:flex;
align-items:center;
gap:8px;

color:#b66bff;

text-decoration:none;

font-size:.95rem;

opacity:.95;

transition:opacity .2s;

}

.social-left a:hover{
opacity:1;
}

.social-left i{
font-size:1.1rem;
}


/* ======================================================
   MOBILE MENU BUTTON
====================================================== */

.nav-toggle{

display:none;

width:44px;
height:44px;

border:0;

background:transparent;

cursor:pointer;

border-radius:12px;

box-shadow:0 0 0 1px rgba(182,107,255,.2) inset;

}

.nav-toggle:focus-visible{
outline:2px solid var(--violet);
}

.nav-toggle .bar{

display:block;

height:2px;

margin:7px 9px;

background:#fff;

border-radius:2px;

box-shadow:0 0 10px rgba(182,107,255,.4);

transition:.25s;

}

.nav-toggle.is-open .bar:nth-child(1){
transform:translateY(9px) rotate(45deg);
}

.nav-toggle.is-open .bar:nth-child(2){
opacity:0;
}

.nav-toggle.is-open .bar:nth-child(3){
transform:translateY(-9px) rotate(-45deg);
}


/* ======================================================
   MOBILE NAVIGATION
====================================================== */

@media (max-width:900px){

.nav-toggle{

display:block;

position:absolute;

right:12px;

top:50%;

transform:translateY(-50%);

z-index:51;

}

.brand{

display:block;

position:absolute;

left:0;
right:0;

margin:auto;

text-align:center;

text-transform:uppercase;

font-size:1.15rem;

}

.social-left{
display:none;
}

.nav-right{

position:fixed;

top:var(--header-h);
right:0;

width:min(340px,82vw);

height:calc(100vh - var(--header-h));
height:calc(100dvh - var(--header-h));

background:rgba(10,10,31,.98);

border-left:1px solid rgba(182,107,255,.18);

transform:translateX(100%);

transition:transform .25s ease;

display:flex;
flex-direction:column;

gap:10px;

padding:16px;

z-index:49;

overflow-y:auto;
-webkit-overflow-scrolling:touch;

}

.nav-right.open{
transform:translateX(0);
}

body.menu-open{
overflow-y:hidden;
}

.menu-divider{

height:1px;

background:rgba(182,107,255,.25);

margin:10px 0;

}

.social-mobile{

display:flex;
flex-direction:column;
gap:10px;

}

.social-mobile a{

display:flex;
align-items:center;
gap:10px;

color:#b66bff;

text-decoration:none;

font-size:.98rem;

opacity:.95;

}

.social-mobile a:hover{
opacity:1;
}

}

@media (min-width:901px){

.social-mobile{
display:none!important;
}

}


/* ======================================================
   HERO SECTION
====================================================== */

#home{

min-height:100vh;

display:flex;
flex-direction:column;

align-items:center;

justify-content:flex-start;

text-align:center;

position:relative;
z-index:1;

width:100%;

padding-top:calc(var(--header-h) + var(--profile-gap));

}

.profile-pic{

width:calc(var(--profile-size) + var(--avatar-desktop-bump));
height:calc(var(--profile-size) + var(--avatar-desktop-bump));

aspect-ratio:1/1;

border-radius:50%;

border:4px solid var(--violet);

object-fit:cover;

margin-top:var(--profile-gap);

}

.name{

font-size:3rem;

margin:15px 0 5px;

color:var(--violet);

}

.title{

font-size:1.5rem;

color:#fff;

margin-bottom:20px;

}

.typed-text{

font-size:1.6rem;

opacity:.9;

}


/* ======================================================
   SCROLL TO TOP BUTTON
====================================================== */

#scrollToTopContainer{

position:fixed;

bottom:30px;
right:30px;

width:60px;
height:60px;

z-index:999;

cursor:pointer;

display:none;
opacity:0;

transition:opacity .3s, transform .2s;

}

#scrollToTopContainer.show{
display:block;
opacity:1;
}

#scrollToTopCircle{

width:100%;
height:100%;

border-radius:50%;

border:3px solid rgba(255,2,242,.4);

display:flex;
align-items:center;
justify-content:center;

position:relative;

backdrop-filter:blur(4px);

}

#scrollToTopProgress{

position:absolute;
inset:0;

border-radius:50%;

border:3px solid #FF02F2;

border-top-color:transparent;
border-right-color:transparent;

pointer-events:none;

}

#scrollToTopArrow svg{

width:28px;
height:28px;

fill:#FF02F2;

}
/* ======================================================
   FOOTER
====================================================== */

#page-footer{

margin-top:0px;

background:linear-gradient(
180deg,
rgba(21,21,51,.95),
rgba(10,10,31,1)
);

border-top:1px solid rgba(182,107,255,.2);

padding:12px 12px 12px;

}


/* container */

.footer-container{

max-width:1000px;
margin:auto;

text-align:center;

}


/* الاسم */

.footer-name{

font-size:1.4rem;
font-weight:700;

letter-spacing:.5px;

margin-bottom:4px;

}

/* الاسم باللون الأصفر */

.footer-highlight{
color:#FFD54A;
}


/* الوظيفة */

.footer-role{

color:#b66bff;

font-weight:600;

margin-bottom:10px;

}


/* الوصف */

.footer-desc{

color:#aaa;

font-size:.9rem;

max-width:520px;

margin:auto;

line-height:1.6;

}


/* ======================================================
   SOCIAL ICONS
====================================================== */

.footer-social{

margin-top:20px;

display:flex;
justify-content:center;
gap:16px;

}

/* الأيقونات */

.footer-social a{

width:40px;
height:40px;

display:flex;
align-items:center;
justify-content:center;

border-radius:10px;

background:rgba(182,107,255,.08);

color:#b66bff;

font-size:18px;

text-decoration:none; /* إزالة الخط */

transition:.25s;

}

.footer-social a:hover{

background:rgba(182,107,255,.2);

transform:translateY(-3px);

}

/* ======================================================
   FOOTER BOTTOM
====================================================== */

.footer-bottom{
margin-top:12px;
text-align:center;
font-size:.85rem;
color:#888;

}
.footer-head{
display:block;
align-items:center;
justify-content:center;
gap:10px;

direction:ltr; /* الحل هنا */
}

.footer-name{
margin:0;
}

.footer-role{
margin:0;
}
/* ======================================================
   CUSTOM SCROLLBAR
====================================================== */

::-webkit-scrollbar{
width:10px;
}

::-webkit-scrollbar-track{
background:#0a0a1f;
}

::-webkit-scrollbar-thumb{

background:linear-gradient(
180deg,
#b66bff,
#9933ff
);

border-radius:10px;

border:2px solid #0a0a1f;

}

::-webkit-scrollbar-thumb:hover{
background:#d2a8ff;
}


/* ======================================================
   FULL SCREEN SECTIONS
====================================================== */

section{
min-height:100vh;
display:block;
}

@media (min-width:1600px){

section{
min-height:100vh;
}

}
/* =======================================
   MOBILE SCROLLBAR FIX
======================================= */

@media (max-width:768px){

html, body{
scrollbar-width: thin;
scrollbar-color: #b66bff #0a0a1f;
}

/* للأجهزة التي تدعم webkit */

body::-webkit-scrollbar{
width:6px;
}

body::-webkit-scrollbar-track{
background:#0a0a1f;
}

body::-webkit-scrollbar-thumb{

background:linear-gradient(
180deg,
#b66bff,
#9933ff
);

border-radius:20px;

}

body::-webkit-scrollbar-thumb:hover{
background:#d2a8ff;
}

}
@media (max-width: 768px){

  #home{
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 18px);
    padding-inline: 16px;
  }

  .profile-pic{
    width: 145px;
    height: 145px;
    margin-top: 14px;
    border-width: 3px;
  }

  .name{
    font-size: 2.1rem;
    line-height: 1.1;
    margin: 12px 0 4px;
    white-space: nowrap;
  }

  .title{
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #f59e0b;
    font-weight: 700;
  }

  .typed-text{
    font-size: 1.15rem;
    line-height: 1.5;
    max-width: 92%;
    margin-inline: auto;
  }

  .brand{
    font-size: 1rem;
  }

  .nav-toggle{
    width: 42px;
    height: 42px;
  }
}