@charset "UTF-8";

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
blockquote,body,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,
input,li,ol,p,pre,td,textarea,th,ul { margin:0; padding:0; }
table { border-spacing:0; }
abbr,acronym,fieldset,img { border:0; }
ol,ul { list-style:none; }
q:after,q:before { content:''; }

/* ─── Custom Properties ──────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg:        #09090f;
  --surface:   rgba(255,255,255,0.04);
  --glass:     rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.10);
  --text:      #e8e8f0;
  --muted:     rgba(232,232,240,0.45);
  --accent1:   #7c6aff;
  --accent2:   #ff6aab;
  --accent3:   #6affda;
  --glow1:     rgba(124,106,255,0.35);
  --glow2:     rgba(255,106,171,0.25);
  --glow3:     rgba(106,255,218,0.20);
  --radius:    16px;
  --font:      'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ─── Base ───────────────────────────────────────────────────── */
html, body {
  height: 100%;
  background-color: var(--bg);
}

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* ─── Inter font import ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

/* ─── Custom cursor ──────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
  box-shadow: 0 0 12px 4px var(--glow1);
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(124,106,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, border-color 0.15s;
}

/* ─── Aurora background ──────────────────────────────────────── */
#aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#aurora::before,
#aurora::after,
#aurora span {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

#aurora::before {
  width: 700px;
  height: 700px;
  background: var(--accent1);
  top: -200px;
  left: -150px;
  animation: float1 18s ease-in-out infinite;
}

#aurora::after {
  width: 600px;
  height: 600px;
  background: var(--accent2);
  bottom: -250px;
  right: -100px;
  animation: float2 22s ease-in-out infinite;
}

#aurora span {
  display: block;
  width: 500px;
  height: 500px;
  background: var(--accent3);
  top: 40%;
  left: 40%;
  animation: float3 15s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(80px, 60px) scale(1.1); }
  66%       { transform: translate(-40px, 90px) scale(0.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  40%       { transform: translate(-70px, -50px) scale(1.15); }
  70%       { transform: translate(50px, 30px) scale(0.9); }
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  50%       { transform: translate(-50%,-50%) scale(1.2); }
}

/* ─── Noise grain overlay ────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ─── Utility ────────────────────────────────────────────────── */
.nodisplay { display: none; }

/* ─── Hallway ────────────────────────────────────────────────── */
#hallway {
  position: relative;
  width: 100%;
  height: clamp(280px, 40vh, 420px);
  background:
    linear-gradient(180deg,
      rgba(9,9,15,0) 0%,
      rgba(9,9,15,0.5) 100%),
    url(//s.imgur.com/images/404/hallbg.png) center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  z-index: 2;
}

/* Subtle vignette on hallway */
#hallway::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(9,9,15,0.7) 100%);
  pointer-events: none;
}

.container {
  position: relative;
  width: min(1000px, 100%);
  margin: 0 auto;
  height: 100%;
  overflow: visible;
}

/* ─── Paintings (frame glow effect) ──────────────────────────── */
.painting {
  position: relative;
  float: left;
  margin: 8px 8px 0 10px;
  filter: drop-shadow(0 0 16px rgba(124,106,255,0.15));
  transition: filter 0.4s;
}

.painting:hover {
  filter: drop-shadow(0 0 28px rgba(124,106,255,0.35)) brightness(1.08);
}

/* Eye mechanics (kept identical, just restyled pupils) */
.eye-container { position: absolute; top: 50%; }

.eye, .pupil {
  height: 12px;
  width: 12px;
  background-color: #fff;
  display: inline-block;
  border-radius: 100px;
  position: relative;
  box-shadow: 0 0 4px 1px rgba(124,106,255,0.4);
}

.eye { overflow: hidden; }
.pupil {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  background-color: #1a0a2e;
  overflow: hidden;
}

.pupil::after {
  content: "";
  width: 2px;
  height: 1px;
  border-radius: 100px;
  display: block;
  top: 2px;
  right: -4px;
  position: relative;
  background-color: rgba(255,255,255,0.9);
  transform: rotate(45deg);
  opacity: 0.8;
}

/* Individual painting positions (same as original) */
#cat1 { top: 70px; }
#cat1 .eye-container { top: 34%; left: 32%; }
#cat1 .eye { margin-right: 7px; }
#cat1 .eye.right { top: 1px; }

#cat2 { top: 49px; }
#cat2 .eye-container { top: 28%; left: 41.75%; }

#giraffe { top: 4px; margin-left: 10px; }
.monocle { position: absolute; top: 47%; left: 37%; }
#giraffe .eye-container { top: 48.5%; left: 37%; }
#giraffe .eye { margin-right: 46px; }
#giraffe .eye.right { top: 4px; }

#cat3 { top: 53px; }
#cat3 .eye-container { top: 38%; left: 39.5%; }
#cat3 .eye { margin-right: 11px; }

#cat4 { top: 71px; margin-right: 0; margin-left: 1px; }
#cat4 .eye-container { top: 35%; left: 43%; }
#cat4 .eye.right { top: -1px; }
#cat4 .eye { margin-right: 8px; }

/* ─── Footer / hero card ──────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  width: min(520px, 92vw);
  margin: 40px auto 60px;
  padding: 36px 40px;
  text-align: center;

  /* glassmorphism */
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  /* layered box-shadow for depth + subtle glow */
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.08) inset,
    0 24px 64px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 80px -20px var(--glow1);

  /* fade-in on load */
  animation: cardIn 0.9s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.2s;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* top rainbow accent line */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3), var(--accent1));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}

/* ─── Heading ────────────────────────────────────────────────── */
h1 {
  margin: 0 0 6px;
  font-family: var(--font);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  text-shadow:
    0 0 40px var(--glow1),
    0 0 80px var(--glow2);
}

/* gradient text on heading */
h1 span {
  background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Sub-text ───────────────────────────────────────────────── */
.footer p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 10px;
}

/* ─── Links ──────────────────────────────────────────────────── */
a:link, a:visited { color: var(--accent1); text-decoration: none; }
a:hover { color: var(--accent3); text-decoration: underline; }

/* ─── Selection ──────────────────────────────────────────────── */
::selection       { background: var(--accent1); color: #fff; }
::-moz-selection  { background: var(--accent1); color: #fff; }

/* ─── Scrollbar styling ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent1); }
