@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

:root {
  --white: #ddd;
  --dark: rgb(0, 0, 0);
  --darkGrey: #474b4f;
  --lightGrey: #6b6e70;
  --lightGreen: red;
  --darkGreen: orangered;
  --transition: all 0.5s ease;
  --caption: rgba(0, 0, 0, 0.7);
}

* {
  padding: initial;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}
body {
  transition: 0.6s;

  line-height: 1.6;
}
img {
  width: 100%;
  display: block;
}
ul li {
  list-style: none;
}
a {
  text-decoration: none;
  color: #000;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 15px 0;
}

/********************** Utility Classes *******************/
.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  width: 90vw;
  margin: 0 auto;
}
.btn {
  background: var(--darkGreen);
  border: none;
  display: block;
  width: 150px;
  text-align: center;
  color: var(--darkGreen);
  text-transform: uppercase;
  background: transparent;
  font-size: 15px;
  padding: 12px;
  border: 2px solid var(--darkGreen);
  border-radius: 25px;
  margin: 15px 0;
  transition: var(--transition);
}
.btn:hover {
  background: var(--darkGreen);
  color: #fff;
}
.active {
  color: var(--lightGreen) !important;
}

/**************** end of Utility Classes *******************/

/********************** Header styling *********************/

.header {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('images/header.jpg') center/cover no-repeat;
  color: #fff;
  object-fit: cover;
}
.top-nav a {
  color: #fff;
}
.brand-and-navBtn {
  background: #000;
  position: relative;
  z-index: 999;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  font-size: 24px;
  padding: 15px 25px;
  color: var(--white);
}
.brand-name {
  letter-spacing: 5px;
  cursor: pointer;
}
.navBtn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--white);
  cursor: pointer;
}
.navBtn:hover {
  background: #fff;
  color: #000;
  transition: var(--transition);
}
.top-nav {
  background: #000;
  transform: translateY(-600px);
  transition: var(--transition);
}
.showNav {
  transform: translateY(-1px);
}
.search-icon {
  display: none;
}
.top-nav ul li {
  padding: 10px 0;
}
.top-nav ul a {
  position: relative;
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  display: block;
}
.top-nav ul a::after {
  content: '';
  height: 2px;
  background: var(--lightGreen);
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  transition: var(--transition);
}
.top-nav ul a:hover::after {
  width: 100px;
}
.about {
  /* margin-top: -160px; */
}
/* .about-content {
  margin-top: 6em;
} */
.about-content img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
}
.about-img {
  background: #fff;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
}
.about-img img {
  position: relative;
  z-index: 999;
}
.about-content h2 {
  font-size: 48px;
  text-align: center;
  margin-bottom: 35px;
  color: var(--lightGreen);
}
.about-content h3 {
  color: #fff;
  font-size: 30px;
  font-weight: 100;
  background: rgba(255, 255, 255, 0.1);
  width: 400px;
  margin: 35px auto;
  text-align: center;
}
blockquote {
  font-size: 20px;
  font-weight: 300;
  opacity: 0.9;
  width: 60vw;
  margin: 45px auto 15px auto;
  text-align: center;
}
blockquote span {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--darkGreen);
  font-weight: 300;
  letter-spacing: 5px;
  display: block;
}
.social-icons {
  width: 350px;
  margin: 40px auto 0 auto;
  padding-bottom: 30px;
}
.social-icons ul a {
  color: #fff;
  font-size: 30px;
  display: block;
  width: 50px;
  height: 50px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}
.social-icons ul {
  display: flex;
  justify-content: space-around;
}
.social-icons ul a:hover {
  background: var(--lightGreen);
  border-color: var(--lightGreen);
}

/**************** gallery.html ***************/

/* section three */

.section-three {
  margin-top: 80px;
}

.gallery {
  padding: 3em 0 0;
}

.single-img {
  position: relative;
  margin: 10px;
}

.single-img-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 5px 30px;
  background: rgba(0, 0, 0, 0.7);
}

.single-img-content h3 {
  font-size: 18px;
  font-weight: 300;
  text-align: center;
  text-transform: capitalize;
}

/************** end of gallery.html ***********/

/*************** contact.html **************/

/* section five */
.section-five {
  margin: 40px 0;
}
.section-five .container div {
  margin: 20px 0;
}
.contact-top {
  text-align: center;
  padding-top: 4rem;
}
.contact-top h3 {
  font-size: 28px;
}
.contact-top p {
  font-weight: 300;
  width: 70%;
  margin: 0 auto;
}
.contact-middle div {
  text-align: center;
  padding: 25px 0;
  background: var(--dark);
  color: #fff;
}
.contact-middle div span {
  display: block;
}
.contact-icon {
  font-size: 30px;
}
.contact-middle div span:nth-child(2) {
  font-size: 18px;
  font-weight: bold;
}
.contact-middle div p {
  font-weight: 300;
  opacity: 0.7;
}
.contact-bottom {
  margin-top: 50px !important;
}
.form input[type='text'],
.form input[type='email'],
.form textarea {
  width: 100%;
  font-size: 16px;
  padding: 10px 15px;
  margin: 10px 0;
  border: 1px solid var(--lightGreen);
  outline: none;
  border-radius: 5px;
}
.contact-bottom .form {
  padding: 0 20px;
}

