* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body
{
  /* cursor: none; */
  overflow-x: hidden;
  font-family: "Nunito";
  background: linear-gradient(135deg, #3498db, #2ecc71);
  color: #fff;
}
/* scroll thumb and bar   */
::-webkit-scrollbar {
  width: 0.6rem;
  background: #2626269f;
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background: #ffffffab;
  border-radius: 0.5rem;
}
#cursor {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  position: fixed;
  z-index: 99;
  background-color: #3498db;
  filter: blur(10px);

  /* transition: all linear 0.01s; */
}

#cursor-blur {
  opacity: 0.2;
  height: 400px;
  width: 400px;
  border-radius: 50%;
  position: fixed;
  z-index: 9;
  background-color: #00ff98;
  filter: blur(50px);
}
#uparrow{
  font-size: 18px;
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 50px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9;
  /* transition: transform 0.5s, background-color 0.5s; */
  transition: all 0.5s;
  animation: bounce 0.4s infinite alternate;
}
#uparrow:hover{
  background-color: #333;
  color: #fff;
  transform: scale(1.1);
}
@keyframes bounce{
  0%{
    transform: translateY(0px);
  }
  100%{
    transform: translateY(-10px);
  }
}

#header {
  width: 100%;
  height: 100vh;
  background-image: url(portfolio.jpg);
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  z-index: 99;
  /* border-bottom: 10px solid #fff; */
}

.container {
  padding: 10px 10%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s ease-in-out;
  background-color: transparent;
  border: 2px solid #fff8;
  border-radius: 15px;
  width: 80vw;
  position: fixed;
  backdrop-filter: blur(10px);
  z-index: 99;
}
.scrolled {
  background-color: transparent;
  border: 2px solid #fff8;
  border-radius: 15px;
  /* width: 80vw; */
  position: fixed;
  backdrop-filter: blur(10px);
  z-index: 99;
}

nav img {
  width: 140px;
  cursor: pointer;
  margin-left: 40px;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin-block: 10px;
  margin-right: 40px;
}

nav ul li a {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
  
}

nav ul li a:hover::after {
  width: 100%;
}

.header-text {
  margin-top: 20%;
  font-size: 30px;
}

.header-text p {
  font-size: 48px;
  margin-bottom: 40px;
}
.type-writer {
  display: flex;
}

#typewriter {
  white-space: nowrap;
  height: 100px;
}
.typed-cursor {
  height: 50px;
  margin-top: 10px;
  margin-left: 15px;
  border-radius: 10px;
  background: linear-gradient(to top, #3498db, #00ff98);
  color: transparent;
}
.header-text h1 {
  font-size: 60px;
}
.header-text h1 span {
  background: linear-gradient(to right, #3498db, #00ff98);
  -webkit-background-clip: text; /* WebKit/Blink browsers */
  background-clip: text;
  color: transparent;
  font-family: "Caveat";
}

#about {
  padding: 120px 0;
  color: #fff8;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-col-1 {
  flex-basis: 35%;
}

.about-col-1 img {
  width: 100%;
  border-radius: 10px;
}

.about-col-2 {
  flex-basis: 60%;
}

.about-col-2 .subtitle {
  font-size: 60px;
  font-weight: 600;
  color: #fff;
}

.tab-titles {
  display: flex;
  margin: 20px 0 40px;
}

.tab-links {
  margin-right: 50px;
  font-size: 20px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  position: relative;
}

.tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #fff8, #3498db);
  border-radius: 50px;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: all 0.5s;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents ul li {
  list-style: none;
  margin: 10px 0;
}

.tab-contents ul li span {
  background: linear-gradient(135deg, #00ff98, #fff, #3498db);
  -webkit-background-clip: text; /* WebKit/Blink browsers */
  background-clip: text;
  color: transparent;
  font-size: 16px;
  font-weight: 800;
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
}

#socials a {
  text-decoration: none;
  color: #fff;
  margin-left: 15px;
  height: 15px;
}

#services {
  padding: 100px 0;
}

#services h1 {
  font-size: 50px;
  /* text-align: center; */
}

.services-list {
  cursor: default;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.services-list div {
  background-color: transparent;
  border: 2px solid #fff8;
  padding: 40px;
  font-size: 13px;
  font-weight: 300;
  border-radius: 10px;
  transition: background-color 0.5s, transform 0.5s;
}

.services-list div i {
  font-weight: 900;
  font-size: 40px;
  margin-bottom: 30px;
}

.services-list div h2 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 15px;
}

