* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #2a0a0a 0%, #0d0d0d 55%, #000 100%);
  color: #f5e6d3;
  min-height: 100vh;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

header img {
  max-width: 400px;
  width: 90%;
  height: auto;
  margin-bottom: 1rem;
}

header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  color: #e63900;
  text-shadow: 0 0 20px rgba(230, 57, 0, 0.6);
  letter-spacing: 2px;
}

header p {
  color: #c9a227;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 3px;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.intro {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #ddd;
}

.student-info {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0.8rem 1rem;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid #c9a227;
  border-radius: 8px;
  color: #f5e6d3;
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.card {
  background: rgba(30, 10, 10, 0.85);
  border: 1px solid #5a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(196, 30, 10, 0.35);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card figcaption {
  padding: 1rem;
  font-size: 0.95rem;
  color: #e8d5b7;
}

.card figcaption h3 {
  color: #e63900;
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card figcaption .year {
  color: #c9a227;
  font-size: 0.85rem;
  font-weight: normal;
}

.card figcaption p {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

.card.glow {
  box-shadow: 0 0 30px rgba(230, 57, 0, 0.5);
  border-color: #e63900;
}

.btn-detail {
  background: transparent;
  color: #c9a227;
  border: 1px solid #c9a227;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 0.3rem;
}

.btn-detail:hover {
  background: #c9a227;
  color: #1a0a0a;
  box-shadow: 0 0 15px rgba(201, 162, 39, 0.5);
}

.card figcaption small {
  display: block;
  margin-top: 0.4rem;
  color: #888;
  font-size: 0.75rem;
}

.actions {
  text-align: center;
  margin: 2rem 0;
}

#btn-rage {
  background: linear-gradient(180deg, #c41e0a, #7a0f00);
  color: #fff;
  border: 2px solid #e63900;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#btn-rage:hover {
  background: linear-gradient(180deg, #e63900, #a01500);
  box-shadow: 0 0 25px rgba(230, 57, 0, 0.7);
  transform: scale(1.05);
}

#btn-rage:active {
  transform: scale(0.98);
}

#btn-rage.rage-active {
  animation: pulse 0.6s ease infinite alternate;
  box-shadow: 0 0 40px #ff4500, 0 0 80px #c41e0a;
}

@keyframes pulse {
  from {
    box-shadow: 0 0 20px #ff4500;
  }
  to {
    box-shadow: 0 0 50px #ff6347, 0 0 100px #c41e0a;
  }
}

#secret-message {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  text-align: center;
  margin-top: 1.5rem;
  padding: 0 1rem;
  transition: max-height 0.6s ease, opacity 0.6s ease, padding 0.6s ease;
}

#secret-message.visible {
  max-height: 200px;
  opacity: 1;
  padding: 1.5rem;
  background: rgba(196, 30, 10, 0.2);
  border: 1px solid #c41e0a;
  border-radius: 10px;
}

#secret-message h2 {
  color: #ff6347;
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}

.info-list {
  list-style: none;
  margin-top: 2rem;
}

.info-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #333;
  color: #ccc;
}

.info-list strong {
  color: #c9a227;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
  font-size: 0.85rem;
  border-top: 1px solid #222;
}

body.screen-shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
