@import url('https://fonts.googleapis.com/css2?family=Tektur:wght@400..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tektur", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  padding-top: 70px;
  transition: background 0.4s, color 0.4s;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #004080;
  padding: 12px 20px;
  z-index: 1000;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.navbar a:hover {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

.navbar a.active {
  background: #ffd700;
  color: #004080;
}

#darkModeToggle {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.3s;
}

#darkModeToggle:hover {
  transform: rotate(20deg);
}

/* Header */
header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.2rem;
  color: #004080;
}

header .subtitle {
  color: #555;
  font-size: 1.1rem;
  margin-top: 5px;
}

/* Container */
#container {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: auto;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

.card h2 {
  margin-bottom: 10px;
  color: #004080;
}

ul {
  margin: 10px 0 0 20px;
}

figure {
  margin: 15px 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 5px;
}

/* Footer */
footer {
  position: sticky;
  bottom: 0;
  background: #222;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.footer-right a {
  margin-left: 20px;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-right a:hover {
  color: #fff;
}

.footer-right a i {
  font-size: 1.1rem;
}

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 55px;
  right: 25px;
  background: #004080;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: #ffd700;
  color: #004080;
}

/* Dark mode */
body.dark {
  background: #121212;
  color: #e0e0e0;
}

body.dark header h1 {
  color: #ffd700;
}

body.dark .card {
  background: #1e1e1e;
  color: #e0e0e0;
}

body.dark .navbar {
  background: #222;
}

body.dark .navbar a.active {
  background: #ffd700;
  color: #222;
}

body.dark footer {
  color: #aaa;
}

.suggestion {
  text-align: center;
  margin: 40px auto;
  max-width: 800px;
}

.suggestion h2 {
  color: #004080;
  margin-bottom: 20px;
}

.suggestion-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  gap: 20px;
}

.suggestion-card img {
  width: 120px;
  height: auto;
  border-radius: 10px;
}

.suggestion-card h3 {
  margin-bottom: 10px;
}

.btn-suggest {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #004080;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-suggest:hover {
  background: #ffd700;
  color: #004080;
}

/* Dark mode */
body.dark .suggestion-card {
  background: #1e1e1e;
  color: #e0e0e0;
}


@media screen and (max-width: 800px) {
  .navbar {
    flex-wrap: wrap;
  }
  .navbar ul {
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-right a {
    margin: 10px;
  }
}
