/* Color Variables */
:root {
  --bg: #0b0b0d;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #e4e4e4;
  --accent: #a060ff;
}

/* Global Reset */
* {
  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;
}

/* ===== PARTICLE BACKGROUND ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0; /* behind everything */
}

/* Make particles square, more opaque, and visibly pixel‐like */
.particle {
  position: absolute;
  top: -10px; /* start just above viewport */
  background: rgba(255, 255, 255, 0.3); /* more opaque */
  border-radius: 0; /* square shape */
  border: 1px solid rgba(255, 255, 255, 0.6); /* shsarp or whstever edges */
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Falling animation */
@keyframes fall {
  0% {
    transform: translateY(-10px) translateX(0);
  }
  100% {
    transform: translateY(110vh) translateX(20px); /* drift right a bit */
  }
}

/* ===== Links & 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;
}

/* ===== Generic “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 (Title Only) ===== */
.splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: splashFade 3s forwards;
}

.splash-title {
  font-size: 3rem;
  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;
}

/* ===== Navigation Bar ===== */
.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  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;
  }
}

/* ===== LOGO IMAGE ===== */
.logo-img {
  width: 60px;
  height: 60px;
  margin-right: 1rem;
  z-index: 1010; /* above particles, behind nav items */
}

/* Logo stop fucking colliding */
.nav-bar .logo a {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-left: 5rem; /* adjust if logo-img or left-image changes width */
}

/* ===== NAV LINKS ===== */
.nav-bar nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  z-index: 1010; /* ensure links are above particles */
}
.nav-bar nav a {
  margin-left: 1rem;
  font-weight: 500;
}

/* ===== Dropdown Menu Styling ===== */
.dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}
.dropbtn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.dropbtn:hover {
  background: rgba(160, 96, 255, 0.1);
}
.dropdown-content {
  display: none;
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  min-width: 180px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1010;
}
.dropdown-content a {
  color: var(--text);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
  font-weight: 500;
}
.dropdown-content a:hover {
  background: rgba(160, 96, 255, 0.1);
  color: var(--accent);
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content {
  top: 100%;
  right: 0;
  left: auto;
}

/* ===== LEFT IMAGE HOLDER ===== */
.png-holder-left {
  position: absolute;
  top: 450%; /* kept exactly as you set */
  left: 2rem;
  transform: translateY(-50%);
  width: 300px;
  z-index: 920;
}
.png-holder-left img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== PRIMARY PNG HOLDER (right side) ===== */
.png-holder {
  position: fixed;
  right: 2rem;
  top: calc(25vh + 330px);
  width: 140px;
  z-index: 900;
}
.png-holder img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
  animation: fadeIn 1.2s ease 0.8s forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}
.hero p {
  margin-bottom: 2rem;
  opacity: 0.85;
}

/* ===== Features List ===== */
.content {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}
.section-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Added padding so checkmarks stay inside the glass box */
.features-list {
  list-style: none;
  padding: 1rem 1.5rem;
  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;
  margin-bottom: 2rem;
}
.features-list li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  opacity: 0.9;
}
.features-list li::before {
  content: "✔";
  position: absolute;
  left: 0.5rem;
  color: var(--accent);
  font-weight: bold;
}

/* ===== Carousel Container ===== */
.carousel-container {
  margin: 2rem auto;
  max-width: 1300px;
  overflow: hidden;
  position: relative;
  height: 550px; /* To fit 700px-wide images */
}
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}
.carousel-item {
  position: absolute;
  transition: transform 0.8s ease, opacity 0.8s ease;
  opacity: 0;
  width: 700px; /* Final width: 700px */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.carousel-item.center {
  opacity: 1;
  transform: translateX(0) scale(1.15);
  z-index: 2;
}
.carousel-item.left {
  opacity: 1;
  transform: translateX(-770px) scale(0.8);
  z-index: 1;
}
.carousel-item.right {
  opacity: 1;
  transform: translateX(770px) scale(0.8);
  z-index: 1;
}
.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Supported Formats Table ===== */
.supports-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.supports-table th,
.supports-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}
.supports-table th {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}
.supports-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.supports-table tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===== Installation Instructions ===== */
#installation {
  position: relative; /* needed for the png-holder-install inside */
}
.instructions {
  list-style: decimal;
  padding-left: 1.5rem;
}
.instructions li {
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.instructions code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, monaco, monospace;
}

/* ── Third Invisible Image Holder Inside Installation ── */
.png-holder-install {
  position: absolute;
  top: 15rem;      /* Adjust to move down from section top */
  right: 2rem;     /* Position inside the red box of installation */
  width: 140px;    /* Match other holders’ widths */
  z-index: 1;      /* Above installation background */
}
.png-holder-install img {
  width: 100%;
  height: auto;
  display: block;
  /* No border or background—only the image shows */
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  right: 2rem;
  top: 28vh; /* Moved further down from the original 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;
  padding-left: 0;
}
.sidebar ul li {
  margin-bottom: 0.5rem;
}
.sidebar ul li a {
  color: var(--text);
  transition: color 0.2s;
}
.sidebar ul li a:hover {
  color: var(--accent);
}
.social {
  margin-top: 1rem;
}
.social a {
  margin-right: 0.5rem;
}
.social a img {
  width: 28px;
  height: 28px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* ===== Scroll-Reveal (Hidden/Show) ===== */
.hidden {
  opacity: 0;
  transform: translateY(30px);
}
.show {
  opacity: 1;
  transform: none;
  transition: all 0.6s ease-out 0.2s;
}

/* ===== Floating Animation for Images ===== */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
.png-holder-left img {
  animation: float 4s ease-in-out infinite;
}
.png-holder-install img {
  animation: float 5s ease-in-out infinite;
}
.png-holder img {
  animation: float 3s ease-in-out infinite;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .sidebar,
  .png-holder,
  .png-holder-left,
  .png-holder-install,
  .carousel-container {
    display: none;
  }
}
