/*
=============== 
Fonts
===============
*/
@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");

/*
=============== 
Variables
===============
*/

:root {
  /* dark shades of primary color*/
  --clr-primary-1: hsl(43, 86%, 17%);
  --clr-primary-2: hsl(43, 77%, 27%);
  --clr-primary-3: hsl(43, 72%, 37%);
  --clr-primary-4: hsl(42, 63%, 48%);
  /* primary/main color */
  --clr-primary-5: hsl(42, 78%, 60%);
  /* lighter shades of primary color */
  --clr-primary-6: hsl(43, 89%, 70%);
  --clr-primary-7: hsl(43, 90%, 76%);
  --clr-primary-8: hsl(45, 86%, 81%);
  --clr-primary-9: hsl(45, 90%, 88%);
  --clr-primary-10: hsl(45, 100%, 96%);
  /* darkest grey - used for headings */
  --clr-grey-1: hsl(209, 61%, 16%);
  --clr-grey-2: hsl(211, 39%, 23%);
  --clr-grey-3: hsl(209, 34%, 30%);
  --clr-grey-4: hsl(209, 28%, 39%);
  /* grey used for paragraphs */
  --clr-grey-5: hsl(210, 22%, 49%);
  --clr-grey-6: hsl(209, 23%, 60%);
  --clr-grey-7: hsl(211, 27%, 70%);
  --clr-grey-8: hsl(210, 31%, 80%);
  --clr-grey-9: hsl(212, 33%, 89%);
  --clr-grey-10: hsl(210, 36%, 96%);

  /* Secondary Colors */

  --clr--main-color-4: #f54748;
  --clr--main-color-5: #af0c0c;
  --clr--main-color-6: #680505;
  /* Project Colors */
  --clr--main-color-7: #e45b16;
  --clr--main-color-8: #d83e0f;

  /* Main colors */
  --clr-blue-1: #daf4f7;
  --clr-blue-3: #f0f8ff;
  --clr-dark-blue: #002444;
  --clr-fresh-pass: #76eaff;
  --clr-fresh-: #1de26f;

  --clr-white: #fff;
  --ff-primary: "Roboto", sans-serif;
  --ff-secondary: "Open Sans", sans-serif;
  --transition: all 0.3s linear;
  --spacing: 0.25rem;
  --radius: 0.5rem;
  /* --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */

  /* Box Shadows */
  --inner-shadow: inset 0 -2px 4px hsl(0deg 0% 73% / 25%),
    inset 6px 4px 7px rgb(0 0 0 / 15%);
  --cool-shadow: 0 4px 4px rgb(0 0 0 / 10%), 0 -4px 4px hsl(0deg 0% 90% / 25%);
  --simple-shadow: 0px 2px 5px -1px rgb(0 0 0 / 20%),
    0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%);
  --general-shadow: 2px 2px 3px 1px rgba(0, 0, 0, 0.3);
  --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --average-shadow: 3px 3px 4px 0px rgba(180, 185, 194, 0.75);
  --dark-shadow: 2px 9px 13px 0px rgba(180, 185, 194, 0.75);

  --max-width: 1170px;
}
/*
=============== 
Global Styles
===============
*/

html {
  scroll-behavior: smooth;
}

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--ff-secondary);
  background: var(--clr-white);
  color: var(--clr-grey-1);
  line-height: 1.7;
  font-size: 0.875rem;
}
ul {
  list-style-type: none;
}
a {
  text-decoration: none;
}
img:not(.nav-logo) {
  width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  letter-spacing: var(--spacing);
  text-transform: capitalize;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-family: var(--ff-primary);
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 0.875rem;
}
p {
  margin-bottom: 1.25rem;
  color: var(--clr-grey-5);
}
@media screen and (min-width: 800px) {
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.75rem;
  }
  h4 {
    font-size: 1rem;
  }
  body {
    font-size: 1rem;
  }
  h1,
  h2,
  h3,
  h4 {
    line-height: 1;
  }
}
/*  global classes */

.btn {
  text-transform: uppercase;
  background: var(--clr-dark-blue);
  color: white;
  padding: 0.375rem 0.75rem;
  letter-spacing: var(--spacing);
  display: inline-block;
  font-weight: 700;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  text-align: center;
}
.btn:hover {
  /* color: var(--clr-dark-blue); */
  background: var(--clr--main-color-8);
}
/* section */
.section {
  padding: 5rem 0;
}

