@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap");

:root {
  --violet: #5320e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  font-family: "Roboto", sans-serif;
}

*::selection {
  background: var(--violet);
  color: #fff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  width: 0.7rem;
}
html::-webkit-scrollbar-track {
  background: rgb(175, 175, 175);
}
html::-webkit-scrollbar-thumb {
  background: #ff7300;
}

body {
  background: #f9f9f9;
}

section {
  min-height: 100vh;
  padding: 0 7%;
}
.heading {
  font-size: 3.5rem;
  color: rgb(48, 48, 48);
  font-weight: 800;
  font-family: "Nunito", sans-serif;
}
.heading span {
  color: rgb(115, 3, 167);
}

header {
  width: 100%;
  background: rgb(62, 4, 155);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.8rem 7%;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
header .logo {
  font-size: 2.5rem;
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: 0.2s;
}
header .logo i {
  color: #ffd900;
}
header .logo:hover {
  color: #ffd900;
  transform: scale(1.1);
}
header .navbar ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}
header .navbar ul li {
  margin-left: 2.5rem;
}
header .navbar ul li a {
  text-decoration: none;
  font-size: 2rem;
  color: rgb(255, 255, 255);
}
header .navbar ul li a.active, header .navbar ul li a:hover {
  color: #ffd900;
  border-bottom: 0.2rem solid #ffd900;
  padding: 0.7rem 0;
}
#menu {
  font-size: 3rem;
  color: #ffd900;
  cursor: pointer;
  display: none;
}
header a.conbtn {
  background: #fff;
  border-radius: 1rem;
  padding: 6px 10px;
  font-size: 1.6rem;
  margin-left: 2rem;
  border-radius: 4px;
  font-weight: 700;
  color: rgb(62, 4, 155);
  text-decoration: none;
  margin-top: 0.3rem;
}
header a.conbtn:hover {
  color: rgb(62, 4, 155);
  background: rgb(255, 230, 0);
}

/* hero */
.home {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
  background: url("../site-img/hero-bg.png") no-repeat;
  background-size: cover;
  scroll-behavior: smooth;
  background-position: center;
}
.home .content {
  flex: 1 1 40rem;
}
.home .image {
  flex: 1 1 40rem;
}
.home .image img {
  width: 90%;
  padding: 1rem;
  animation: float 4s linear infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0rem);
  }
  50% {
    transform: translateY(3rem);
  }
}
.home .content h3 {
  font-size: 5rem;
  font-weight: 800;
  color: #012970;
  font-family: "Nunito", sans-serif;
}
.home .btn {
  font-family: "Nunito", sans-serif;
  line-height: 0;
  padding: 1.7rem 3rem;
  border-radius: 4em;
  transition: 0.5s;
  color: #fff;
  background: #7115eb;
  box-shadow: 0px 5px 15px rgba(109, 39, 238, 0.6);
}
.home .btn span {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.1rem;
}
.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.home .btn:hover i {
  transform: translateX(5px);
}

/* text anim */
#container {
  text-align: left;
  position: relative;
}
#text {
  display: inline-block;
  vertical-align: middle;
  color: orange;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 2.5rem;
  padding: 1rem 0;
  font-family: "Nunito", sans-serif;
  margin-bottom: 2rem;
}

#cursor {
  display: inline-block;
  vertical-align: center;
  width: 3px;
  height: 3rem;
  background-color: orange;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from,
  to {
    background-color: transparent;
  }
  50% {
    background-color: orange;
  }
}
/* hero end */

/* project section starts */
.project {
  background: #e5ecfb;
}
.project .heading {
  text-align: center;
  padding: 2rem;
  font-weight: 600;
}
.project .box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}






/* project section ends */

