* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent scrolling */
  height: 100%; /* Ensure full height */
}

body {
  font-family: 'georgia', serif;
  background: #000000;
  color: #e0e0e0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0);
  color: #ffffff;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #44444400;
  text-decoration: none;
}

header h1 {
  font-size: 32px;
  font-family: Georgia, serif;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

nav {
  display: flex;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 20px;
  position: relative;
}

nav ul li a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

nav ul li a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #ffffff;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
  padding: 10px 0;
  min-width: 180px;
  text-align: center;
  border-radius: 8px;
}

nav ul li:hover > ul {
  display: block;
}

nav ul li ul li {
  margin: 10px 0;
}

nav ul li ul li a {
  color: #f5f5f5;
  font-weight: 500;
  padding: 5px 10px;
  display: block;
}

.hamburger {
  display: none;
  width: 30px;
  height: 3px;
  background-color: white;
  position: relative;
  transition: 0.3s ease;
  cursor: pointer;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: white;
  transition: 0.3s ease;
}

.hamburger::before {
  top: -10px;
}

.hamburger::after {
  bottom: -10px;
}

.hamburger.active::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.active::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.hamburger.active {
  background-color: transparent;
}

.menu-active {
  display: block;
}

.menu-active ul {
  display: block;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: rgba(0, 0, 0, 0);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
}

.menu-active ul li {
  margin: 10px 0;
}

.menu-active ul li a {
  color: #f5f5f5;
  font-size: 18px;
}

.socials-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  gap: 5px;
  z-index: 10;
}

.socials-bar a {
  display: block;
  width: 36px;
  height: 36px;
  margin: 10px 0;
}

.socials-bar img {
  width: 100%;
  height: 100%;
  transition: filter 0.3s ease;
}

.socials-bar a:hover img {
  filter: invert(0.5);
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex-direction: column;
  text-align: center;
  background: url('https://www.transparenttextures.com/patterns/dark-matter.png'), #000000;
  background-blend-mode: overlay;
  background-attachment: fixed;
  padding: 20px;
  position: relative;
  z-index: 1;
  animation: fadeIn 1s ease;
  padding: 20px;
  background: rgba(0, 0, 0, 0); /* Optional: Add a semi-transparent background for readability */
  border-radius: 8px; /* Optional: Add rounded corners */
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 80px;
}

.image-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.image-grid img:hover {
  filter: grayscale(0%);
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  nav.menu-active ul {
    flex-direction: column;
  }

  nav.menu-active ul li {
    position: relative;
  }

  nav.menu-active ul li ul {
    display: none;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-top: 10px;
  }

  nav.menu-active ul li.active > ul {
    display: block;
  }

  nav ul li:hover > ul {
    display: none;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  nav {
    display: flex;
  }
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff00;
    font-family: Georgia, serif;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #cccccc;
    font-family: Georgia, serif;
}

.contact form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact form label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ffffff;
    font-family: Georgia, serif;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #444444;
    border-radius: 5px;
    background: #222222;
    color: #ffffff;
    font-size: 1rem;
}

.contact form input:focus,
.contact form textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 5px #ffffff;
}

.contact form button {
    padding: 10px 20px;
    font-size: 1rem;
    color: #ffffff;
    background: #444444;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-family: Georgia, serif;
    text-transform: uppercase;
}

.contact form button:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 10px #ffffff;
}

#video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* Place behind other content */
}

#background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
}

#background-video {
  transition: opacity 2s ease-in-out; /* Smooth fade effect */
  opacity: 1; /* Fully visible by default */
}

.special-gothic-expanded-one-regular {
  font-family: "Special Gothic Expanded One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

#starCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.content-overlay {
  position: relative;
  z-index: 1;
  color: white; /* Ensure text is visible over the canvas */
}

.about-title {
  text-align: center;
  margin-top: 40px;
  font-size: 2rem;
  color: white;
}

.content {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  padding: 20px;
}

#cube-container {
  width: 100%;
  height: 100vh;
  position: relative;
  background: #000;
  overflow: hidden;
}
