/* ============================================================
   3Z3D – Main Stylesheet
   ============================================================ */

:root {
  --bg:              #07080e;
  --bg-card:         #090c14;
  --bg-secondary:    #0b0f1a;

  --blue:            #3b82f6;
  --blue-dim:        rgba(59,130,246,0.12);
  --blue-border:     rgba(59,130,246,0.22);
  --blue-border-hov: rgba(59,130,246,0.6);
  --blue-glow:       rgba(59,130,246,0.35);

  --gold:            #b8840a;
  --gold-light:      #f0c030;
  --gold-dim:        rgba(184,132,10,0.1);
  --gold-border:     rgba(184,132,10,0.45);

  --green:           #4ade80;
  --green-dim:       rgba(74,222,128,0.12);
  --green-border:    rgba(74,222,128,0.3);
  --green-glow:      rgba(74,222,128,0.4);

  --text:            #e2e8f0;
  --text-muted:      #8b94a6;

  --font-display:    'Orbitron', monospace;
  --font-body:       'Exo 2', sans-serif;

  --nav-h:           76px;
  --ease:            0.25s ease;
  --r:               8px;
  --r-lg:            14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }


/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  inset-block-start: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(7,8,14,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--blue-border);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.nav-logo { flex-shrink: 0; }

.logo-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #0c1830;
  border: 2px solid rgba(59,130,246,0.5);
  overflow: hidden;
  box-shadow: 0 0 16px rgba(59,130,246,0.3), inset 0 0 12px rgba(59,130,246,0.08);
  transition: var(--ease);
  flex-shrink: 0;
}

.logo-badge img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.logo-badge:hover {
  border-color: rgba(59,130,246,0.8);
  box-shadow: 0 0 28px rgba(59,130,246,0.5), inset 0 0 16px rgba(59,130,246,0.15);
}

.logo-badge:hover img { transform: scale(1.08); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: 12px;
}

.nav-links a {
  display: block;
  padding: 6px 11px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--r);
  position: relative;
  transition: color var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 1px; left: 11px; right: 11px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: center;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Nav right */
.nav-right {
  margin-left: auto;
  display: flex; align-items: center;
  gap: 14px;
}

/* Social icons */
.social-icons { display: flex; align-items: center; gap: 6px; }

.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--ease), background var(--ease);
}

.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

.social-icon:hover {
  color: var(--text);
  background: var(--blue-dim);
}

/* Buy Me a Coffee button */
.bmac-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid var(--gold-border);
  border-radius: 24px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease),
              box-shadow var(--ease), color var(--ease);
  box-shadow: 0 0 10px rgba(184,132,10,0.18);
}

.bmac-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold-light);
  box-shadow: 0 0 22px rgba(184,132,10,0.38);
  color: #fff;
}

/* BMC embed button – fit navbar */
.nav-right .bmc-btn,
.nav-mobile-extra .bmc-btn {
  zoom: 0.58;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  margin-left: auto; flex-shrink: 0;
}

.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only nav items (hidden on desktop) */
.nav-mobile-extra { display: none; }


/* ============================================================
   HERO
   ============================================================ */

.hero {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 22px) 24px 30px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(59,130,246,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(30,64,175,0.1) 0%, transparent 70%),
    linear-gradient(180deg, #060810 0%, #07090e 100%);
}

.hero-content { position: relative; max-width: 960px; width: 100%; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.8vw, 48px);
  font-weight: 900; letter-spacing: 2px; line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  text-shadow:
    0 0 30px rgba(59,130,246,0.7),
    0 0 70px rgba(59,130,246,0.3),
    0 2px 6px rgba(0,0,0,0.9);
  margin-bottom: 8px;
}

.hero-sub-blue {
  font-family: var(--font-display);
  font-size: clamp(12px, 2vw, 20px);
  font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  text-shadow: 0 0 20px rgba(59,130,246,0.5);
  margin-bottom: 4px;
}

