html {
  padding-bottom: 500px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  max-width: 968px;
  padding: 1%;
  margin: auto;
  position: relative;
}

h1,
h2,
h3 {
  text-align: center;
}

#title-name {
  margin-top: 10px;
}

nav {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
}

.navbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
}

.navbar a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #007bff;
}

.welcome-message {
  padding-bottom: 20px;
}

.welcome-text {
  text-align: left;
  padding-right: 20px;
}

.portfolio-pic-container {
  float: right;
  width: 16%;
  margin: 0 0 10px 10px;
}

#portfolio-pic {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

section {
  padding: 20px 0;
  scroll-margin-top: 20px;
}

#skills-link ul {
  padding-left: 20px;
}

.projects {
  clear: both;
  padding: 20px 0;
}

.project {
  padding-bottom: 20px;
}

.project-img {
  width: 100%;
  height: auto;
  display: block;
}

.thumbnail-link:hover {
  opacity: 0.6;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.resume-heading {
  padding-top: 50px;
  text-align: center;
}

.resume-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.resume-frame {
  width: 100%;
  height: 800px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.resume-heading {
  text-align: center;
}

footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  color: #555;
}

/* For Mobile Devices */
@media screen and (max-width: 704px) {
  nav {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
  }

  .portfolio-pic-container {
    width: 40%;
  }

  .resume-frame {
    height: 600px;
  }
}

/* PRINT */
@media print {
  html,
  body * {
    color: black !important;
    background-color: white !important;
  }

  #graduation-pic,
  nav,
  .resume-container,
  .resume-heading {
    display: none;
  }

  .projects,
  .welcome-message {
    border-bottom: none;
  }
}
