* {
  font-family: "Gayathri", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  text-align: center;
  background-image: url("https://images.unsplash.com/photo-1518600570419-81324064e9ae?ixlib=rb-0.3.5&s=bc0f45d6b7aa6f593567cdd808d6ac9b&auto=format&fit=crop&w=500&q=60");
  background-position: left;
  background-repeat: no-repeat;
  height: 74vh;
  background-color: #8f7cf870;
}

#welcome-section {
  background-image: url("https://images.unsplash.com/photo-1487887235947-a955ef187fcc?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=3f0ad5bf182a8aff79a57dd18988fd1d&auto=format&fit=crop&w=651&q=80");
  background-position: right;
  background-repeat: no-repeat;
  background-size: 80vh;
}

.intro {
  top: 0;
  color: #e8491d;
  min-height: 55vh;
  padding-top: 45vh;
  font-weight: bold;
  font-size: 1.2em;
  /*   line-height: 100vh; */
  /*   width:100%;
  height:96vh;
border:solid; */
}

.intro p {
  color: #e8491d;
  font-size: 1.1em;
  text-shadow: 2px 2px 3px #005f89;
}

#landing-image3 {
  background: url("https://images.unsplash.com/photo-1454165205744-3b78555e5572?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=863ffeea823f0ffb0885fe1a5e77e645&auto=format&fit=crop&w=500&q=60");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 35vh;
  flex: 0 1 60vw;
  margin: 0;
}

nav ul {
  text-align: right;
  position: fixed;
  width: 100%;
  background-color: #22313f;
  border-bottom: #e8491d 3px solid;
}

nav ul li {
  display: inline-block;
  margin: 55px;
  margin-bottom: 15px;
  margin-top: 25px;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
}

nav ul li a:hover {
  color: #e8491d;
}

div ul li {
  display: inline-block;
  margin: 55px;
  margin-bottom: 15px;
  margin-top: 25px;
}

div ul li a {
  color: #cccccc;
  text-decoration: none;
}
/* #ffffff*/
div ul li a:hover {
  color: #ffffff;
}

.menu-branding .portrait {
  margin: auto;
  width: 145px;
  height: 125px;
  background: url("portrait.jpg") no-repeat;
  border-radius: 50%;
  border: solid 3px #ee641a;
}

a {
  color: #333;
  text-decoration: none;
}
.container {
  max-width: 1100px;
  margin: auto;
  overflow: auto;
  padding: 0 2rem;
}

.main-header {
  height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(rgb(45, 53, 96, 0.28), rgb(42, 45, 56));
}
.main-header h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.main-header h1 span {
  color: #ffffff;
}

.main-header p {
  font-size: 2.5rem;
  color: #ffffff;
}

.title {
  color: #333;
}
img {
  width: 100%;
}

.card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
  background: #8f7cf870;
  margin-bottom: 2rem;
}
.card h3 {
  margin-bottom: 3rem;
  color: #333;
}

p {
  color: white;
  font-size: 1.5rem;
}
.card img {
  height: 360px;
}

.card > div {
  padding: 2rem;
}
/*changes image and card layout*/
.card:nth-child(even)img {
  order: 2;
}

.btn {
  display: inline-block;
  background: #22313f;
  color: beige;
  padding: 0.8rem 1.8rem;
  margin-top: 2rem;
  cursor: pointer;
}

.btn:hover {
  background-color: #e8491d;
}

#gradiant {
  background: radial-gradient(rgb(45, 53, 96, 0.28), rgb(30, 32, 39, 1));
}

#gradient button {
  background: radial-gradient(rgb(45, 53, 96, 0.28), rgb(30, 32, 39, 1));
}
.codepen {
  text-decoration: none;
  display: inline-block;
  width: 200px;
  height: 30px;
  margin: 2px;
  background: #22313f;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  border: 1px solid #ffffff;
  border-radius: 5%;
  cursor: pointer;
  padding-top: 8px;
}

.codepen:hover {
  background-color: #e8491d;
  -webkit-transition: background-color 1s ease;
  transition: background-color 1s ease;
}

.contact-header {
  color: #ffffff;
}

.contact-details {
  display: inline-block;
  font-weight: bold;
  margin: 0 35px 45px 35px;
  list-style-type: none;
  border: 2px solid #ffffff;
  border-radius: 100%;
  width: 100px;
  height: 100px;
  line-height: 100px;
  background: #22313f;
  color: #ffffff;
  text-decoration: none;
}

#contact h2 {
  margin-top: 2%;
}

.contact-details:hover {
  background: #e8491d;
  -webkit-transition: background-color 1s ease;
  transition: background-color 1s ease;
}

#certs {
  color: #ffffff;
}

.ed {
  color: #ffffff;
  background: #22313f;
  display: inline-block;
  font-weight: bold;
  font-size: 1em;
  border: 2px solid #ffffff;
  border-radius: 4px;
  cursor: pointer;
  padding: 10px;
}

.ed:hover {
  background: #e8491d;
  -webkit-transition: background-color 1s ease;
  transition: background-color 1s ease;
}

@media (max-width: 700px) {
  .card {
    display: block;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 0.3rem;
  }
  .main-header h1 {
    font-size: 25px;
    margin-top: 35px;
    margin-bottom: 0.5rem;
  }
  .main-header p {
    font-size: 25px;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  .menu-branding .portrait {
    margin-top: 10px;
  }
}

@media (max-width: 320px) {
  .main-header {
    padding: 0.3rem;
  }
  .main-header h1 {
    font-size: 25px;
    margin-top: 35px;
    margin-bottom: 0.5rem;
  }
  .main-header p {
    font-size: 20px;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  .menu-branding .portrait {
    margin-top: 10px;
  }
}