.section-center {
  width: 90vw;
  margin: 0 auto;
  max-width: 1170px;
}
@media screen and (min-width: 992px) {
  .section-center {
    width: 95vw;
  }
}
/* added during recording */

.underline {
  width: 5rem;
  height: 0.25rem;
  margin-bottom: 1.25rem;
  background: var(--clr--main-color-8);
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: 4rem;
  text-align: center;
}

.bg-grey {
  background: var(--clr-grey-10);
}

/*
=============== 
Navbar
===============
*/

.logo-text {
  margin-bottom: 0;
}

.logo-text span {
  color: var(--clr--main-color-8);
}

.nav-links {
  display: none;
}

.nav {
  height: 5rem;
  padding: 1rem;
  display: grid;
  align-items: center;
  transition: var(--transition);
  background: white;
}

.nav-center {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}

.nav-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border-color: transparent;
  color: var(--clr-dark-blue);
  font-size: 2rem;
  cursor: pointer;
  justify-self: end;
}

@media screen and (min-width: 768px) {
  .nav {
    background: white;
    /* background: var(--clr-primary-10); */
  }
  .nav-btn {
    display: none;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    column-gap: 2rem;
    justify-self: end;
  }

  .nav-links a {
    text-transform: capitalize;
    /* color: var(--clr-grey-1); */
    color: var(--clr-dark-blue);
    font-weight: bold;
    letter-spacing: var(--spacing);
    transition: var(--transition);
  }

  .nav-links a:hover {
    color: var(--clr--main-color-5);
  }

  .nav-center {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: var(--simple-shadow);
  /* background: red; */
  z-index: 10;
}

/*
=============== 
Sidebar
===============
*/

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-grey-10);
  z-index: 4;
  display: grid;
  /* align-items: center;
  justify-items: center; */
  place-items: center;
  transition: var(--transition);
  transform: translateX(-100%);
}

.show-sidebar {
  transform: translateX(0);
}

.sidebar-links {
  text-align: center;
}

.sidebar-links a {
  font-size: 2rem;
  text-transform: capitalize;
  transition: var(--transition);
  color: var(--clr-dark-blue);
  letter-spacing: var(--spacing);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.sidebar-links a:hover {
  color: var(--clr--main-color-8);
}

.social-icons {
  display: grid;
  margin-top: 3rem;
  width: 20rem;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}

.social-icon {
  font-size: 2rem;
  color: var(--clr-dark-blue);
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--clr-fresh-pass);
}

.close-btn {
  position: absolute;
  top: 2%;
  right: 2%;
  font-size: 3rem;
  background: transparent;
  border: transparent;
  transition: var(--transition);
  color: #bb2525;
  cursor: pointer;
}

.close-btn:hover {
  color: #e66b6b;
  transform: scale(1.2);
}
/*
=============== 
Hero
===============
*/
/* underline added to globals */

.hero .underline {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

.hero-img {
  display: none;
}

.hero {
  background: var(--clr-blue-3);
}

.hero-center {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
}

.hero-info h4 {
  color: var(--clr-grey-5);
}

.hero-icons {
  justify-items: start;
}

.contact-links {
  display: grid;
  /* align-items: center;
  justify-content: space-between; */
  row-gap: 2rem;
  /* max-width: 90%; */
  place-items: center;
  margin-top: 3rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  font-size: 0.75rem;
}

.contact-links a img {
  width: 2rem;
  object-fit: contain;
}

.hero-btn {
  margin-top: 1.25rem;
  color: white;
  background: var(--clr-dark-blue);
}

.telegram-btn,
.Whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  font-size: 0.75rem;
  max-width: 17rem;
}

.video-telegram-btn {
  margin: 0 auto;
}

.telegram-btn img {
  width: 2rem;
  object-fit: contain;
}

.telegram-btn:hover {
  background: #38b2ef;
}

.Whatsapp-btn {
  background: #4fce5d;
}

.Whatsapp-btn:hover {
  background: #1e902b;
}

.hero-photo {
  max-width: 30rem;
  max-height: 40rem;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
}

@media screen and (min-width: 992px) {
  .contact-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 2rem;
  }

  .hero-img {
    display: block;
    position: relative;
  }

  .hero-center {
    grid-template-columns: 1fr 1fr;
  }

  .hero-photo {
    max-width: 25rem;
    max-height: 30rem;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
  }

  .hero-img::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0.35rem solid var(--clr-dark-blue);
    top: 2rem;
    right: -2rem;
    border-radius: var(--radius);
  }
}
/*
=============== 
About
===============
*/

