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

body {
  font-family: Futura, "Trebuchet MS", Trebuchet, Arial, sans-serif;
  background-color: #535da1;
  line-height: 1.6;
  color: #333;
}

/* Navbar */

nav {
  top: 0;
  position: sticky;
  text-align: center;
  display: flex;
  justify-content: space-around;
  padding: 10px;
  width: 100%;
  justify-self: center;
  margin-bottom: 20px;
}

.nav-container {
  opacity: 90%;
  padding: 5px 20px;
  border-radius: 10px;
  background: whitesmoke;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1999;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.07);
  animation: slideInDown 0.3s ease-in-out;
}

nav .logo {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 5px 10px;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-weight: lighter;
  font-size: small;
}

nav ul li a:hover {
  color: #14b789;
}

/* Hero Section */

.hero {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px 20px;
  background: linear-gradient(to bottom, #535da1, #6d79d6);
  color: white;
}

.hero img {
  width: 300px;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.2rem;
}

.social-links-row {
  width: 50%;
  display: inline-flex;
  justify-content: left;
  align-items: center;
  column-gap: 1rem;
  margin: 1rem 0 4rem;
}

.social-links-row a img {
  height: 20px;
  width: 20px;
  opacity: 75%;
}

.social-links-row a img:hover {
  opacity: 200%;
}

/* Section */
.section {
  padding: 40px 20px;
  text-align: center;
}

.section-title {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #535da1;
}

.about,
.services,
.projects,
.contact {
  text-align: center;
  background: #f4f4f4;
}

/* About Section */
.about-container {
  display: flex;
  justify-content: space-between;
}

.about .about-text {
  padding: 10px;
  background-color: white;
  width: 60%;
  text-align: left;
  margin-left: 10%;
  border-radius: 20px;
  font-size: small;
  border-right: #6d79d6 solid 5px;
  border-bottom: #535da1 solid 3px;
}

.skill {
  margin-top: 7px;
}
.skill-title,
.skill-percent {
  display: inline-block;
  font-size: smaller;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.skill-percent {
  float: right;
  margin-right: 2px;
}

.skillbar {
  height: 0.2rem;
  background-color: black;
  border-radius: 10px;
  overflow: visible;
}

.skillbar:hover::before {
  width: 100%;
}

#about {
  border-bottom: black dotted 1px;
  border-width: 90%;
}

.about .about-image {
  width: 40%;
  text-align: right;
  margin-right: 10%;
}
.about img {
  width: 80%;
  border-radius: 10px;
}

.download-cv {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.download-cv button {
  background-color: #535da1;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Services Section */
.services .service {
  display: inline-block;
  margin: 20px;
  padding: 20px;
  font-size: small;
  border-right: #6d79d6 solid 5px;
  border-bottom: #535da1 solid 3px;
  border-radius: 10px;
  background: white;
  width: calc(33% - 40px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.services .service h3 {
  margin-bottom: 15px;
  color: #333;
}

.services .service a {
  text-decoration: none;
}

#services {
  border-bottom: black dotted 1px;
  border-width: 90%;
}

/* Projects Section */
.project-container {
  display: inline-block;
  margin: 20px;
}

.project-container .project {
  display: flex;
  margin-bottom: 20px;
}

.project-container .project .text {
  padding: 20px;
  background-color: white;
  width: 40%;
  height: auto;
  text-align: left;
  margin-top: 10px;
  margin-left: 5%;
  margin-right: 5%;
  border-radius: 20px;
  font-size: small;
}

.project .text h3 {
  color: black;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 5px;
}

.project .text a {
  text-decoration: none;
}

.project-container .project1 .text {
  border-right: #6d79d6 solid 5px;
  border-bottom: #535da1 solid 3px;
}

.project-container .project2 .text {
  border-left: #6d79d6 solid 5px;
  border-top: #535da1 solid 3px;
}

.project-container .project1 .image {
  width: 40%;
  text-align: right;
  margin-right: 10%;
  border-left: black solid 2px;
  border-bottom: black solid 2px;
}

.project-container .project2 .image {
  width: 40%;
  text-align: left;
  margin-left: 10%;
  border-right: black solid 2px;
  border-top: black solid 2px;
}

.projects img {
  width: 100%;
  max-width: 300px;
  margin: 10px;
  border-radius: 10px;
}

.projects .image img:hover {
  transform: scale(1.25);
}

.more-projects {
  text-align: center;
}

.more-projects button {
  background-color: #535da1;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#projects {
  border-bottom: black dotted 1px;
  border-width: 90%;
}

/* Contact Section */
.contact {
  font-size: small;
  padding: 40px 20px;
  background: #f4f4f4;
  text-align: center;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.contact-form {
  width: 50%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #535da1;
  outline: none;
}

.contact-form textarea {
  resize: none;
  height: 100px;
}

.contact-form button {
  background-color: #535da1;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact .section-title {
  color: #535da1;
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #666;
}

/* Footer Section */
footer {
  background: #444;
  color: white;
  text-align: center;
  padding: 20px 0;
}

footer {
  background-color: white;
  color: black;
  font-size: small;
}

footer a {
  color: #6d79d6;
  text-decoration: none;
}
