/* Typography */
:root {
  --primaryColor: #0296e9;
  --backgroundColor: #0d0d0d;
  --sectionColor: #1f1f1fb7;
  --tertiaryColor: #fffcfc;
  --secondaryColor: #676767;
  --contactusBackground: #222222;
}

html {
  font-family: "Reem Kufi", sans-serif, "Roboto", sans-serif, "poppins",
    sans-serif;
  color: var(--tertiaryColor);
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
  /* background-color: var(--backgroundColor); */
}
textarea,
input[type="email"],
input[type="tel"] {
  border-radius: 15px;
  padding: 20px 10px;
  background-color: var(--secondaryColor);
  margin-top: 0.5rem;
  border: none;
  color: var(--tertiaryColor);
}
textarea::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: #ebeaea;
}
textarea:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none !important;
  border: 2px solid var(--primaryColor);
}
body {
  background-color: var(--backgroundColor);
  background-image: url("../bgimage.png");
  background-position: top;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}
button {
  padding: 20px 40px;
  border-radius: 15px;
  margin-top: 1.5rem;
  background-color: var(--primaryColor);
  border: none;
  color: var(--tertiaryColor);
}
input {
  padding: 20px 10px;
  border-radius: 15px;
  background-color: var(--secondaryColor);
  outline-color: none;
  margin-top: 0.5rem;
  border: none;
  color: var(--tertiaryColor);
}
footer {
  display: flex;
  padding: 1.5rem;
  gap: 1.5rem;
  background-color: var(--sectionColor);
  align-items: flex-start;
}
footer .projectList {
  gap: 40px;
}
a {
  color: var(--primaryColor);
}
[id] {
  scroll-margin-top: 95px;
}
.pageHeader {
  position: sticky;
  top: 0;
  z-index: 9999999;
}
.headerContainer {
  display: flex;
  /* justify-content: space-around; */
  align-items: center;
  padding: 15px 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: var(--sectionColor);
}
.logo {
  background-color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  margin: auto;
}
.logoImage {
  width: 48px;
  height: 48px;
}
.navDesktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.navDesktop > ul {
  display: flex;
  gap: 1.5rem;
}
.pseudoButton {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: var(--primaryColor);
  border: none;
  color: var(--tertiaryColor);
  text-decoration: none;
}

