-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
547 lines (494 loc) · 34.4 KB
/
Copy pathstyles.css
File metadata and controls
547 lines (494 loc) · 34.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
/* Abdalsamee Alnajjar — Portfolio */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; padding: 0; }
html[data-theme="light"], body { background: #f6f7fb; }
html[data-theme="dark"] { background: #06060a; }
/* 1. استبدل كود التصفير القديم (السطر 7 وما بعده) بهذا الكود */
#aa-root, #aa-root *, #aa-root *::before, #aa-root *::after {
box-sizing: border-box;
}
/* تصفير الهوامش فقط للعناصر النصية والقوائم لمنع الفراغات العشوائية */
#aa-root h1, #aa-root h2, #aa-root h3, #aa-root h4,
#aa-root p, #aa-root ul, #aa-root figure {
margin: 0;
padding: 0;
}
/* 2. تأكد من أن الـ body و الـ html لا يملكان أي هوامش جانبية */
html, body {
margin: 0;
padding: 0;
width: 100%;
overflow-x: hidden; /* لمنع الإزاحة الأفقية */
}
/* 3. تعديل حاوية المحتوى لضمان التوسط الإجباري */
.aa-container {
width: 100%;
max-width: 1140px;
/* استخدام auto بشكل صريح وواضح للطرفين */
margin-left: auto !important;
margin-right: auto !important;
padding-inline: clamp(1.25rem, 5vw, 2.5rem);
display: block; /* لضمان سلوك العنصر ككتلة */
}
#aa-root {
--brand-1: #2dd4bf; --brand-2: #38bdf8; --brand-3: #818cf8; --gold: #f4c95d;
--grad: linear-gradient(120deg, #2dd4bf 0%, #38bdf8 45%, #818cf8 100%);
--grad-soft: linear-gradient(120deg, rgba(45,212,191,.18), rgba(129,140,248,.18));
--r-sm: 10px; --r-md: 18px; --r-lg: 26px;
--fade: 700ms cubic-bezier(.16,1,.3,1);
--ease: cubic-bezier(.16,1,.3,1);
font-family: 'Inter', system-ui, sans-serif; line-height: 1.7;
position: relative; min-height: 100vh; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
#aa-root[dir="rtl"] { font-family: 'Tajawal', system-ui, sans-serif; line-height: 1.95; }
#aa-root[data-theme="dark"] {
--bg: #06060a; --bg-2: #0c0d15; --surface: rgba(255,255,255,.035);
--surface-2: rgba(255,255,255,.06); --border: rgba(255,255,255,.09);
--text: #f3f4fb; --dim: #9698b3; --shadow: rgba(0,0,0,.5);
}
#aa-root[data-theme="light"] {
--bg: #f6f7fb; --bg-2: #ffffff; --surface: rgba(10,12,30,.025);
--surface-2: rgba(10,12,30,.05); --border: rgba(10,15,40,.1);
--text: #14162b; --dim: #5a5d78; --shadow: rgba(20,25,60,.12);
}
#aa-root { background: var(--bg); color: var(--text); transition: background var(--fade), color var(--fade); }
#aa-root h1,#aa-root h2,#aa-root h3,#aa-root h4 { font-family: 'Sora', sans-serif; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; padding-bottom: .08em; overflow-wrap: break-word; }
#aa-root[dir="rtl"] h1,#aa-root[dir="rtl"] h2,#aa-root[dir="rtl"] h3,#aa-root[dir="rtl"] h4 { font-family: 'Tajawal', sans-serif; line-height: 1.75; letter-spacing: normal; padding-bottom: .2em; }
#aa-root a { color: inherit; text-decoration: none; }
#aa-root ul { list-style: none; }
#aa-root img, #aa-root svg { display: block; max-width: 100%; }
#aa-root p, #aa-root span, #aa-root li { overflow-wrap: break-word; }
#aa-root :focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 6px; }
.aa-container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.aa-section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
/* Gradient text — -webkit-text-fill-color prevents the word vanishing in some browsers */
.aa-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; display: inline-block; padding-block: .18em; line-height: 1.4; }
#aa-root[dir="rtl"] .aa-grad-text { line-height: 1.9; padding-block: .35em; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
.aa-grad-text { -webkit-text-fill-color: var(--brand-1); color: var(--brand-1); }
}
.aa-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-1); margin-bottom: 1rem; line-height: 1.9; }
#aa-root[dir="rtl"] .aa-eyebrow { letter-spacing: normal; }
.aa-eyebrow::before { content:''; width: 28px; height: 1px; background: var(--brand-1); flex-shrink: 0; }
.aa-h2 { font-size: clamp(1.55rem, 5vw, 2.8rem); margin-bottom: 1rem; }
.aa-lead { color: var(--dim); font-size: 1.05rem; max-width: 62ch; line-height: 1.85; }
#aa-root[dir="rtl"] .aa-lead { line-height: 2.05; }
.aa-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 2000; }
.aa-progress span { display:block; height:100%; width:0; background: var(--grad); box-shadow: 0 0 12px var(--brand-2); }
.aa-cursor { position: fixed; top:0; left:0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--brand-1); pointer-events:none; z-index: 3000; transform: translate(-50%,-50%); transition: width .25s, height .25s, background .25s; mix-blend-mode: difference; }
.aa-cursor.grow { width: 54px; height: 54px; background: rgba(45,212,191,.12); }
@media (hover: none), (pointer: coarse) { .aa-cursor { display:none; } }
.aa-header { position: sticky; top: 0; z-index: 1500; transition: all var(--fade); }
.aa-header.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--border); }
.aa-nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.aa-logo { font-family:'Sora'; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; display:flex; align-items:center; gap:.55rem; }
.aa-logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px var(--brand-1); animation: aa-pulse 2.6s var(--ease) infinite; }
.aa-nav-links { display: flex; gap: 1.7rem; align-items:center; }
.aa-nav-links a { font-size: .92rem; font-weight: 500; color: var(--dim); position: relative; padding: .3rem 0; transition: color .25s; }
.aa-nav-links a::after { content:''; position:absolute; bottom:-2px; inset-inline:0; height:2px; background: var(--grad); transform: scaleX(0); transform-origin:center; transition: transform .3s var(--ease); }
.aa-nav-links a:hover, .aa-nav-links a.active { color: var(--text); }
.aa-nav-links a:hover::after, .aa-nav-links a.active::after { transform: scaleX(1); }
.aa-controls { display:flex; align-items:center; gap:.4rem; }
.aa-iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display:grid; place-items:center; cursor:pointer; transition: all .25s; font-weight:700; font-size:.82rem; font-family:'Sora'; }
.aa-iconbtn:hover { border-color: var(--brand-1); transform: translateY(-2px); box-shadow: 0 6px 18px var(--shadow); }
.aa-iconbtn svg { width: 20px; height: 20px; }
#aa-theme .moon { display:none; }
#aa-root[data-theme="dark"] #aa-theme .sun { display:none; }
#aa-root[data-theme="dark"] #aa-theme .moon { display:block; }
.aa-burger { display:none; flex-direction:column; gap:5px; }
.aa-burger span { width: 22px; height: 2px; background: var(--text); transition: .3s; border-radius: 2px; }
.aa-burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.aa-burger.open span:nth-child(2){ opacity:0; }
.aa-burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.aa-btn { position: relative; display:inline-flex; align-items:center; gap:.6rem; padding: .9rem 1.7rem; border-radius: 50px; font-weight: 600; font-size: .95rem; line-height: 1.45; cursor: pointer; border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s, background .3s; will-change: transform; }
.aa-btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 10px 30px -8px rgba(56,189,248,.6); }
.aa-btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(56,189,248,.75); }
.aa-btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.aa-btn-ghost:hover { border-color: var(--brand-1); background: var(--surface-2); }
.aa-hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.aa-hero-canvas { position: absolute; inset: 0; z-index: 0; }
.aa-hero-glow { position:absolute; inset:0; z-index:0; pointer-events:none; background: radial-gradient(50% 40% at 18% 18%, rgba(45,212,191,.20), transparent 70%), radial-gradient(45% 45% at 85% 25%, rgba(129,140,248,.20), transparent 70%), radial-gradient(60% 50% at 50% 100%, rgba(56,189,248,.14), transparent 70%); }
.aa-hero-inner { position: relative; z-index: 2; text-align: center; padding-top: 74px; padding-bottom: 3rem; }
.aa-avatar { width: clamp(120px, 18vw, 168px); aspect-ratio:1; margin-inline:auto; margin-bottom: 1.8rem; position: relative; border-radius: 50%; }
.aa-avatar::before { content:''; position:absolute; inset:-9px; border-radius:50%; background: var(--grad); padding: 2px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: aa-spin 8s linear infinite; }
.aa-avatar::after { content:''; position:absolute; inset:-9px; border-radius:50%; border:1px dashed color-mix(in srgb, var(--brand-1) 50%, transparent); animation: aa-spin 22s linear infinite reverse; }
.aa-avatar .pic { width:100%; height:100%; border-radius:50%; object-fit:cover; position: relative; z-index:1; background: var(--grad); }
.aa-avatar .mono { width:100%; height:100%; border-radius:50%; display:grid; place-items:center; font-family:'Sora'; font-weight:800; font-size: clamp(2.4rem,6vw,3.4rem); color:#04121a; background: var(--grad); position:relative; z-index:1; }
.aa-badge-status { display:inline-flex; align-items:center; gap:.5rem; font-size:.82rem; font-weight:600; color: var(--text); padding:.55rem 1.05rem; border-radius:50px; border:1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); margin-bottom: 1.4rem; line-height: 1.5; }
.aa-badge-status .live { width:8px; height:8px; border-radius:50%; background:#34d399; box-shadow:0 0 0 0 rgba(52,211,153,.7); animation: aa-live 2s infinite; }
.aa-hero h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); font-weight: 800; margin-bottom: .4rem; }
.aa-role { font-family:'Sora'; font-size: clamp(1.05rem, 3.2vw, 1.6rem); font-weight: 600; color: var(--dim); min-height: 2.1em; line-height: 1.6; margin-bottom: 1.1rem; }
#aa-root[dir="rtl"] .aa-role { font-family:'Tajawal'; line-height: 2; }
.aa-role .typed { color: var(--text); }
.aa-role .cursor-bar { display:inline-block; width:2px; height:1em; background: var(--brand-1); margin-inline-start:3px; vertical-align:-2px; animation: aa-blink 1s steps(2) infinite; }
.aa-hero-tag { color: var(--dim); max-width: 54ch;margin: 0 auto 2rem !important; font-size: 1.05rem; line-height: 1.8; text-align: center !important;}
.aa-hero-cta { display:flex; gap: 1rem; justify-content:center; flex-wrap:wrap; }
.aa-scroll { position:absolute; bottom: 1.6rem; left:50%; transform: translateX(-50%); z-index:3; color: var(--dim); display:grid; place-items:center; gap:.4rem; font-size:.72rem; letter-spacing:.15em; animation: aa-bob 2.4s var(--ease) infinite; }
#aa-root[dir="rtl"] .aa-scroll { letter-spacing: normal; }
/* ==========================================================================
=== WORLD / PHONE SECTION — SPOTLIGHTED & OPTIMIZED ===
========================================================================== */
.aa-world-section {
background: var(--bg-2);
overflow: hidden;
position: relative;
}
.aa-world-section::before {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
background: radial-gradient(52% 55% at 50% 42%, color-mix(in srgb, var(--brand-2) 15%, transparent), transparent 70%);
}
.aa-world-wrap {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 1.5rem;
margin: 0 auto;
width: 100%;
}
/* هيكل الهاتف المصغر والأنيق */
.aa-phone {
width: 275px; /* العرض المصغر الجديد */
height: 560px; /* الارتفاع المتناسق الجديد */
background: #07070d;
border-radius: 38px;
padding: 10px;
border: 1px solid var(--border);
box-shadow: 0 40px 80px -25px var(--shadow), inset 0 0 0 2px rgba(255,255,255,.04);
position: relative;
z-index: 2;
/* ⚠️ ملاحـظة حاسـمة: عـدم وضـع overflow: hidden هنـا لكي تسـمح برؤيـة البـطاقات البـارزة */
}
.aa-phone::before {
content: '';
position: absolute;
inset: -4px;
border-radius: 42px;
background: var(--grad);
opacity: .45;
filter: blur(24px);
z-index: -1;
animation: aa-halo 4.5s ease-in-out infinite;
}
@keyframes aa-halo {
0%, 100% { opacity: .32; transform: scale(.97); }
50% { opacity: .65; transform: scale(1.02); }
}
.aa-notch {
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 20px;
background: #07070d;
border-radius: 0 0 12px 12px;
z-index: 6;
}
/* شاشة الهاتف الداخلية آمنة بالـ overflow الخاص بها */
.aa-screen {
position: absolute;
inset: 10px;
border-radius: 28px;
overflow: hidden;
background: linear-gradient(165deg, var(--bg-2), var(--bg));
display: flex;
flex-direction: column;
}
.aa-statusbar {
height: 32px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 18px 0;
font-size: .7rem;
font-weight: 600;
color: var(--dim);
}
.aa-screen-body {
flex: 1;
position: relative;
overflow: hidden;
}
.aa-view {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
animation: aa-slidein .35s var(--ease);
}
@keyframes aa-slidein { from { opacity: 0; transform: translateX(12%); } to { opacity: 1; transform: none; } }
#aa-root[dir="rtl"] .aa-view { animation: aa-slideinr .35s var(--ease); }
@keyframes aa-slideinr { from { opacity: 0; transform: translateX(-12%); } to { opacity: 1; transform: none; } }
.aa-home {
flex: 1;
overflow-y: auto;
padding: 1.2rem 0.9rem;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.1rem .4rem;
align-content: start;
background: radial-gradient(120% 70% at 50% 0%, rgba(56,189,248,.12), transparent 60%);
}
.aa-home-greet { grid-column: 1 / -1; text-align: center; margin-bottom: .4rem; }
.aa-home-greet b { font-family: 'Sora', sans-serif; font-size: .95rem; }
#aa-root[dir="rtl"] .aa-home-greet b { font-family: 'Tajawal', sans-serif; }
.aa-home-greet span { display: block; font-size: .72rem; color: var(--dim); margin-top: .15rem; line-height: 1.5; }
.aa-app { display: flex; flex-direction: column; align-items: center; gap: .4rem; cursor: pointer; background: none; border: none; color: var(--text); font: inherit; }
.aa-app .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 6px 14px -6px var(--shadow); transition: transform .25s var(--ease); animation: aa-appglow 3.2s ease-in-out infinite; }
.aa-app:nth-child(3) .ic { animation-delay: .25s; }
.aa-app:nth-child(4) .ic { animation-delay: .5s; }
.aa-app:nth-child(5) .ic { animation-delay: .75s; }
@keyframes aa-appglow { 0%, 100% { box-shadow: 0 6px 14px -6px var(--shadow); } 50% { box-shadow: 0 8px 22px -4px color-mix(in srgb, var(--brand-1) 60%, transparent); } }
.aa-app:hover .ic { transform: translateY(-3px) scale(1.05); }
.aa-app:active .ic { transform: scale(.94); }
.aa-app .nm { font-size: .68rem; color: var(--dim); line-height: 1.5; text-align: center; }
.aa-vhead { flex-shrink: 0; display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
.aa-back { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.aa-back svg { width: 14px; height: 14px; }
#aa-root[dir="rtl"] .aa-back svg { transform: scaleX(-1); }
.aa-vhead .vt { font-family: 'Sora', sans-serif; font-weight: 700; font-size: .88rem; line-height: 1.5; }
#aa-root[dir="rtl"] .aa-vhead .vt { font-family: 'Tajawal', sans-serif; }
.aa-chat { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.aa-bub { max-width: 82%; padding: .65rem .85rem; border-radius: 14px; font-size: .8rem; line-height: 1.6; }
.aa-bub.bot { background: var(--surface-2); border: 1px solid var(--border); align-self: flex-start; border-end-start-radius: 4px; }
.aa-bub.me { background: var(--grad); color: #04121a; align-self: flex-end; border-end-end-radius: 4px; font-weight: 500; }
.aa-chips-wrap { flex-shrink: 0; padding: .6rem; display: flex; flex-wrap: wrap; gap: .35rem; border-top: 1px solid var(--border); max-height: 40%; overflow-y: auto; }
.aa-qchip { font-size: .72rem; padding: .45rem .85rem; border-radius: 50px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: all .2s; line-height: 1.6; }
.aa-qchip:hover { border-color: var(--brand-1); color: var(--brand-1); }
.aa-notes { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 1.2rem; text-align: center; }
.aa-note-card { background: var(--grad-soft); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem 1.1rem; font-size: .92rem; font-weight: 500; line-height: 1.8; min-height: 130px; display: grid; place-items: center; width: 100%; }
.aa-note-count { font-size: .72rem; color: var(--dim); }
.aa-dream { flex: 1; overflow-y: auto; padding: 1.2rem; }
.aa-dream .em { font-size: 1.8rem; display: block; margin-bottom: .4rem; }
.aa-dream h4 { font-size: 1.05rem; margin-bottom: .4rem; padding-bottom: .05em; }
.aa-dream p { font-size: .82rem; color: var(--dim); margin-bottom: 1rem; line-height: 1.7; }
.aa-goal { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; font-size: .8rem; line-height: 1.7; }
.aa-goal .gk { width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #04121a; display: grid; place-items: center; font-size: .65rem; font-weight: 700; flex-shrink: 0; }
.aa-game { flex: 1; display: flex; flex-direction: column; }
.aa-game-bar { flex-shrink: 0; display: flex; justify-content: space-around; padding: .55rem; font-size: .78rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.aa-game-bar b { color: var(--brand-1); }
.aa-game-area { flex: 1; position: relative; overflow: hidden; background: radial-gradient(100% 80% at 50% 0, rgba(129,140,248,.1), transparent); }
.aa-bug { position: absolute; font-size: 1.7rem; cursor: pointer; animation: aa-bugin .18s var(--ease); user-select: none; line-height: 1; }
@keyframes aa-bugin { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(0); } }
.aa-game-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; padding: 1.2rem; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(6px); }
.aa-game-overlay h4 { font-size: 1.05rem; }
.aa-game-overlay p { font-size: .8rem; color: var(--dim); line-height: 1.6; }
.aa-tap-hint { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.5rem; font-weight: 700; color: var(--brand-1); font-size: .95rem; }
.aa-tap-hint .finger { font-size: 1.3rem; animation: aa-tap 1.5s var(--ease) infinite; }
@keyframes aa-tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* --- الكود المعدل بدقة متناهية للبطاقات (Cues) لضمان عدم اختفائها --- */
.aa-world-cue {
position: absolute;
display: flex;
align-items: center;
gap: .5rem;
padding: .65rem 1rem;
border-radius: 12px;
font-size: .85rem;
font-weight: 600;
background: color-mix(in srgb, var(--bg) 92%, transparent);
backdrop-filter: blur(12px);
border: 1px solid var(--border);
box-shadow: 0 12px 28px -10px var(--shadow);
animation: aa-floaty 5s var(--ease) infinite;
white-space: nowrap; /* يمنع بشكل قاطع انقسام النص إلى سطرين */
z-index: 10;
}
@keyframes aa-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* ضبط التموضع يميناً ويساراً حسب لغة المتصفح الحالية دون أي تداخل */
#aa-root[dir="ltr"] .aa-cue-1 { top: 20%; left: -165px; right: auto; }
#aa-root[dir="ltr"] .aa-cue-2 { bottom: 25%; right: -185px; left: auto; animation-delay: 1.6s; }
#aa-root[dir="rtl"] .aa-cue-1 { top: 20%; right: -165px; left: auto; }
#aa-root[dir="rtl"] .aa-cue-2 { bottom: 25%; left: -185px; right: auto; animation-delay: 1.6s; }
/* التجاوب السلس والكامل على الجوالات والشاشات الصغيرة */
@media (max-width: 650px) {
.aa-world-wrap {
padding-top: 3.5rem;
padding-bottom: 3.5rem;
}
.aa-world-cue {
left: 50% !important;
right: auto !important;
transform: translateX(-50%) !important;
animation: none; /* حماية استقرار النصوص فوق وتحت الجوال */
}
.aa-cue-1 { top: -45px; }
.aa-cue-2 { bottom: 15px; }
}
/* ABOUT */
.aa-about-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4.5rem); align-items:center; }
.aa-stats { display:grid; grid-template-columns: repeat(2,1fr); gap:1rem; margin-top: 2rem; }
.aa-stat { padding:1.4rem; border-radius: var(--r-md); border:1px solid var(--border); background: var(--surface); position:relative; overflow:hidden; transition: transform .4s var(--ease), border-color .4s; }
.aa-stat:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand-1) 50%, transparent); }
.aa-stat .num { font-family:'Sora'; font-size: clamp(1.8rem,4vw,2.4rem); font-weight:800; }
.aa-stat .lbl { color: var(--dim); font-size:.88rem; line-height:1.6; }
/* الحاوية الكرتونية للصورة الشخصية */
.aa-portrait-card {
position: relative;
width: 100%;
max-width: 340px; /* أو الحجم المتوافق مع تصميمك */
margin: 0 auto;
border-radius: 24px;
overflow: hidden; /* يقص حواف الصورة فقط الآن دون التأثير على النصوص العائمة */
border: 1px solid var(--border);
box-shadow: 0 30px 60px -15px var(--shadow);
}
.aa-portrait-card img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
}
/* --- تنسيق البطاقات الطافية المحسن لمنع الاختفاء --- */
.aa-portrait-float {
position: absolute;
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.7rem 1.1rem;
border-radius: 14px;
font-size: 0.88rem;
font-weight: 600;
background: color-mix(in srgb, var(--bg) 92%, transparent);
backdrop-filter: blur(12px);
border: 1px solid var(--border);
box-shadow: 0 15px 30px -10px var(--shadow);
white-space: nowrap; /* يمنع النص من الانقسام لسطرين */
z-index: 5; /* يضمن بقاءها فوق كل شيء */
transition: transform 0.3s ease;
}
.aa-portrait-float:hover {
transform: scale(1.05) translateY(-3px);
}
/* --- التحكم بالظهور الذكي حسب اتجاه لغة الموقع (RTL / LTR) --- */
/* في النسخة الإنجليزية */
#aa-root[dir="ltr"] .aa-pf-1 {
top: 15%;
left: -25px; /* تخرج قليلاً نحو اليسار فوق حافة الصورة */
}
#aa-root[dir="ltr"] .aa-pf-2 {
bottom: 15%;
right: -25px; /* تخرج قليلاً نحو اليمين أسفل الصورة */
}
/* في النسخة العربية - يتم عكس الاتجاهات تماماً بشكل ديناميكي هندسي */
#aa-root[dir="rtl"] .aa-pf-1 {
top: 15%;
right: -25px; /* تتحول لليمين في العربية تلقائياً */
left: auto;
}
#aa-root[dir="rtl"] .aa-pf-2 {
bottom: 15%;
left: -25px; /* تتحول لليسار في العربية تلقائياً */
right: auto;
}
/* التجاوب المرن مع الشاشات الصغيرة جداً والهواتف */
@media (max-width: 480px) {
/* نمنح البطاقات تموضعاً داخلياً خفيفاً في الجوالات حتى لا تخرج خارج إطار شاشة الهاتف الذكي */
#aa-root[dir="ltr"] .aa-pf-1 { left: 10px; }
#aa-root[dir="ltr"] .aa-pf-2 { right: 10px; }
#aa-root[dir="rtl"] .aa-pf-1 { right: 10px; }
#aa-root[dir="rtl"] .aa-pf-2 { left: 10px; }
}
/* SKILLS */
.aa-skills-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.2rem; }
.aa-skill-card { padding: 1.7rem; border-radius: var(--r-md); border:1px solid var(--border); background: var(--surface); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; transform-style: preserve-3d; position:relative; overflow:hidden; }
.aa-skill-card::before { content:''; position:absolute; inset:0; background: var(--grad-soft); opacity:0; transition: opacity .4s; }
.aa-skill-card:hover { border-color: color-mix(in srgb, var(--brand-2) 45%, transparent); box-shadow: 0 20px 45px -18px var(--shadow); }
.aa-skill-card:hover::before { opacity:1; }
.aa-skill-card > * { position: relative; }
.aa-skill-ico { width: 46px; height:46px; border-radius: 12px; display:grid; place-items:center; background: var(--grad); color:#04121a; margin-bottom: 1rem; }
.aa-skill-ico svg { width:24px; height:24px; }
.aa-skill-card h3 { font-size: 1.15rem; margin-bottom: .9rem; padding-bottom:.08em; }
.aa-chips { display:flex; flex-wrap:wrap; gap:.5rem; }
.aa-chip { font-size:.82rem; font-weight:500; padding:.5rem .95rem; border-radius:50px; border:1px solid var(--border); background: var(--bg-2); color: var(--dim); transition: all .25s; line-height:1.7; }
.aa-skill-card:hover .aa-chip { color: var(--text); border-color: color-mix(in srgb, var(--brand-1) 40%, transparent); }
/* PROJECTS */
.aa-filters { display:flex; gap:.6rem; flex-wrap:wrap; justify-content:center; margin-bottom: 2.5rem; }
.aa-filter { padding:.62rem 1.25rem; border-radius:50px; border:1px solid var(--border); background: var(--surface); color: var(--dim); cursor:pointer; font-size:.9rem; font-weight:500; line-height:1.5; transition: all .3s; }
.aa-filter:hover { color: var(--text); border-color: var(--brand-1); }
.aa-filter.active { background: var(--grad); color:#04121a; border-color: transparent; }
.aa-proj-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1.5rem; }
.aa-proj { border-radius: var(--r-lg); border:1px solid var(--border); background: var(--surface); overflow:hidden; display:flex; flex-direction:column; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; transform-style: preserve-3d; }
.aa-proj:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--brand-2) 50%, transparent); box-shadow: 0 30px 60px -25px var(--shadow); }
.aa-proj.featured { grid-column: 1 / -1; }
.aa-proj-media { aspect-ratio: 16/9; position: relative; overflow:hidden; background: var(--grad-soft); display:grid; place-items:center; }
.aa-proj.featured .aa-proj-media { aspect-ratio: 21/9; }
.aa-proj-media img { width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.aa-proj:hover .aa-proj-media img { transform: scale(1.06); }
.aa-proj-media .ph { font-family:'Sora'; font-weight:800; font-size: 2.4rem; color: color-mix(in srgb, var(--brand-1) 70%, transparent); letter-spacing:.05em; }
.aa-proj-flag { position:absolute; top:1rem; inset-inline-start:1rem; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:.45rem .9rem; border-radius:50px; background: var(--gold); color:#211a00; line-height:1.5; }
.aa-proj-body { padding: 1.6rem; display:flex; flex-direction:column; gap:.9rem; flex:1; }
.aa-proj-body h3 { font-size: 1.35rem; padding-bottom:.08em; }
.aa-proj.featured .aa-proj-body h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.aa-proj-body p { color: var(--dim); font-size:.95rem; line-height:1.8; }
.aa-tech { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:auto; }
.aa-tech span { font-size:.76rem; font-weight:600; padding:.45rem .85rem; border-radius:8px; background: var(--surface-2); color: var(--text); line-height:1.6; }
.aa-proj-links { display:flex; gap:.8rem; margin-top:.8rem; }
.aa-proj-links a { font-size:.88rem; font-weight:600; color: var(--brand-1); display:inline-flex; align-items:center; gap:.4rem; transition: gap .25s; }
.aa-proj-links a:hover { gap:.7rem; }
/* TIMELINE */
.aa-timeline { position: relative; max-width: 820px; margin-inline:auto; padding-inline-start: 2rem; }
.aa-timeline::before { content:''; position:absolute; inset-inline-start:6px; top:6px; bottom:6px; width:2px; background: linear-gradient(var(--brand-1), var(--brand-3), transparent); }
.aa-tl-item { position: relative; padding-bottom: 2.6rem; }
.aa-tl-item:last-child { padding-bottom:0; }
.aa-tl-item::before { content:''; position:absolute; inset-inline-start: -2rem; top:4px; width:14px; height:14px; border-radius:50%; background: var(--bg); border:3px solid var(--brand-1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.aa-tl-date { font-size:.82rem; font-weight:600; color: var(--brand-1); margin-bottom:.3rem; }
.aa-tl-item h3 { font-size: 1.2rem; margin-bottom:.2rem; padding-bottom:.08em; }
.aa-tl-item .org { color: var(--dim); font-size:.92rem; margin-bottom:.6rem; line-height:1.6; }
.aa-tl-item p { color: var(--dim); font-size:.95rem; line-height:1.8; }
/* CONTACT */
.aa-contact-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,4vw,3.5rem); align-items:start; }
.aa-form { display:grid; gap: 1.1rem; }
.aa-field label { display:block; font-size:.88rem; font-weight:600; margin-bottom:.5rem; }
.aa-field input, .aa-field textarea { width:100%; padding:.85rem 1rem; border-radius: var(--r-sm); border:1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; transition: border-color .25s, box-shadow .25s; }
.aa-field textarea { resize: vertical; min-height: 130px; }
.aa-field input:focus, .aa-field textarea:focus { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 20%, transparent); }
.aa-field input.invalid, .aa-field textarea.invalid { border-color:#f87171; }
.aa-err { color:#f87171; font-size:.82rem; margin-top:.35rem; min-height:1em; }
.aa-form-note { font-size:.9rem; padding:.8rem 1rem; border-radius: var(--r-sm); display:none; line-height:1.6; }
.aa-form-note.show { display:block; }
.aa-form-note.ok { background: color-mix(in srgb, #34d399 18%, transparent); color:#34d399; }
.aa-form-note.bad { background: color-mix(in srgb, #f87171 18%, transparent); color:#f87171; }
.aa-contact-side { display:grid; gap: 1rem; }
.aa-contact-link { display:flex; align-items:center; gap:1rem; padding:1.1rem 1.3rem; border-radius: var(--r-md); border:1px solid var(--border); background: var(--surface); transition: all .3s var(--ease); }
.aa-contact-link:hover { transform: translateX(6px); border-color: var(--brand-1); }
#aa-root[dir="rtl"] .aa-contact-link:hover { transform: translateX(-6px); }
.aa-contact-link .ico { width:42px; height:42px; border-radius:12px; background: var(--grad-soft); display:grid; place-items:center; color: var(--brand-1); flex-shrink:0; }
.aa-contact-link .ico svg { width:20px; height:20px; }
.aa-contact-link .t { font-size:.78rem; color: var(--dim); }
.aa-contact-link .v { font-weight:600; font-size:.95rem; word-break: break-all; line-height:1.6; }
/* FOOTER */
.aa-footer { border-top:1px solid var(--border); padding-block: 2.5rem; }
.aa-footer .row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.aa-footer p { color: var(--dim); font-size:.9rem; }
.aa-socials { display:flex; gap:.6rem; }
.aa-soc { width:42px; height:42px; border-radius:50%; border:1px solid var(--border); background: var(--surface); display:grid; place-items:center; color: var(--dim); transition: all .3s; }
.aa-soc:hover { color: var(--brand-1); border-color: var(--brand-1); transform: translateY(-3px); }
.aa-soc svg { width:19px; height:19px; }
/* REVEAL */
.aa-reveal { opacity:0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.aa-reveal.vis { opacity:1; transform: none; }
.aa-reveal[data-d="1"]{ transition-delay:.1s;} .aa-reveal[data-d="2"]{ transition-delay:.2s;} .aa-reveal[data-d="3"]{ transition-delay:.3s;}
@keyframes aa-pulse { 0%,100%{ transform: scale(1); opacity:1;} 50%{ transform: scale(.6); opacity:.6;} }
@keyframes aa-spin { to { transform: rotate(360deg); } }
@keyframes aa-blink { 0%,49%{opacity:1;} 50%,100%{opacity:0;} }
@keyframes aa-bob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(8px);} }
@keyframes aa-live { 0%{ box-shadow:0 0 0 0 rgba(52,211,153,.6);} 70%{ box-shadow:0 0 0 8px rgba(52,211,153,0);} 100%{ box-shadow:0 0 0 0 rgba(52,211,153,0);} }
@media (max-width: 880px) {
.aa-about-grid, .aa-contact-grid { grid-template-columns: 1fr; }
.aa-burger { display:flex; }
.aa-nav-links { position: fixed; inset-block: 74px 0; inset-inline-end: 0; width: min(80%, 320px); flex-direction: column; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px); border-inline-start:1px solid var(--border); padding-top: 2.5rem; gap: 1.5rem; transform: translateX(100%); transition: transform .45s var(--ease); z-index: 1400; }
#aa-root[dir="rtl"] .aa-nav-links { inset-inline-end:auto; inset-inline-start:0; transform: translateX(-100%); border-inline-start:none; border-inline-end:1px solid var(--border); }
.aa-nav-links.open { transform: translateX(0); }
.aa-portrait-float { display:none; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
#aa-root *, #aa-root *::before, #aa-root *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
.aa-reveal { opacity:1; transform:none; }
}