/* ══════════════════════════════════════════
   PROJECTS.CSS - High Fidelity Nexus Style
   ══════════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

:root {
  --bg: #02030a;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  --glass-border: rgba(255, 255, 255, 0.12);
  --aurora-color1: rgba(168, 85, 247, 0.2);
  --aurora-color2: rgba(79, 70, 229, 0.2);
  --accent-cyan: #8cd2ff;
  
  /* Project Glows */
  --glow-web: rgba(140, 210, 255, 0.15);
  --glow-app: rgba(188, 111, 255, 0.15);
  --glow-design: rgba(255, 143, 163, 0.15);
  --glow-ai: rgba(109, 255, 138, 0.15);
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body[data-page="projects-hub"] {
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 900px) {
  body[data-page="projects-hub"],
  body[data-page="projects-hub"] main {
    height: auto;
    overflow: visible;
  }
}

/* ── Grain ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Vignette ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(2, 3, 10, 0.5) 100%);
}

#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════
   PRELOADER (High Fidelity)
   ══════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
}

.aurora-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.aurora-bg-pulse {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: 
    radial-gradient(circle, var(--aurora-color1) 0%, transparent 80%),
    radial-gradient(circle, var(--aurora-color2) 0%, transparent 80%);
  background-size: 100% 100%;
  animation: aurora-pulse 10s infinite;
}

.aurora-blob {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  mix-blend-mode: screen;
}

.blob-1 { top: -25%; left: -25%; background: #9333ea; animation: blob-move-1 30s infinite alternate ease-in-out; }
.blob-2 { bottom: -25%; right: -25%; background: #c026d3; animation: blob-move-2 40s infinite alternate ease-in-out; }
.blob-3 { top: 33%; left: 33%; width: 33%; height: 33%; background: #4338ca; animation: blob-move-3 50s infinite alternate ease-in-out; opacity: 0.3; }

.preloader-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 32px; }

#preloader-canvas { display: block; width: min(500px, 72vw); height: auto; }

#progress-track {
  width: min(500px, 72vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

#progress-fill {
  position: absolute;
  top: 0; left: 0; height: 100%; width: 0%;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.3);
}

#preloader-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

.tagline-name { color: #fff; }

/* ── Split Reveal ── */
#split-top, #split-bottom {
  position: fixed;
  left: 0; right: 0;
  z-index: 99998;
  background: #02030a;
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
#split-top { top: 0; height: 50%; }
#split-bottom { bottom: 0; height: 50%; }
#split-top.open { transform: translateY(-100%); }
#split-bottom.open { transform: translateY(100%); }

/* ══════════════════════════════════════
   NAVBAR HUD (Standard Style)
   ══════════════════════════════════════ */
#navbar-wrap {
  position: fixed;
  top: 24px; left: 0; right: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: navSlideDown 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}

.top-content-fade {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 160px;
  background: linear-gradient(to bottom, var(--bg) 20%, rgba(2, 3, 10, 0.8) 50%, transparent 100%);
  z-index: 250;
  pointer-events: none;
}

.nav-logo { height: 42px; filter: brightness(0) invert(1); }

#navbar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 60px;
  padding: 12px 14px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav-links { display: flex; gap: 2px; }
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.14); }

.nav-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.2); margin: 0 6px; }

.nav-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 50px;
  background: transparent;
  transition: background 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-cta:hover { background: #fff; color: #0a0b14; transform: translateY(-1px) scale(1.05); }

#mobile-topbar {
  position: fixed;
  top: 18px;
  left: 16px;
  right: 16px;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s forwards;
}

@media (max-width: 768px) {
  #mobile-topbar { display: flex !important; opacity: 1 !important; }
}

/* Stretched Link for Clickable Cards */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.project-card { cursor: pointer; }

/* ── Back Navigation (Global) ── */
.back-nav-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-link span { 
  color: var(--accent-cyan); 
  font-size: 14px; 
  transition: transform 0.4s ease;
}

.back-link:hover { 
  background: rgba(255, 255, 255, 0.1); 
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(140, 210, 255, 0.2);
  transform: translateY(-2px);
}

.back-link:hover span {
  transform: translateX(-4px);
}

.mobile-logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mobile-logo {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.glass-round-btn,
#music-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease;
}

#menu-btn {
  position: relative;
  gap: 5px;
  flex-direction: column;
}

#menu-btn span {
  width: 16px;
  height: 1.7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.is-open span:first-child { transform: translateY(3.6px) rotate(45deg); }
