/* @import url("https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap"); */

:root {
  /*
  dark mode colours
   --bg: #121212; 
  --bg-sec:#222222;
  --txt-color: #efeaea; */
  
  --bg: #fff;
  --bg-sec:#ececec;
  --txt-color: rgb(0, 0, 0);

  --white: #efeaea;
  --maincolor: #8E44BC;

}

::-moz-selection {
  /* Code for Firefox */
  color: var(--maincolor);
  background-color: var(--white);
}

::selection {
  color: var(--maincolor);
  background-color: var(--white);
}

body {
  background-color: var(--bg);
  font-family: "Josefin Sans", Arial;
  color: var(--txt-color);
  overflow: scroll;
  /*background-image: url('../res/bg.svg');*/
  background-repeat: no-repeat;
}

#submit{
  border: 1px solid var(--maincolor);
  color: var(--maincolor);
}
#submit:hover{
  background-color: var(--maincolor);
  color: white;
}
.txt-color{
  color: var(--txt-color);
}

.maincolor {
  /* Theme color */
  color: var(--maincolor);
  transition: 1.5s;
}

.input-bg{
  background-color: var(--bg-sec);
  color: var(--txt-color);
}
input:focus,textarea:focus{
  background-color: var(--bg-sec) !important;
  color: var(--txt-color) !important;
}
header {
  margin: 0;
  min-height: 100%;
}

.white {
  /* Font color */
  color: white;
}

.p1 {
  /* process Bar */
  background-color: var(--maincolor);
  color: white;
  text-align: right;
  padding-right: 10px;
  transition: 1.5s;
}

/* for menu select */
.hover {
  display: inline-block;
  position: relative;
  color: var(--maincolor);
  transition: 1.5s;
  cursor: pointer;
}
.hover:after {
  text-decoration: underline;
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--maincolor);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

span a {
  text-decoration: none;
  all: unset;
}
span a:hover {
  all: unset;
}
span {
  /* font-size: 32px; */
  font-size: 2em;
}
/* Menu close */

.logo {
  width: 100%;
  height: 90%;
  border-radius: 20%;
  object-fit: cover;
  object-position: 25% 25%;

	
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}


/* style for social midia icons */
.svg-icon{
margin: 4px;
width: 30px;
height: 30px;
}
.svg-icon:hover {
  opacity: 0.5;
}
a:hover{
  opacity: 0.5;
  color: var(--maincolor);
}
ul {
  list-style-type: none;
}
ul li {
  float: left;
}
ul li a {
  all: unset;
}
ul li a i {
  font-size: 1.3rem;
  margin-right: 15px;
  cursor: pointer;
}
ul li a i:hover {
  color: var(--maincolor);
  opacity: 0.5;
}

/* style for color picker card */
.crd {
  position: fixed;
  right: 40px;
  bottom: 40px;
  background-color: var(--bg-sec);
  padding: 8px;
  width: 170px;
  /* height: fit-content; */
  color: white;
  /* box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; */
  border: 1px solid var(--maincolor);
  border-radius: 5px;
}

/* style for gear button */
.bbt {
  position: fixed;
  right: 20px;
  bottom: 20px;
  border-radius: 50%;
  background-color: var(--maincolor);
  transition: 1.5s;
  /* border: 1px solid var(--maincolor); */
  width: 50px;
  height: 50px;
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-animation: spin 2s linear infinite; /* roted btn */
  animation: spin 2s linear infinite; /* animate btn */
  /* box-shadow: rgba(0, 0, 0, 0.24) 0px 5px 15px; */
}


/* Animating the gear button rored */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* animation close */
/* card project */
.project {
  padding: 8px;
  height: auto;
  width: 100%;
  background-color: var(--bg-sec);
}
.project:hover {
  transition: 1.5s;
  outline: var(--maincolor) solid 1px;
}
/*Typing ......... */

.cursor {
  display: inline-block;
  background-color: #ccc;
  margin-left: 0.1rem;
  width: 4px;
  height: 3rem;
  animation: blink 0.8s infinite;
}
.co-type p span .cursor .typing {
  animation: none;
}
@keyframes blink {
  0% {
    background-color: #ccc;
  }
  49% {
    background-color: #ccc;
  }
  50% {
    background-color: transparent;
  }
  99% {
    background-color: transparent;
  }
  100% {
    background-color: #ccc;
  }
}

.top-progress-container {
  width: 100%;
  height: 4px;
  position: fixed;
  top: 0;
}

.top-progress-bar {
  height: 4px;
  background: var(--maincolor);
  width: 0%;
}

@media only screen and (max-width: 400px) {
  .a-tag{
    font-size: 0.8rem;
    margin-right: 5px;
    cursor: pointer;
  }
}

/* custom css */
.big-title{
  font-size: 4rem;
}
.typed-text{
  font-size: 1.2em;
}
.img-co{
  height: 300px; width: 300px;
}

#Email{
  border: 0; 
  box-shadow: none
}
#Message{
  border: 0; 
  box-shadow: none;
}
#checker{
  font-size: 1rem;
}

#toggle-card{
  transition: height .10s ease;
  overflow: hidden;
}
#toggle-card:not(.active) {
  display: none;
}

.card-title {
  font-size: 1.25rem;
}

.card:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
