/* ===== jaxon studio's // CRT build ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  color: #e0e0e0;
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(2,2,2,0.55), rgba(2,2,2,0.55)),
    url('/Roses.png') center/cover no-repeat fixed,
    #020202;
}

/* ===== THE TV ===== */

.tv-casing {
  max-width: 1000px;
  width: 90%;
  margin: 5vh auto;
  background: #120e17;
  padding: 40px;
  border-radius: 40px;
  border: 2px solid #231c2e;
  border-bottom-width: 8px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.9),
    0 0 120px rgba(176,38,255,0.18);
  position: relative;
}

.tv-glass {
  position: relative;
  background: #050505;
  border-radius: 20px;
  border: 8px solid #07040a;
  height: 0;
  padding-bottom: 75%;
  overflow: hidden;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,1),
    inset 0 0 80px rgba(176,38,255,0.06);
}

/* ===== SCREEN EFFECTS ===== */

.animated-grid, .scanlines, .vignette, .glare, .rolling-bar {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.animated-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(176,38,255,0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(176,38,255,0.15) 1px, transparent 1px);
  z-index: 0;
  animation: grid-drift 20s infinite linear;
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.scanlines {
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.18),
    rgba(0,0,0,0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 100;
  mix-blend-mode: multiply;
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.85) 100%);
  z-index: 99;
}

.glare {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  z-index: 101;
}

.rolling-bar {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(176,38,255,0.08) 45%,
    rgba(255,255,255,0.12) 50%,
    rgba(176,38,255,0.08) 55%,
    transparent 100%
  );
  height: 80px;
  top: -80px;
  z-index: 98;
  animation: tracking-roll 12s infinite linear;
  mix-blend-mode: screen;
}

@keyframes tracking-roll {
  0%, 80% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* ===== CONTENT AREA ===== */

.tv-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  padding: 50px 5%;
}

.tv-content::-webkit-scrollbar { width: 12px; }
.tv-content::-webkit-scrollbar-track { background: #08080a; border-left: 1px solid #1a1a24; }
.tv-content::-webkit-scrollbar-thumb { background: #2a1b38; border: 1px solid #b026ff; }

/* ===== HEADER ===== */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px dashed #333;
}

.header-text { flex: 1; }

.logo {
  max-width: 140px;
  width: 20%;
  height: auto;
  filter:
    drop-shadow(2px 0 rgba(255,0,0,0.5))
    drop-shadow(-2px 0 rgba(0,255,0,0.5))
    drop-shadow(0 0 10px rgba(176,38,255,0.4));
  animation: logo-shift 2.5s infinite linear;
}

@keyframes logo-shift {
  0%   { filter: drop-shadow(2px 0 rgba(255,0,0,0.5))  drop-shadow(-2px 0 rgba(0,255,0,0.5))  drop-shadow(0 0 10px rgba(176,38,255,0.4)); }
  33%  { filter: drop-shadow(2px 0 rgba(0,255,0,0.5))  drop-shadow(-2px 0 rgba(0,0,255,0.5))  drop-shadow(0 0 10px rgba(176,38,255,0.4)); }
  66%  { filter: drop-shadow(2px 0 rgba(0,0,255,0.5))  drop-shadow(-2px 0 rgba(255,0,0,0.5))  drop-shadow(0 0 10px rgba(176,38,255,0.4)); }
  100% { filter: drop-shadow(2px 0 rgba(255,0,0,0.5))  drop-shadow(-2px 0 rgba(0,255,0,0.5))  drop-shadow(0 0 10px rgba(176,38,255,0.4)); }
}

h1 {
  font-size: 56px;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 10px;
  animation: rgb-shift 2.5s infinite linear, flicker 6s infinite;
}

@keyframes rgb-shift {
  0%   { text-shadow: 2px 0 rgba(255,0,0,0.8),  -2px 0 rgba(0,255,0,0.8); }
  33%  { text-shadow: 2px 0 rgba(0,255,0,0.8),  -2px 0 rgba(0,0,255,0.8); }
  66%  { text-shadow: 2px 0 rgba(0,0,255,0.8),  -2px 0 rgba(255,0,0,0.8); }
  100% { text-shadow: 2px 0 rgba(255,0,0,0.8),  -2px 0 rgba(0,255,0,0.8); }
}

@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  98% { opacity: 0.85; }
  99% { opacity: 1; }
}

.subtitle {
  color: #c4c4cc;
  font-size: 22px;
  letter-spacing: 1px;
  font-style: italic;
}