#menu-btn.is-open span:last-child { transform: translateY(-3.6px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 20001;
  background: radial-gradient(circle at top center, rgba(120, 180, 255, 0.10), transparent 40%), rgba(2, 3, 10, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.open { opacity: 1; pointer-events: auto; visibility: visible; }

.mobile-menu-panel { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px 24px 40px; }

.mobile-menu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 10px 48px;
  position: relative;
  opacity: 0;
  transform: scale(0.2);
  background: transparent;
  border: none;
  white-space: nowrap;
  text-align: center;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-link:hover { transform: translateY(-3px) scale(1.04); }

.mobile-menu-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(38px, 10vw, 68px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.1;
  letter-spacing: 0.02em;
  transition: color 0.38s ease, text-shadow 0.38s ease, letter-spacing 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-link:hover .mobile-menu-title {
  color: #fff;
  letter-spacing: 0.07em;
  text-shadow: 0 0 16px rgba(140, 215, 255, 0.9), 0 0 40px rgba(80, 165, 255, 0.55), 0 0 80px rgba(60, 120, 255, 0.28);
}

.mobile-menu-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
  transition: color 0.38s ease, transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-link.active .mobile-menu-title {
  color: #fff;
  text-shadow: 0 0 12px rgba(140, 215, 255, 0.7), 0 0 32px rgba(80, 165, 255, 0.4);
}

#menu-close-mobile {
  position: fixed;
  top: 18px;
  right: 16px;
  z-index: 460;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#menu-close-mobile svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

#menu-close-mobile.visible { opacity: 1; pointer-events: all; }
#menu-close-mobile:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg) scale(1.1); }

body.menu-open { overflow: hidden; }

/* ══════════════════════════════════════
   PROJECT NAKED HUB
   ══════════════════════════════════════ */
main {
  flex: 1;
  padding: 140px 40px 60px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

#hero-heading { text-align: center; margin-bottom: 30px; width: 100%; }

.section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(140, 210, 255, 0.75);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.page-title {
  font-family: 'Great Vibes', cursive !important;
  font-size: clamp(62px, 9vw, 102px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.45s forwards;
}

.bio-para {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(255, 255, 255, 0.52);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.6s forwards;
}

/* ── Project Grid ── */
/* ── High-Fidelity Hub Divide ── */
.hub-divide-container {
  display: flex;
  width: 100%;
  flex: 1; /* Stretch to fill all vertical space in main */
  gap: 30px;
  perspective: 1000px;
  align-items: stretch;
}

.divide-panel {
  flex: 1;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: flex 0.8s cubic-bezier(0.25, 1, 0.33, 1), transform 0.6s cubic-bezier(0.25, 1, 0.33, 1), box-shadow 0.6s ease;
  opacity: 1;
  animation: panelEntry 1.2s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s * var(--panel-index) + 0.5s) both;
}

@keyframes panelEntry {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.divide-panel:hover {
  flex: 1.6;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 60px var(--panel-glow);
  z-index: 10;
}

.panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.33, 1), filter 0.8s ease;
}

.divide-panel:hover .panel-bg {
  transform: scale(1.15);
  filter: brightness(0.6);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 3, 10, 0.4) 40%, rgba(2, 3, 10, 0.9) 100%);
  transition: opacity 0.6s ease;
}

.panel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 50px;
  z-index: 5;
}

.panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  opacity: 0.8;
  transform: translateY(10px);
  transition: transform 0.6s ease;
}

.panel-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.panel-line {
  width: 40px;
  height: 2px;
  background: #fff;
  margin-bottom: 24px;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.33, 1);
}

.divide-panel:hover .panel-line {
  width: 80px;
  background: var(--accent-cyan);
}

.panel-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.33, 1) 0.1s;
}

.divide-panel:hover .panel-desc {
  opacity: 1;
  transform: translateY(0);
}