.hero-sub-white {
  font-family: var(--font-body);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Models image area */
.hero-model-image {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 20px;
  height: auto;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #060c1a 0%, #0a1226 60%, #060c18 100%);
  border: 1px solid var(--blue-border);
  box-shadow:
    0 0 40px rgba(59,130,246,0.1),
    0 0 1px rgba(59,130,246,0.35),
    inset 0 0 60px rgba(59,130,246,0.04);
}

.hero-model-image img {
  width: 100%; height: auto;
  display: block;
}

.hero-model-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(59,130,246,0.25);
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Gold ornate subscribe button */
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 52px;
  background: linear-gradient(160deg, #1c1100 0%, #110a00 100%);
  border: 2px solid #c9920a;
  border-radius: 7px;
  color: #f0c030;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease),
              box-shadow var(--ease), color var(--ease);
  box-shadow: 0 0 28px rgba(201,146,10,0.22), inset 0 0 30px rgba(201,146,10,0.04);
}

.btn-subscribe::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201,146,10,0.3);
  border-radius: 4px;
  pointer-events: none;
  transition: border-color var(--ease);
}

.btn-subscribe:hover {
  background: linear-gradient(160deg, #261600 0%, #180e00 100%);
  border-color: var(--gold-light);
  box-shadow: 0 0 48px rgba(201,146,10,0.38), inset 0 0 30px rgba(201,146,10,0.07);
  color: #fff;
}

.btn-subscribe:hover::before { border-color: rgba(201,146,10,0.55); }


/* ============================================================
   COLLECTIONS (home page)
   ============================================================ */

.collections {
  padding: 20px 24px 60px;
  max-width: 1320px;
  margin: 0 auto;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.collection-card {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--blue-border-hov);
  box-shadow: 0 10px 48px rgba(59,130,246,0.14), 0 0 1px rgba(59,130,246,0.5);
}

.card-image {
  height: 380px;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #060c1a 0%, #0a1226 60%, #070c18 100%);
}

.card-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  z-index: 1;
  transition: transform 0.45s ease;
}

.collection-card:hover .card-image img { transform: scale(1.04); }

/* placeholder shown only when image fails to load */
.card-image-placeholder {
  position: absolute; inset: 0;
  z-index: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px;
  pointer-events: none;
}

.card-image-placeholder .ph-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px dashed rgba(59,130,246,0.3);
  display: flex; align-items: center; justify-content: center;
}

.card-image-placeholder .ph-ring svg {
  width: 32px; height: 32px;
  fill: none; stroke: rgba(59,130,246,0.35); stroke-width: 1.5;
}

.card-image-placeholder span {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(59,130,246,0.3);
}

.card-body {
  padding: 20px 28px 24px;
  text-align: center;
}

/* Explore button */
.explore-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 26px;
  background: transparent;
  border: 1.5px solid var(--gold-border);
  border-radius: 24px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  transition: background var(--ease), border-color var(--ease),
              box-shadow var(--ease), color var(--ease);
  box-shadow: 0 0 10px rgba(184,132,10,0.14);
  cursor: pointer;
}

.explore-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold-light);
  box-shadow: 0 0 22px rgba(184,132,10,0.32);
  color: #fff;
}

.explore-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top: 1px solid var(--blue-border);
  padding: 36px 24px;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

footer p:last-child { margin-bottom: 0; }

footer .license-label {
  color: var(--blue);
  font-weight: 700; letter-spacing: 0.5px;
}


/* ============================================================
   COLLECTION PAGE – Banner
   ============================================================ */

.collection-banner {
  padding-top: var(--nav-h);
  min-height: 42vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
}

.collection-banner.dino {
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(30,64,175,0.25) 0%, transparent 70%),
    linear-gradient(180deg, #07080e 0%, #080d16 100%);
}

.collection-banner.bug {
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(22,101,52,0.28) 0%, transparent 70%),
    linear-gradient(180deg, #07080e 0%, #080f09 100%);
}