/* Footer  */
.site-footer {
  background-color: #08142c;
  padding: 30px 0 10px;
  font-size: 15px;
  line-height: 20px;
  color: rgb(209, 203, 203);
}
.site-footer .social-icons {
  text-align: right;
}
.site-footer .social-icons a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin-left: 6px;
  margin-right: 0;
  border-radius: 100%;
  background-color: #fdfdfd;
}
.copyright-text {
  margin-top: 10px;
  font-family: "Nunito", sans-serif;
}
@media (max-width: 991px) {
  .site-footer [class^="col-"] {
    margin-bottom: 30px;
  }
}
@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 0;
  }
  .site-footer .copyright-text,
  .site-footer .social-icons {
    text-align: center;
  }
}
.social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}
.social-icons li.title {
  margin-right: 15px;
  text-transform: uppercase;
  color: #171718;
  font-weight: 700;
  font-size: 18px;
}
.social-icons a {
  background-color: #eceeef;
  color: #1b1b1b;
  font-size: 16px;
  display: inline-block;
  line-height: 44px;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
.social-icons a:active, .social-icons a:focus, .social-icons a:hover {
  color: #fff;
  background-color: #29aafe;
}
.social-icons.size-sm a {
  line-height: 34px;
  height: 34px;
  width: 34px;
  font-size: 14px;
}
.social-icons a.github:hover {
  background-color: #141414;
}
.social-icons a.twitter:hover {
  background-color: #00aced;
}
.social-icons a.linkedin:hover {
  background-color: #007bb6;
}
.social-icons a.youtube:hover {
  background-color: #e60606;
}
.social-icons a.instagram:hover {
  background-color: #b8046d;
}
@media (max-width: 767px) {
  .social-icons li.title {
    display: block;
    margin-right: 0;
    font-weight: 600;
  }
}
@media (max-width: 450px) {
  .site-footer p span {
    left: 50%;
    top: 120%;
  }
}
/* Footer  */

/* footer made with love */
.site-footer span {
  color: rgb(177, 174, 174);
  font-size: 1.3rem;
  display: block;
  position: absolute;
  left: 80%;
  top: 35%;
  transform: translateX(-50%) translateY(-50%);
  text-align: center;
  font-family: "Nunito", sans-serif;
}
.site-footer span a {
  text-decoration: none;
}
.site-footer .fa {
  color: #e9a106;
  margin: 0 0.3rem;
  font-size: 1.1rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
/* footer made with love */

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  transition: 1.3s ease-in;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.3);
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */

/* ================================================================================================================  */

/* Project card styling */
.project-card {
  padding: 0.5rem;
  flex: 1 1 calc(33.333% - 20px); /* Ensures 3 cards per row */
  border-radius: 1.7rem;
  border-color: rgb(163, 163, 163);
  text-align: center;
  background: rgb(254, 251, 251);
  transition: transform 0.3s ease-in-out;
  opacity: 1;
  transform: scale(1);
}

/* .project-card:hover {
  transform: translateY(-5px);
} */

.project-image {
  width: 100%;
  height: auto;
  position: relative; /* Important for overlay positioning */
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}

.project-card h4{
  color: rgb(57, 57, 57);
  font-size: 1.8em;
}

.project-card p {
  color: #555;
  font-size: 1.5em;
  padding: 10px 0;
  margin: 0;
}

.projects .project-card .project-image .social {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(104, 98, 108, 0.3);
  width: 100%;
  height: 98%;
  top: 0;
  border-radius: 15px;
  gap: 1.5rem;
  transition: .6s ease-in-out;
  transform: scale(0);
}

/* Social icon styles */
.projects .project-card .project-image .social a {
  font-size: 2rem; /* Increase icon size */
  width: 50px; /* Set width for circular shape */
  height: 50px; /* Set height for circular shape */
  border-radius: 50%; /* Ensure the icons are circular */
  background-color: black; /* Default background color */
  color: white; /* Default icon color */
  padding: 0.5rem; /* Adjust padding for spacing */
  margin: 5px;
  text-decoration: none;
  display: flex;
  justify-content: center; /* Center the icon */
  align-items: center; /* Center the icon */
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

/* Hover state for icons */
.projects .project-card .project-image .social a:hover {
  color: black; /* Inverted icon color */
  background-color: white; /* Inverted background color */
}  

/* Scale effect for social icons when hovering over the project image */
.projects .project-card .project-image:hover .social {
  transform: scale(1);
}

/* Media Queries */

/* Large screens (Laptops and Desktops) */
@media screen and (min-width: 1024px) {
  .project-card {
      flex: 1 1 calc(33.333% - 20px); /* 3 cards per row */
      max-width: calc(33.333% - 20px);
  }
}

/* Medium screens (Tablets in landscape mode) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .project-card {
      flex: 1 1 calc(50% - 20px); /* 2 cards per row */
      max-width: calc(50% - 20px);
  }
}

/* Small screens (Tablets in portrait mode) */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .project-card {
      flex: 1 1 100%; /* 1 card per row */
      max-width: 100%;
  }
  /* Adjust button group layout to show 2 buttons per row without changing button height */
  .work .button-group {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 2 buttons per row */
      gap: 1rem; /* Space between buttons */
  }

  /* Ensure buttons maintain their original height */
  .work .button-group .btn {
      height: auto; /* Ensure no height increase */
  }
}

/* Extra small screens (Phones) */
@media screen and (max-width: 479px) {
  .project-card {
      flex: 1 1 100%; /* 1 card per row */
      max-width: 100%;
  }
  /* Adjust button group layout to show 2 buttons per row without changing button height */
  .work .button-group {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 2 buttons per row */
      gap: 1rem; /* Space between buttons */
  }

  /* Ensure buttons maintain their original height */
  .work .button-group .btn {
      height: auto; /* Ensure no height increase */
  }
}
/* Small Screens (Phones/Tablets) */
@media screen and (max-width: 767px) {
  /* Adjust the button group to show 2 buttons per row */
  .work .button-group {
      display: grid;
      grid-template-columns: repeat(2, 1fr);  /* 2 buttons per row */
      gap: 1rem;  /* Space between buttons */
  }
  /* Keep button size consistent */
  .work .button-group .btn {
      min-width: unset;  /* Remove any fixed width */
      width: 100%;  /* Buttons take up full width of each grid cell */
  }
}
