:root {
  --mainColor: #eaeaea;
  --secondaryColor: #fff;

  --borderColor: #c1c1c1;

  --mainText: black;
  --secondaryText: #4b5156;

  --themeDotBorder: #24292e;

  --previewBg: rgba(251, 249, 243, 0.8);
  --previewShadow: #f0ead6;

  --buttonColor: black;
}

html,
body {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

body * {
  transition: all 100ms ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  color: var(--mainText);
  font-family: "Josefin Sans", sans-serif;
  font-weight: 500;
}

p,
li,
span,
label,
input,
textarea {
  color: var(--secondaryText);
  font-family: "Montserrat", sans-serif;
}

a {
  text-decoration: none;
  color: #17a2b8;
  font-family: "Montserrat", sans-serif;
}

ul {
  list-style: none;
}

h1 {
  font-size: 56px;
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 28px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 20px;
}
h6 {
  font-size: 16px;
}

body section:first-child {
  padding-bottom: 4rem;
}

.s1 {
  background-color: var(--mainColor);
  border-bottom: var(--borderColor) solid 1px;
  overflow: hidden;
}

.s2 {
  background-color: var(--secondaryColor);
  border: 1px;
  border-bottom: var(--borderColor);
  overflow: hidden;
}

.main-container {
  width: 1200px;
  margin: 0 auto;
}

.greeting-wrapper {
  display: grid;
  place-items: center;
  min-height: 10em;
  text-align: center;
}

.greeting-wrapper h1 span {
  color: var(--mainText);
  font-family: "Josefin Sans", sans-serif;
}

.intro-wrapper {
  background-color: var(--secondaryColor);
  border: 1px solid var(--borderColor);
  border-radius: 5px;

  -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "nav nav"
    "left right";
}

.nav-wrapper {
  grid-area: nav;
  border-bottom: 1px solid var(--borderColor);
  border-radius: 5px 5px 0 0;
  background-color: var(--mainColor);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

#navigation {
  margin: 0;
  padding: 10px;
  cursor: default;
}
#navigation li {
  display: inline-block;
  margin: 0 5px;
}
#navigation li a:hover {
  text-decoration: underline;
}
#navigation li a {
  color: var(--mainText);
}

.dots-wrapper {
  display: flex;
  padding: 10px;
}
#dot-1 {
  background-color: #fc6058;
}
#dot-2 {
  background-color: #fec02f;
}
#dot-3 {
  background-color: #2aca3e;
}
.browser-dot {
  background: black;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  margin: 5px;

  -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
}

.left-col {
  grid-area: left;
  padding: 50px 0;
}

#profile-pic {
  display: block;
  margin: 0 auto;

  height: 200px;
  width: 200px;
  object-fit: cover;
  border: 2px solid var(--borderColor);
  border-radius: 50%;
}

#theme-options-wrapper {
  display: flex;
  justify-content: center;
}
.theme-dot {
  height: 30px;
  width: 30px;
  border-radius: 50%;

  margin: 5px;
  border: 2px solid var(--themeDotBorder);

  -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);

  cursor: pointer;

  transition: all 100ms ease;
}
.theme-dot:hover {
  transform: scale(1.1);
}

#light-mode {
  background-color: #fff;
}
#blue-mode {
  background-color: #192734;
}
#green-mode {
  background-color: #78866b;
}
#purple-mode {
  background-color: #7e4c74;
}

#settings-note {
  text-align: center;
  font-size: 12px;
  font-style: italic;
}

.right-col {
  grid-area: right;
  display: grid;
  align-items: center;

  padding: 50px 0;
}

#preview-shadow {
  background-color: var(--previewShadow);
  width: 300px;
  height: 180px;
  padding-left: 30px;
  padding-top: 30px;
}
#preview {
  width: 300px;
  border: 1.5px solid #17a2b8;
  background-color: var(--previewBg);
  padding: 15px;
  position: relative;
}

.corner {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #17a2b8;
  background-color: #fff;
  position: absolute;
}
#corner-tl {
  top: -5px;
  left: -5px;
}
#corner-tr {
  top: -5px;
  right: -5px;
}
#corner-br {
  bottom: -5px;
  right: -5px;
}
#corner-bl {
  bottom: -5px;
  left: -5px;
}

/* *About Section */
.about-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: 50px 0;
  gap: 100px;
}

#skills {
  display: flex;
  justify-content: space-evenly;
  border-radius: 5px;
  background-color: var(--previewShadow);
}

.social-links {
  display: grid;
  align-content: center;
  text-align: center;
}
.social-links h4 {
  margin: 1em;
}
.social-links a {
  margin: 0 auto 1em;
  color: var(--secondaryText);
}
.social-links a span {
  color: #17a2b8;
}
.social-links a span:hover {
  text-decoration: underline;
}

/* *Projects Section */
.projects-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, 320px);
  gap: 20px;
  justify-content: center;
  padding-bottom: 50px;
}

.project {
  border: 1px solid var(--borderColor);
  -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
}

.thumbnail {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #c1c1c1;
}

.project-preview {
  background-color: #fff;
  padding: 15px;
}

.project-title {
  color: black;
  font-size: 1.5rem;
  margin: 0;
}
.project-intro {
  color: #4b5156;
  font-size: 16 px;
}
.project-links {
  display: flex;
  justify-content: space-between;
}
.project-links a:hover {
  text-decoration: underline;
}

/* *Contact Section */
#contact-form {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--borderColor);
  padding: 20px;
  border-radius: 3px;
  background-color: var(--secondaryColor);
  margin-bottom: 50px;
}

#contact-form textarea {
  min-height: 100px;
  font-size: 14px;
}

.input-field {
  width: 100%;
  padding: 10px 0;
  background-color: var(--secondaryColor);
  border: none;
  border-bottom: 1px solid var(--borderColor);
  font-size: 14px;
  margin-bottom: 1rem;
}
.input-field:focus {
  outline: none;
  border-bottom: 1px solid var(--secondaryText);
}

#submit-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 0;
  color: #fff;
  background-color: var(--buttonColor);
  border: none;
  transition: all 100ms ease;
  cursor: pointer;
}
#submit-btn:hover {
  background-color: rgb(36, 36, 36);
}


/* Projects Tabs */
.tabs ul {
  display: flex;
  justify-content: space-evenly;
  padding: 0;
}
.tabs ul li {
  padding: 5px;
  border-radius: 3px;
}
.tabs ul li a {
  color: var(--mainText);
}
.tabs ul li.active {
  border: 2px solid var(--borderColor);
}
.tabs ul li:hover {
  text-decoration: underline;
}


@media screen and (max-width: 1200px) {
  .main-container {
    width: 95%;
  }
}

@media screen and (max-width: 800px) {
  .intro-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "left"
      "right";
  }

  .right-col {
    justify-content: center;
  }

  .about-wrapper {
    gap: 30px;
  }
}

@media screen and (max-width: 400px) {
  .greeting-wrapper h1 {
    text-align: center;
    font-size: 4rem;
  }
  .greeting-wrapper h1 span {
    font-size: 3.5rem;
  }

  #preview-shadow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .about-wrapper {
    gap: 30px;
  }
}
