/* Global */
html,
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1em;
  background-color: #f5f5f5ff;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
}

/* Navigation */
nav {
  margin: auto;
  padding: 30px;
  overflow: hidden;
  background-color: #010a14;
}

.navbar-links {
  display: flex;
  text-align: right;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  padding: 12px;
  color: #ffffff;
}

nav a:hover {
  color: #ffb473;
  border-radius: 20px;
}

.menu-icon {
  width: 30px;
}

.nav .icon {
  display: none;
}

@media screen and (max-width: 1000px) {
  .nav a {
    display: none;
  }
  .nav a.icon {
    position: absolute;
    right: 0;
    top: 0;
    display: block;
  }
  .nav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* Content */
main h1 {
    font-family:  'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    color: #021327ff;
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(95deg, #021327ff, #021327ff, #fab875ff, #fab875ff);
    font-size: 5em;
    background-color: #0077ff;
}

.subtitle {
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.5;
    font-size: 1.2em;
    padding: 20px;
    color: #021327ff;
    margin: -20px;
}

.portfolio {
    padding: 40px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    max-width: 1000px; /* Ensure the container doesn't expand beyond this width */
    margin: 0 auto; /* Center the portfolio */
}

h2 {
    font-family:  'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 3rem;
    color: #021327ff;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 30px;
}

.card {
    width: 400px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 5px 8px 16px #00000033;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    object-position: center;
}

.card h3 {
    font-size: 1.5rem;
    margin: 10px;
    text-align: center;
}

.card .excerpt {
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-align: left;
    line-height: 1.5;
    font-size: 1rem;
    color: #555;
    padding: 10px;
    margin: 10px;
}

.card a {
    display: inline-block;
    text-align: center;
    color: #010a14ff;
    text-decoration: none;
    border-radius: 4px;
}

.card a:hover {
color: #fab875ff;
transition: 0.3s;
}

.card .tag {
    background-color: #010a14ff;
    color: white;
    font-size: 12px;
    padding: 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Footer */
footer {
  color: #ffffff;
  text-align: center;
  font-size: small;
  background-color: #011429;
  position: fixed;
  bottom: 0;
  width: 100%;
}