/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
}

/* ========CSS VAR() FOR MODES ======= */
:root {
  --primary-color: whitesmoke;
  --secondary-color: hsl(0, 0%, 63%);
  --third-color: rgb(97, 97, 97);
}

.mode {
  --primary-color: black; /* Change the primary color to black */
  --secondary-color: whitesmoke; /* Change the secondary color to whitesmoke */
  --third-color: rgb(207, 207, 207);
}

/* ========== MAIN GRID ========== */
.body {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
  z-index: 1;
}

/* ========== PRELOADER ========== */
#preloader {
  background: black url(/assets/prelaoder.gif) no-repeat center center;
  background-size: 8%;
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 100;
}

/* ========== BACKGROUND VIDEO ========== */
video {
  width: 100%;
  position: fixed;
  z-index: -1;
}

/* ========== ICON SIDEBAR ========== */
.icons {
  position: fixed;
  margin-top: 3%;
  max-width: 50px;
  left: 10px;
}

.ist {
  backdrop-filter: blur(3px);
  backface-visibility: visible;
  margin-top: 3%;
  border: 1px groove hsl(0, 1%, 28%);
}

#icon {
  font-size: 22px;
  color: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

#icon:hover {
  color: purple;
}

#icon_s {
  border-radius: 50px;
  border: 1px groove hsl(0, 1%, 28%);
  padding: 10px;
}

.iconbox_2 {
  width: 64px;
  height: 64px;
}

.iconbox_3 {
  width: fit-content;
}

/* ========== IMAGE SECTION ========== */
.image_section {
  left: 85px;
  width: 320px;
  position: fixed;
  margin-top: 3%;
  border-radius: 20px 0px 20px 20px;
}

.image_section .name-section {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.carasouel {
  height: 200px;
  border-radius: 20px 0 0 0;
  background-image: url(/assets/Frontend.png);
  background-size: cover;
  background-position: center;
  transition: 5s;
  animation: fade 10s infinite alternate-reverse ease-in-out;
}

@keyframes fade {
  0% {
    background-image: url(/assets/backend.png);
  }
  50% {
    background-image: url(/assets/seo.png);
  }
  100% {
    background-image: url(/assets/Frontend.png);
  }
}

.img {
  width: 117px;
  height: 122px;
  transform: translate(100px, -60px);
  border-radius: 20px;
  border: 3px solid purple;
  box-shadow: 0px 0px 18px 0px purple;
}

#profile {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border: 3px solid whitesmoke;
}

.name {
  font-size: 34px;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

#profession {
  font-size: 21px;
  color: purple;
  margin-top: 10px;
  text-align: center;
  height: 30px;
}

/* ========== DOWNLOAD / CONTACT LINKS ========== */
.download {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 50px;
  border-top: 1px solid var(--primary-color);
}

.download a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 17px;
}

.download a:hover {
  color: rgb(146, 56, 146);
  text-shadow: 2px 2px 30px;
}

/* ========== MAIN SCROLL AREA ========== */
/* .main_scroll { */
/* Optional background:
  background-image: linear-gradient(180deg, rgba(253,102,220,0.603), rgba(131,73,158,0.658)); */
/* } */
.layout {
  right: 10px;
  width: calc(100% - 430px); /* adjust based on left section */
  position: absolute;
  color: var(--primary-color);
  border-radius: 0 20px 0 0;
}

.color-1 {
  color: palevioletred;
}

.color-2 {
  color: plum;
}

.color-3 {
  color: purple;
}

.main_scroll h2 {
  margin-top: 50px;
  margin-left: 20px;
}

.main_scroll h2 span {
  color: rgb(146, 56, 146);
  text-shadow: 2px 2px 30px;
}

/* ========== ABOUT SECTION ========== */
.about {
  margin-top: 20px;
  margin-left: 20px;
}

.about h1 {
  font-size: 33px;
  letter-spacing: 2px;
  word-spacing: 1px;
  line-height: 42px;
}

.about h1 #spaned {
  background-color: var(--primary-color);
  color: rgb(202, 129, 202);
  text-shadow: 2px 2px 20px;
  padding: 7px;
  font-size: 34px;
  display: inline;
  width: fit-content;
  border-radius: 20px;
  transition: 5s;
}

.about p {
  font-size: 18px;
  margin: 20px 0;
  width: 700px;
  word-spacing: 3px;
}

/* ========== VIEW BUTTON ========== */
#btn {
  width: 180px;
  height: 40px;
  margin-top: 20px;
  background: rgb(160, 14, 160);
  color: whitesmoke;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 5px 5px 30px rgb(167, 58, 167);
}

#btn:hover {
  box-shadow: 3px 3px 40px rgb(192, 141, 192);
}

/* ========== STATS AREA ========== */
.count {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  width: 800px;
  margin: 50px 0 30px;
}

.stat-card {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: purple;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
}