.about-title {
  text-align: left;
  margin-bottom: 2rem;
}

.about-title .underline {
  margin-left: 0;
}

.about-center {
  display: grid;
  gap: 3rem 2rem;
}

.about-photo {
  border-radius: 0.5rem;
}

.about-img img {
  justify-self: center;
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  box-shadow: var(--simple-shadow);
  /* position: relative; */
}

@media screen and (min-width: 992px) {
  .about-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .about-info {
    align-self: center;
  }

  .about-info p {
    font-size: 1rem;
    max-width: 30rem;
  }
}

/* section title added to globals */

/*
=============== 
Services
===============
*/

.service {
  background: var(--clr-white);
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service .underline {
  width: 3rem;
  height: 0.12rem;
  transition: var(--transition);
}

.service p,
.service h4 {
  transition: var(--transition);
}

.service:hover {
  background: var(--clr-dark-blue);
  color: var(--clr-white);
}

.service:hover p {
  color: var(--clr-white);
}

.service:hover .underline {
  background: var(--clr-white);
}

@media screen and (min-width: 676px) {
  .services-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

@media screen and (min-width: 992px) {
  .services-center {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* small screen layout setup */
/* bg-grey in globals */

/*
=============== 
Projects
===============
*/
.projects-text {
  width: 85vw;
  max-width: 30rem;
  margin: 0 auto;
}

.project {
  position: relative;
  background: var(--clr-primary-5);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.project-info {
  text-align: center;
  color: var(--clr-white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition);
  opacity: 0;
}

.project-info p {
  text-transform: capitalize;
  color: var(--clr-white);
}

.project:hover .project-info {
  opacity: 1;
}

.project-img {
  border-radius: var(--radius);
  transition: var(--transition);
  height: 15rem;
  object-fit: cover;
}

.project:hover .project-img {
  opacity: 0.1;
}

.project::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0.25rem solid var(--clr-white);
  border-radius: var(--radius);
  transition: var(--transition);
  opacity: 0;
}

.project:hover::after {
  opacity: 1;
  transform: scale(0.8);
}

@media screen and (min-width: 676px) {
  .projects-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

@media screen and (min-width: 992px) {
  .projects-center {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1170px) {
  .projects-center {
    grid-template-rows: 200px 200px;
    grid-template-areas:
      "a b b"
      "a c d";
    gap: 1rem;
  }
  .project-1 {
    grid-area: a;
  }

  .project-2 {
    grid-area: b;
  }

  .project-3 {
    grid-area: c;
  }

  .project-4 {
    grid-area: d;
  }

  .project-img {
    height: 100%;
  }
  .project {
    height: 100%;
  }
}

/*
=============== 
Connect
===============
*/

.connect {
  min-height: 40vh;
  position: relative;
  padding: 10rem 0 5rem 0;
  margin: 5rem 0;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.connect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-white);
  opacity: 0.7;
  z-index: -1;
}

.video-banner {
  background: var(--clr-primary-10);
  padding: 3rem 5rem 12rem 5rem;
  text-align: center;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 75%,
    75% 75%,
    75% 100%,
    50% 75%,
    0% 75%
  );
}

.video-banner .section-title {
  margin-bottom: 2rem;
}

.video-text {
  text-align: center;
  /* max-width: 30rem; */
}

.connect {
  display: grid;
  place-items: center;
}

/*
=============== 
Skills
===============
*/

.skills {
  background: var(--clr-blue-3);
}

.skills-center {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  row-gap: 3rem;
}

.skills h3 {
  margin: 1.5rem 0;
  color: var(--clr-primary-1);
}

.skill {
  margin-bottom: 1.25rem;
}

.skill p:nth-child(1) {
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  color: var(--clr-dark-blue);
}

.skill-container {
  background: var(--clr-white);
  height: 1rem;
  width: 100%;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--inner-shadow);
}

.skill-value {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--clr-dark-blue);
  height: 100%;
  width: 50%;
  border-radius: var(--radius);
}

.value-70 {
  width: 70%;
}
.value-80 {
  width: 80%;
}

.skill-text {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--clr--main-color-8);
}
.skill-text-70 {
  left: 70%;
}
.skill-text-80 {
  left: 80%;
}

@media screen and (min-width: 768px) {
  .skills-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

/*
=============== 
Timeline
===============
*/

.timeline-center {
  width: 80vw;
  max-width: 40rem;
}

.timeline-item {
  border-top: 2px dashed var(--clr-dark-blue);
  margin: 0;
  padding: 4rem 2rem;
  position: relative;
}

.timeline-item p {
  margin: 0;
}

.timeline-item:nth-child(even) {
  border-left: 2px dashed var(--clr-dark-blue);
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
  margin-right: 2rem;
  padding-right: 0;
}
.timeline-item:nth-child(odd) {
  border-right: 2px dashed var(--clr-dark-blue);
  border-top-right-radius: 2rem;
  border-bottom-right-radius: 2rem;
  margin-left: 2rem;
  padding-left: 0;
}

.timeline-item:nth-child(1) {
  border-top: 0;
  border-top-right-radius: 0;
}

.timeline-item:nth-child(6) {
  border-bottom-left-radius: 0;
}

.number {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-bottom: 0;
  background: var(--clr-blue-3);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--clr--main-color-8);
  font-weight: bold;
  box-shadow: var(--simple-shadow);
}

.timeline-item:nth-child(even) .number {
  left: 0;
}

.timeline-item:nth-child(odd) .number {
  right: 0;
  transform: translate(50%, -50%);
}

/*
=============== 
Blog
===============
*/

.blog {
  background: var(--clr-grey-10);
}

.card-front h4 {
  margin-bottom: 2rem;
}

.card-front {
  padding-bottom: 0.75rem;
  background: var(--clr-white);
  overflow: hidden;
}

/* Rest of the styles */

.card-info {
  padding: 1rem 1.5rem;
}

.card-front img {
  height: 13rem;
  object-fit: cover;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  transition: var(--transition);
}

.card-front img:hover {
  transform: scale(1.05);
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2rem;
  padding: 0.5rem;
}

.card-footer p {
  margin-bottom: 0;
  text-transform: uppercase;

  color: black;
  font-size: 0.85rem;
}

.card-footer p .completed {
  color: green;
  font-weight: bold;
}

.card-footer p .not-completed {
  color: var(--clr--main-color-8);
  font-weight: bold;
}

.blog-center {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 3rem 3rem;
}

/*
=============== 
Footer
===============
*/

.footer {
  padding-bottom: 2rem;
  background: #222;
  display: grid;
  place-items: center;
}

.footer .social-icons {
  margin-bottom: 2rem;
}

.footer .social-icon {
  color: var(--clr-blue-3);
}
.footer .social-icon:hover {
  color: var(--clr-fresh-pass);
}

.footer p {
  font-size: 1.25rem;
  text-transform: capitalize;
}

.top-link {
  background: var(--clr--main-color-8);
  color: white;
  font-size: 1rem;
  padding: 0.35rem;
  display: grid;
  place-items: center;
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
  transition: var(--transition);

  /*special   */
  visibility: hidden;
  z-index: 20;
}

.show-top-link {
  visibility: visible;
}

.top-link:hover {
  background: var(--clr--main-color-6);
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

/*
=============== 
Single Page
===============
*/

.single-page {
  background: var(--clr-blue-3);
  min-height: calc(100vh - 5rem - 198px);
}

.page-info {
  max-width: 700px;
}

.page-text a {
  text-transform: capitalize;
  color: var(--clr-dark-blue);
  transition: var(--transition);
}

.page-info a:hover {
  color: var(--clr-primary-1);
}

/* About Page */

.about-description {
  margin-bottom: 3rem;
}

/*
=============== 
Projects Page
===============
*/

.projects-hero {
  height: 20vh;
  background: var(--clr-blue-3);
  display: grid;
  place-items: center;
}

.projects-hero .section-title {
  margin-bottom: 0;
}

.single-project {
  background: var(--clr-blue-3);
  border-radius: var(--radius);
}

.project-img-container img {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.project-img-container {
  position: relative;
}

.project-page-icon {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  background: #e9b949;
  color: var(--clr-primary-1);
  font-size: 1.75rem;
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border: 0.375rem solid var(--clr-grey-10);
  border-radius: 50%;
}

.project-page-card-info {
  padding: 2rem 1.5rem;
}

.project-page-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--clr-primary-5);
}

.project-page-card-footer a {
  color: var(--clr-primary-5);
  text-transform: capitalize;
  transition: var(--transition);
  justify-self: end;
}

.project-page-card-footer a:hover {
  color: var(--clr-primary-1);
}

.projects-page-center {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 3rem 1rem;
}
