/* -----------------------------------------------------
   GLOBAL THEME VARIABLES
----------------------------------------------------- */
:root {
  --accent: #00ffc3;
  --text: #eaffff;
  --bg1: #0f0c29;
  --bg2: #302b63;
  --bg3: #24243e;
  --bg4: #00e5ff;
  --card: rgba(0, 0, 0, 0.50);
  --blur: 12px;
  --radius: 18px;
  --glow: 0 0 25px rgba(0, 255, 200, 0.25);
}

/* -----------------------------------------------------
   GLOBAL PAGE STYLE
----------------------------------------------------- */
body {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(-45deg, var(--bg1), var(--bg2), var(--bg3), var(--bg4));
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* -----------------------------------------------------
   HEADERS & TITLES
----------------------------------------------------- */
h1, h2, h3 {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent);
  text-align: center;
  margin-top: 0;
}

/* Flickering text effect (for “Coding Is Everything”) */
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow:
      0 0 12px var(--accent),
      0 0 25px var(--accent),
      0 0 40px var(--accent);
  }
  20%, 24%, 55% {
    opacity: 0.35;
    text-shadow: none;
  }
}

.flicker {
  animation: flicker 2.7s infinite;
  color: var(--accent);
  font-size: 1.8rem;
  margin-top: 2rem;
  text-align: center;
}

/* -----------------------------------------------------
   NAVIGATION
----------------------------------------------------- */
nav {
  text-align: center;
  margin: 1rem 0 2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 0.65rem;
  font-weight: 600;
  transition: 0.25s;
}

nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}

/* -----------------------------------------------------
   MAIN CONTENT SECTIONS
----------------------------------------------------- */
section {
  margin: 2.5rem auto;
  padding: 2rem;
  max-width: 900px;
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  box-shadow: var(--glow);
}

/* -----------------------------------------------------
   LISTS & LINKS
----------------------------------------------------- */
ul {
  list-style: none;
  padding: 0;
}

li {
  font-size: 1.1rem;
  margin: 0.6rem 0;
  text-align: center;
}

.sub-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.sub-link:hover {
  text-shadow: 0 0 12px var(--accent);
}

/* -----------------------------------------------------
   FORMS (contact, guestbook, etc.)
----------------------------------------------------- */
input, textarea, button {
  font-family: inherit;
  background: rgba(255, 255, 255, 0.10);
  border: none;
  border-radius: 10px;
  padding: 0.8rem;
  color: var(--text);
  width: 100%;
  margin-bottom: 1rem;
  outline: none;
  transition: 0.3s;
}

input:focus, textarea:focus {
  box-shadow: 0 0 12px var(--accent);
}

button {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

footer img {
  width: 120px;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* -----------------------------------------------------
   RESPONSIVE DESIGN
----------------------------------------------------- */
@media (max-width: 650px) {
  section {
    padding: 1.5rem;
  }

  .flicker {
    font-size: 1.5rem;
  }

  h1, h2 {
    font-size: 1.3rem;
  }
}
