/* ============================================
   DIP Techs — Main Stylesheet
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-accent: #F4D35E;
  --color-accent-green: #77C66E;
  --color-accent-gray: #8A8F98;
  --color-bg-dark: #08090D;
  --color-bg-surface: #0B0C11;
  --color-text: #e0e0e0;
  --color-text-muted: #a0a4ae;
  --color-border: rgba(244, 211, 94, 0.12);
  --color-glass-bg: rgba(11, 12, 17, 0.7);
  --color-glass-border: rgba(244, 211, 94, 0.08);
  --font-stack: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Consolas', 'Courier New', 'Lucida Console', monospace;
  --nav-height: 64px;
  --border-radius-btn: 10px;
  --transition-soft: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--color-bg-dark);
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 60px);
  height: var(--nav-height);
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.95) 0%, rgba(8, 9, 13, 0.6) 80%, transparent 100%);
  pointer-events: none;
}

.nav-btn {
  pointer-events: auto;
  font-family: var(--font-stack);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-btn);
  padding: 8px 20px;
  cursor: pointer;
  transition: transform var(--transition-soft),
              opacity var(--transition-soft),
              color var(--transition-soft),
              box-shadow var(--transition-soft),
              background var(--transition-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  outline: none;
}

.nav-btn:hover {
  transform: scale(1.06);
  color: #f0f0f0;
  box-shadow: 0 0 20px rgba(244, 211, 94, 0.08);
  background: rgba(244, 211, 94, 0.06);
  border-color: rgba(244, 211, 94, 0.2);
}

.nav-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-color: var(--color-accent);
}

.nav-btn--center {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-accent);
  padding: 10px 28px;
  border-color: rgba(244, 211, 94, 0.15);
  background: rgba(244, 211, 94, 0.04);
}

.nav-btn--center:hover {
  color: #f7df7a;
  box-shadow: 0 0 25px rgba(244, 211, 94, 0.12);
  background: rgba(244, 211, 94, 0.08);
}

/* Active state */
.nav-btn[aria-current="true"] {
  color: var(--color-accent);
  border-color: rgba(244, 211, 94, 0.2);
  background: rgba(244, 211, 94, 0.06);
}

.nav-btn--center[aria-current="true"] {
  color: #f7df7a;
  border-color: rgba(244, 211, 94, 0.25);
  background: rgba(244, 211, 94, 0.08);
  box-shadow: 0 0 20px rgba(244, 211, 94, 0.06);
}

/* ---------- View System ---------- */
.view {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.view--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Home view keeps centered content */
#view-home {
  justify-content: center;
}

/* ---------- Hero Section (Home) ---------- */
#view-home {
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at center 40%, #0f0f1a 0%, var(--color-bg-dark) 70%);
}

/* Background subtle pattern */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(244, 211, 94, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Enhanced background with subtle grid lines */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 211, 94, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 211, 94, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Subtle ambient glow */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(244, 211, 94, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Cube Container (behind title) ---------- */
.cube-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* ---------- Hero Content (title layer) ---------- */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 60px;
  transform: translateY(-8vh);
}

.hero-title {
  position: relative;
  font-family: var(--font-stack);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 550;
  color: transparent;
  background: linear-gradient(180deg, #f7df7a 0%, var(--color-accent) 50%, #d4b33e 100%);
  background-clip: text;
  -webkit-background-clip: text;
  letter-spacing: 0.03em;
  user-select: text;
  white-space: nowrap;
  text-shadow:
    /* Subtle glow */
    0 0 20px rgba(244, 211, 94, 0.10),
    0 0 60px rgba(244, 211, 94, 0.05),
    /* 3D extrusion layers - bottom-right direction */
    1px 1px 0 rgba(180, 150, 50, 0.25),
    2px 2px 0 rgba(160, 130, 40, 0.18),
    3px 3px 0 rgba(140, 110, 30, 0.12),
    4px 4px 0 rgba(120, 90, 20, 0.08);
}

/* Decorative depth layer using pseudo-element */
.hero-title::before {
  content: '< DIP Techs >';
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: transparent;
  background: linear-gradient(180deg, rgba(180, 150, 50, 0.12) 0%, rgba(140, 110, 30, 0.08) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  transform: translate(5px, 5px);
  pointer-events: none;
  user-select: none;
}

.title-bracket {
  font-weight: 400;
  opacity: 0.65;
  color: #c4a83e;
}

/* ---------- Cube Generator Platform ---------- */
.cube-generator {
  position: absolute;
  bottom: 18vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 180px;
  height: 60px;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
  perspective: 400px;
}

/* Hover expansion */
.cube-generator:hover {
  transform: translateX(-50%) scale(1.06);
}

.cube-generator:hover .generator-surface {
  box-shadow:
    0 0 20px rgba(244, 211, 94, 0.15),
    0 0 40px rgba(119, 198, 110, 0.08),
    inset 0 0 20px rgba(244, 211, 94, 0.05);
}

/* Generator surface */
.generator-surface {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a24 0%, #22222e 50%, #1a1a24 100%);
  border: 1px solid rgba(244, 211, 94, 0.15);
  border-radius: 8px;
  position: relative;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(244, 211, 94, 0.08),
    0 0 15px rgba(244, 211, 94, 0.05);
  transition: box-shadow 0.4s ease;
  transform: rotateX(5deg);
  transform-style: preserve-3d;
}

/* Bottom edge for 3D depth */
.generator-surface::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 4px;
  right: 4px;
  height: 12px;
  background: linear-gradient(180deg, #1a1a24 0%, #0f0f15 100%);
  border: 1px solid rgba(244, 211, 94, 0.08);
  border-top: none;
  border-radius: 0 0 6px 6px;
  transform: rotateX(-4deg);
  transform-origin: top center;
}

/* Glow effect on the surface */
.generator-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 211, 94, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* ---------- 3D Cube Styles ---------- */
.cube {
  position: absolute;
  width: 40px;
  height: 40px;
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform, opacity;
  left: calc(50% - 20px);
  bottom: 30px;
}

/* Each face of the cube */
.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  font-family: var(--font-mono);
  backface-visibility: hidden;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.02);
}

/* Front face */
.cube-face-front {
  transform: translateZ(calc(var(--cube-size, 40) * 0.5px));
}

/* Back face */
.cube-face-back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-size, 40) * 0.5px));
}

