-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
407 lines (385 loc) · 22.7 KB
/
index.html
File metadata and controls
407 lines (385 loc) · 22.7 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>ctxzero — Portfolio</title>
<style>
:root{
--bg:#000000;
--white:#ffffff;
--glass: rgba(255,255,255,0.03);
--border: rgba(255,255,255,0.06);
--radius:16px;
--gap:28px;
--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
--grad: linear-gradient(90deg,#ff0000,#ff7f00,#ffff00);
--project-glow: linear-gradient(90deg, rgba(255,0,0,0.95), rgba(255,127,0,0.95), rgba(255,255,0,0.95));
}
*{box-sizing:border-box}
html,body{
height:100%;margin:0;
background: radial-gradient(circle at center, #1a1a1a 0%, #000 80%);
color:var(--white);
font-family:var(--font);
-webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:60px auto;padding:0 20px 120px}
.hero{position:relative;height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;}
.hero-inner{position:relative;z-index:2;}
h1.name{color:white;font-size:clamp(48px,10vw,110px);font-weight:900;margin:0 0 12px 0;text-shadow:0 8px 40px rgba(0,0,0,0.7);}
.role-wrap{height:64px;display:flex;align-items:center;justify-content:center;margin-top:6px;position:relative}
.role-line{font-weight:800;font-size:clamp(18px,3.5vw,26px);letter-spacing:0.6px;background:linear-gradient(90deg,#ff0000,#ff7f00,#ffff00);-webkit-background-clip:text;-webkit-text-fill-color:transparent;display:inline-block;white-space:nowrap;overflow:hidden;position:relative;padding-right:10px;will-change:opacity,transform;}
.role-line::after{content: "";width:2px;height:1.06em;background:var(--white);display:inline-block;margin-left:6px;vertical-align:middle;opacity:0.95;animation:blink 1s steps(2, start) infinite;}
@keyframes blink{50%{opacity:0}100%{opacity:1}}
.section{margin-bottom:80px}
.section-heading{text-align:center;font-weight:900;font-size:clamp(30px,5.5vw,56px);margin:0 0 14px 0;color:var(--white);background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1);position:relative;display:inline-block;padding-bottom:6px;}
.section-heading.revealed{opacity:1;transform:translateY(0);background-size:200% 100%;animation:gradMove 3s linear infinite;}
.section-heading.revealed::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:0;height:4px;width:60%;border-radius:4px;background:linear-gradient(90deg,#ff0000,#ff7f00,#ffff00);box-shadow:0 6px 20px rgba(255,127,0,0.12);opacity:0.95;}
@keyframes gradMove{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.panel{border-radius:var(--radius);padding:30px;border:1px solid var(--border);background:var(--glass);backdrop-filter: blur(4px);max-width:1100px;margin:0 auto;opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1);}
.panel.revealed{opacity:1;transform:translateY(0);}
.about p{color:var(--white);line-height:1.9;font-size:18px;margin:0 0 12px 0}
.about-meta{display:flex;align-items:center;gap:10px;margin-top:16px;justify-content:flex-start}
.flag{font-size:20px;line-height:1;display:inline-block}
.based{font-size:13px;color:rgba(255,255,255,0.9);font-weight:700}
.skills-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gap);margin-top:10px}
@media (max-width:920px){.skills-grid{grid-template-columns:1fr}}
.skill-block{display:flex;flex-direction:column;align-items:center;gap:10px}
.skill-title{font-weight:900;color:var(--white);font-size:18px;margin-bottom:6px;text-align:center;opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1);}
.skill-title.revealed{opacity:1;transform:translateY(0);}
.skill-card{width:100%;min-height:180px;padding:18px;border-radius:12px;border:1px solid var(--border);background:rgba(255,255,255,0.015);display:flex;flex-direction:column;gap:12px;transition:box-shadow .3s ease;}
.skill-card:hover{box-shadow:0 0 20px rgba(255,127,0,0.05),0 0 35px rgba(255,0,0,0.03);}
.bar-wrap{height:18px;background:rgba(255,255,255,0.02);border-radius:12px;overflow:hidden}
.bar{height:100%;width:0%;border-radius:12px;background:linear-gradient(90deg,#ff0000,#ff7f00,#ffff00);background-size:200% 100%;animation:flow 3s linear infinite;transition:width 1.2s cubic-bezier(.2,.9,.2,1);}
@keyframes flow{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.skill-desc{font-size:15px;color:rgba(255,255,255,0.95);line-height:1.6;text-align:center;}
.badge-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center;margin-top:auto}
.badge-row img, .social-badge{height:56px;width:auto;border-radius:8px;border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;padding:6px}
.cert-grid{display:flex;gap:20px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.cert-card{flex:1 1 300px;min-height:200px;padding:16px;border-radius:12px;border:1px solid var(--border);background:rgba(255,255,255,0.015);display:flex;flex-direction:column;align-items:center;gap:12px;transition:box-shadow .3s ease;}
.cert-card:hover{box-shadow:0 0 20px rgba(255,127,0,0.05),0 0 35px rgba(255,0,0,0.03);}
.cert-card h4{margin:8px 0 0 0;font-size:18px;color:var(--white);text-align:center}
.cert-card .issuer{font-size:13px;color:rgba(255,255,255,0.9);text-align:center}
.cert-badge{Width:120px;height:120px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:rgba(255,255,255,0.01);overflow:hidden}
.cert-badge img{max-width:100%;max-height:100%;display:block;}
.contact-row{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}
.contact-links{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.contact-meta{display:flex;flex-direction:column;gap:12px;align-items:flex-end}
@media (max-width:760px){ .contact-row{flex-direction:column;align-items:center} .contact-meta{align-items:center} .contact-links .btn{width:100%} }
.btn{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;border:2px solid transparent;background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));color:var(--white);font-weight:800;cursor:pointer;transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;}
.btn:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(255,127,0,0.06)}
.icon{width:20px;height:20px;display:inline-block}
.social-row{display:flex;gap:12px;align-items:center}
.social-badge{height:56px;padding:8px;border-radius:10px;background:rgba(255,255,255,0.02);cursor:pointer;transition:transform .12s ease, box-shadow .12s ease;display:inline-flex;align-items:center;gap:10px}
.social-badge:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(255,127,0,0.04)}
.copied-tooltip{position:fixed;left:50%;transform:translateX(-50%);bottom:40px;background:rgba(0,0,0,0.8);color:#fff;padding:8px 12px;border-radius:8px;font-weight:700;box-shadow:0 6px 30px rgba(0,0,0,0.6);opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:9999}
.contact-quote{margin-top:18px;text-align:center;font-style:italic;color:rgba(255,255,255,0.85);font-size:14px}
.revealed-card{opacity:1;transform:translateY(0);transition:opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1)}
@media (max-width:520px){ h1.name{font-size:44px} .cert-grid{flex-direction:column} }
.eu-flag { width:18px; height:12px; display:inline-block; vertical-align:middle; margin-right:6px; border-radius:2px; overflow:hidden; flex-shrink:0; box-shadow:0 1px 0 rgba(0,0,0,0.35) inset; }
.eu-flag svg{width:100%;height:100%;display:block}
.project-panel{padding:40px 34px 36px;}
.project-wrap{display:flex;flex-direction:column;align-items:center;gap:20px;max-width:920px;margin:0 auto;text-align:center;}
.project-figure{
position:relative;
width:min(860px,94%);
border-radius:14px;
overflow:hidden;
box-shadow:0 0 35px rgba(255,127,0,0.15), 0 0 60px rgba(255,0,0,0.08);
}
.project-figure::after{
content:'';
position:absolute;
inset:-8px;
border-radius:18px;
background:var(--project-glow);
filter:blur(18px);
opacity:0.9;
z-index:0;
mix-blend-mode:screen;
pointer-events:none;
}
.project-figure img{
width:100%;
height:auto;
display:block;
border-radius:10px;
position:relative;
z-index:1;
}
.project-overlay{
position:absolute;
z-index:2;
top:50%;
left:50%;
transform:translate(-50%,-50%);
text-align:center;
color:var(--white);
pointer-events:none;
width:calc(100% - 60px);
max-width:780px;
}
.project-overlay h3{
margin:0;
font-size:32px;
font-weight:900;
text-shadow:0 6px 30px rgba(0,0,0,0.7);
}
.project-overlay p{
margin:8px 0 0 0;
font-size:16px;
color:rgba(255,255,255,0.9);
font-weight:600;
text-shadow:0 4px 16px rgba(0,0,0,0.7);
}
@media (max-width:820px){
.project-overlay h3{font-size:24px;}
.project-overlay p{font-size:13px;}
}
@media (max-width:520px){
.project-overlay h3{font-size:20px;}
}
</style>
</head>
<body>
<section class="hero" id="hero">
<div class="hero-inner">
<h1 class="name">ctxzero</h1>
<div class="role-wrap" aria-hidden="true">
<div id="roleText" class="role-line" aria-live="polite"></div>
</div>
</div>
</section>
<main class="container" id="main">
<section class="section" id="about">
<h2 class="section-heading">About Me</h2>
<div class="panel about">
<p><strong>Hi, I'm ctxzero,</strong> a cybersecurity enthusiast, constantly learning and improving my skills to make systems resilient and hardened against threat actors.</p>
<p>Manual testing combined with tooling for reliable, repeatable findings. Web application & network assessments, Active Directory focus, and scripting for automation. Responsible disclosure, reproducible tooling, and continuous learning to stay ahead.</p>
<div class="about-meta" aria-hidden="true">
<span class="eu-flag" title="Based in Europe" aria-hidden="true">
<svg viewBox="0 0 640 480" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice">
<rect width="640" height="480" fill="#003399"/>
<g fill="#ffcc00" transform="translate(320,240) scale(0.8)">
<g id="star">
<path d="M0 -40 L11 -12 38 -12 17 4 24 36 0 18 -24 36 -17 4 -38 -12 -11 -12 Z"/>
</g>
<use href="#star" transform="rotate(0) translate(0,-120)"/>
<use href="#star" transform="rotate(30) translate(0,-120)"/>
<use href="#star" transform="rotate(60) translate(0,-120)"/>
<use href="#star" transform="rotate(90) translate(0,-120)"/>
<use href="#star" transform="rotate(120) translate(0,-120)"/>
<use href="#star" transform="rotate(150) translate(0,-120)"/>
<use href="#star" transform="rotate(180) translate(0,-120)"/>
<use href="#star" transform="rotate(210) translate(0,-120)"/>
<use href="#star" transform="rotate(240) translate(0,-120)"/>
<use href="#star" transform="rotate(270) translate(0,-120)"/>
<use href="#star" transform="rotate(300) translate(0,-120)"/>
<use href="#star" transform="rotate(330) translate(0,-120)"/>
</g>
</svg>
</span>
<span class="based">based in Europe</span>
</div>
</div>
</section>
<section class="section" id="skills">
<h2 class="section-heading">My Skills</h2>
<div class="panel">
<div class="skills-grid">
<div class="skill-block">
<div class="skill-title">Web Application Pentesting</div>
<div class="skill-card">
<div class="bar-wrap"><div class="bar" data-percent="75"></div></div>
<div class="skill-desc">Strong manual testing skills combined with professional tools to find and verify vulnerabilities.</div>
</div>
</div>
<div class="skill-block">
<div class="skill-title">Network Pentesting</div>
<div class="skill-card">
<div class="bar-wrap"><div class="bar" data-percent="85"></div></div>
<div class="skill-desc">Excellent methodology and hands-on knowledge in scanning, exploitation and post-exploitation.</div>
</div>
</div>
<div class="skill-block">
<div class="skill-title">Active Directory</div>
<div class="skill-card">
<div class="bar-wrap"><div class="bar" data-percent="50"></div></div>
<div class="skill-desc">Understanding of AD enumeration, attack paths and privilege escalation techniques.</div>
<div class="badge-row"></div>
</div>
</div>
<div class="skill-block">
<div class="skill-title">Scripting</div>
<div class="skill-card">
<div class="bar-wrap"><div class="bar" data-percent="60"></div></div>
<div class="skill-desc">Python, Bash and Shell scripting for automation, tooling and exploit proof-of-concepts.</div>
</div>
</div>
</div>
</div>
</section>
<section class="section" id="certs">
<h2 class="section-heading">My Certifications</h2>
<div class="panel">
<div class="cert-grid">
<div class="cert-card">
<h4>eJPT</h4>
<div class="issuer">Certified by iLearnSecurity / INE</div>
<div class="cert-badge"><img src="https://miro.medium.com/v2/resize:fit:1358/1*KXRcpcS4sGp4xvLjhByI7A.png" alt="eJPT badge"></div>
</div>
<div class="cert-card">
<h4>Cyber Threat Intelligence</h4>
<div class="issuer">Certified by ArcX</div>
<div class="cert-badge"><img src="https://media.arcx.io/images/products/CTI101.png" alt="CTI badge"></div>
</div>
<div class="cert-card">
<h4>Python Development</h4>
<div class="issuer">Certified by Mimo</div>
<div class="cert-badge"><img src="https://upload.wikimedia.org/wikipedia/commons/c/c3/Python-logo-notext.svg" alt="Python Badge"></div>
</div>
</div>
</div>
</section>
<section class="section" id="projects">
<h2 class="section-heading">Projects</h2>
<p class="project-desc">High-speed Python Port Scanner with CVE lookup and JSON/HTML results.</p>
<div class="panel project-panel">
<div class="project-wrap">
<figure class="project-figure" aria-labelledby="project-title" role="group">
<div class="project-img" aria-hidden="true">
<img src="assets/PortHunt-Banner.png" alt="PortHunt Project Image">
</div>
</figure>
<div style="text-align:center;color:rgba(255,255,255,0.9);font-weight:700;">
<div id="project-title" style="font-size:20px;margin-bottom:6px;">PortHunt</div>
</div>
<div class="project-actions" role="navigation" aria-label="project actions">
<a id="viewCodeBtn" class="btn-outline" href="PortHunt" target="_blank" rel="noopener">View code</a>
<a class="btn-outline" href="#" target="_blank" rel="noopener"></a>
</div>
</div>
</div>
</section>
<section class="section" id="contact">
<h2 class="section-heading">Get in Touch</h2>
<div class="panel" style="padding-bottom:38px;min-height:200px;">
<div class="contact-row">
<div class="contact-links" aria-label="social links">
<a class="btn" href="https://github.com/ctxzero" target="_blank" rel="noopener">
<span class="icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M12 .5C5.65.5.75 5.4.75 11.75c0 4.84 3.14 8.95 7.5 10.4.55.1.75-.24.75-.53 0-.26-.01-1.12-.01-2.03-3.05.66-3.69-.74-3.92-1.42-.13-.36-.7-1.42-1.2-1.71-.41-.23-1-.8-.01-.82.93-.02 1.59.86 1.81 1.22 1.06 1.82 2.75 1.3 3.43.99.11-.78.41-1.3.74-1.6-2.73-.31-5.6-1.37-5.6-6.09 0-1.35.48-2.45 1.26-3.32-.13-.31-.55-1.56.12-3.25 0 0 1.02-.33 3.34 1.26 .97-.27 2.01-.4 3.04-.4 1.03 0 2.07.13 3.04.4 2.32-1.59 3.34-1.26 3.34-1.26 .67 1.69.25 2.94.12 3.25 .78.87 1.26 1.97 1.26 3.32 0 4.73-2.88 5.77-5.62 6.07.42.36.79 1.06.79 2.13 0 1.54-.01 2.78-.01 3.16 0 .29.2.63.76.52 4.35-1.46 7.49-5.57 7.49-10.4C23.25 5.4 18.35.5 12 .5Z"/></svg>
</span>
GitHub
</a>
<a class="btn" href="https://tryhackme.com/p/ctxzero" target="_blank" rel="noopener">
<span class="icon" aria-hidden="true">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2s-1.2 2.1-1.2 4.1C10.8 8 9.7 8.6 9 9c-.7.4-1.5 1.6-1.5 3.2C7.5 15.9 9.9 18 12 20c2.1-2 4.5-4.1 4.5-7.8 0-1.6-.8-2.8-1.5-3.2-.7-.4-1.8-1-1.8-2.9C13.2 4.1 12 2 12 2z" fill="currentColor"/>
</svg>
</span>
TryHackMe
</a>
</div>
<div class="contact-meta" aria-label="contact actions">
<div id="discordBadge" class="social-badge" role="button" tabindex="0" title="Click to copy Discord username">
<svg width="28" height="28" viewBox="0 0 71 55" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path d="M60.7 4.2A58.9 58.9 0 0 0 46.5.5a41.2 41.2 0 0 0-2 .9c-3.1 1.6-5.4 3.1-6.7 4-2.7 1.9-3.3 2-3.3 2s-.6-.1-3.3-2c-1.3-.9-3.6-2.4-6.7-4A58.9 58.9 0 0 0 10.5 4.2C1.4 19.6.2 34.8 2.3 49.6a60.2 60.2 0 0 0 18.2 5.9c1.4-.2 2.3-1 2.3-2.1 0-.1 0-.4.1-.8-7.4-1.7-10.2-5.2-10.2-5.2 1.3.9 2.5 1.6 3.6 2.3 6.4 3.9 11.7 5.1 15 5.3 1.1.1 2 .2 2.9.2.9 0 1.8-.1 2.9-.2 3.3-.2 8.6-1.4 15-5.3 1.1-.7 2.3-1.4 3.6-2.3 0 0-2.8 3.5-10.2 5.2.1.3.2.6.2.9 0 1.1.9 1.9 2.3 2.1A60.2 60.2 0 0 0 68.7 49.6c2.1-14.8.9-30-8-45.4zM23.3 37.2c-3 0-5.5-2.7-5.5-6S20.3 25 23.3 25c3 0 5.5 2.7 5.5 6s-2.5 6.2-5.5 6.2zm24.4 0c-3 0-5.5-2.7-5.5-6s2.5-6 5.5-6 5.5 2.7 5.5 6-2.5 6.2-5.5 6.2z" fill="currentColor"/>
</svg>
<div style="display:flex;flex-direction:column;align-items:flex-start;">
<strong style="font-size:13px;">Discord</strong>
<span style="font-size:12px;color:rgba(255,255,255,0.75)">ctxzero (click)</span>
</div>
</div>
<button id="emailToggle" class="social-badge" style="min-width:170px;">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 8l8 5 8-5v2l-8 5-8-5V8z"/></svg>
<div style="display:flex;flex-direction:column;align-items:flex-start;">
<strong style="font-size:13px;">E-mail</strong>
<span id="emailHint" style="font-size:12px;color:rgba(255,255,255,0.75)">Click to reveal address</span>
</div>
</button>
<p class="contact-quote">"ctxzero / 2025"</p>
</div>
</div>
</div>
</section>
</main>
<div id="copiedTooltip" class="copied-tooltip" role="status" aria-live="polite">Copied!</div>
<script>
const roles = ["Penetration Tester", "Red Teamer", "Ethical Hacker"];
let r = 0, c = 0, el = document.getElementById("roleText");
function type() {
if (c < roles[r].length) {
el.textContent += roles[r].charAt(c++);
setTimeout(type, 80);
} else { setTimeout(erase, 1500); }
}
function erase() {
if (c > 0) {
el.textContent = roles[r].substring(0, --c);
setTimeout(erase, 40);
} else {
r = (r + 1) % roles.length; setTimeout(type, 300);
}
}
type();
const io = new IntersectionObserver((entries, obs) => {
entries.forEach(e => {
if (e.isIntersecting) {
let t = e.target;
t.classList.add('revealed');
if (t.classList.contains('panel')) t.classList.add('revealed-card');
if (t.querySelectorAll('.bar').length > 0) t.querySelectorAll('.bar').forEach(b => { b.style.width = b.dataset.percent + '%' });
if (t.querySelectorAll('.skill-title').length > 0) t.querySelectorAll('.skill-title').forEach(s => s.classList.add('revealed'));
obs.unobserve(t);
}
});
}, { threshold: .2 });
document.querySelectorAll('.section-heading, .panel').forEach(e => io.observe(e));
const emailToggle = document.getElementById('emailToggle');
const emailHint = document.getElementById('emailHint');
let emailRevealed = false;
const emailAddress = 'ctxzero.pentest@gmail.com';
emailToggle.addEventListener('click', () => {
if (!emailRevealed) {
emailHint.textContent = emailAddress;
emailRevealed = true;
emailToggle.style.cursor = 'default';
try { emailToggle.setAttribute('title', 'Click to copy email'); } catch(e){}
} else { copyToClipboard(emailAddress); }
});
emailToggle.addEventListener('keydown', (e) => {
if ((e.key === 'Enter' || e.key === ' ') && !emailRevealed) { e.preventDefault(); emailToggle.click(); }
else if ((e.key === 'Enter' || e.key === ' ') && emailRevealed) { e.preventDefault(); copyToClipboard(emailAddress); }
});
const discordBadge = document.getElementById('discordBadge');
const discordName = 'ctxzero';
const tooltip = document.getElementById('copiedTooltip');
function showTooltip(msg) {
tooltip.textContent = msg;
tooltip.style.opacity = '1';
clearTimeout(window._copiedTimeout);
window._copiedTimeout = setTimeout(()=>{ tooltip.style.opacity = '0'; }, 2000);
}
async function copyToClipboard(text) {
try {
await navigator.clipboard.writeText(text);
showTooltip('Copied: ' + text);
} catch (err) {
showTooltip('Please copy: ' + text);
setTimeout(()=>{ window.prompt('Copy this text:', text); }, 50);
}
}
discordBadge.addEventListener('click', () => { copyToClipboard(discordName); });
discordBadge.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); discordBadge.click(); } });
document.addEventListener('keydown', (e) => { if (e.key === 'Tab') document.body.classList.add('user-is-tabbing'); });
const viewCodeBtn = document.getElementById('viewCodeBtn');
if (viewCodeBtn) {
viewCodeBtn.addEventListener('click', (e) => {
});
}
</script>
</body>
</html>