.banner-content {
  position: relative; z-index: 1;
  padding: 64px 24px;
  max-width: 820px;
}

.banner-content h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 64px);
  font-weight: 900; letter-spacing: 3px; line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.dino .banner-content h1 {
  color: var(--text);
  text-shadow: 0 0 40px var(--blue-glow), 0 0 80px rgba(59,130,246,0.18);
}

.bug .banner-content h1 {
  color: #d1fae5;
  text-shadow: 0 0 40px var(--green-glow), 0 0 80px rgba(74,222,128,0.18);
}

.banner-content p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.btn-collection {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
  background: transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease),
              box-shadow var(--ease), color var(--ease);
}

.btn-collection.blue {
  border: 1.5px solid rgba(59,130,246,0.45);
  color: var(--blue);
  box-shadow: 0 0 12px rgba(59,130,246,0.15);
}
.btn-collection.blue:hover {
  background: var(--blue-dim);
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(59,130,246,0.3);
  color: #fff;
}

.btn-collection.green {
  border: 1.5px solid var(--green-border);
  color: var(--green);
  box-shadow: 0 0 12px rgba(74,222,128,0.15);
}
.btn-collection.green:hover {
  background: var(--green-dim);
  border-color: var(--green);
  box-shadow: 0 0 24px rgba(74,222,128,0.3);
  color: #fff;
}


/* ============================================================
   MODEL GRID (collection pages)
   ============================================================ */

.model-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.model-section h2 {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-border-hov);
  box-shadow: 0 8px 32px rgba(59,130,246,0.12);
}

.model-image {
  height: 195px;
  background: linear-gradient(150deg, #060c1a 0%, #0a1326 100%);
  position: relative; overflow: hidden;
}

.model-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}

.model-card:hover .model-image img { transform: scale(1.05); }

.model-image-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  pointer-events: none;
}

.model-image-ph span {
  font-family: var(--font-display);
  font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(59,130,246,0.25);
}

.model-info { padding: 16px; }

.model-info h3 {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.model-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn-mw {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--r);
  color: var(--blue);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease);
}

.btn-mw:hover {
  background: rgba(59,130,246,0.2);
  border-color: var(--blue);
}

.btn-instr {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r);
  color: var(--gold-light);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease);
}

.btn-instr:hover {
  background: rgba(184,132,10,0.18);
  border-color: var(--gold-light);
}

.btn-mw svg, .btn-instr svg {
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 2;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1060px) {
  .nav-links a { padding: 6px 8px; font-size: 11.5px; }
  .social-icons { display: none; }
}

@media (max-width: 768px) {
  .hero-model-image { height: auto; }
  .btn-subscribe { padding: 13px 28px; letter-spacing: 0.5px; }

  /* Show hamburger */
  .hamburger { display: flex; }

  /* Nav right hidden on mobile (content moves into menu) */
  .nav-right { display: none; }

  /* Nav links become slide-down menu */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(7,8,14,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--blue-border);
    padding: 12px 0 16px;
    gap: 2px;
    margin-left: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 0;
    display: block;
  }

  .nav-links a::after { display: none; }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--blue-dim);
    color: var(--blue);
  }

  /* Mobile extras (social + BMAC inside the dropdown) */
  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 4px;
    border-top: 1px solid var(--blue-border);
    margin-top: 8px;
  }

  .nav-mobile-extra .social-icons { display: flex; }

  /* Collections */
  .collections-grid { grid-template-columns: 1fr; }
  .card-image { height: 260px; }

  /* Model grid */
  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .model-image { height: 160px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 20px; white-space: normal; }
  .collections { padding: 28px 16px 60px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .model-info { padding: 12px; }
  .model-info h3 { font-size: 10px; }
  .btn-mw, .btn-instr { font-size: 9.5px; padding: 5px 9px; }
  .card-image { height: 240px; }
}
