/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

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

/* --- Layout and Body Styling --- */
body {
  font-family: 'Inter', 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: url('https://d14nl8vnh5srji.cloudfront.net/processed/landscapes/bk-ny2.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  max-width: 960px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* --- Typography --- */
h1, h2, h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  color: #111;
}

p {
  margin-bottom: 1em;
}

.section p,
.section ul {
  font-size: 1.1em;
  line-height: 1.8;
}

strong {
  color: #007bff;
}

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

header p {
  font-size: 1.2rem;
  color: #666;
}

/* --- Navigation --- */
nav {
  background-color: #222;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0 20px;
}

nav a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #00aced;
  border-bottom: 2px solid #00aced;
}

/* --- Section Styling --- */
section {
  margin: 40px auto;
  max-width: 900px;
  padding: 0 20px;
}

section h2 {
  font-size: 1.8em;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
  margin-top: 30px;
}

/* --- Specific Elements --- */
#searchInput {
  display: block;
  margin: 20px auto;
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rounded-pic-full {
  width: 40%;
  height: 50%;
  object-fit: cover;
  border-radius: 50% / 40%;
  display: block;
  margin: 0 auto;
}

/* --- Footer (Sticky + Styled) --- */
footer {
  background-color: #222;
  color: #ddd;
  padding: 5px 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid #444;
  margin-top: auto;
}

footer a {
  color: #aaa;
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  color: white;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    margin: 10px 0;
  }

  main {
    margin: 10px;
    padding: 15px;
  }

  footer {
    font-size: 0.9rem;
  }
}
