/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Univers', sans-serif;
}

h1 {
  font-family: 'UniversCn', sans-serif;
  font-weight: bold;
}

@font-face {
  font-family: 'Univers';
  src: url('fonts/UniversRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Univers';
  src: url('fonts/UniversBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Univers';
  src: url('fonts/UniversLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'UniversCn';
  src: url('fonts/UniversCnRg.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'UniversCn';
  src: url('fonts/UniversCnBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header */
header {
  background-color: #1e1e2f;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin-bottom: 10px;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #61dafb;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  background-color: #61dafb;
  color: #1e1e2f;
}

/* Main */
main.container {
  padding: 30px;
  max-width: 960px;
  margin: 0 auto;
  animation: fadeIn 1.5s ease-in;
}

section {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease forwards;
  animation-delay: 0.4s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  background: linear-gradient(120deg, #f6f6f6, #eaeaea);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h2 {
  font-style: italic;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #444;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.timeline-item {
  background-color: #eeeeee;
  padding: 15px;
  border-left: 5px solid #61dafb;
  border-radius: 4px;
}

.timeline-item .year {
  font-weight: bold;
  display: block;
  color: #333;
  margin-bottom: 5px;
}

/* Images */
.main-image,
.typeface-image {
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.main-image:hover,
.typeface-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
  background-color: #1e1e2f;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
  font-size: 0.9rem;
}