/* Right face */
.cube-face-right {
  transform: rotateY(90deg) translateZ(calc(var(--cube-size, 40) * 0.5px));
}

/* Left face */
.cube-face-left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size, 40) * 0.5px));
}

/* Top face */
.cube-face-top {
  transform: rotateX(90deg) translateZ(calc(var(--cube-size, 40) * 0.5px));
}

/* Bottom face */
.cube-face-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size, 40) * 0.5px));
}

/* Cube face with the <> symbol */
.cube-symbol {
  font-size: clamp(10px, 1.2vw, 14px);
  opacity: 0.85;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}

/* ---------- View Content (shared) ---------- */
.view-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  margin: 0 auto;
}

.view-content--empty {
  min-height: 100vh;
}

/* ---------- About Panel ---------- */
.about-panel {
  background: rgba(11, 12, 17, 0.65);
  border: 1px solid rgba(244, 211, 94, 0.08);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.about-heading {
  font-family: var(--font-stack);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.about-text p {
  font-family: var(--font-stack);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: #c8cbd4;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ---------- Connect Section ---------- */
.about-connect {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(244, 211, 94, 0.08);
}

.connect-heading {
  font-family: var(--font-stack);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.connect-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 22px;
  background: rgba(244, 211, 94, 0.04);
  border: 1px solid rgba(244, 211, 94, 0.1);
  border-radius: var(--border-radius-btn);
  text-decoration: none;
  transition: transform var(--transition-soft),
              background var(--transition-soft),
              border-color var(--transition-soft),
              box-shadow var(--transition-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  outline: none;
}

.connect-link:hover {
  transform: scale(1.04);
  background: rgba(244, 211, 94, 0.08);
  border-color: rgba(244, 211, 94, 0.2);
  box-shadow: 0 0 20px rgba(244, 211, 94, 0.06);
}

.connect-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.connect-label {
  font-family: var(--font-stack);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.connect-value {
  font-family: var(--font-stack);
  font-size: 0.9rem;
  color: #c8cbd4;
  word-break: break-all;
}

/* ---------- Home Description Card ---------- */
.home-description {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 90%;
  max-width: 680px;
  padding: 18px 28px;
  background: rgba(11, 12, 17, 0.55);
  border: 1px solid rgba(244, 211, 94, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.home-description p {
  font-family: var(--font-stack);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.65;
  color: #b0b4be;
  letter-spacing: 0.01em;
}

/* ---------- Project Navigation (Collections) ---------- */
.project-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.project-nav-btn {
  font-family: var(--font-stack);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(11, 12, 17, 0.55);
  border: 1px solid rgba(244, 211, 94, 0.1);
  border-radius: var(--border-radius-btn);
  padding: 10px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-soft),
              color var(--transition-soft),
              background var(--transition-soft),
              border-color var(--transition-soft),
              box-shadow var(--transition-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  outline: none;
}

.project-nav-btn:hover {
  transform: scale(1.05);
  color: #f0f0f0;
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.06);
}

.project-nav-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-color: var(--color-accent);
}

/* ---------- Project Panels (Collections) ---------- */
.project-panel {
  background: rgba(11, 12, 17, 0.65);
  border: 1px solid rgba(244, 211, 94, 0.08);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  scroll-margin-top: calc(var(--nav-height) + 30px);
}

.project-panel + .project-panel {
  margin-top: 40px;
}

.project-heading {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 650;
  color: #F3F4F6;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Project heading badge (APP / WEB) */
.project-heading .project-badge {
  display: inline-block;
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 600;
  vertical-align: super;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #AEB4C3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 6px;
  line-height: 1.4;
}

/* FootballQ heading with gradient accent */
.project-heading--footballq {
  background: linear-gradient(135deg, #F3F4F6 0%, #E9ECF2 40%, #c4b5fd 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.project-heading--footballq .project-badge {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}

/* EnginiX heading with subtle accent */
.project-heading--enginix {
  color: #F3F4F6;
}

.project-heading--enginix .project-badge {
  background: rgba(119, 198, 110, 0.12);
  border-color: rgba(119, 198, 110, 0.2);
  color: #77C66E;
}

.project-content {
  min-height: 80px;
}

/* ---------- EnginiX Privacy Badge ---------- */
.enginix-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(11, 12, 17, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 28px;
  user-select: none;
}

.enginix-privacy-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #77C66E;
  opacity: 0.85;
}

.enginix-privacy-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.enginix-privacy-main {
  font-family: var(--font-stack);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 600;
  color: #77C66E;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.enginix-privacy-sub {
  font-family: var(--font-stack);
  font-size: clamp(0.65rem, 0.8vw, 0.72rem);
  font-weight: 400;
  color: #8A8F98;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* ---------- EnginiX Media Section ---------- */
.enginix-media {
  margin-top: 32px;
}

.enginix-media-heading {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: #AEB4C3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.enginix-media-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3) 0%, transparent 100%);
  max-width: 120px;
}

/* ---------- EnginiX Image Gallery ---------- */
.enginix-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.enginix-gallery-item--featured {
  grid-column: 1 / -1;
}

.enginix-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.12);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease;
  aspect-ratio: 16 / 9;
}

.enginix-gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

.enginix-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.enginix-gallery-item:hover img {
  transform: scale(1.025);
}

/* ---------- EnginiX Description ---------- */
.enginix-description {
  margin-top: 32px;
  max-width: 780px;
}

.enginix-description p {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.8;
  color: #b0b4be;
  margin-bottom: 18px;
}

.enginix-description p:last-child {
  margin-bottom: 0;
}

.enginix-description strong {
  color: #e0e0e0;
  font-weight: 600;
}

/* ---------- EnginiX Download Area ---------- */
.enginix-download {
  margin-top: 32px;
}

.enginix-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 500;
  color: #e0e0e0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(79, 70, 229, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 14px 28px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  cursor: pointer;
}

.enginix-download-btn:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(79, 70, 229, 0.14) 100%);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.1);
}

.enginix-download-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.enginix-download-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #818CF8;
  opacity: 0.85;
}

.enginix-download-label {
  color: #e0e0e0;
}

.enginix-download-info {
  font-family: var(--font-stack);
  font-size: clamp(0.75rem, 0.9vw, 0.82rem);
  color: #8A8F98;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

/* ---------- EnginiX SHA-256 ---------- */
.enginix-sha256 {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.enginix-sha256-label {
  font-family: var(--font-stack);
  font-size: clamp(0.7rem, 0.8vw, 0.75rem);
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.enginix-sha256-value {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.7vw, 0.68rem);
  color: #6B7280;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.5;
  max-width: 100%;
}

/* ---------- FootballQ Media Section ---------- */
.footballq-media {
  margin-top: 32px;
}

.footballq-media-heading {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: #AEB4C3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footballq-media-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3) 0%, transparent 100%);
  max-width: 120px;
}

/* ---------- FootballQ Image Gallery ---------- */
.footballq-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.footballq-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.12);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease;
  aspect-ratio: 16 / 9;
}

.footballq-gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.footballq-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footballq-gallery-item:hover img {
  transform: scale(1.025);
}

/* ---------- FootballQ Description ---------- */
.footballq-description {
  margin-top: 32px;
  max-width: 780px;
}

.footballq-description p {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.8;
  color: #b0b4be;
  margin-bottom: 18px;
}

.footballq-description p:last-child {
  margin-bottom: 0;
}

.footballq-description strong {
  color: #e0e0e0;
  font-weight: 600;
}

/* ---------- FootballQ Link Button ---------- */
.footballq-link-wrapper {
  margin-top: 32px;
}

.footballq-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 500;
  color: #e0e0e0;
  background: rgba(11, 12, 17, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 12px 24px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
}

.footballq-link:hover {
  transform: scale(1.03);
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.08);
}

