:root {
  --accent-color: #1f6dd2;
  /* --secondary-color: #2ecc71; */
  --background-color: #354152;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  box-sizing: border-box;
}

.scroll_to_view {
  scroll-margin-top: 120px;
}

.scroll_to_view_plus {
  scroll-margin-top: 150px;
}

body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.7;
  color: #606060;
  /* padding: 20px; */
}

header {
  background-color: #1d1d1d;
  color: #fff;
}

a {
  color: #fff;
  text-decoration: none;
}

li {
  list-style: none;
}

h1 {
  font-size: 3rem;
  text-align: center;
}

h2 {
  text-align: center;
  letter-spacing: 1px;
}

h3 {
  letter-spacing: 1px;
}

.no_display_small {
  display: none;
}

.logo img {
  height: 80px;
}

/* header */
header,
main,
footer {
  padding: 2rem;
}

header {
  margin-bottom: 4rem;
  width: 100%;
}

header > .container {
  width: 100%;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* height: 80vh; */
}

header .top {
  display: flex;
  justify-content: space-between;
  height: 100px;
}

/* sticky nav */

/* Default .top styles */
.top {
  position: relative; /* Default positioning */
  /* background-color: #fff; */
  /* padding: 20px 0; */
  transition: all 0.3s ease; /* Smooth transition for sticky effect */
  z-index: 1000; /* Ensure it stays on top */
  box-shadow: none; /* No shadow by default */
}

/* Sticky .top styles */
.top.sticky {
  position: fixed;
  top: 0;
  left: 50%; /* Align the left edge to the center of the viewport */
  transform: translateX(-50%);
  /* width: calc(100% - 40px); */
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Add shadow when sticky */
  background-color: var(--background-color);
  padding: 2rem 1rem;
}

/* Navigation links */
nav ul li a {
  text-decoration: none;
  /* color: #000; */
  padding: 10px;
  transition: color 0.3s ease;
}

nav ul li a.active {
  /* color: #4169E1 Highlight color for active link */
  font-weight: bold;
  /* text-decoration: underline; */
}

header nav ul {
  display: flex;
}

nav li {
  margin-left: 1.5rem;
}

nav a {
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
}

nav a:hover {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

header .image {
  background-image: url(../images/avatar_back.png);
  background-size: cover;
  background-repeat: no-repeat;
  width: 90%;
  background-position: center;
  margin: 0 auto;
  max-width: 400px;
}

header .image img {
  width: 100%;
}

header .text {
  margin-top: -6rem;

  padding: 6rem 2rem 0 2rem;
  /* height: 60vh; */
  /* background-image: url(../images/callout_up.png); */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  /* height: 90%;  */
}

.hero .container {
  width: 100%;
  /* display:block;
      content:''; */
  /* position:absolute; */
  /* -moz-box-shadow:inset 0px 0px 6px 6px rgba(255,255,255,1);
      -webkit-box-shadow:inset 0px 0px 6px 6px rgba(255,255,255,1); */
  /* box-shadow:inset 0px 0px 156px 6px #777; */
}

.callout {
  position: absolute;
  width: 85%;
  overflow: hidden;
  margin: auto;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  text-align: center;
}

.callout img {
  width: 95%;
  height: 240px;
}

header .my_summary {
  width: 90%;
  margin: 4rem auto 5rem;
  /* display: flex; */
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 3rem 2rem 1.5rem;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

/* projects */
.projects {
  padding-top: 10rem;
}

.projects .no_display_small {
  display: none;
}

.project {
  margin-bottom: 8rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 4rem;
}

.sub_head {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.5rem;
}
.projects .image {
  width: 96%;
  margin: 1rem auto 2.5rem;
  text-align: center;
}

.projects .image img {
  display: inline-block;
}

.projects img {
  width: 100%;
}

.projects a {
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s;
  display: inline-block;
}

.projects a:hover {
  transform: scale(1.1);
}

/* About */
.about {
  margin-bottom: 8rem;
}
.tech_tools {
  background-color: var(--background-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 800px;
  margin: 1rem auto;

  padding: 2rem 1rem;
}

.tool {
  width: 22%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

/* contact */
.form_content {
  border: 2px solid var(--accent-color);
  width: 100%;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
}
input,
textarea {
  display: block;
  margin-bottom: 2rem;
  width: 100%;
}

input {
  padding: 1rem;
}

label {
  color: #fff;
}

.form {
  background-color: var(--background-color);
  margin: 2rem auto;
  font-size: 2rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  padding: 1rem;
}

button {
  padding: 0.5rem 1rem;
  font-size: 2rem;
  letter-spacing: 1px;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  outline: none;
  border-radius: 5px;
  transition: 0.5s;
}

button:hover {
  background-color: transparent;
  border: 2px solid var(--accent-color);
}

textarea {
  height: 200px;
}

footer {
  text-align: center;
}

/* Animations */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-10rem);
  }
  80% {
    transform: translateX(2rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(10rem);
  }
  80% {
    transform: translateX(-2rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInBottom {
  0% {
    opacity: 0;
    transform: translateY(5rem);
  }
  80% {
    transform: translateY(-0.5rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
