* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url("Images/code.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #222;
}

.personal-homepage {
  background-color: lightblue;
  width: 80%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 12px;
}

/* Navigation */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 2px solid black;
}

nav h1 {
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

nav a:hover {
  color: orange;
  text-decoration: underline;
}

/* Headings */

h1 {
  font-size: 42px;
  font-family: Georgia, serif;
  color: #3f3f3f;
}

h2 {
  font-size: 30px;
  font-family: Georgia, serif;
  color: orange;
  text-align: center;
}

h3 {
  font-size: 22px;
  font-family: Georgia, serif;
  color: orange;
  text-align: center;
}

/* Main Profile Section */

.top-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  margin-top: 30px;
}

.profile-photo {
  width: 35%;
  max-width: 350px;
  object-fit: cover;
  border: 3px solid black;
  border-radius: 10px;
}

.school-photo{
  justify-content: center;
}

.Self-Intro {
  width: 60%;
  background-color: #4976bf;
  border: 2px solid black;
  border-radius: 10px;
  padding: 20px;
  color: white;
}

/* General Sections */

.what-i-do,
.currently-working,
.Skills,
.Interests,
.Contact,
.Experience,
.Goals,
.Courses,
.Projects, .school-info, .Academic-Focus, .Education-Skills, .Academic-Projects, .Education-Goals {
  background-color: #4976bf;
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
  color: white;
}

/* What I Do Cards */

.skill-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.skill-area {
  flex: 1;
  background-color: lightblue;
  color: black;
  padding: 15px;
  border: 2px solid black;
  border-radius: 10px;
}

.skill-area h3 {
  text-align: center;
}

/* Skills */

.skills-container {
  display: flex;
  gap: 20px;
}

.skills-category {
  flex: 1;
  background-color: lightblue;
  color: black;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid black;
}

/* Featured Project */

.featured-project {
  background-color: lightblue;
  color: black;
  padding: 20px;
  border: 2px solid black;
  border-radius: 10px;
}

.featured-project a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background-color: #4976bf;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.featured-project a:hover {
  background-color: #355a94;
}

/* Projects */

.project-card,
#project-one,
#project-two {
  background-color: lightblue;
  color: black;
  border: 2px solid black;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
}

#project-intro {
  text-align: center;
}

/* Contact */

.Contact ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.Contact li {
  display: inline-block;
  margin: 10px;
}

.Contact a {
  display: inline-block;
  padding: 10px 18px;
  background-color: lightblue;
  color: black;
  text-decoration: none;
  border: 2px solid black;
  border-radius: 6px;
  font-weight: bold;
}

.Contact a:hover {
  background-color: white;
}

/* Divider */

hr {
  height: 3px;
  background-color: black;
  border: none;
  margin: 30px 0;
}

/* Footer */

footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 2px solid black;
}

/* Mobile */

@media (max-width: 768px) {

  .personal-homepage {
    width: 95%;
    padding: 15px;
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .top-section {
    flex-direction: column;
    align-items: center;
  }

  .profile-photo {
    width: 80%;
    max-width: 300px;
  }

  .Self-Intro {
    width: 100%;
  }

  .skill-cards,
  .skills-container {
    flex-direction: column;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }
}