/* Theme Variables */
:root {
  --background-light: #f8f9fa;
  --navbar-light: #ffffff;
  --text-light: #333333;
  --accent-light: #007bff;
  --accent-hover-light: #0056b3;
  --tile-background-light: #ffffff;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-light);
  color: var(--text-light);
}

nav {
  background: var(--navbar-light);
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 2em;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
  color: var(--accent-hover-light);
}

#theme-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5em;
  cursor: pointer;
  margin-left: auto;
}

main {
  padding: 2em;
}

footer {
  background-color: var(--navbar-light);
  color: var(--text-light);
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
  margin-top: 2em;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: var(--text-light);
  margin: 0 10px;
  font-size: 1.8em;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.social-icons a:hover {
  color: var(--accent-light);
  transform: translateY(-5px) scale(1.2);
}

/* Tile Grid Layout */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  padding: 2em 0;
}

.tile {
  background: var(--tile-background-light);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tile img {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

.tile-content {
  padding: 1em;
}

.tile-content h2 {
  margin-top: 0;
  font-size: 1.5em;
}

.tile-content p {
  margin: 0.5em 0 0;
  font-size: 1em;
}

/* DARK MODE */
body:not(.light-mode) {
  background: #0d1b2a;
  color: #ddd;
}

body:not(.light-mode) nav,
body:not(.light-mode) footer {
  background-color: #1b263b;
  color: #ddd;
}

body:not(.light-mode) nav a,
body:not(.light-mode) .social-icons a {
  color: #ddd;
}

body:not(.light-mode) nav a:hover,
body:not(.light-mode) .social-icons a:hover {
  color: #b2f7ef;
}

body:not(.light-mode) .tile {
  background: #1e2a3a;
}
