/* ─────────────────────────────────────────
   RESET & TOKENS
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #06020e;
  --bg-2:         #0a0418;
  --card:         #0d0820;
  --purple:       #7c3aed;
  --purple-light: #a855f7;
  --gold:         #c9a84c;
  --gold-light:   #e8c96e;
  --gold-dim:     rgba(201, 168, 76, 0.2);
  --text:         #eae6ff;
  --text-muted:   #8a87a8;
  --rail:         56px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  padding-right: var(--rail);
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #4c1d95; }


/* ─────────────────────────────────────────
   RAIN CANVAS
───────────────────────────────────────── */
#rain-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* ─────────────────────────────────────────
   CONTACT RAIL
───────────────────────────────────────── */
.rail {
  position: fixed;
  right: 0;
  top: 0;
  width: var(--rail);
  height: 100vh;
  background: rgba(6, 2, 14, 0.92);
  border-left: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(8px);
}

header,
section,
footer {
  position: relative;
  z-index: 1;
}

.rail-gem {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold), 0 0 24px rgba(201, 168, 76, 0.4);
  flex-shrink: 0;
}

.rail-line {
  width: 1px;
  flex-shrink: 0;
}
.rail-line-a    { height: 20px; background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1)); }
.rail-line-b    { height: 14px; background: rgba(124,58,237,0.2); }
.rail-line-grow { flex: 1; background: linear-gradient(to bottom, rgba(124,58,237,0.25), rgba(124,58,237,0.05), rgba(201,168,76,0.1)); }
.rail-line-c    { height: 20px; background: linear-gradient(to top, var(--gold), rgba(201,168,76,0.1)); }

.rail-pad    { height: 18px; flex-shrink: 0; }
.rail-pad-sm { height: 10px; flex-shrink: 0; }

.rail-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.3s, transform 0.3s;
}
.rail-icon:hover {
  color: var(--gold-light);
  transform: scale(1.2);
}
.rail-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.rail-email {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s;
}
.rail-email:hover {
  color: var(--gold-light);
}


/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Scan-line texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent, transparent 3px,
    rgba(0,0,0,0.07) 3px, rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

/* Manga panel corner brackets */
.corner {
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
  z-index: 1;
}
.corner::before,
.corner::after {
  content: '';
  position: absolute;
  background: var(--gold);
}
.corner::before { width: 100%; height: 2px; top: 0; left: 0; }
.corner::after  { width: 2px; height: 100%; top: 0; left: 0; }
.corner.tl { top: 28px; left: 28px; }
.corner.tr { top: 28px; right: 28px; transform: rotate(90deg); }
.corner.bl { bottom: 28px; left: 28px; transform: rotate(-90deg); }
.corner.br { bottom: 28px; right: 28px; transform: rotate(180deg); }

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(30px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  text-shadow:
    0 0 80px rgba(201,168,76,0.22),
    0 0 140px rgba(124,58,237,0.12),
    0 2px 8px rgba(0,0,0,0.9);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.hero-handle {
  font-family: 'Cinzel', serif;
  font-size: clamp(12px, 1.6vw, 16px);
  color: var(--purple-light);
  letter-spacing: 0.24em;
  margin-bottom: 36px;
  opacity: 0.9;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 36px;
  max-width: 440px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.6), transparent);
}
.divider-gem {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold);
}

.hero-role {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 2.2;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 13px 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #9a6e20);
  color: #06020e;
  font-weight: 700;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 30px rgba(201,168,76,0.45);
}
.btn-ghost {
  border: 1px solid rgba(168,85,247,0.45);
  color: var(--purple-light);
}
.btn-ghost:hover {
  border-color: var(--purple-light);
  background: rgba(124,58,237,0.14);
  box-shadow: 0 0 24px rgba(124,58,237,0.22);
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(138,135,168,0.45);
}
.scroll-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}


/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
section {
  padding: 100px 64px;
  max-width: 1040px;
  margin: 0 auto;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}
.sec-num {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.25em;
  opacity: 0.8;
}
.sec-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.sec-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.35), rgba(124,58,237,0.12), transparent);
}


/* ─────────────────────────────────────────
   PROJECT CARDS
───────────────────────────────────────── */
.projects-grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(124,58,237,0.18);
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

/* Animated gold top sweep */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--purple-light), var(--gold));
  transition: width 0.45s ease;
}
.card:hover {
  border-color: rgba(201,168,76,0.32);
  box-shadow: 0 0 48px rgba(124,58,237,0.1), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}
.card:hover::after {
  width: 100%;
}

/* Featured card — slightly more prominent */
.card-featured {
  border-color: rgba(201,168,76,0.18);
}
.card-featured::before {
  content: 'Featured';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 3px 9px;
}

/* Corner triangle gem */
.card-gem {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover .card-gem {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.card-name {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.card-links {
  display: flex;
  gap: 10px;
}
.card-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid rgba(138,135,168,0.25);
  padding: 5px 13px;
  transition: all 0.3s;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.card-link:hover {
  color: var(--gold-light);
  border-color: rgba(201,168,76,0.55);
  background: rgba(201,168,76,0.06);
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.22);
  padding: 3px 10px;
}

.creds {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(201,168,76,0.04);
  border-left: 2px solid rgba(201,168,76,0.45);
  padding: 9px 14px;
  letter-spacing: 0.04em;
}


/* ─────────────────────────────────────────
   SKILLS
───────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 20px;
}

.skill-box {
  background: var(--card);
  border: 1px solid rgba(124,58,237,0.15);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.skill-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s;
}
.skill-box:hover {
  border-color: rgba(201,168,76,0.28);
}
.skill-box:hover::after {
  width: 100%;
}

.skill-cat {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.skill-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.skill-items li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color 0.25s;
}
.skill-items li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--purple-light);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: background 0.25s;
}
.skill-box:hover .skill-items li         { color: var(--text); }
.skill-box:hover .skill-items li::before { background: var(--gold); }


/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  padding: 40px 64px;
  border-top: 1px solid rgba(124,58,237,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.footer-gem {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.55;
}
footer p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-align: center;
}
footer a {
  color: var(--gold);
  text-decoration: none;
}
footer a:hover {
  color: var(--gold-light);
}