/* ========== CODE SNIPPET BLOCK ========== */
.code-snippet {
  background: var(--primary-color);
  color: purple;
  padding: 20px;
  width: 430px;
  font-size: 14px;
  line-height: 20px;
  border-radius: 10px;
  font-family: "Courier New", monospace;
  animation: typing 2s infinite;
}

@keyframes typing {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
/* =========== MY SKILLS ========== */
.skills {
  top: 90%;
}

.heading {
  margin-top: 20px;
  margin-left: 20px;
}

.tech {
  margin-left: 20px;
  width: 90%;
}

.tech-item {
  width: 45%;
  border: 1px groove hsl(0, 1%, 28%);
  margin-top: 20px;
  border-radius: 20px;
  margin-left: 40px;
}

.tech-list {
  padding: 20px;
  margin-top: 10px;
}

.progress {
  width: 90%;
  height: 8px;
  background: var(--third-color);
  border-radius: 10px;
  margin-top: 10px;
  border: 1px groove hsl(0, 3%, 80%);
}

.progress-count {
  margin-left: 145px;
  border: 1px groove hsl(0, 3%, 80%);
  padding: 5px;
  border-radius: 10px;
  font-size: 12px;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 3.3s ease-in;
  border-radius: 10px;
  width: 0%;
  /* border: 1px solid var(--primary-color); */
}

.tech-icons {
  width: 35px;
}

.flex {
  display: flex;
  align-items: center;
}

/* ==========TOOLS =========== */
.stack {
  display: grid;
  grid-template-columns: auto auto auto;
  padding: 20px;
  gap: 20px;
}

.tool-icons {
  width: 40px;
}

.tool-1 {
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  text-align: center;
  padding: 20px;
  width: 200px;
  height: 200px;
}

/* ==========TOOLS ANIMATIONS=========== */

.t-1.show {
  animation: slideDown 1s ease-out forwards;
}

@keyframes slideDown {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.t-2.show {
  animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.t-3.show {
  animation: slideRight 1s ease-out forwards;
}

@keyframes slideRight {
  0% {
    transform: translateX(-30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.t-4.show {
  animation: slideLeft 1s ease-out forwards;
}

@keyframes slideLeft {
  0% {
    transform: translateX(30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.tool-1:hover {
  border: 2px solid rgb(160, 14, 160);
  box-shadow: 3px 3px 20px rgb(192, 141, 192);
}

.tool-1 img,
p {
  margin-top: 20px;
}

/* ==========SERVICES =========== */
.services {
  top: 240%;
}

.carasouel-cards {
  display: flex;
  gap: 20px;
  width: 90%;
  height: 500px;
  padding: 10px;
  position: relative;
  margin-top: 20px;
}

/* ========= CARDS ========== */
.card {
  width: 100px;
  margin: 5px;
  height: 95%;
  border-radius: 20px;
  cursor: pointer;
  transition: width 0.5s ease, bottom 0.8s ease-in-out;
  padding: 10px;
  box-shadow: 0 0 10px var(--primary-color);
  overflow: hidden;
  z-index: 0;
}

.card::before {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgb(121, 23, 121) 0%,
    rgb(161, 113, 161) 50%,
    rgb(151, 54, 151) 100%
  );
  z-index: -1;
  transition: bottom 0.5s ease;
  border-radius: 20px;
}

.card.active:hover::before {
  bottom: 0;
}

.card.active {
  width: 500px;
}

.card.active .heading {
  animation: slideDown 1s ease-out forwards;
}

.bx-radio-circle {
  font-size: 50px;
}

/* ==========PRE TAGS =========== */

.ser-detail {
  margin-top: 10px;
  color: purple;
  line-height: 25px;
}

.ser-detail:hover {
  color: var(--primary-color);
}

/* ==========PROJECTS =========== */
.projects {
  top: 330%;
}

.clones {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.vrtcl {
  writing-mode: vertical-rl;
  letter-spacing: 10px;
  text-orientation: upright;
  font-size: 28px;
}

.project-img {
  height: 200px;
  width: 100%;
  object-fit: contain;
}

.youtube,
.spotify {
  width: 100%;
  border: 1px groove hsl(0, 1%, 28%);
  border-radius: 20px;
  padding: 10px;
}

.youtube p,
.spotify p {
  line-height: 30px;
  font-size: 14px;
}

.tech-include {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.tech-include span {
  font-size: 14px;
  background-color: rgb(151, 54, 151);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px palevioletred;
}

.youtube:hover,
.spotify:hover {
  box-shadow: 0 0 10px plum;
  border: 2px solid purple;
}

.spotify {
  margin-right: 10px;
}

/* =========== RESPONSIVE ============ */
@media (max-width: 768px) {
  .layout {
    width: 100%;
    position: relative;
    right: 0;
  }

  .image_section {
    position: relative;
    width: 100%;
    left: 0;
  }

  .count {
    grid-template-columns: 1fr;
  }

  .about p {
    width: 100%;
  }
}
