:root {
  /* font and background */
  --primary-color: #FFA500;
  --bg-dark: #111;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: #000;
  overflow-x: hidden;
}

body {
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: #fff;
  line-height: 1.6;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../resources/main.webp")
  center center / cover no-repeat;
  z-index: -2;
  transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.7);
}

.logo {
  height: 40px;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary-color);
}

/* ================= NAV DROPDOWN ================= */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Dropdown panel */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  min-width: 180px;
  padding: 10px 0;

  background: rgba(0, 0, 0, 0.589);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  display: flex;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Dropdown links */
.nav-dropdown-menu a {
  padding: 12px 20px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polygon points="5,7 1,3 9,3" fill="white"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.8;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-color);
}

/* Show on hover */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
}


.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: clamp(16px, 3vw, 48px);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);

  position: relative;
  z-index: 1;
  margin-top: -1px;
}


.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.hero p {
  max-width: 800px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #C76E00;
}

.container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.glass-card {
  position: relative;
  width: 450px;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: scale(1.03);
}

.glass-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover::before {
  opacity: 1;
}

.card-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.glass-card:hover .card-label {
  opacity: 1;
}

.about {
  background: var(--bg-dark);
  padding: 80px 20px;
  text-align: center;
}

.about img {
  margin: 0 auto;
  margin-bottom: 30px;
  width: 30%;
  height: 30%;
  object-fit: cover; /* This makes sure images fill the box without stretching */
  display: block;
  transition: transform 0.3s ease;
}

.about h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.2rem);
}


.MediaSection {
  background: #1C1C1C;
  padding: 60px 0; /* Vertical padding only */
  text-align: center;

}

.mediagrid {
  display: grid;
  /* Control the spacing between images here */
  gap: 5px; 
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  /* 3 columns for desktop */
  grid-template-columns: repeat(3, 1fr);
}

.mediagrid div {
  width: 100%;
  aspect-ratio: 16 / 9; /* Keeps all boxes the same shape */
  overflow: hidden;
}

.mediagrid img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This makes sure images fill the box without stretching */
  display: block;
  transition: transform 0.3s ease;
  border-radius: 16px;
}

.mediagrid img:hover {
  transform: scale(1.05); /* Subtle zoom effect */
}


/* ================= FEATURES SECTION ================= */

.features {
  padding: 100px 20px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  color: #fff;
}

.feature-text p {
  font-size: 1rem;
  color: #ccc;
  max-width: 520px;
  line-height: 1.7;
}

.feature-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

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

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

/* ===== Readme Typography ===== */
.readme-section h3.sub-heading {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #fff;
}

.readme-section h4.mini-heading {
  margin-top: 24px;
  margin-bottom: 6px;
    font-size: 1.3rem;
  color: var(--primary-color);
}

/* ===== Link Lists ===== */
.link-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 20px;
}

.link-list li {
  margin-bottom: 8px;
}

.link-list a {
  color: #6fb6ff;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* ===== Code Block ===== */
.code-block {
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);

  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-block code {
  color: #dcdcdc;
}

/* ===== Notes ===== */
.note {
  margin-top: 14px;
  color: #aaa;
  font-size: 0.9rem;
}

.sub-heading {
  color:#C76E00;
  font-size: 1.3rem;
  margin-top: 15px;
  margin-bottom: 15px;
}

.warnig {
  color:#ff000088;
} 

.preinstall-warning {
  margin: 20px 0 30px;
  padding: 14px 18px;
  border-radius: 12px;

  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.35);
  color: #ff6b6b;

  font-size: 0.95rem;
}

.section-text {
  color: #cfcfcf;
  max-width: 760px;
  margin-bottom: 20px;
}

.utility-card {
  margin-bottom: 26px;
  padding: 22px 26px;
  border-radius: 18px;

  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.utility-card h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.utility-card p {
  color: #cfcfcf;
  margin-bottom: 12px;
}

/* ================= FOOTER ================= */
footer {
  background: #000;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-text p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .btn-primary {
    width: 100%;
    max-width: 300px;
  }
}

.headerlogo {
  text-transform: uppercase;
  color: var(--primary-color);
  font-size: 12px;
}

.headerlogo a {
  color: #fff;
  text-decoration: none;
}

.headerlogo a:hover {
  color: var(--primary-color);
}