/* Blinking Cursor */
@keyframes blink-cursor {
  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.cursor-effect {
  animation: blink-cursor 1s infinite;
  right: -4px;
  /* Adjust if needed to align with the text */
}

body {
  font-family: "Cutive Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Konami Code Active Styles */
body.konami-active {
  background-color: #000000 !important; /* Force black background */
  color: #e5e7eb; /* Default light gray text */
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

/* Headings */
body.konami-active h1,
body.konami-active h2,
body.konami-active h3 {
  color: #34d399; /* Emerald/Neon Green */
  text-shadow: 0 0 5px #34d399, 0 0 8px #34d399;
  transition: color 0.5s ease-in-out, text-shadow 0.5s ease-in-out;
}

/* Hero Specifics (override defaults if needed) */
body.konami-active #hero h1 {
  color: #f472b6; /* Pink/Fuchsia for main title */
  text-shadow: 0 0 5px #f472b6, 0 0 8px #f472b6;
}
body.konami-active #hero p {
  color: #9ca3af; /* Muted gray for hero subtitle */
  text-shadow: none; /* Remove glow from subtitle */
}
body.konami-active #tagline-text {
  color: #67e8f9; /* Cyan for the activated tagline */
  text-shadow: 0 0 5px #67e8f9, 0 0 8px #67e8f9;
}

/* Links */
body.konami-active a {
  color: #67e8f9; /* Cyan */
  transition: color 0.2s ease-in-out;
}
body.konami-active a:hover {
  color: #a5f3fc; /* Lighter Cyan */
  text-shadow: 0 0 3px #67e8f9;
}
/* Button-style links (like Amazon) */
body.konami-active a.bg-teal-600 {
  background-color: #34d399 !important; /* Neon Green BG */
  color: #000000 !important; /* Black text */
  text-shadow: none;
  border: 1px solid #6ee7b7;
}
body.konami-active a.bg-teal-600:hover {
  background-color: #6ee7b7 !important; /* Lighter Green BG */
  color: #000000 !important;
}

/* Section Backgrounds (Alternating Dark) */
body.konami-active section:nth-of-type(odd) {
  /* Sections 1 (Hero), 3 (Writing), 5 (Career), 7 (Tech Blog), 9 (Education) */
  background-color: #111827 !important; /* Dark Gray/Blue */
  transition: background-color 0.5s ease-in-out;
}
body.konami-active section:nth-of-type(even) {
  /* Sections 2 (Work), 4 (Projects), 6 (Startups), 8 (Footer Contact area) */
  background-color: #000000 !important; /* Black */
  transition: background-color 0.5s ease-in-out;
}
/* Override text color where section BGs changed */
body.konami-active section {
  color: #d1d5db; /* Adjust default text color for sections */
}
body.konami-active section h2,
body.konami-active section h3 {
  color: #34d399; /* Ensure headings stay neon green */
}
body.konami-active section p,
body.konami-active section li {
  color: #d1d5db; /* Ensure paragraph/list text is readable */
}
body.konami-active section .text-gray-500 {
  /* Ensure muted text is visible */
  color: #9ca3af !important; /* Increased contrast */
}
body.konami-active section .text-gray-600 {
  /* Ensure other muted text is visible */
  color: #9ca3af !important;
}
body.konami-active section .text-gray-700 {
  /* Ensure previously darker grays are visible */
  color: #d1d5db !important;
}

/* Cards */
body.konami-active .shadow-md,
body.konami-active .shadow-xl {
  background-color: #1f2937 !important; /* Darker Gray */
  border: 1px solid #34d399; /* Neon Green Border */
  transition: background-color 0.5s ease-in-out, border 0.5s ease-in-out;
}
body.konami-active .shadow-md p,
body.konami-active .shadow-xl p,
body.konami-active .shadow-md li,
body.konami-active .shadow-xl li {
  color: #d1d5db; /* Readable text inside cards */
}
body.konami-active .shadow-md h3, /* Keep card headings neon green */
body.konami-active .shadow-xl h3 {
  color: #34d399;
}
body.konami-active .shadow-md a, /* Ensure links in cards are neon cyan */
body.konami-active .shadow-xl a {
  color: #67e8f9;
}
body.konami-active .shadow-md a:hover,
body.konami-active .shadow-xl a:hover {
  color: #a5f3fc;
  text-shadow: 0 0 3px #67e8f9;
}

/* Navbar specific adjustments */
body.konami-active #navbar {
  background-color: rgba(
    0,
    0,
    0,
    0.95
  ) !important; /* Black navbar with 95% opacity */
  transition: background-color 0.5s ease-in-out;
}
body.konami-active #navbar a {
  color: #67e8f9; /* Cyan links */
}
body.konami-active #navbar a:hover {
  color: #f472b6; /* Pink/Fuchsia hover */
  text-shadow: 0 0 3px #f472b6;
}
body.konami-active #navbar div.font-semibold {
  color: #34d399; /* Neon Green for brand name */
}

/* Ensure cursor effect stays visible */
body.konami-active .cursor-effect {
  background-color: #e5e7eb; /* Ensure cursor is light */
}

/* Ensure Hero section is a stacking context */
#hero {
  position: relative;
  overflow: hidden;
}

/* Ensure Hero content is above its own background if needed */
#hero > div {
  position: relative; /* Necessary for z-index if there are multiple direct children */
  z-index: 1; /* Ensure content is above hero's direct background */
}
