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

/* Body */
body {
  font-family: 'Arial', sans-serif;
  background-color: #1c1c1c; /* Dark background */
  color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure the body takes full height */
}

/* Particle Canvas - Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allow mouse events to pass through */
  z-index: -1; /* Keep canvas behind the content */
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  z-index: 10;
  padding: 15px;
  display: flex;
  justify-content: center; /* Center navbar links */
  align-items: center;
}

.navbar .nav-links {
  display: flex;
  gap: 20px;
}

.navbar .nav-links li {
  list-style: none;
}

.navbar .nav-links a {
  color: #FFD700; /* Yellow text */
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.navbar .nav-links a:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 24px;
  color: #FFD700;
  cursor: pointer;
}

.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 20;
  transition: right 0.3s ease-in-out;
}

.offcanvas-menu.active {
  right: 0;
}

.offcanvas-menu ul {
  list-style: none;
  padding: 30px;
  color: #FFD700; /* Yellow text color for the menu items */
}

.offcanvas-menu ul li {
  margin: 20px 0;
}

.offcanvas-menu ul li a {
  text-decoration: none;
  font-size: 18px;
  color: #FFD700; /* Yellow text for links in the offcanvas menu */
  transition: color 0.3s ease;
}

.offcanvas-menu ul li a:hover {
  color: #fff; /* White text on hover */
}

.offcanvas-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: #FFD700; /* Yellow close button */
  cursor: pointer;
}

@font-face { font-family: 'CustomFont'; src: url('DJB.ttf'); }
        
/* Hero Section */
.hero {
  text-align: center;
  padding: 90px 20px 30px; /* Reduced bottom padding to decrease space below the text */
  position: relative;
  z-index: 5; /* Keep it above the canvas */
}

.hero h1 {
  font-family: 'CustomFont', sans-serif;
  font-size: clamp(1.2rem, 4vw, 2.5rem); /* Slightly larger font size */
  color: #FFD700;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1rem;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}

/* Hexagon Grid */
.hex-grid {
  display: grid;
  grid-template-columns: repeat(4, 150px); /* Adjust to fit the number of hexagons you need */
  gap: 30px;
  justify-content: center;
  padding: 40px 0;
  margin-top: 50px;
  z-index: 10;
}

.hexagon {
  position: relative;
  display: block;
  width: 150px;
  height: 150px;
  background-color: #2c2c2c; /* Lighter gray (charcoal) background */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); /* Creates the hexagon shape */
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
  border: 2px solid #FFD700; /* Yellow border */
  overflow: hidden; /* Ensures the image doesn't overflow the hexagon */
  display: flex;
  justify-content: center;
  align-items: center; /* Centers the text and image */
}

/* Text inside the hexagon */
.hexagon p {
  position: absolute;
  color: #fff; /* White text */
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 5; /* Ensures the text appears above the image */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); /* Adds a shadow to make the text stand out */
  margin: 0; /* Removes any margin */
  padding: 0; /* Removes any padding */
  text-align: center;
}

/* Image inside the hexagon */
.hexagon img {
  width: 100%;     /* Makes the image fill the hexagon */
  height: 100%;    /* Ensures it takes the full height */
  object-fit: cover; /* Ensures the image covers the hexagon area without distortion */
  position: absolute; /* Positions the image within the hexagon */
  top: 0;
  left: 0;
  clip-path: inherit; /* Ensures the image stays within the hexagon's shape */
  transition: transform 0.3s ease; /* Smooth hover effect on image */
}

/* Hexagon Hover Effect */
.hexagon:hover {
  background-color: #FFD700; /* Yellow on hover */
  transform: scale(1.1); /* Slightly enlarge on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

.hexagon img:hover {
  transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Footer Styles */
.site-footer {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.9); /* Black with slight transparency */
  padding: 30px 0; /* Reduced padding to move footer closer */
  color: #fff;
  font-size: 14px;
  margin-top: auto; /* Push footer to the bottom of the page */
}

/* About Page Styles */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  flex-grow: 1; /* Allow section to grow and push footer down */
}

.content-box {
  background-color: rgba(0, 0, 0, 0.9); /* Same color as footer */
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
  text-align: center;
  width: 100%; /* Ensures the content box takes full available width */
  box-sizing: border-box; /* Ensures padding is included in the width calculation */
}

.content-box h1 {
  color: #FFD700; /* Yellow text */
  margin-bottom: 20px;
}

.content-box p {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px; /* Add some margin at the bottom */
}

/* Image inside the content box */
.content-box img {
  max-width: 100%;  /* Ensures the image doesn’t overflow the container */
  height: auto;     /* Maintains aspect ratio */
  border-radius: 8px; /* Optional: adds rounded corners to images */
  margin-top: 20px;   /* Optional: space above the image */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .offcanvas-menu ul li a {
    font-size: 16px;
  }

  .hex-grid {
    grid-template-columns: repeat(2, 150px); /* 2 per row on smaller screens */
  }

  .content-box {
    padding: 30px;  /* Less padding on smaller screens */
  }

  .content-box h1 {
    font-size: 1.8rem;  /* Slightly smaller title on medium screens */
  }