.services-list div a {
  text-decoration: none;
  color: #080808;
  font-size: 12px;
  font-weight: 800;
  padding: 10px;
  border-radius: 50px;
  background-color: #fff;
  margin-top: 20px;
  display: inline-block;
  transition: background-color 0.5s, transform 0.5s, 0.5s, border 0.5s;
  box-shadow: 0 1px 10px 1px #ccc;
}

.services-list div:hover a {
  background: transparent;
  border: 2px solid #fff8;
  color: #fff;
  box-shadow: 1px 1px 10px #fff;
}

.services-list div a:hover {
  scale: 0.85;
}

.services-list div p {
  line-height: 20px;
  font-size: 14px;
  font-weight: 100;
}

.services-list div:hover {
  transition: 0.5s;
  box-shadow: 1px 0 15px 1px #fff;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  transform: translateY(-10px);
}

#portfolio {
  padding: 100px 0;
}

#portfolio h1 {
  font-size: 50px;
  /* text-align: center; */
}

.work-list {
  cursor: default;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 40px; 
  margin-top: 50px;
}

.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
  background: tr;
  border: 2px solid #fff8;
  /* width: 25vw; */
  height: 77vh;
  transition: scale 0.5s;
}

.work:hover {
  scale: 1.05;
  box-shadow: 1px 0 10px 0 #828282;
}

.work img {
  scale: 1.02;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s, opacity 0.5s;
  opacity: 0;
}

