:root {
  --primary: #1c5d99;
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-blur: 10px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #fff);
  color: #333;
  overflow-x: hidden;
}

header {
  background: var(--primary);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  animation: textPop 1s ease-in-out;
}

@keyframes textPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

nav {
  display: flex;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav button {
  flex: 1;
  padding: 20px;
  border: none;
  background: none;
  font-size: 1.1em;
  cursor: pointer;
  color: #fff;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
}

nav button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

nav button.active::after {
  content: "";
  height: 4px;
  width: 100%;
  background: #ffeb3b;
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { width: 0; }
  to { width: 100%; }
}

section {
  padding: 40px 20px;
  display: none;
  animation: fadeIn 0.6s ease-in-out;
}

section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.news-item a:hover {
  color: #ffeb3b;
}

.timestamp {
  color: #666;
  font-size: 0.9em;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  padding: 30px;
  border-radius: 16px;
  max-width: 800px;
  margin: 0 auto;
  animation: glassEffect 1.5s ease-in-out;
}

@keyframes glassEffect {
  from { backdrop-filter: blur(2px); opacity: 0.8; }
  to { backdrop-filter: blur(var(--glass-blur)); opacity: 1; }
}

.button {
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: #154a7a;
  transform: scale(1.05);
}

section[data-background] {
  background: url('https://source.unsplash.com/1600x900/?gaming,abstract') bottom/cover no-repeat fixed;
  color: #fff;
}
