* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 16px;
  background: radial-gradient(circle at top, #1e1e2f, #0c0c12);
  color: #eaeaea;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('Images/fog-texture.png') repeat;
  opacity: 0.05;
  animation: fogmove 60s linear infinite;
  z-index: -1;
}
@keyframes fogmove {
  from { background-position: 0 0; }
  to { background-position: 1000px 0; }
}

#container {
  display: grid;
  grid-template-areas:
    "header header header"
    "content1 content2 content3"
    "content4 content4 content3"
    "footer footer footer";
  gap: 15px;
  padding: 20px;
}

.header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #3b2f4a, #5b4b8a);
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 8px #00ff9d);
}

.header h1 {
  font-size: 2.2rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px #000;
}

#hamburger {
  display: none;
  width: 35px;
  height: 35px;
  cursor: pointer;
  filter: invert(1);
  transition: transform 0.3s ease;
}
#hamburger:hover { transform: scale(1.2); }

.nav {
  display: flex;
  gap: 15px;
}

.nav a {
  color: #fff;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

.nav a:hover {
  background: linear-gradient(135deg, #0077b6, #023e8a);
  box-shadow: 0 0 15px rgba(0,255,255,0.6);
  transform: translateY(-2px);
}

section {
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(255,255,255,0.1);
}

.content1 { grid-area: content1; background: rgba(76, 175, 80, 0.2); border: 2px solid #4caf50; }
.content2 { grid-area: content2; background: rgba(244, 67, 54, 0.2); border: 2px solid #f44336; }
.content3 { grid-area: content3; background: rgba(255, 235, 59, 0.2); border: 2px solid #ffeb3b; }
.content4 { grid-area: content4; background: rgba(233, 30, 99, 0.2); border: 2px solid #e91e63; }

h2 {
  margin-bottom: 10px;
  font-family: 'Creepster', cursive;
  font-size: 1.8rem;
  color: #00ff9d;
  text-shadow: 0 0 8px #00ff9d;
}

img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  margin-top: 15px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}


.footer {
  grid-area: footer;
  background: linear-gradient(135deg, #2c2f36, #3b3f4a);
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  color: #ccc;
  font-size: 0.9rem;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.5);
}


@media (max-width: 599px) {
  body {
    background: #000;
    color: #f0f0f0;
  }
  #container {
    grid-template-areas:
      "header"
      "content1"
      "content2"
      "content3"
      "content4"
      "footer";
  }
  .nav {
    display: none;
  }
  #hamburger {
    display: inline-block;
  }
}


@media (min-width: 600px) and (max-width: 1199px) {
  body { font-size: 18px; }
  .header { background: linear-gradient(135deg, #4c3f91, #5f5aa2); }
  .logo { width: 100px; height: auto;}

}


@media (min-width: 1200px) {
  body { font-size: 26px; }
  .logo { width: 120px; height: auto; }
}
body {
  cursor: url('Images/zombie-hand-cursor.png'), auto;
}
a:hover {
  cursor: url('Images/bloody-hand-cursor.png'), pointer;
}

.header h1 {
  font-family: 'Creepster', cursive;
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: #00ff9d;
  text-shadow: 0 0 10px #00ff9d, 0 0 20px #008f5a;
  animation: flicker 3s infinite alternate;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px #00ff9d, 0 0 20px #008f5a, 0 0 30px #00ff9d;
  }
  20%, 24%, 55% {
    opacity: 0.3;
    text-shadow: none;
  }
}
.content1 { animation: pulseGlow 6s ease-in-out infinite; box-shadow: 0 0 15px #4caf50; }
.content2 { animation: pulseGlow 7s ease-in-out infinite; box-shadow: 0 0 15px #f44336; }
.content3 { animation: pulseGlow 8s ease-in-out infinite; box-shadow: 0 0 15px #ffeb3b; }
.content4 { animation: pulseGlow 5s ease-in-out infinite; box-shadow: 0 0 15px #e91e63; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(0,255,157,0.2) 1px, transparent 2px);
  background-size: 100px 100px;
  animation: floatParticles 80s linear infinite;
  z-index: -2;
  opacity: 0.05;
}

@keyframes floatParticles {
  from { background-position: 0 0; }
  to { background-position: 2000px 2000px; }
}
.nav a {
  position: relative;
  overflow: hidden;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: #00ff9d;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}