/************** end of contact.html **********/

/******************* Footer Styling *****************/

.footer {
  background: var(--dark);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.footer-container > div {
  margin: 40px 0;
}
.footer-container h2 {
  color: var(--lightGreen);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 7px;
}
.footer-container p {
  opacity: 0.7;
}
.subs {
  background: #000;
  width: 350px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px auto;
}
.subs i {
  font-size: 26px;
  flex: 10%;
  display: block;
}
.subs input {
  flex: 60%;
  background: transparent;
  border: none;
  font-size: 16px;
  padding: 0 5px;
  outline: 0;
  color: #fff;
}
.subs button {
  flex: 30%;
  font-size: 16px;
  padding: 15px 0;
  font-weight: bold;
  background: var(--lightGreen);
  border: none;
  transition: var(--transition);
  cursor: pointer;
}
.subs button:hover {
  color: #fff;
}
.footer > p {
  text-align: center;
  font-size: 14px;
}

/******************* end of footer ****************/

/***************** Media Queries *****************/

@media screen and (min-width: 678px) {
  /* section five */
  .contact-middle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
  }
  .about {
    margin-top: 1em;
  }
}

@media screen and (min-width: 800px) {
  /* section three */
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .about {
    margin-top: 1em;
  }
}

@media screen and (min-width: 992px) {
  /* header & footer */
  .nav-section {
    display: flex;
    justify-content: space-between;
  }
  .navBtn {
    display: none;
  }
  .brand-and-navBtn {
    flex: 0 0 10%;
    background: none;
  }
  .top-nav {
    flex: 0 1 80%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: transform 0s ease;
    transform: translateY(0);
    background: transparent;
  }
  .top-nav ul {
    display: flex;
  }
  .top-nav ul li {
    margin-right: 30px;
    margin-left: 30px;
  }
  .about {
    margin-top: 0;
  }
  .search-icon {
    flex: 0 0 10%;
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
  }
  .search-icon i:hover {
    transform: scale(1.2);
  }

  /* section five */
  .contact-middle {
    grid-template-columns: repeat(4, 1fr);
  }
  .contact-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 40px;
  }
}

@media screen and (min-width: 1000px) {
  /* section one */
  .section-one .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 50px;
  }
  .sec-one-left {
    align-self: center;
  }
  .work-content {
    margin-top: 0;
  }
  .sec-one-left {
    height: 100%;
  }

  /* section four */
  .blog-wrapper-lg {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
  }

  /* footer */
  .footer-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 20px;
  }
}

@media screen and (min-width: 1200px) {
  /* footer */
  .footer-container > div {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  /* section three */
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1400px) {
  /* section four */
  .blog-wrapper-sm {
    grid-template-columns: repeat(4, 1fr);
  }
}

/*************** extra small sized screen ******************/

@media screen and (max-width: 500px) {
  /* overall styling */
  .header {
    padding-bottom: 30px;
  }
  .social-icons {
    /* display: none; */
    width: 100%;
  }
  .about-content h3 {
    width: 100%;
  }
  .about-content blockquote {
    font-size: 16px;
    width: 100%;
  }
  .about-content {
    margin-top: 1em;
  }
  .subs {
    width: 280px;
  }
  .subs i {
    display: none;
  }
  .subs input {
    width: 100%;
  }
  .subs button {
    padding-left: 8px;
    padding-right: 8px;
  }
  h2 {
    font-size: 30px !important;
  }
  h3 {
    font-size: 20px !important;
  }
  p {
    font-size: 15px;
  }
  .btn {
    font-size: 14px;
    padding: 8px 0;
  }
  .work-imgs {
    grid-template-columns: 1fr;
    grid-row-gap: 20px;
  }
}

.show {
  background: var(--darkGreen);
  padding: 0.3em;
  border-radius: 0.3em;
  cursor: pointer;
  position: fixed;
  right: 1.5em;
  bottom: 2.5em;
  -webkit-transition: all ease 0.3s;
  -moz-transition: all ease 0.3s;
  transition: all ease 0.5s;
  z-index: 999;
}

#night-mode {
  position: fixed;
  z-index: 22;
  right: 0.5em;
  font-size: 1.5em;
  cursor: pointer;
  color: red;
}

.special-header {
  text-align: center;
  padding: 1rem;
  color: white;
  letter-spacing: 4px;
  position: relative;
  border-radius: 1rem;
  margin: 1em;
  background-color: orangered;
}

.special-header::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  border: solid orangered;
  border-width: 0px 26px 26px 0;
  transform: rotate(45deg) translateY(18px);
  z-index: -1;
}

.switch {
  display: flex;
  justify-content: center;

  color: white;
  font-size: 1.5em;
  padding-top: 2em;
}
.switch li {
  padding: 0.5em;
  background-color: #000;
  border-radius: 4px;
  position: relative;
}

.switch li a {
  color: white;
}

.switch li:hover a {
  color: orangered;
  border-bottom: red solid 3px;
}