.panel-cta {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.divide-panel:hover .panel-cta {
  gap: 14px;
  color: var(--accent-cyan);
}

/* Panel Variants */
.type-web { --panel-glow: rgba(140, 210, 255, 0.2); }
.type-design { --panel-glow: rgba(188, 111, 255, 0.2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.projects-grid.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.projects-grid.grid-mixed {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

/* Mixed Grid Spanning: 2 over 3 */
.grid-mixed .project-card:nth-child(1),
.grid-mixed .project-card:nth-child(2) {
  grid-column: span 3;
}

.grid-mixed .project-card:nth-child(n+3) {
  grid-column: span 2;
}

/* Aspect ratio adjustment for the wider Row 1 cards */
.grid-mixed .project-card:nth-child(-n+2) .project-image-wrap {
  aspect-ratio: 21 / 9;
}

/* Standard Responsive for Mixed Grid */
@media (max-width: 1200px) {
  .projects-grid.grid-mixed { grid-template-columns: repeat(2, 1fr); }
  .grid-mixed .project-card:nth-child(n) { grid-column: auto; }
  .grid-mixed .project-card .project-image-wrap { aspect-ratio: 16 / 9 !important; }
}

@media (max-width: 900px) {
  .projects-grid.grid-mixed { grid-template-columns: 1fr; }
}

.projects-grid.grid-2x2 .project-image-wrap {
  aspect-ratio: 21 / 9;
}

.project-card {
  position: relative;
  cursor: pointer; /* Clickable affordance */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 36px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) calc(0.1s * var(--card-index, 0) + 0.7s) forwards;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  z-index: 1;
}

.project-card:hover {
  border-color: var(--card-color, #fff);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 80px var(--card-glow, rgba(255, 255, 255, 0.12));
  transform: translateY(-12px) scale(1.02);
  background: rgba(255, 255, 255, 0.09);
}

.project-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-icon-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
  margin-bottom: 8px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.project-card:hover .project-card-img {
  transform: scale(1.1);
}

.project-content { display: flex; flex-direction: column; gap: 8px; }

.project-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent-cyan); opacity: 0.8;
}

.project-title {
  font-family: 'Squada One', sans-serif;
  font-size: 1.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}

.project-desc {
  font-size: 0.9rem; line-height: 1.65; color: rgba(255,255,255,0.6);
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.tech-tag {
  padding: 4px 12px; border-radius: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
}

.project-links {
  display: flex; gap: 16px; margin-top: auto; padding-top: 10px;
}

.project-link-btn {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  color: #fff; text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-link-btn:hover { color: var(--card-color, #fff); transform: translateX(3px); }

/* Card Variants */
.type-web { --card-color: #8cd2ff; --card-glow: rgba(140, 210, 255, 0.15); --card-icon-bg: rgba(140, 210, 255, 0.1); --card-border: rgba(140, 210, 255, 0.3); }
.type-app { --card-color: #bc6fff; --card-glow: rgba(188, 111, 255, 0.15); --card-icon-bg: rgba(188, 111, 255, 0.1); --card-border: rgba(188, 111, 255, 0.3); }
.type-design { --card-color: #ff8fa3; --card-glow: rgba(255, 143, 163, 0.15); --card-icon-bg: rgba(255, 143, 163, 0.1); --card-border: rgba(255, 143, 163, 0.3); }
.type-ai { --card-color: #6dff8a; --card-glow: rgba(109, 255, 138, 0.15); --card-icon-bg: rgba(109, 255, 138, 0.1); --card-border: rgba(109, 255, 138, 0.3); }

/* ── Cursor ── */
#cursor-dot {
  position: fixed; top: 0; left: 0; width: 5px; height: 5px;
  background: #fff; border-radius: 50%; pointer-events: none; z-index: 100010;
  transform: translate(-50%, -50%);
}
#cursor-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 100005; }

/* ── Click Particles ── */
.click-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%) scale(1);
  animation: particleBurst 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes particleBurst {
  0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* ── Footer ── */
footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px 28px; position: relative; z-index: 200; margin-top: auto;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.8s forwards;
}

.social-links { display: flex; gap: 16px; align-items: center; }
.social-links a {
  color: rgba(255, 255, 255, 0.55); text-decoration: none;
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-links a:hover { color: #fff; transform: translateY(-3px) scale(1.15); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

.copyright {
  font-size: 10px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase; font-family: 'Montserrat', sans-serif;
}

/* ── Keyframes ── */
@keyframes aurora-pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.05); } }
@keyframes blob-move-1 { 0% { transform: translate(-50px, -20px) scale(1); } 50% { transform: translate(50px, 20px) scale(1.2); } 100% { transform: translate(-50px, -20px) scale(1); } }
@keyframes blob-move-2 { 0% { transform: translate(50px, 20px) scale(1); } 50% { transform: translate(-50px, -20px) scale(1.3); } 100% { transform: translate(50px, 20px) scale(1); } }
@keyframes blob-move-3 { 0% { transform: translate(20px, -30px) rotate(0deg); } 50% { transform: translate(-20px, 30px) rotate(180deg); } 100% { transform: translate(20px, -30px) rotate(360deg); } }
@keyframes navSlideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }

/* ── Desktop music button ── */
#music-btn-desktop {
  position: fixed; top: 28px; left: 36px; z-index: 400; width: 46px; height: 46px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); transition: background 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 1.1s forwards; opacity: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
#music-btn-desktop.playing { animation: musicPulse 2s ease infinite, fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 1.1s forwards; }
@keyframes musicPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); } 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

@media (max-width: 1200px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hub-divide-container { height: auto; min-height: auto; flex-direction: column; }
  .divide-panel { height: 400px; flex: none; width: 100%; }
  .divide-panel:hover { flex: none; transform: translateY(-8px); }
  .panel-content { padding: 40px; }
  .project-card { padding: 32px; }
}

@media (max-width: 900px) {
  #navbar-wrap { display: none !important; }
  #mobile-topbar { 
    display: flex !important; 
    opacity: 1 !important; 
  }
  #music-btn-desktop { display: none !important; }
  main { padding: 140px 24px 60px; }
  .projects-grid,
  .projects-grid.grid-2x2 { 
    grid-template-columns: 1fr; 
    gap: 24px; 
  }
  .projects-grid.grid-2x2 .project-image-wrap { aspect-ratio: 16 / 9; }
  .divide-panel { height: 320px; }
  .panel-title { font-size: 24px; }
  .panel-desc { display: none; }
  .project-card { padding: 28px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
}