.footballq-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.footballq-link-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8B5CF6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footballq-link-domain {
  color: #e0e0e0;
}

/* External link indicator */
.footballq-link-ext {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #8B5CF6;
  border-right: 2px solid #8B5CF6;
  transform: rotate(45deg);
  margin-left: 2px;
  opacity: 0.7;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-title::before {
    display: none;
  }

  .project-nav-btn {
    transition: none;
  }

  .project-panel {
    transition: none;
  }

  .cube-generator {
    display: none;
  }

  .cube-container {
    display: none;
  }

  #view-home {
    background: var(--color-bg-dark);
  }

  .hero-title {
    text-shadow: none;
  }

  .view {
    transition: none;
  }

  .nav-btn {
    transition: none;
  }

  .connect-link {
    transition: none;
  }

  .footballq-gallery-item {
    transition: none;
  }

  .footballq-gallery-item:hover {
    transform: none;
  }

  .footballq-gallery-item img {
    transition: none;
  }

  .footballq-gallery-item:hover img {
    transform: none;
  }

  .footballq-link {
    transition: none;
  }

  .footballq-link:hover {
    transform: none;
  }

  .enginix-gallery-item {
    transition: none;
  }

  .enginix-gallery-item:hover {
    transform: none;
  }

  .enginix-gallery-item img {
    transition: none;
  }

  .enginix-gallery-item:hover img {
    transform: none;
  }

  .enginix-download-btn {
    transition: none;
  }

  .enginix-download-btn:hover {
    transform: none;
  }
}

