html: {
scroll-behavior: smooth;
}
/* خلي الصفحة كلها تملأ الطول */
/* المحتوى ياخذ المساحة */
body {
margin:0;
background:#fff;
font-family:'Inter', sans-serif;
transition: all 0.3s ease;
padding-bottom: 20px;
}
body.ar { font-family:'IBM Plex Sans Arabic',sans-serif; }
header { display:flex; align-items:center; padding:10px 20px; gap:15px; position:sticky; top:0; z-index:999; background:transparent; transition:all 0.3s ease; }
header .logo { font-size:24px; font-weight:bold; transition:all 0.3s ease; }
header.scrolled {
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-redius-bottom: 12px;
border-bottom-left: 1px solid #ccc;
}
header::after {
content: "";
position: absolute;
bottom: 0;
left: 40px;
right: 40px;
height: 1px;
background: linear-gradient(to right, transparent, #ccc, transparent);
}
.logo { font-size:24px; font-weight:bold; transition: all 0.3s ease; }
.btn { display:flex; align-items:center; padding:8px 12px; border-radius:12px; border:none; cursor:pointer; font-size:14px; text-decoration:none; }
/* زر CV */
.cv-btn {
background-color: transparent;
color:#000;
font-size:14px;
padding:10px 13px;
border-radius:12px;
border:1px solid #ccc;
display:flex;
align-items:center;
gap:8px;
transition: all 0.3s ease;
}
.cv-btn:hover { background-color: rgba(0,0,0,0.05); transform: translateY(-2px); }
.lang-btn {
background:transparent;
border:1px solid #ccc;
border-radius:12px;
cursor:pointer;
padding:10px 6px;
display:flex;
align-items:center;
justify-content:center;
position:relative;
transition:all 0.3s ease;
}
.lang-btn img { width:28px; height:20px; border-radius: 7px; }
.lang-btn:hover { background:rgba(0,0,0,0.05); }
.lang-btn i { transition: transform 0.2s; }
.lang-menu {
display:none;
position:absolute;
top:45px;
right:0;
background:#fff;
border:1px solid #ccc;
border-radius:8px;
box-shadow:0 2px 8px rgba(0,0,0,0.15);
z-index:100;
min-width:140px;
padding:5px 0;
}
.lang-menu button {
display:flex;
align-items:center;
gap:8px;
width:100%;
padding:5px 10px;
border:none;
background:none;
cursor:pointer;
font-size:14px;
}
.lang-menu button:hover { background:#f0f0f0; border-radius:6px; }
.lang-menu img { width:28px; height:20px; border-radius:7px; }
main {
padding:20px;
flex: 1;
}
/* Hero Section */
.hero {
position: relative;
padding: 60px 20px 60px; /* قللنا المسافة العلوية والسفلية */
text-align: center;
border-radius: 12px;
margin-bottom: 30px;
color: #111;
overflow: hidden;
background-color: #ffffff;
}
.hero-memoji {
position: relative; /* مهم عشان يشتغل z-index */
z-index: 2; /* فوق الخطوط */
margin-bottom: -10px; /* القيمة الافتراضية (للموبايل) */
}
/* للشاشات الكبيرة (بيسي) */
@media (min-width: 769px) {
.hero-memoji {
margin-bottom: -30px;
}
}
.hero-memoji img {
width: 80px;
max-width: 30vw;
height: auto;
display: block;
margin: 0 auto;
border-radius: 0;
}
.hero-badge {
position: relative;
margin: 0 auto 20px; /* لصقناها فوق بدون فراغ زايد */
background: #fff;
padding: 6px 14px;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
color: #111;
display: inline-flex;
align-items: center;
gap: 8px;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
z-index: 3;
}
.hero::before {
content: "";
position: absolute;
inset: 0;
background-image:
linear-gradient(#ddd 1px, transparent 1px),
linear-gradient(90deg, #ddd 1px, transparent 1px);
background-size: 40px 40px;
z-index: 0;
-webkit-mask-image: linear-gradient(to top, transparent, black 20%, black 80%, transparent),
linear-gradient(to left, transparent, black 20%, black 80%, transparent);
-webkit-mask-composite: intersect;
mask-image: linear-gradient(to top, transparent, black 20%, black 80%, transparent),
linear-gradient(to left, transparent, black 20%, black 80%, transparent);
mask-composite: intersect;
}
.hero h1,
.hero p,
.hero a { position: relative; z-index: 1; }
.hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 15px; }
.hero p { font-size: 18px; color: #333; margin-bottom: 25px; }
.hero-desc {
max-width: 600px; /* تحدد عرض النص */
line-height: 1.8; /* تباعد الأسطر */
white-space: normal; /* يسمح بالكسر */
}
.highlight {
font-type: italic;
color:#007bff; font-weight:700; position:relative; }
.highlight::after {
content:"";
position:absolute;
left:0;
bottom:-3px;
width:100%;
height:3px;
background: linear-gradient(to right, transparent, #007bff, transparent);
border-radius:2px;
}
.hero-btn {
background:#111;
color:#fff;
padding:12px 24px;
font-size:15px;
font-weight:500;
border-radius:8px;
border:1px solid #111;
text-decoration:none;
display:inline-flex;
align-items:center;
gap:8px;
transition:all 0.3s ease;
}
.hero-btn:hover {
background:rgba(255,255,255,0.2);
color:#111;
border:1px solid #111;
backdrop-filter:blur(8px);
-webkit-backdrop-filter:blur(8px);
transform:translateY(-2px);
}
/* الزوايا */
.hero .corner { position:absolute; width:20px; height:20px; z-index:1; }
.hero .corner::before,
.hero .corner::after { content:""; position:absolute; background:#007bff; }
.hero .corner::before { width:20px; height:2px; top:0; left:0; }
.hero .corner::after { width:2px; height:20px; top:0; left:0; }
.hero .corner.tl { top:15px; left:15px; }
.hero .corner.tr { top:15px; right:15px; transform:rotate(90deg); }
.hero .corner.bl { bottom:15px; left:15px; transform:rotate(-90deg); }
.hero .corner.br { bottom:15px; right:15px; transform:rotate(180deg); }
/* Badge فوق الهيرو */
.hero-badge .status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #28a745;
position: relative;
}
.hero-badge .status-dot::after {
content:"";
position:absolute;
top:50%; left:50%;
transform:translate(-50%, -50%);
width:20px; height:20px;
border-radius:50%;
border:2px solid #28a745;
opacity:0.6;
animation:pulse 1.5s infinite;
}
@keyframes pulse {
0% { transform:translate(-50%, -50%) scale(0.8); opacity:0.7; }
70% { transform:translate(-50%, -50%) scale(1.4); opacity:0; }
100% { opacity:0; }
}
/* About Me Section */
.about {
padding:60px 20px;
text-align:center;
background:#f9f9f9;
border-radius:12px;
margin-bottom:40px;
}
.about h2 { font-size:28px; font-weight:700; margin-bottom:10px; }
.about p { font-size:16px; color:#555; margin-bottom:40px; }
.about-cards {
display:grid;
grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
gap:25px;
max-width:1000px;
margin:auto;
}
.card {
background:#fff;
border-radius:12px;
padding:25px;
box-shadow:0 4px 12px rgba(0,0,0,0.05);
text-align:left;
transition:transform 0.3s ease;
}
.card:hover { transform:translateY(-5px); }
.card h3 { font-size:20px; margin-bottom:10px; color:#111; }
.card p { font-size:14px; color:#555; margin:5px 0; }
/* أيقونة داخل دائرة */
/* تعديل ترتيب الأيقونة والعنوان */
.card-header {
display: flex;
align-items: center;
gap: 12px; /* مسافة بين الأيقونة والعنوان */
margin-bottom: 15px;
}
.card-header h3 {
margin: 0;
font-size: 20px;
color: #111;
}
/* الأيقونة */
.card-icon {
width: 45px;
height: 45px;
border-radius: 50%;
background: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
color: #007bff;
box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
/* Progress Bars */
.progress-bar {
background:#eee;
border-radius:6px;
overflow:hidden;
margin:10px 0 30px;
height:12px;
position:relative;
}
.progress {
height:100%;
border-radius:6px;
background:#111;
transition:width 1s ease-in-out;
}
.progress-label {
position:absolute;
top:-20px;
right:0;
font-size:13px;
font-weight:600;
color:#111;
}
/* Skills Timeline Section */
.skills {
padding: 60px 20px;
background: #fff;
border-radius: 12px;
margin-bottom: 40px;
}
.skills h2 {
font-size: 28px;
font-weight: 700;
margin-bottom: 10px;
text-align: center;
}
.skills p {
font-size: 16px;
color: #555;
margin-bottom: 40px;
text-align: center;
}
.skills-timeline {
position: relative;
margin: auto;
padding-left: 40px;
border-left: 2px solid #007bff;
max-width: 800px;
}
.skill-item {
position: relative;
margin-bottom: 40px;
}
.skill-dot {
position: absolute;
top: 5px;
left: -40px;
transform: translateX(-50%);
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
border: 3px solid #007bff;
}
.skill-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.skill-icon {
width: 36px;
height: 36px;
border-radius: 8px;
background: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: #007bff;
}
.skill-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.skill-tag {
padding: 6px 12px;
background: #f9f9f9;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 13px;
color: #333;
}
/* IMPROVED WORKS SECTION */
.works {
position: relative;
padding: 60px 20px;
margin-bottom: 40px;
background: #f9f9f9;
border-radius: 12px;
overflow: hidden;
}
.works-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
flex-wrap: wrap;
gap: 15px;
}
.works-title {
font-size: 28px;
font-weight: 700;
margin: 0;
text-align: center;
flex: 1;
}
.works-controls {
display: none; /* مخفية على الكمبيوتر */
gap: 10px;
}
.works-desc {
font-size: 16px;
color: #555;
margin-bottom: 20px;
text-align: center;
}
/* الـ Slider - محور في الكمبيوتر */
.works-slider {
display: flex;
gap: 20px;
overflow-x: auto;
scroll-behavior: smooth;
padding: 10px 0;
scrollbar-width: none;
-ms-overflow-style: none;
justify-content: center; /* محور في الكمبيوتر */
}
.works-slider::-webkit-scrollbar {
display: none;
}
/* Enhanced Work Cards */
.work-card {
flex: 0 0 auto;
width: 260px;
max-width: 90%;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
padding: 0;
text-align: left;
transition: all 0.3s ease;
overflow: hidden;
position: relative;
}
.work-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.work-card img {
width: 100%;
height: 160px;
object-fit: cover;
border-radius: 0;
margin-bottom: 0;
}
.work-card-content {
padding: 20px;
}
.work-card h3 {
font-size: 20px;
margin-bottom: 8px;
color: #111;
}
.work-card p {
font-size: 14px;
color: #555;
margin-bottom: 10px;
}
/* Enhanced Tags */
.work-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.tag {
padding: 6px 10px;
font-size: 12px;
border-radius: 6px;
background: #f0f0f0;
color: #333;
border: 1px solid #ddd;
}
/* Enhanced Project Button */
.work-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
border-radius: 8px;
background: #111;
color: #fff;
font-size: 14px;
text-decoration: none;
transition: all 0.3s ease;
}
.work-btn:hover {
background: #007bff;
}
/* أزرار السلايدر - مخفية في الكمبيوتر */
.slider-btn {
background: #fff;
border: 1px solid #ddd;
font-size: 16px;
cursor: pointer;
padding: 8px 10px;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
transition: all 0.2s ease;
position: relative;
z-index: 999;
}
.slider-btn:hover {
background: #007bff;
color: #fff;
}
/* الكمبيوتر - مخفي الأسهم */
@media (min-width: 769px) {
.works-controls {
display: none;
}
.works-slider {
justify-content: center;
flex-wrap: wrap; /* يسمح بالتفاف البطاقات */
overflow: visible; /* بدون سكرول */
}
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.works {
padding: 60px 15px 80px; /* مساحة إضافية للأزرار */
}
.works-header {
justify-content: center;
flex-direction: column;
text-align: center;
}
.works-controls {
display: flex; /* ظاهرة في الموبايل */
justify-content: center;
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
gap: 15px;
}
.works-slider {
justify-content: flex-start;
flex-wrap: nowrap;
overflow-x: auto;
scroll-snap-type: x mandatory;
}
.work-card {
scroll-snap-align: start;
width: 280px;
}
}
@media (max-width: 480px) {
.work-card {
width: 260px;
}
.work-card-content {
padding: 18px;
}
}
/* Contact Section */
/* Contact Section */
.contact {
padding: 60px 20px;
text-align: center;
background: #fff;
border-radius: 12px;
margin-bottom: 5px;
}
.contact-title {
font-size: 32px;
font-weight: 700;
margin-bottom: 10px;
}
.contact-subtitle {
font-size: 18px;
color: #555;
margin-bottom: 30px;
}
.contact-list {
display: flex;
flex-direction: column;
gap: 20px;
max-width: 500px;
margin: 0 auto;
}
.contact-box {
display: flex;
align-items: center;
text-decoration: none;
background: #fff;
gap: 15px;
transition: transform 0.2s ease;
}
.contact-box:hover {
transform: translateY(-3px);
}
.icon-box {
width: 55px;
height: 55px;
border-radius: 12px;
background: #f3f4f6;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
color: #333;
}
.contact-text {
text-align: left;
}
.contact-label {
font-size: 14px;
color: #666;
margin: 0;
}
.contact-value {
font-size: 16px;
font-weight: 500;
color: #111;
margin: 2px 0 0;
}
.contact-value-email {
font-size: 13px;
font-weight: 500;
color: #111;
margin: 2px 0 0;
}
/* Email - يظل عادي */
.contact-box:nth-child(1) .icon-box {
color: #007bff; /* أزرق خفيف */
}
/* Instagram - متدرج */
.contact-box:nth-child(2) .icon-box {
background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
color: #fff;
}
/* WhatsApp - أخضر */
.contact-box:nth-child(3) .icon-box {
background: #25D366;
color: #fff;
}
.footer-image {
text-align: center;
margin-bottom: -10px; /* عشان تنزل شوي وتدخل على الفوتر */
position: relative;
z-index: 1;
}
.footer-img {
max-width: 180px;
width: 100%;
height: auto;
border-radius: 12px; /* أو 50% إذا تبغى دائري */
}
.footer {
position: relative;
z-index: 2; /* الفوتر يبان فوق الصورة إذا دخلت تحته */
background: black;
color: #fff;
text-align: center;
padding: 10px 20px; /* زودنا من فوق عشان الصورة تدخل فيه */
font-size: 14px;
border-radius: 12px;
border: 2px solid #ccc;
}