/* Import a modern font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* =============== CSS Variables =============== */
:root{
  --bg-1:#0f0f0f;
  --bg-2:#181818;
  --card:#141414;
  --text:#e0e0e0;
  --muted:#bbb;
  --accent:#00d9b3;
  --accent-2:#00ffcc;
  --ring:#00b3ff;
}

/* =============== Base =============== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated background glow blobs */
body::before{
  content:"";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 140%;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 20%, rgba(0,255,204,0.12) 0%, transparent 60%),
    radial-gradient(35% 30% at 90% 80%, rgba(0,179,255,0.10) 0%, transparent 55%),
    radial-gradient(25% 25% at 70% 15%, rgba(0,255,170,0.08) 0%, transparent 60%);
  filter: blur(20px);
  animation: drift 28s ease-in-out infinite alternate;
  z-index: -2;
}

/* Faint moving particle grid */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(currentColor 1px, transparent 1px);
  color: rgba(255,255,255,0.06);
  background-size: 26px 26px;
  background-position: 0 0;
  animation: pan 35s linear infinite;
  z-index: -1;
}

@keyframes drift{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.02); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.04); }
}

@keyframes pan{
  0%   { background-position: 0 0; }
  100% { background-position: 260px 260px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  body::before, body::after { animation: none !important; }
}

/* =============== Header =============== */
header {
  background: linear-gradient(135deg, #111, #1c1c1c);
  padding: 25px 40px;
  text-align: center;
  border-bottom: 2px solid #222;
  box-shadow: 0 4px 25px rgba(0,0,0,0.6);
}

header h1 {
  color: var(--accent);
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0,255,204,0.4);
}

/* =============== Main Sections =============== */
main {
  padding: 60px 40px;
}

h2 {
  color: var(--accent);
  margin-bottom: 45px;
  text-align: center;
  font-size: 2.2rem;
  text-shadow: 0 0 6px rgba(0,255,204,0.2);
}

/* =============== Dashboard Cards =============== */
.dashboard-container {
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}

.dashboard-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--card);
  width: 300px;
  height: 190px;
  border-radius: 20px;
  padding: 25px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  overflow: hidden;
  outline: none;
}

/* Animated glow border */
.dashboard-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-2), var(--ring), var(--accent), #00ffaa);
  background-size: 300% 300%;
  animation: glow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

@keyframes glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.dashboard-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0,255,204,0.4);
}

.dashboard-card h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.dashboard-card p {
  font-size: 1rem;
  color: var(--muted);
}

/* Keyboard focus styles (accessible) */
.dashboard-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(0,179,255,0.35), 0 10px 30px rgba(0,255,204,0.25);
}

/* =============== Discord Section =============== */
#discord{
  margin-top: 80px; /* section spacing from dashboard */
  text-align: center;
}

/* Bring heading closer to the button */
#discord h2{
  margin-bottom: 10px;           /* was ~45px globally */
  line-height: 1.2;
}

.discord-container {
  display: flex;
  justify-content: center;
  margin-top: 6px;               /* tighter gap to keep button close to heading */
}

.discord-button {
  display: inline-block;
  padding: 16px 38px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f0f0f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0,255,204,0.4);
  transition: all 0.3s ease;
}

.discord-button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-6px) scale(1.07);
  box-shadow: 0 12px 35px rgba(0,255,204,0.6);
}

.discord-button:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,179,255,0.35), 0 12px 35px rgba(0,255,204,0.6);
}

/* =============== Photography Gallery =============== */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.gallery-container img {
  width: 320px;
  border-radius: 18px;
  border: 2px solid var(--accent);
  transition: all 0.35s ease;
}

.gallery-container img:hover {
  transform: scale(1.08) rotate(1deg);
  border-color: var(--accent-2);
  box-shadow: 0 12px 28px rgba(0,255,204,0.3);
}

/* Lightbox overlay */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,255,204,0.4);
}

#lightbox.active {
  display: flex;
}

/* Close button */
#lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.2rem;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

#lightbox .close:hover {
  transform: scale(1.2);
  color: var(--accent);
}

/* =============== Coming Soon Page =============== */
.coming-soon {
  text-align: center;
  padding: 120px 20px;
  background: #1c1c1c;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,255,204,0.25);
}

.coming-soon h2 {
  font-size: 2.3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.coming-soon p {
  font-size: 1.2rem;
  color: #ccc;
}

/* =============== Footer =============== */
footer {
  text-align: center;
  padding: 30px;
  border-top: 2px solid #222;
  margin-top: 70px;
  color: #aaa;
  font-size: 0.95rem;
  position: relative;
}

/* Footer glow line */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =============== Responsive Tweaks =============== */
@media (max-width: 720px){
  main{ padding: 40px 20px; }
  .dashboard-card{ width: 92vw; max-width: 420px; height: 170px; }
  header h1{ font-size: 2rem; letter-spacing: 1px; }
  h2{ font-size: 1.9rem; margin-bottom: 32px; }
  #discord{ margin-top: 60px; }
}

.main-wrapper {
  position: relative;
}

#snow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allows clicking through */
  z-index: 0;
}

main {
  position: relative;
  z-index: 1; /* ensures content is above the snow */
}

/* =============== Modeling Page Styles =============== */
.car-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers heading and button */
  max-width: 400px;
  margin: 0 auto 60px auto;
  background: var(--card);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,255,204,0.2);
  overflow: hidden; /* keeps images inside */
}

.car-name {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.car-images {
  display: flex;
  overflow-x: auto; /* horizontal scroll */
  gap: 10px;
  width: 100%;
  padding-bottom: 10px;
  margin-bottom: 20px;
  scroll-behavior: smooth;
}

.car-images img {
  width: 300px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid var(--accent);
  transition: transform 0.3s ease;
}

.car-images img:hover {
  transform: scale(1.05);
  border-color: var(--accent-2);
}

.car-features {
  list-style-type: none;
  text-align: left;
  padding-left: 0;
  margin-bottom: 20px;
  color: var(--muted);
}

.car-features li::before {
  content: "• ";
  color: var(--accent);
}

.download-button {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  color: #0f0f0f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center; /* centers text inside button */
}

.download-button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,255,204,0.5);
}