/* ---------- Tablet Responsive ---------- */
@media (max-width: 768px) {
  .site-nav {
    gap: clamp(12px, 3vw, 24px);
  }

  .nav-btn {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .nav-btn--center {
    font-size: 1rem;
    padding: 8px 20px;
  }

  .hero-content {
    transform: translateY(-6vh);
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    white-space: nowrap;
  }

  .cube-generator {
    width: 140px;
    height: 50px;
    bottom: 20vh;
  }

  .generator-surface {
    transform: rotateX(3deg);
  }

  .generator-surface::after {
    bottom: -4px;
    height: 8px;
  }

  .generator-glow {
    width: 40px;
    height: 40px;
  }

  .home-description {
    max-width: 520px;
    padding: 14px 22px;
    bottom: 2.5vh;
  }

  .home-description p {
    font-size: 0.82rem;
  }

  .project-nav {
    gap: 12px;
    margin-bottom: 32px;
  }

  .project-nav-btn {
    font-size: 0.85rem;
    padding: 8px 18px;
  }

  .project-panel {
    padding: 24px;
  }

  .project-panel + .project-panel {
    margin-top: 28px;
  }

  .project-heading {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  .enginix-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .footballq-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footballq-gallery-item:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    justify-self: center;
    width: 100%;
  }

  .view-content {
    padding: calc(var(--nav-height) + 24px) 16px 40px;
  }

  .about-panel {
    padding: 24px;
  }

  .connect-links {
    flex-direction: column;
  }

  .connect-link {
    width: 100%;
  }
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 480px) {

  .site-nav {
    gap: 8px;
    padding: 0 12px;
  }

  .nav-btn {
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 8px;
  }

  .nav-btn--center {
    font-size: 0.9rem;
    padding: 6px 14px;
  }

  .hero-content {
    transform: translateY(-5vh);
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .cube-generator {
    width: 110px;
    height: 40px;
    bottom: 22vh;
  }

  .generator-surface::after {
    bottom: -3px;
    height: 6px;
  }

  .generator-glow {
    width: 30px;
    height: 30px;
  }

  .home-description {
    max-width: 95%;
    padding: 12px 16px;
    bottom: 2vh;
  }

  .home-description p {
    font-size: 0.78rem;
  }

  .project-nav {
    gap: 8px;
    margin-bottom: 24px;
    flex-direction: column;
    align-items: center;
  }

  .project-nav-btn {
    font-size: 0.82rem;
    padding: 8px 16px;
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  .project-panel {
    padding: 18px;
    border-radius: 10px;
  }

  .project-panel + .project-panel {
    margin-top: 20px;
  }

  .project-heading {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }

  .project-heading .project-badge {
    font-size: 0.6rem;
    padding: 1px 8px;
    vertical-align: super;
  }

  .enginix-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .enginix-download-btn {
    width: 100%;
    justify-content: center;
  }

  .footballq-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footballq-gallery-item:nth-child(3) {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

  .footballq-description {
    max-width: none;
  }

  .footballq-link {
    width: 100%;
    justify-content: center;
  }

  .view-content {
    padding: calc(var(--nav-height) + 16px) 12px 30px;
  }

  .about-panel {
    padding: 18px;
    border-radius: 10px;
  }

  .about-text p {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

@media (max-width: 360px) {

  .nav-btn {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .nav-btn--center {
    font-size: 0.82rem;
    padding: 5px 10px;
  }

  .hero-title {
    font-size: 1.2rem;
  }

  .cube-generator {
    width: 90px;
    height: 34px;
  }
}

