/* ============= GLOBAL ============= */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Full-page grid background (default) */
body {
  background-image:
    linear-gradient(to right, rgba(0, 120, 255, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 120, 255, 0.15) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 120, 255, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 120, 255, 0.3) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  transition: background 0.3s ease;

  padding-bottom: 160px;
  min-height: 100vh;
}

/* DOTTED GRID */
body.grid-dotted {
  background-image: radial-gradient(#8cbcff 1px, transparent 1px);
  background-size: 20px 20px;
}

/* NO GRID */
body.grid-none {
  background: #ffffff;
  background-image: none;
}

/* ========= CUSTOM FONTS ========= */
@font-face {
  font-family: "Lemon Tuesday";
  src: url("./LemonTuesday.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Container kept (empty now, but harmless) */
.page-frame {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* =========================================
   HERO / LOGO AREA (FIXED – DOES NOT SCROLL)
========================================= */
:root {
  --hero-top: 28px;
  --hero-left: 50%;
}

.hero {
  width: 100%;
  text-align: center;
}

.hero-fixed {
  position: fixed;
  top: var(--hero-top);
  left: var(--hero-left);
  transform: translateX(-50%);
  z-index: 250;
  pointer-events: auto;
}

.logo-hover-area {
  display: inline-block;
  position: relative;
  padding-top: 45px;
}

.hero-tagline {
  position: absolute;
  top: 50px;
  left: 59%;
  transform: translateX(-50%);
}

.typewriter {
  position: relative;
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  color: #305bab;
  white-space: nowrap;
}

.typewriter.typing::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -4px;
  width: 2px;
  background: #305bab;
  animation: cursor-blink 0.8s steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-logo {
  height: 80px;
  margin-bottom: 3px;
}

.hero-welcome {
  margin-top: 12px;
  font-family: "Lemon Tuesday", "Brush Script MT", cursive;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #2b6cd4;
}

/* ============= PROFILE CIRCLE – TOP LEFT ============= */
.profile-area {
  position: fixed;
  top: 40px;
  left: 50px;
  display: inline-block;
  z-index: 100;
}

.profile-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  /* ✅ more reliable 3D */
  perspective: 800px;
  transform-style: preserve-3d;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

/* --- SPEECH BUBBLE + DOTS --- */
.speech-bubble {
  position: absolute;
  left: 235px;
  top: -18px;
  padding: 10px 26px;
  background: #ffffff;
  color: #3f2aee;
  font-size: 14px;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  white-space: nowrap;
  border: 3px solid #3f2aee;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.speech-dot {
  position: absolute;
  border-radius: 50%;
  background: #3f2aee;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.speech-dot-1 { width: 9px; height: 9px; left: 210px; top: 24px; }
.speech-dot-2 { width: 6px; height: 6px; left: 198px; top: 38px; }

.profile-area:hover .speech-bubble,
.profile-area:hover .speech-dot {
  opacity: 1;
  transform: translateY(0);
}

/* --- VERTICAL REEL VIDEO BOX --- */
.intro-link { text-decoration: none; }

.intro-video {
  position: absolute;
  left: 220px;
  top: 30px;
  width: 160px;
  height: calc(160px * 1.777);
  background: #2b6cd4;
  border-radius: 24px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;

  pointer-events: auto;
}

.intro-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-area:hover .intro-video {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============= GRID TOGGLE BUTTON ============= */
.grid-btn {
  position: fixed;
  top: 5px;
  right: 5px;
  padding: 6px 14px;
  background: #2b6cd4;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 400;
  z-index: 9999;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.grid-btn:hover {
  transform: scale(1.12);
  background: #3078e6;
  box-shadow: 0 4px 14px rgba(48, 120, 230, 0.45);
}

/* ============= AUTOCAD-STYLE CROSSHAIR CURSOR ============= */
* { cursor: none !important; }

.custom-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.custom-cursor::before,
.custom-cursor::after,
.cursor-center { pointer-events: none; }

.custom-cursor::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100vw;
  height: 1px;
  background: #305bab;
  top: var(--cursor-y);
}

.custom-cursor::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100vh;
  width: 1px;
  background: #305bab;
  left: var(--cursor-x);
}

.cursor-center {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #305bab;
  top: calc(var(--cursor-y) - 6px);
  left: calc(var(--cursor-x) - 6px);
  border-radius: 2px;
}

/* ============= TURNTABLE (FIXED TOP-RIGHT) ============= */
.turntable {
  position: fixed;
  top: 70px;
  right: 40px;
  width: 140px;
  height: 140px;
  cursor: pointer;
  z-index: 6000;
}

.tt-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(135, 182, 255, 0.35);
  filter: blur(0.5px);
}

.tt-blob-back { width: 130px; height: 90px; top: 18px; left: -10px; }
.tt-blob-front { width: 110px; height: 80px; bottom: 0; right: -5px; background: rgba(80, 120, 255, 0.7); }

.tt-record {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #333 0, #000 50%, #101010 100%);
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transform-origin: center;
}

.tt-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3f2aee;
  box-shadow: 0 0 0 4px #3f2aee;
}

.tt-arm {
  position: absolute;
  width: 70px;
  height: 6px;
  background: #d3d3d3;
  border-radius: 999px;
  top: 32px;
  right: 4px;
  transform-origin: 10% 50%;
  transform: rotate(20deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tt-arm::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b3b3b3;
  right: -4px;
  top: -4px;
}

.turntable.playing .tt-record { animation: tt-spin 3.3s linear infinite; }
.turntable.playing .tt-arm { animation: tt-arm-swing 3.3s ease-in-out infinite; }

@keyframes tt-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes tt-arm-swing { 0%, 100% { transform: rotate(20deg); } 50% { transform: rotate(12deg); } }

.track-title {
  position: fixed;
  top: 210px;
  right: 40px;
  font-size: 11px;
  font-family: Georgia, "Times New Roman", serif;
  color: #305bab;
  opacity: 0.8;
  max-width: 160px;
  text-align: right;
  line-height: 1.3;
  pointer-events: none;
}

/* Turntable controls */
.tt-controls {
  position: fixed;
  top: 238px;
  right: 70px;
  display: flex;
  gap: 10px;
  z-index: 6001;
}

.tt-btn {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(48, 91, 171, 0.35);
  background: rgba(255, 255, 255, 0.75);
  color: #305bab;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.tt-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.92);
}

.tt-btn:active {
  transform: scale(0.98);
}

/* ===== FOOTER (FIXED BOTTOM CENTER) ===== */
.footer-area {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 300;
  text-align: center;
  pointer-events: auto;
}

.footer-tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: #305bab;
  margin-bottom: 14px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social-icon img {
  width: 15px;
  height: 15px;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover img {
  transform: scale(1.15);
  opacity: 1;
}

.icon-credit {
  display: block;
  font-size: 11px;
  font-family: Georgia, "Times New Roman", serif;
  color: #6a84c8;
  opacity: 0.65;
  margin-top: 10px;
  text-align: center;
}

.icon-credit a {
  color: #6a84c8;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.icon-credit a:hover {
  opacity: 1;
}