.handle { color: #9090a0; font-size: 18px; margin-top: 4px; }

/* ===== SECTIONS & HEADINGS ===== */

section { margin-bottom: 48px; }

h2 {
  font-size: 28px;
  color: #b026ff;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(176,38,255,0.5);
}

h3 {
  font-size: 26px;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.tv-content p { color: #d4d4dc; }

/* ===== LINKS ===== */

a {
  color: #c548ff;
  text-decoration: none;
  border-bottom: 1px dotted #b026ff;
  text-shadow: 0 0 4px rgba(176,38,255,0.3);
  transition: all 0.15s;
}

a:hover {
  color: #fff;
  border-bottom-color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.8), 0 0 15px rgba(176,38,255,1);
}

/* ===== GRID & BOXES (Active Projects / Divisions) ===== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.box {
  border: 1px solid rgba(176,38,255,0.35);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s;
  background: rgba(15,12,22,0.88);
  box-shadow: 0 0 10px rgba(176,38,255,0.05);
  position: relative;
  overflow: hidden;
}

.box > * { position: relative; z-index: 1; }

.box:hover {
  border-color: #b026ff;
  box-shadow: 0 0 20px rgba(176,38,255,0.4);
  transform: translateY(-2px);
  background: #111116;
  animation: glitch-box 0.35s steps(4, end) infinite;
}

.box:hover h3 {
  animation: text-glitch 0.3s steps(5) infinite;
}

@keyframes glitch-box {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3px, 1px); box-shadow: 3px 0 #ff3366, -3px 0 #00e5ff; }
  50%  { transform: translate(2px, -1px); filter: hue-rotate(-20deg) saturate(1.5); }
  75%  { transform: translate(-1px, 2px); box-shadow: -3px 0 #ff3366, 3px 0 #00e5ff; }
  100% { transform: translate(0, 0); }
}

@keyframes text-glitch {
  0%, 100% { transform: translate(0); }
  20%      { text-shadow: 2px 0 #ff3366, -2px 0 #00e5ff; transform: translate(1px); }
  40%      { text-shadow: -2px 0 #ff3366, 2px 0 #00e5ff; transform: translate(-1px); }
  60%      { text-shadow: 3px 0 #ff9f1c; transform: translate(2px); }
  80%      { text-shadow: -1px 0 #ff3366; transform: translate(-1px); }
}

.box p { color: #c0c0cc; font-size: 16px; }


/* optional: roses or texture behind each box — uncomment and make sure Roses.png is uploaded */
.box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/FlowerEye2.png') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.box:hover::before { opacity: 0.6; }


/* ===== FOOTER ===== */

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px dashed #444;
  color: #888;
}

.small { font-size: 16px; margin-top: 8px; color: #555; }

/* ===== SECTION INTRO/OUTRO ===== */
.section-intro {
  color: #a0a0aa;
  margin-bottom: 20px;
  font-style: italic;
}

.section-outro {
  text-align: center;
  margin-top: 20px;
  color: #888;
}

/* ===== VIDEO GRID (Signal) ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-card {
  background: rgba(15, 12, 22, 0.85);
  border: 1px solid rgba(176, 38, 255, 0.3);
  padding: 10px;
  transition: all 0.2s;
}

.video-card:hover {
  border-color: #b026ff;
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.35);
  transform: translateY(-2px);
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 4px;
}

.video-ch {
  color: #00e5ff;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
  letter-spacing: 2px;
  font-size: 16px;
}

.video-title {
  color: #fff;
  letter-spacing: 1px;
  font-size: 18px;
}

/* ===== SAMPLES ===== */
.sample-pack {
  display: block;
  text-align: center;
  padding: 24px 20px;
  border: 2px dashed #b026ff;
  background: rgba(25, 18, 36, 0.5);
  color: #fff;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.sample-pack:hover {
  background: rgba(176, 38, 255, 0.15);
  border-style: solid;
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.4);
  transform: translateY(-2px);
}

.sample-pack-label {
  color: #b026ff;
  font-size: 26px;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(176, 38, 255, 0.6);
  margin-bottom: 8px;
}

.sample-pack-meta {
  color: #888;
  font-size: 16px;
  letter-spacing: 1px;
}

.sample-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.sample-item {
  display: block;
  padding: 10px 14px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid #2a1b38;
  color: #c0c0cc;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.15s;
}

.sample-item:hover {
  border-color: #00e5ff;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.05);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

/* ===== DRAWINGS ===== */
.drawing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.drawing {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(176, 38, 255, 0.3);
  background: rgba(10, 10, 15, 0.6);
  transition: all 0.25s;
}

.drawing img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
  transition: all 0.4s;
}

.drawing:hover {
  border-color: #b026ff;
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
  transform: translateY(-3px);
}

.drawing:hover img {
  filter: saturate(1.2) contrast(1.1);
  transform: scale(1.05);
}

.drawing-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  color: #00e5ff;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
  font-size: 14px;
  letter-spacing: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.drawing:hover .drawing-label {
  opacity: 1;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .tv-casing {
    margin: 0; padding: 10px; border-radius: 0;
    border: none; box-shadow: none; width: 100%;
  }
  .tv-glass {
    height: 95vh; padding-bottom: 0;
    border-width: 4px; border-radius: 10px;
  }
  .tv-content { padding: 30px 15px; }
  h1 { font-size: 40px; }
  .grid { grid-template-columns: 1fr; }
  header { flex-direction: column; align-items: flex-start; }
  .logo { max-width: 100px; align-self: flex-end; margin-top: -40px; }
}

@media (max-width: 700px) {
  .drawing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}