.ctaExploreButton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 14px 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primaryColor), #4f46e5);
  /* border: 1px solid rgba(255,255,255,0.2); */
  box-shadow: 0 10px 25px rgba(2,150,233,0.25);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: ctaExploreIdle 5s ease-in-out infinite;
}
.ctaExploreButton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  transform: translateX(-120%);
  animation: ctaExploreSweep 8s linear infinite;
  pointer-events: none;
  z-index: -1;
}
.ctaExploreButton::after {
  content: "↓";
  font-size: 1.05em;
  transition: transform 0.25s ease;
  display: inline-block;
}
.ctaExploreButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(79,70,229,.45);
  filter: brightness(1.04);
}
.ctaExploreButton:hover::after {
  transform: translateX(8px);
}
.ctaExploreButton:active {
  transform: scale(0.96);
}
.navDesktopLeading {
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.navDesktopAction {
  display: flex;
  gap: 10px;
}
.navDesktopAction .pseudoButton:nth-child(2) {
  background-color: var(--tertiaryColor);
  color: var(--backgroundColor);
}

.navMobile {
  display: none;
}
.navItem {
  text-decoration: none;
  color: var(--tertiaryColor);
}
.navItem:hover {
  text-decoration: underline;
  color: var(--primaryColor);
  transition: color 0.5s ease;
}

.header {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
}
label {
  margin-top: 1rem;
}
.body {
  font-size: 1.1rem;
  font-weight: 100;
}
.subHeader {
  font-size: 2.55em;
  font-weight: 500;
}
.contentHeader {
  font-size: 1.55em;
  font-weight: 500;
}
.icons-social {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.icons-social i {
  font-size: 3em;
  padding: 10px;
  margin: 5px;
}

/* Custom Styles */

.profileMain {
  display: flex;
  flex-direction: column;
  /* min-height: 100vh; */
  justify-content: center;
  padding: 0 1rem;
  text-align: center;
}

.profileMain > .intro {
  margin-top: 1.5em;
}

.typwriterContainer {
  display: inline-block;
  /* overflow: hidden; */
  /* white-space: nowrap; */
  /* text-align: left; */
  /* border-right: 0.15em solid white;
  animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite; */
}

.profileMain > .tagline {
  margin: 2.5rem 0;
}
.profileMain > .taglineHeader {
  margin: 2.5rem 0 0.2rem 0;
}

.explore-my-work {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}
.explore-my-work > .pseudoButton {
  padding: 10px 40px;
}

.eventsContainer {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  display: flex;
  overflow-y: hidden;
  gap: 10px;
  align-items: center;
  justify-content: space-evenly;
}
.eventContainer {
  background-size: cover;
  background-repeat: no-repeat;
  height: 400px;
  width: 400px;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  justify-content: end;
  align-items: baseline;
  padding: 5px;
  background-color: #222222;
  background-blend-mode: multiply;
  transition: all 0.6s ease;
}
.eventContainer:hover {
  background-blend-mode: normal;
  height: 500px;
  width: 500px;
}
.eventTitle {
  font-size: 1.55em;
  font-weight: 500;
  text-align: start;
}
.eventDescription {
  text-align: start;
}
.eventLink {
  background-color: var(--tertiaryColor);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  padding: 15px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.eventFooterContiner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.workExperienceContainer {
  margin: 1.5rem auto;
  text-align: center;
  padding: 0 1rem;
}
.workExperienceItemContainer {
  text-align: start;
  display: flex;
  gap: 5px;
}

.workExperienceContainer > .taglineHeader {
  margin: 0.5rem 0 1rem 0;
}

.TopThreeProjectsContainer {
  margin: 2.5rem auto 1.5rem auto;
  text-align: center;
  padding: 0 1rem;
}

.certificationContainer {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 0 1rem;
}
.certificationContainer > .taglineHeader {
  margin: 0.5rem 0 1rem 0;
}
.certificationGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.certificationCarouselWrap {
  margin-top: 1rem;
}
.certificationNav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.certificationNavDot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1px solid var(--tertiaryColor);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}
.certificationNavDot.active {
  background: var(--primaryColor);
  transform: scale(1.2);
}
.certificationTrack {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}
.certificationTrack::-webkit-scrollbar {
  display: none;
}
.certificationCard {
  flex: 0 0 min(100%, 360px);
  max-width: 360px;
  text-align: start;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(2, 150, 233, 0.2), rgba(255, 255, 255, 0.04));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.certificationLogoRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  width: 100%;
}
.certificationLogo {
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.6rem;
}
.certificationIssuerLogo {
  max-height: 36px;
  max-width: 38%;
}
.certificationBadge {
  max-height: 64px;
  max-width: 56%;
}
.certificationIssuer {
  margin-top: 0.15rem;
  color: var(--primaryColor);
  font-weight: 600;
}
.certificationFooter {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  font-size: 0.85rem;
}
.certificationIssuedDate {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 0.6rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: var(--secondaryColor);
}
.certificationLink {
  padding: 0.75rem 1rem;
  border-radius: 15px;
  /* margin-top: 0.5rem; */
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--tertiaryColor);
  width: fit-content;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.certificationLink:hover {
  background: rgba(255, 255, 255, 0.16);
  transition: 0.5s ease;
  color: var(--primaryColor);
}
.certificationLink img {
  width: 16px;
  height: 16px;
}

.otherProjectContainer {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.otherProjectContainer > .tagline {
  margin: 2.5rem 0;
}
.otherProjectContainer > .taglineHeader {
  margin: 2.5rem 0 0.2rem 0;
}
.primaryProjectsContainer {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  animation: moveRightToLeft 30s linear infinite;
}
.primaryProjectsContainer:hover {
  animation-play-state: paused !important;
}
.secondaryProjectsContainer {
  display: flex;
  gap: 12px;
  margin: 0.5rem 0 0.5rem 0;
  animation: moveLeftToRight 20s linear infinite;

}
.secondaryProjectsContainer:hover {
  animation-play-state: paused !important;
}
.mainCard {
  width: 200px;
  min-width: 200px;
  border-radius: 15px;
  border: 2px solid #0072ff;
  overflow: hidden;
  height: 120px;
  filter: grayscale(100%); /* Apply grayscale filter */
  transition: filter 0.3s ease; /* Smooth transition */
  position: relative;

}
.mainCard:hover {
  filter: none;
  cursor: pointer;
}
.childCard {
  min-width: fit-content;
  border-radius: 60px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 15px;
  position: relative;
  background-clip: padding-box;
  background-color: #000000;
  background: linear-gradient(#000000, #000000) padding-box,
    linear-gradient(to right, #666666, #000000) border-box;
}
.childCard:hover {
  background: linear-gradient(#000000, #000000) padding-box,
    linear-gradient(to right, #0072ff, #000000) border-box;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.childCard:hover > .childCard__title {
    -webkit-text-fill-color: var(--tertiaryColor) ;
}

.childCard__title {
  background: linear-gradient(to top, #666666, #000000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.devto {
  margin-bottom: -0.2rem;
}

.devto svg {
  margin-bottom: -0.2rem;
  margin-left: 0.675rem;
  width: 2.65rem;
  height: 2.65rem;
}

.instagee,
.medium,
.stackoverflow,
.linkedin,
.playstation,
.apple,
.twitter,
.github,
.facebook {
  font-size: 2em !important;
  background-color: #18191f;
  color: #fff;
  box-shadow: 2px 2px 2px #00000080, 10px 1px 12px #00000080,
    2px 2px 10px #00000080, 2px 2px 3px #00000080, inset 2px 2px 10px #00000080,
    inset 2px 2px 10px #00000080, inset 2px 2px 10px #00000080,
    inset 2px 2px 10px #00000080;
  border-radius: 29px;
  padding: 11px 19px;
  margin: 0 20px;
  animation: animate 3s linear infinite;
  text-shadow: 0 0 50px #0072ff, 0 0 100px #0072ff, 0 0 150px #0072ff,
    0 0 200px #0072ff;
}

.instagee {
  animation: animate 3s linear infinite;
}
.medium {
  animation: animate 3s linear infinite;
}
.stackoverflow {
  animation: animate 3s linear infinite;
}
.linkedin {
  animation: animate 3s linear infinite;
}
.playstation {
  animation: animate 3s linear infinite;
}
.apple {
  animation: animate 3s linear infinite;
}
.twitter {
  animation: animate 3s linear 0.3s infinite;
}
.facebook {
  animation: animate 3s linear 0.7s infinite;
}
.github {
  animation: animate 3s linear infinite;
}

.container {
  margin: 5px;
  background-color: rgb(31, 30, 30);
  color: black;
  border-radius: 15px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  animation: fadein 3s;
  height: 400px;
  overflow: hidden;

  /* Hide scrollbar for IE, Edge and Firefox */

  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.primaryColor {
  color: var(--primaryColor);
}

.myProjectBackground {
  height: fit-content;
  margin: 1.5rem 0px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 2px 2px 2px #00000080, 10px 1px 12px #00000080,
    2px 2px 10px #00000080, 2px 2px 3px #00000080, inset 2px 2px 10px #00000080,
    inset 2px 2px 10px #00000080, inset 2px 2px 10px #00000080,
    inset 2px 2px 10px #00000080;
}

.myProject {
  text-align: start;
  border-radius: 15px;
  display: flex;
  gap: 3rem;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 20px;
  /* margin: 1.5rem 0px; */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: var(--sectionColor);
  height: fit-content;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(20vh);
  visibility: hidden;
  transition: opacity 1200ms ease-out, transform 600ms ease-out,
    visibility 1200ms ease-out;
  will-change: opacity, transform, visibility;
}
.fade-in-myproject {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.projectTitle {
  font-size: 1.55em;
  font-weight: 500;
  transition: font-size 1.5s ease;
}

.myProject:hover .projectTitle {
  font-size: 2.55em;
}

.projectType {
  padding: 15px 40px;
  border-radius: 15px;
  outline-color: none;
  margin-top: 0.5rem;
  border: 2px dashed white;
  color: var(--tertiaryColor);
  width: fit-content;
}
.projectInnerContainer {
  margin-top: 0.5rem;
}
.projectToolItem {
  padding: 15px 40px;
  border-radius: 15px;
  outline-color: none;
  margin-top: 0.5rem;
  border: 2px solid white;
  color: var(--tertiaryColor);
  width: fit-content;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.ligther {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--primaryColor);
}
.projectOtherLinkItem {
  padding: 15px 40px;
  border-radius: 15px;
  margin-top: 0.5rem;
  border: 2px solid white;
  color: var(--tertiaryColor);
  width: fit-content;
  overflow: hidden;
  background-color: var(--secondaryColor);
}
.projectOtherLinkItem:hover {
  background: linear-gradient(var(--secondaryColor), var(--secondaryColor))
      padding-box,
    linear-gradient(90deg, white, var(--primaryColor)) border-box;
  border: 2px solid transparent;
  transition: 0.5s ease;
}
.projectOtherLinkItem:hover a {
  color: var(--primaryColor);
}
.projectOtherLinkItem a {
  color: var(--tertiaryColor);
  text-decoration: none;
}

.viewMore {
  display: none;
}

.imageContainer {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: flex-start;
  height: 100%;
}
.projectImage {
  border-radius: 15px;
  border: 5px solid var(--primaryColor);
  margin: 0px auto;
}
.imageWeb {
  height: 250px;
  width: 600px;
}
.imageMobile {
  width: 300px;
  height: 600px;
}
.contentContainer {
  flex: 2;
  min-width: 300px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.container::-webkit-scrollbar {
  display: none;
}

.item {
  height: 100px;
  width: 100px;
  border-radius: 10px;
  box-shadow: 2px 2px 2px #00000080;
  margin: 5px;
  overflow: hidden;
}
.itemImage {
  width: 100%;
  height: 100%;
  object-fit: fill;
  overflow: hidden;
}
.projectList {
  text-align: start;
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.containerMail {
  flex: 1;
  margin-top: 1.5rem;
  background-color: var(--contactusBackground);
  border-radius: 15px;
  padding: 10px;
  text-align: start;
  border: 2px solid var(--backgroundColor);
}
.pure-form {
  display: flex;
  flex-direction: column;
}
#MailMessage::placeholder {
  color: #ebeaea;
}
.sendMail {
  font-weight: bold;
  cursor: pointer;
}

.hideContent {
  display: block;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

@keyframes animate {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes ctaExploreIdle {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(2,150,233,0.25);
    filter: drop-shadow(0 0 0 rgba(255,255,255,0));
  }
  6% {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(2,150,233,0.32);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.12));
  }
  12% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(2,150,233,0.25);
    filter: drop-shadow(0 0 0 rgba(255,255,255,0));
  }
}

@keyframes ctaExploreSweep {
  0% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

@keyframes fadein {
  0% {
    display: none;
    opacity: 0;
  }
  100% {
    display: block;
    opacity: 1;
  }
}

@keyframes sideWaysMove {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0%);
  }
}

@keyframes increaseSize {
  to {
    font-size: 2.5em;
  }
}
@keyframes moveRightToLeft {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100vw);
  }
}
@keyframes moveLeftToRight {
  0% {
    transform: translateX(-100vw);
  }
  100% {
    transform: translateX(100vw);
  }
}

@media only screen and (max-width: 576px) {
  html {
    font-size: 14px;
  }
  .pageHeader {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 10px 1rem;
  }
  .headerContainer {
    border: 2px solid var(--tertiaryColor);
    padding: 20px 15px;
    border-radius: 30px;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: var(--sectionColor);
  }
  .navDesktop {
    display: none;
  }
  .navMobile {
    display: block;
    width: 100%;
  }
  .navMobile > ul {
    display: flex;
    justify-items: center;
    align-items: center;
    justify-content: space-between;
  }
  .navItem {
    display: flex;
    gap: 2px;
    flex-direction: column;
    justify-items: center;
    align-items: center;
  }
  .navItem img {
    width: 24px;
    height: 24px;
  }
  .profileMain > .intro {
    margin-top: 1em;
  }
  .myProjectBackground {
    margin: 1.5rem 0;
  }
  .myProject {
    /* margin: 1.5rem 0; */
    flex-direction: column;
  }
  .explore-my-work {
    display: block;
    width: 100%;
  }
  .ctaExploreButton {
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
    padding: 16px 24px;
    animation: ctaExploreIdle 6s ease-in-out infinite;
  }
  .eventsContainer {
    display: none;
  }

  footer {
    flex-direction: column-reverse;
    padding: 2rem 2rem 130px 2rem;
  }
  .containerMail {
    width: 100%;
  }
  .viewMore {
    margin-top: 1.5rem;
    display: block;
    float: right;
    text-decoration: underline;
    color: var(--secondaryColor);
  }
  .hideContent {
    display: none;
  }
  .imageWeb {
    height: 200px;
    width: 100%;
  }
  .imageMobile {
    width: 300px;
    height: 600px;
  }
  @keyframes moveRightToLeft {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-330vw);
  }
 }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  
  .profileMain {
    margin: 0px auto;
    max-width: 1280px;
  }
  .workExperienceContainer {
    max-width: 1280px;
  }
  .TopThreeProjectsContainer {
    max-width: 1280px;
  }
}
