:root {
  --primary: #ff5252;
  --secondary: #ffb142;
  --accent: #33d9b2;
  --dark-bg: #1e1e2e;
  --glass: rgba(30, 30, 46, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "Outfit", sans-serif;
  /* background-color: #0c0c14; Removed to show background image */
  color: #fff;
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Minecraftia";
  src: url("../fonts/Minecraftia.ttf") format("truetype");
}

/* Ambient Background Background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url("../photos/background.png") no-repeat center center/cover;
  filter: brightness(0.6); /* Darken specifically for legibility */
}

@keyframes pulse-bg {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-family: "Minecraftia", cursive;
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 0px #000;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  line-height: 1;
  font-family: "Minecraftia", sans-serif;
  letter-spacing: 2px;
}

.title-main {
  font-size: 5rem;
  /* White/Grey Gradient */
  background: linear-gradient(180deg, #ffffff 20%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Thick blocky outline/shadow for 3D effect */
  filter: drop-shadow(4px 4px 0px #000) drop-shadow(-2px -2px 0px #000)
    drop-shadow(2px -2px 0px #000) drop-shadow(-2px 2px 0px #000);

  /* Subtle outer glow for visibility */
  text-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}

.title-sub {
  font-size: 4rem;
  margin-top: 10px;
  /* Lime Green Gradient */
  background: linear-gradient(180deg, #ccff33 0%, #66cc00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Thick blocky outline/shadow */
  filter: drop-shadow(4px 4px 0px #000) drop-shadow(-2px -2px 0px #000)
    drop-shadow(2px -2px 0px #000) drop-shadow(-2px 2px 0px #000);

  /* Green glow */
  text-shadow: 0 0 15px rgba(100, 255, 0, 0.4);
}

.season-badge {
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--secondary);
  padding: 8px 16px;
  border-radius: 4px; /* More blocky for MC feel */
  color: var(--secondary);
  font-family: "Minecraftia", sans-serif;
  font-weight: normal;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(255, 177, 66, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

p.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 20px auto 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 15px 35px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 82, 82, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 82, 82, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Features/Grid (Optional visual flair) */
.features {
  position: absolute;
  bottom: 50px;
  display: flex;
  gap: 40px;
  opacity: 0.7;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

.server-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #4cd137;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4cd137;
  border-radius: 50%;
  box-shadow: 0 0 10px #4cd137;
}

/* Mobile Menu Elements (Hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 200;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: right 0.4s ease;
  z-index: 150;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 800;
  font-family: "Minecraftia", sans-serif;
  letter-spacing: 2px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 4rem !important; /* Larger size for the X */
  font-weight: 300 !important;
  cursor: pointer;
  transition: transform 0.3s;
}

.close-btn:hover {
  transform: rotate(90deg);
  color: var(--primary) !important;
}

/* Hover effects for hamburger */
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* Fix Title sizes for mobile */
  .title-main {
    height: auto;
    font-size: 2.8rem;
    text-align: center;
  }
  .title-sub {
    font-size: 2rem;
    margin-top: 5px;
  }

  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  h1 {
    margin-bottom: 20px;
  }
  .subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 80%;
  }
  .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
