/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body & General */
body {
  background: #1a1a2e; /* Darker, modern background */
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
header {
    text-align: center;
}
/* Header */
h1 {
  position: relative;
  display: inline-block;
  color: #00ff99; /* Initial text color */
  font-size: 2.5rem;
  text-shadow: 0 0 8px #00ff99, 0 0 15px #00ff99; /* Initial glow */
  cursor: pointer;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

/* Underline */
h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background-color: #00ff99;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

/* Hover: show underline + start alternating colors */
h1:hover {
  animation: colorPulse 2s infinite; /* Alternate text glow color */
}

h1:hover::after {
  transform: scaleX(1);
  animation: underlinePulse 2s infinite;
}

/* Animate text glow */
@keyframes colorPulse {
  0%   { color: #00ff99; text-shadow: 0 0 8px #00ff99, 0 0 15px #00ff99; }
  50%  { color: #0072cf; text-shadow: 0 0 8px #0072cf, 0 0 15px #0072cf; }
  100% { color: #00ff99; text-shadow: 0 0 8px #00ff99, 0 0 15px #00ff99; }
}

/* Animate underline color */
@keyframes underlinePulse {
  0%   { background-color: #00ff99; transform: scaleX(1); }
  50%  { background-color: #0072cf; transform: scaleX(1.1); }
  100% { background-color: #00ff99; transform: scaleX(1); }
}


/* Nav Styling */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

nav li {
  position: relative;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
  color: #00ff99;
  text-shadow: 0 0 5px #00ff99;
}

nav li:not(:last-child)::after {
  content: "|";
  margin-left: 0.5rem;
  color: #fff;
}

/* Main Layout */
main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  gap: 20px;
}

.text-content {
  flex: 1;
}

.text-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ffdd00;
  text-shadow: 0 0 8px #ffdd00; /* Glow for heading */
  text-align: center;
}

.text-content p {
  margin-bottom: 1rem;
}

/* Image Styling */
.image-content img {
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.7); /* Glowing image */
  transition: transform 0.3s ease;
}

.image-content img:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #fff;
  margin-top: 40px;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
  color: #ffdd00;
  text-shadow: 0 0 5px #ffdd00;
}

/* Responsive Layout */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    text-align: center;
  }

  .image-content {
    margin-top: 20px;
  }
}
