@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 10px gold); }
  50% { filter: drop-shadow(0 0 25px gold); }
}

body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, #050814, #0a0f26, #121b3a);
  background-size: 300% 300%;
  animation: gradientShift 20s ease infinite;
  font-family: 'Poppins', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1000px;
  text-align: center;
}

.logo {
  width: 110px;
  animation: glowPulse 3s ease-in-out infinite;
}

h1 {
  color: gold;
  font-size: 2.2rem;
  margin-top: 20px;
  min-height: 40px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.services h2 {
  font-size: 1.6rem;
  color: #f5c518;
  margin: 40px 0 25px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  padding: 30px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}
.card {
  max-width: 300px; /* or any width you like */
  margin: 0 auto;
}


.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(45deg, gold, #ffc400, #f9e06b, gold);
  background-size: 300%;
  animation: gradientShift 5s ease infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.card h3 {
  color: gold;
  margin-bottom: 10px;
}

.card p {
  color: #cfcfcf;
  font-size: 0.9rem;
}

/* Make header a positioning context */
header { position: relative; }

/* Logout icon button */
.logout-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px; 
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: gold;                /* drives the SVG stroke via currentColor */
  cursor: pointer;
  border-radius: 10px;
  transition: transform .2s ease, color .2s ease, filter .2s ease;
  z-index: 10;
}

/* Ensure SVG scales crisply */
.logout-icon svg { display: block; }

/* Hover/active glow to match your theme */
.logout-icon:hover {
  transform: scale(1.12);
  color: #fff8c6;
  filter: drop-shadow(0 0 10px rgba(255,215,0,.6));
}

.logout-icon:active {
  transform: scale(1.06);
}

/* === Typewriter Animation (Gold Themed for PPS+) === */
@keyframes typing {
  0.0000%, 27.3488% { content: ""; }
  1.1395%, 26.2093% { content: "S"; }
  2.2791%, 25.0698% { content: "St"; }
  3.4186%, 23.9302% { content: "Stu"; }
  4.5581%, 22.7907% { content: "Stud"; }
  5.6977%, 21.6512% { content: "Stude"; }
  6.8372%, 20.5116% { content: "Studen"; }
  7.9767%, 19.3721% { content: "Student"; }

  30.7674%, 51.2791% { content: ""; }
  31.9070%, 50.1395% { content: "L"; }
  33.0465%, 49.0000% { content: "Le"; }
  34.1860%, 47.8605% { content: "Lea"; }
  35.3256%, 46.7209% { content: "Lear"; }
  36.4651%, 45.5814% { content: "Learn"; }
  37.6047%, 44.4419% { content: "Learner"; }

  54.6977%, 75.2093% { content: ""; }
  55.8372%, 74.0698% { content: "A"; }
  56.9767%, 72.9302% { content: "Ac"; }
  58.1163%, 71.7907% { content: "Ach"; }
  59.2558%, 70.6512% { content: "Achi"; }
  60.3953%, 69.5116% { content: "Achie"; }
  61.5349%, 68.3721% { content: "Achiev"; }
  62.6744%, 67.2326% { content: "Achieve"; }
  63.8140%, 66.0930% { content: "Achiever"; }

  78.6279%, 96.8605% { content: ""; }
  79.7674%, 95.7209% { content: "E"; }
  80.9070%, 94.5814% { content: "Ex"; }
  82.0465%, 93.4419% { content: "Exp"; }
  83.1860%, 92.3023% { content: "Expl"; }
  84.3256%, 91.1628% { content: "Explor"; }
  85.4651%, 90.0233% { content: "Explore"; }
  86.6047%, 88.8837% { content: "Explorer"; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* === Typewriter Animation (clean, gold) === */
#typer {
  display: inline-block;
  position: relative;
  color: gold;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  font-weight: 600;
}

#typer::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: gold;
  animation: blinkCaret 0.55s steps(1) infinite;
}

@keyframes blinkCaret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
