:root {
  --bg: #0b0b0d;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #e4e4e4;
  --accent: #a060ff;

  /* Hero-specific colors */
  --hero-title-color: #984fff;
  --hero-text-color:  #846dab;
  --hero-button-bg:   #51288a;
  --hero-button-text: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* Accent & buttons */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.accent { color: var(--accent); }

.accent-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.accent-btn:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Glass panels */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: box-shadow 0.4s ease;
}
.glass:hover {
  box-shadow: 0 0 10px rgba(160, 96, 255, 0.15);
}

/* Splash screen */
.splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: splashFade 3s forwards;
}
.splash-title {
  font-size: 2.8rem;
  letter-spacing: 2px;
  opacity: 0;
  transform: scale(0.8);
  animation: titlePop 1.6s forwards 0.6s;
}
@keyframes titlePop {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes splashFade {
  0%,80% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; visibility: hidden; }
}
.splash--hide { display: none; }

/* Nav bar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(200%);
  animation: slideDown 0.6s ease-out 0.2s both;
}
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.nav-bar nav a { margin-left: 1rem; font-weight: 500; }

/* Hero section */
.hero {
  position: relative;            /* for absolute child */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;     /* push content downward */
  align-items: center;
  height: 45vh;                   /* fixed height so flex-end works */
  margin: 2rem auto;
  padding: 1rem 2rem;             /* smaller padding top/bottom */
  max-width: 900px;
  animation: fadeIn 1.2s ease 0.8s forwards;
  text-align: center;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--hero-title-color);
}
.hero p {
  margin-bottom: 1.5rem;
  opacity: 0.85;
  color: var(--hero-text-color);
}
.hero .accent-btn {
  background: var(--hero-button-bg);
  color: var(--hero-button-text);
}

/* Horizontal 16:9 image holder */
.horizontal-img-holder {
  position: absolute;
  top: -0.5rem;                   /* adjust to fit red area */
  left: 10rem;                    /* adjust as needed */
  width: min(80%, 550px);         /* max width, scales down */
  aspect-ratio: 16 / 9;
  z-index: 1;
}
.horizontal-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Featured Downloads */
.content {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}
.section-title { font-size: 1.75rem; margin-bottom: 1rem; }
.search-bar {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  border-radius: 8px;
  border: none;
}
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
.card h3 { margin-bottom: 0.5rem; color: var(--accent); }
.card p  { opacity: 0.8; font-size: 0.95rem; }

/* Sidebar & right PNG-holder */
.sidebar {
  position: fixed;
  right: 2rem;
  top: 25vh;
  width: 240px;
  padding: 1.25rem;
}
.sidebar h3 { margin-bottom: 0.75rem; font-size: 1.1rem; color: var(--accent); }
.sidebar ul { list-style: none; margin-bottom: 1rem; }

/* make project links white */
.sidebar ul li a {
  color: #ffffff;
}
.sidebar ul li a:hover {
  color: var(--accent);
}

.sidebar li { margin-bottom: 0.5rem; }
.social a img { width: 28px; height: 28px; margin-right: 0.5rem; }

.png-holder {
  position: fixed;
  right: 2rem;
  top: calc(25vh + 290px);
  width: 140px;
  z-index: 900;
}
.png-holder img {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer & reveal */
footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}
.hidden { opacity: 0; transform: translateY(30px); }
.show {
  opacity: 1;
  transform: none;
  transition: all 0.6s ease-out 0.2s;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  /* slightly reduce horizontal-img-holder width and center */
  .horizontal-img-holder {
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
  }
}

@media (max-width: 900px) {
  /* hero becomes auto-height, image flows above content */
  .hero {
    height: auto;
    padding: 2rem 1rem;
  }
  .horizontal-img-holder {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* scale down text & button */
  .hero h2 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .hero .accent-btn {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 600px) {
  /* stack nav links vertically */
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .nav-bar nav {
    margin-top: 0.5rem;
  }
  .nav-bar nav a {
    display: block;
    margin: 0.25rem 0;
  }
}

@media (max-width: 480px) {
  /* turn grid into single column */
  .grid {
    grid-template-columns: 1fr;
  }
}

/* hide sidebar & png-holder on smaller screens */
@media (max-width: 1024px) {
  .sidebar,
  .png-holder {
    display: none;
  }
}