.layer {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 10px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

.layer h3 {
  font-family: sans-serif;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 35px;
  background: linear-gradient(135deg, #00ff98, #3498db);
  -webkit-background-clip: text;
  background-clip: text;
  color: #fff8;
  width: 100%;
}

.layer h3 span {
  font-size: 16px;
  margin-bottom: 35px;
  color: linear-gradient(135deg, #3498db, #2ecc71);
}

.layer p {
  /* padding: 5px; */
  font-size: 16px;
  line-height: 30px;
  font-weight: 100;
}

.layer .flex {
  display: flex;
}

.layer a {
  text-decoration: none;
  margin-top: 45px;
  font-size: 20px;
  line-height: 60px;
  background-color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  text-align: center;
  margin-inline: 5px;
  transition: transform 0.5s, box-shadow 0.5s;
}
.layer a i {
  background: linear-gradient(to right, #3498db, #2ecc71);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* .work:hover .layer {
    color: #333;
} */

.layer a:hover {
  transform: scale(1.09);
  box-shadow: 0 0 10px 0 #fff;
}

.work:hover img {
  transform: scale(1.07);
  opacity: 0.4;
}

.work:hover .layer {
  height: 100%;
}

.btn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid #fff;
  padding: 14px;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  transition:all 0.3s ease, scale 0.3s;
  background: linear-gradient(to right, #3498db, #2ecc71);
  cursor: pointer;
}

.btn:hover {
  scale: 1.05;
  background: linear-gradient(to right, #2ecc71, #3498db);
}

#contact {
  padding-top: 40px;
}

.contact-left {
  flex-basis: 35%;
}

.contact-right {
  flex-basis: 60%;
}

.contact-left h1 {
  font-size: 48px;
  /* text-align: center; */
}

.contact-left p {
  margin-top: 30px;
}

.contact-left p i {
  background: linear-gradient(to right, #3498db, #00ff98);
  -webkit-background-clip: text; /* WebKit/Blink browsers */
  background-clip: text;
  color: transparent;
  margin-right: 15px;
  font-size: 25px;
}

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  color: #fff8;
  display: inline-block;
  transition: transform 0.5s,color 0.5s;
}

.social-icons a:hover {
  /* background: linear-gradient(to right, #3498db, #00ff98); */
  color: #333;
  /* -webkit-background-clip: text; /* WebKit/Blink browsers */
  /* background-clip: text;
  color: transparent;  */
  transform: translateY(-5px);
}

.btn.btn2 {
  display: inline-block;
  border: 2px solid #fff8;
  border-radius: 50px;
}

.contact-right form {
  width: 100%;
}
form input:nth-child(1) {
  text-transform: capitalize;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  border: 2px solid #fff8;
  padding: 15px;
  margin: 15px 0;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
  resize: none;
}

form input::placeholder {
  color: #fff8;
}
form textarea::placeholder {
  color: #fff8;
}

form .btn2 {
  padding: 14px 60px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
}

.copyright {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background: #262626;
  margin-top: 20px;
  font-weight: 300;
}

nav .fas {
  display: none;
}
#starbucks {
  font-size: 12px;
  color: #fff;
}
@media only screen and (max-width: 1200px) {
  html{
    overflow-x: hidden;
  }
  .work-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .layer {
    padding: 0 5px;
  }
}
@media only screen and (max-width: 872px) {
  nav ul li {
    margin-right: 10px;
  }
  .layer {
    padding: 0 5px;
  }
}
/* ++++++++++++++++ Css for small screens +++++++++++++++++++++++++ */
@media only screen and (max-width: 780px) {
  .type-writer {
    visibility: hidden;
  }
  #typewriter {
    visibility: visible;
    white-space: wrap;
    height: 100px;
    width: 300px;
  }
  .header-text p {
    font-size: 40px;
    position: absolute;
    top: 47%;
  }
  .header-text h1 {
    font-size: 45px;
    margin-top: 180px;
  }
  nav .fas {
    display: block;
    font-size: 25px;
    cursor: pointer;
    padding-right: 20px;
  }
  nav ul {
    background: linear-gradient(to right, #3498db, #00ff98);
    position: fixed;
    top: 0;
    right: -1000px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 9;
    transition: right 0.5s;
    border-top-left-radius: 15px;
  }
  nav ul li {
    display: block;
    margin: 25px;
  }
  nav ul .fas {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }
  .subtitle {
    font-size: 40px;
  }
  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }
  .about-col-1 {
    margin-bottom: 30px;
  }
  .about-col-2 {
    font-size: 17px;
  }
  .tab-links {
    font-size: 16px;
    margin-right: 20px;
  }
  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }
  .copyright {
    font-size: 10px;
  }
  .work-list {
    cursor: default;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
    margin-inline: 10px;
  }

  .work {
    /* height: 50vh; */
    background: #fff8;
  }
  .work img {
    display: none;
    transition: transform 0.3s;
  }
  .work:hover img {
    display: block;
  }

  .layer {
    padding: 0 5px;
  }
}

@media only screen and (max-width: 600px) {
  body {
    font-family: sans-serif;
  }

  .header-text {
    position: absolute;
    top: 200px;
    /* margin-top: 100%; */
    left: 30px;
    font-size: 38px;
  }
  .header-text p {
    /* width: 100vw; */
    top: 1%;
    position: absolute;
  }
  .header-text h1 {
    /* margin-bottom: 20px; */
    margin-top: 70px;
    font-size: 30px;
  }
  nav img {
    margin-left: 0;
  }
  nav .fas {
    display: block;
    font-size: 25px;
    cursor: pointer;
  }
  nav ul {
    background: linear-gradient(to right, #3498db, #00ff98);
    position: fixed;
    top: 0;
    right: -2000px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 9;
    transition: right 0.5s;
  }
  nav ul li {
    display: block;
    margin: 25px;
  }
  nav ul .fas {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }
  .subtitle {
    font-size: 40px;
  }
  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }
  .about-col-1 {
    margin-bottom: 30px;
  }
  .about-col-2 {
    font-size: 17px;
  }
  .tab-links {
    font-size: 16px;
    margin-right: 20px;
  }
  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }
  .copyright {
    font-size: px;
  }
  .layer {
    padding: 0 5px;
  }
}

/* @media only screen and (max-width: 500px) {
  .layer {
    padding: 0 5px;
  }
} */
@media only screen and (max-width: 342px) {
  nav {
    width: 100vw;
    margin-inline: 2px;
  }
  .container {
    padding: 2px;
  }
  nav {
    padding-right: 20px;
  }
  nav img {
    margin: 2px 0px 0px -8px;
    width: 100px;
  }
  /* .layer a{
        margin-top: 15px;
    } */
  .layer {
    padding: 0 5px;
  }
}

@media only screen and (max-width: 300px) {
  .work-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin: 0;
  }
  .layer {
    padding: 0 5px;
  }
  .container {
    padding: 2px;
  }
  .about-col-2 {
    margin-inline: 10px;
  }
}

#msg {
  width: fit-content;
  color: green;
  font-weight: 600;
  display: inline-block;
  font-size: 22px;
  margin-left: -10px;
  background-color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  display: none;
}
#name {
  background: linear-gradient(to right, #3498db, #00ff98);
  -webkit-background-clip: text; /* WebKit/Blink browsers */
  background-clip: text;
  color: transparent;
}
