body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  cursor:
    url("cursor.png") 16 16,
    auto;
  overflow-x: hidden;
}
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cube-loader {
  width: 60px;
  height: 60px;
  position: relative;
  transform: rotateZ(45deg);
}
.cube-loader::before,
.cube-loader::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background-color: #e60000;
  animation: cubeSpin 1.2s linear infinite;
  transform-origin: center;
  border-radius: 6px;
}
.cube-loader::after {
  animation-delay: 0.6s;
  background-color: #b30000;
}
@keyframes cubeSpin {
  0% {
    transform: rotateZ(45deg) scale(1);
  }
  50% {
    transform: rotateZ(225deg) scale(0.5);
  }
  100% {
    transform: rotateZ(405deg) scale(1);
  }
}
.navbar {
  position: absolute;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #111;
  flex-wrap: wrap;
}
.navbar a {
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  text-align: center;
  cursor:
    url("cursor.png") 16 16,
    auto;
  transition: 0.3s ease-in-out;
}
.navbar a:hover {
  color: #b30000;
}
.navbar .logo {
  font-size: 24px;
  font-weight: bold;
}
.navbar .nav-links {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  flex-wrap: wrap;
}
.navbar .nav-links a {
  margin: 0 10px;
  font-size: 18px;
}
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(to right, #e60000, #000);
  text-align: center;
}
.hero-co {
  position: absolute;
  z-index: 1;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.5rem;
  margin-bottom: 40px;
}
.hero button {
  background-color: #e60000;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  cursor:
    url("cursor.png") 16 16,
    auto;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.hero button:hover {
  background-color: #b30000;
}
.footer {
  background-color: #111;
  padding: 20px;
  text-align: center;
  font-size: 16px;
  color: #fff;
}
.footer p {
  margin: 0;
}
.x {
  color: red;
}
.contact {
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  background-color: #111;
  width: 300px;
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 20%;
  z-index: 999;
  overflow: auto;
}
.contact a {
  text-decoration: none;
  color: #fff;
}

.x-close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor:
    url("cursor.png") 16 16,
    auto;
}
.x-close:hover {
  color: #b30000;
}
.hamburger {
  display: none;
  cursor:
    url("cursor.png") 16 16,
    auto;
  margin-left: auto;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-links {
    position: absolute;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: linear-gradient(to right, #e60000, #000);
    width: 100%;
    transition: 0.3s;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links a {
    margin: 16px 0;
    padding: 12px;
    font-size: 16px;
  }
  .hex {
    width: 100px;
    height: 86px;
  }
  .hex-cluster {
    top: 40px;
    right: -20px;
    gap: 6px;
  }
  .hex-col {
    gap: 14px;
  }
  .hex-col:nth-child(3),
  .hex-col:nth-child(4) {
    margin-top: 200px;
  }
}
@media (max-width: 480px) {
  .navbar {
    padding: 10px;
  }
  .navbar a {
    padding: 10px 12px;
    font-size: 14px;
  }
  .hex {
    width: 75px;
    height: 64px;
  }
  .hex-cluster {
    top: 60px;
    right: -10px;
    opacity: 0.35;
  }
  .hex-col {
    gap: 10px;
  }
  .hex-col:nth-child(3),
  .hex-col:nth-child(4) {
    margin-top: 140px;
  }
}
/* Public HTML Course*/
.course-preview {
  padding: 60px 20px;
  background: #111;
  text-align: center;
  margin-top: 40px;
}

.course-preview h2 {
  color: #fff;
  margin-bottom: 15px;
}
.course-preview a {
  cursor:
    url("cursor.png") 16 16,
    auto;
}
.start-free-btn {
  display: inline-block;
  background: #e60000;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.3s;
}
.start-free-btn:hover {
  background: #ff3333;
}

.certificate-note {
  color: #ccc;
  margin-top: 15px;
  font-size: 0.95rem;
}
.about {
  padding: 60px 20px;
  background: #111;
  text-align: center;
}
.about p {
  max-width: 800px;
  margin: 20px auto;
  font-size: 1.2rem;
  line-height: 1.6;
}
.features {
  padding: 60px 20px;
  text-align: center;
}
.features-container {
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.square {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.square:hover {
  transform: translateY(-8px);
}
.square i {
  color: #e60000;
}
.courses {
  padding: 60px 20px;
  background: #111;
  text-align: center;
}
.courses p {
  max-width: 800px;
  margin: 20px auto;
  font-size: 1.1rem;
  line-height: 1.6;
}
.courses ul {
  max-width: 700px;
  margin: 30px auto;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
}
.how-it-works {
  padding: 60px 20px;
  text-align: center;
}
.container-block {
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.step {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.step:hover {
  transform: translateY(-8px);
}
.numbers {
  font-size: 2rem;
  color: #e60000;
}
.limited-note {
  margin-top: 0.5rem;
  color: #555;
  font-style: italic;
}
.limited-note strong {
  color: #e63946; /* draws attention to “Heads-up” */
}
/* Collage for private lessons & view of certificate */
.private-lessons {
  background: #111;
  padding: 60px 20px;
  text-align: center;
}
.private-lessons h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.private-lessons p {
  max-width: 600px;
  margin: 0 auto 40px;
}
/* Single responsive image */
.private-lessons img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(58, 1, 1, 0.15);
  display: block;
  margin: 0 auto;
}
.certificate-section {
  padding: 60px 20px;
  text-align: center;
}
.certificate-section img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(121, 108, 95, 0.15);
}
.certificate-section p {
  margin-top: 15px;
  font-size: 3.6rem;
  font-size: 900;
  font-family: Tahoma;
  text-shadow: 5px 5px 5px #e60000;
}
.view-certificate-btn {
  background: #e60000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  cursor:
    url("cursor.png") 16 16,
    auto;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.view-certificate-btn:hover {
  background: red;
}

/* Modal styling */
.certificate-modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.certificate-modal-content {
  position: relative;
  margin: 5% auto;
  max-width: 90%;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}
.certificate-modal-content img {
  width: 400px;
  height: 500px;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #333;
  cursor:
    url("cursor.png") 16 16,
    auto;
}
/* hexagons */
.hex-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  gap: 60px;
}
.hero h1,
.hero p,
.hero button {
  position: relative;
  z-index: 5;
}

/* HEXAGON BASE */
.hex {
  position: relative;
  width: 140px;
  height: 120px;
  background: linear-gradient(145deg, #ff1a1a, #8b0000);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);

  transform-style: preserve-3d;
  box-shadow:
    0 20px 35px rgba(0, 0, 0, 0.6),
    inset 0 0 15px rgba(255, 255, 255, 0.15);

  animation: float 6s ease-in-out infinite;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* DEPTH (3D SIDE) */
.hex::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #700000, #300000);
  transform: translateZ(-25px);
  filter: brightness(0.7);
  clip-path: inherit;
}

/* LIGHT GLOW */
.hex::after {
  content: "";
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* FLOAT VARIATION */
.hex:nth-child(2) {
  animation-delay: 1.2s;
}
.hex:nth-child(3) {
  animation-delay: 2.4s;
}

/* HOVER EFFECT */
.hex:hover {
  transform: scale(1.25) rotateX(18deg) rotateY(-18deg);
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.8);
}

.hex:hover::after {
  opacity: 1;
}

/* FLOAT ANIMATION */
@keyframes float {
  0% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-18px) rotateX(8deg);
  }
  100% {
    transform: translateY(0) rotateX(0deg);
  }
}

/* CLICK PULSE */
.hex.pulse {
  animation: pulse 0.6s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}
.hex-cluster {
  position: absolute;
  top: 18px;
  left: -30px;
  display: flex;
  gap: 8px;
  transform-style: preserve-3d;
}
.hex-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hex-col:nth-child(2) {
  margin-top: 45px;
}
.hex-col:nth-child(3) {
  margin-top: 280px;
}
.hex-col:nth-child(4) {
  margin-top: 350px;
}
/*test*/

/* RIGHT = mirrored reflection */
.hex-cluster.right {
  right: -30px;
  left: auto;
  transform: scaleX(-1);
}

/* FIX hover rotation direction on mirrored side */
.hex-cluster.right .hex:hover {
  transform: scale(1.25) rotateX(18deg) rotateY(18deg);
}
