:root {
  --red: #c0182a;
  --red-light: #e8253b;
  --red-dark: #8a0f1e;
  --bg: #0a0b10;
  --bg2: #10121a;
  --bg3: #161924;
  --text: #e0e0e0;
  --text-dim: #9099a8;
  --border: #c0182a44;
  --glow: 0 0 18px #c0182a88;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Share Tech Mono', monospace; overflow-x: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,11,16,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 42px; width: 42px; border-radius: 50%; }
.nav-logo span { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; color: var(--red-light); letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: .85rem; letter-spacing: 1.5px; transition: color .2s; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: var(--red-light); text-shadow: var(--glow); }
.nav-links a.active::after { content: ''; display: block; height: 2px; background: var(--red); margin-top: 3px; box-shadow: var(--glow); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dim); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ── */
.btn { padding: .75rem 2rem; border-radius: 4px; font-family: 'Orbitron', sans-serif; font-size: .8rem; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: all .2s; border: none; display: inline-block; text-align: center; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--red-light); box-shadow: 0 0 30px #c0182acc; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--red-light); border: 1px solid var(--red); }
.btn-outline:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-tag { font-size: .7rem; color: var(--red); letter-spacing: 4px; text-transform: uppercase; display: block; margin-bottom: .5rem; }
.section-title { font-family: 'Orbitron', sans-serif; font-size: clamp(1.4rem,3vw,2.2rem); color: #fff; letter-spacing: 2px; }
.section-title span { color: var(--red-light); }
.divider { width: 60px; height: 3px; background: var(--red); margin: 1rem auto 0; box-shadow: var(--glow); }

/* ── PAGE WRAP ── */
.page-wrap { padding-top: 64px; min-height: 100vh; }
.page-main { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 6rem; }

/* ── HERO MINI (inner pages) ── */
.hero-mini { background: linear-gradient(180deg, #1a0a0d 0%, var(--bg) 100%); padding: 5rem 2rem 3rem; text-align: center; border-bottom: 1px solid var(--border); }
.hero-mini h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(1.6rem,4vw,2.8rem); color: #fff; letter-spacing: 3px; }
.hero-mini h1 span { color: var(--red-light); }
.hero-mini p { color: var(--text-dim); margin-top: .5rem; font-size: .85rem; }

/* ── BADGES ── */
.wu-badge { display: inline-block; padding: .2rem .7rem; border-radius: 3px; font-size: .65rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: bold; }
.easy   { background: #1a3a1a; color: #4caf50; border: 1px solid #4caf5055; }
.medium { background: #3a2a0a; color: #ff9800; border: 1px solid #ff980055; }
.hard   { background: #3a0a0a; color: var(--red-light); border: 1px solid var(--border); }
.insane { background: #1a0a3a; color: #9c27b0; border: 1px solid #9c27b055; }

/* ── CARDS ── */
.wu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.wu-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; cursor: pointer; transition: all .2s; position: relative; overflow: hidden; text-decoration: none; display: block; }
.wu-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--red); }
.wu-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 30px #c0182a33; }
.wu-card h3 { color: #fff; font-family: 'Orbitron', sans-serif; font-size: .95rem; margin: .5rem 0; letter-spacing: 1px; }
.wu-card p { color: var(--text-dim); font-size: .8rem; line-height: 1.6; }
.wu-meta { display: flex; justify-content: space-between; margin-top: 1rem; font-size: .72rem; color: var(--text-dim); flex-wrap: wrap; gap: .3rem; }
.wu-platform { color: var(--red); }
.wu-empty { text-align: center; color: var(--text-dim); padding: 3rem; grid-column: 1 / -1; }

/* ── CONTROLS ── */
.controls { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.controls input, .controls select {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  padding: .6rem 1rem; border-radius: 4px; font-family: 'Share Tech Mono', monospace; font-size: .85rem;
  outline: none; flex: 1; min-width: 160px;
}
.controls input::placeholder { color: var(--text-dim); }
.controls input:focus, .controls select:focus { border-color: var(--red); box-shadow: var(--glow); }

/* ── FORMS ── */
.form-card { background: var(--bg3); border: 1px dashed var(--red); border-radius: 8px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .72rem; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea,
.contact-form input,
.contact-form textarea {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  padding: .65rem 1rem; border-radius: 4px; font-family: 'Share Tech Mono', monospace; font-size: .85rem; outline: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); box-shadow: var(--glow); }
.form-group textarea { resize: vertical; min-height: 180px; }
.file-drop {
  border: 1px dashed var(--border); border-radius: 4px; padding: 1.8rem; text-align: center;
  color: var(--text-dim); font-size: .85rem; cursor: pointer; transition: all .2s; margin-bottom: 1rem;
}
.file-drop:hover { border-color: var(--red); color: var(--red-light); background: #c0182a11; }
.file-drop .icon { font-size: 2rem; display: block; margin-bottom: .4rem; }
.notify { display: none; background: #1a3a1a; border: 1px solid #4caf50; color: #4caf50; padding: .8rem 1.2rem; border-radius: 4px; text-align: center; margin-top: 1rem; font-size: .85rem; }
.notify a { color: #4caf50; }

/* ── TIPS BOX ── */
.tips-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; margin-bottom: 2rem; }
.tips-box h3 { font-family: 'Orbitron', sans-serif; color: var(--red-light); font-size: .9rem; margin-bottom: 1rem; }
.tips-box ul { list-style: none; }
.tips-box li { color: var(--text-dim); font-size: .8rem; padding: .3rem 0; }
.tips-box li::before { content: "▶ "; color: var(--red); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; color: #fff; margin-bottom: 1rem; }
.contact-info p { color: var(--text-dim); font-size: .85rem; line-height: 1.9; margin-bottom: 2rem; }
.c-links { display: flex; flex-direction: column; gap: .75rem; }
.c-link { display: flex; align-items: center; gap: .9rem; color: var(--text-dim); text-decoration: none; font-size: .85rem; padding: .75rem 1rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 5px; transition: all .2s; }
.c-link:hover { border-color: var(--red); color: var(--red-light); transform: translateX(4px); }
.c-icon { font-size: 1.1rem; min-width: 22px; text-align: center; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ── FOOTER ── */
footer { text-align: center; padding: 2rem; color: var(--text-dim); font-size: .75rem; letter-spacing: 1px; border-top: 1px solid var(--border); }
footer span { color: var(--red); }

/* ─────────────── INDEX SPECIFIC ─────────────── */
.hero-full {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 80px 2rem 4rem;
  background: radial-gradient(ellipse at 50% 40%, #1a0a0d 0%, var(--bg) 70%);
  position: relative; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .35;
}
.hero-logo { width: 160px; height: 160px; border-radius: 50%; box-shadow: 0 0 60px #c0182a66; margin-bottom: 2rem; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 40px #c0182a55, 0 0 80px #c0182a22; } 50% { box-shadow: 0 0 80px #c0182a99, 0 0 160px #c0182a44; } }
.hero-full h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(2rem,5vw,3.8rem); font-weight: 900; letter-spacing: 4px; color: #fff; text-shadow: 0 0 30px #c0182a; margin-bottom: .4rem; }
.hero-full h1 span { color: var(--red-light); }
.tagline { color: var(--text-dim); font-size: .9rem; letter-spacing: 2px; margin-bottom: 2.5rem; }
.blink { animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.stats-bar { display: flex; gap: 3rem; margin-top: 4rem; flex-wrap: wrap; justify-content: center; }
.stat { text-align: center; }
.stat-num { font-family: 'Orbitron', sans-serif; font-size: 2rem; color: var(--red-light); font-weight: 700; }
.stat-label { font-size: .75rem; color: var(--text-dim); letter-spacing: 1px; }

.about-section { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img img { width: 240px; height: 240px; border-radius: 50%; border: 3px solid var(--red); box-shadow: var(--glow); display: block; margin: 0 auto; }
.about-text h2 { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; color: #fff; margin-bottom: 1rem; }
.about-text p { color: var(--text-dim); font-size: .85rem; line-height: 1.9; margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.skill-tag { background: var(--bg3); border: 1px solid var(--border); color: var(--red-light); padding: .3rem .8rem; border-radius: 3px; font-size: .75rem; letter-spacing: 1px; }

.recent-section { max-width: 1100px; margin: 0 auto; padding: 0 2rem 6rem; }
.center { text-align: center; margin-top: 2rem; }

/* ─────────────── WRITEUP DETAIL ─────────────── */
.detail-wrap { max-width: 860px; margin: 0 auto; padding: 5rem 2rem 6rem; }
.back-btn { color: var(--text-dim); text-decoration: none; font-size: .8rem; letter-spacing: 1px; display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2rem; transition: color .2s; }
.back-btn:hover { color: var(--red-light); }
.wu-header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.wu-header h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(1.4rem,4vw,2.2rem); color: #fff; margin: .75rem 0 .5rem; }
.wu-header-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--text-dim); font-size: .8rem; align-items: center; margin-top: .75rem; }
.content-body { font-size: .9rem; line-height: 1.9; }
.content-body h2 { font-family: 'Orbitron', sans-serif; color: var(--red-light); margin: 2rem 0 .75rem; font-size: 1.1rem; border-left: 3px solid var(--red); padding-left: .75rem; }
.content-body h3 { color: #fff; margin: 1.5rem 0 .5rem; }
.content-body pre { background: var(--bg3); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 4px; padding: 1.2rem; overflow-x: auto; margin: 1rem 0; font-size: .82rem; }
.content-body p { color: var(--text-dim); margin: .5rem 0; }
.not-found { text-align: center; padding: 4rem; color: var(--text-dim); }
.not-found h2 { font-family: 'Orbitron', sans-serif; color: var(--red); margin-bottom: 1rem; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .about-section { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .about-img img { margin: 0 auto; }
  .skill-tags { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 700px) {
  nav { padding: 0 1.2rem; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; width: 100%;
    background: rgba(10,11,16,0.98); border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .75rem 2rem; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { gap: 2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; }
  .wu-grid { grid-template-columns: 1fr; }
  .controls { flex-direction: column; }
  .controls input, .controls select { min-width: unset; width: 100%; }
  .detail-wrap { padding: 5rem 1.2rem 4rem; }
  .wu-header-meta { flex-direction: column; gap: .4rem; }
}

@media (max-width: 420px) {
  .hero-logo { width: 120px; height: 120px; }
  .stat-num { font-size: 1.5rem; }
  .form-card { padding: 1.5rem; }
}
