:root {
  --textColor: rgb(146, 146, 146);
  --bgColor: #0b1120;
  --mainColor: #fff;
  --cardColor: #10182b;
  --first-color : white !important;
  --textGradient: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.53) 0%,
    rgba(255, 255, 255, 0.695312) 46.88%,
    rgba(255, 255, 255, 0.35) 100%
  );
}
@font-face {
  font-family: "grifter";
  src: url(fonts/grifterbold.otf) format("opentype");
}
/* Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
      transparent,
      transparent 19px,
      rgba(255, 255, 255, 0.05) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(255, 255, 255, 0.05) 20px
    );
  z-index: -0.2; /* Keeps it behind all content */
  pointer-events: none; /* Prevents interactions */
}

body {
  z-index: -1;
  /* background-color: #0f172a; */
  background-size: 200% 200%;
  animation: gradient-move 10s ease infinite;
}

/* Body Section */
.body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;

  color: white; /* Ensures text is visible */
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.visit {
  border: 1px solid rgb(146, 146, 146);
  padding: 5px 10px;
  border-radius: 30px;
}

/* Animated Glow Effect */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2),
      0 0 60px rgba(19, 19, 126, 0.082);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3),
      0 0 100px rgba(0, 0, 255, 0.056);
  }
}

/* Decorative Element */
.glow-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(0, 119, 255, 0.059);
  border-radius: 50%;
  animation: glow 3s infinite alternate;
  z-index: -0.1; /* Sits above the grid, but below the text */
}
.glow-circle.one {
  top: 10%;
  left: -10%;
}
.glow-circle.two {
  top: 67%;
  left: 75%;
}

h1 {
  font-size: 36px;
  font-family: "grifter";
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.684) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.container {
  padding: 60px 5rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 1500px;
}

.hero { 
  padding: 60px 5rem 0 5rem;
  width: 100%;
  height: 100vh;
  align-items: center;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.phoneImageGradient {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.81) 43.75%,
    #000000 68.75%,
    #000000 99.48%
  ) !important;
}
.title {
  padding-left: 5rem;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.title p {
  letter-spacing: -0.5px;
}
.heroImage {
  width: 80%;
  border-radius: 30px;
}
h2 {
  color: var(--mainColor);
  letter-spacing: -1px;
}

.mainText {
  max-width: 720px;
  height: 100vh;
  display: flex;
  align-items: center;
}

.mainText h2 {
  letter-spacing: -1px;
}
.mainText h2,
.services h2 {
  background: var(--textGradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.experience h2 {
  background: var(--textGradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 5rem;
}
.services {
  width: 100%;
  padding-top: 6rem;
  /* border: 2px solid aqua; */
}
.serviceCards {
  margin-top: 72px;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  /* border: 2px solid blue; */
}
.card {
  background-color: var(--cardColor);
  max-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 1rem;
  border-radius: 24px;
  font-size: 14px;
  border: 1px solid rgba(168, 168, 168, 0.114);
}
.cardsTitle {
  display: flex;
  gap: 2rem;
  text-align: center;
  padding-bottom: 1.5rem;
  justify-content: center;
  border-bottom: 1px solid rgba(168, 168, 168, 0.158);
}
.titleText {
  font-size: 17px;
  color: var(--mainColor);
}

.projects {
  padding-top: 6rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: center;
  gap: 3rem;
}
.projDes {
  width: 100%;
}
.projDes h3 {
  letter-spacing: 0.5px;
  font-size: 24px;
  font-family: "grifter";
  color: rgba(255, 255, 255, 0.85);
}
.projDes p {
  line-height: 22px;
  margin-top: 14px;
  font-weight: 300;
  color: #ffffff44;
}
.portfolioCards {
  max-width: 100%;
  width: 100%;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: top;
  /* border: 3px solid red; */
}
.portCard {
  width: 47%;
  background-color: var(--cardColor);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 14px;
  border-radius: 8px;
  gap: 8px;
  position: relative; 
}
.portTitle {
  position: relative;
}
.player-icon {
  opacity: 0;
  width: 30px !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* background-color:rgba(255, 255, 255, 0.05) ; */
}
.portCard img {
  width: 100%;
  cursor: pointer;
  transition: opacity 0.3s;
}
.portTitle img:hover {
  filter: brightness(40%);
}
.portTitle:hover .player-icon {
  opacity: 1;
}
.portDes {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.144);
}
.portDes h4 {
  color: #fff;
}

.portDes p {
  color: #6a6a6a;
  font-size: 14px;
}

.about {
  gap: 5rem;
  margin-top: 4rem;
  padding: 5rem;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  overflow: hidden;
}
#aboutImg {
  width: 100%;
  border-radius: 30px;
}
.aboutMe {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.btns {
  display: flex;
  gap: 3rem;
}
.btns button {
  padding: 0.6rem 1.5rem;
}

/* ==== ANIMATIONS ==== */
.hero {
  overflow-x: hidden;
}
.title {
  animation: fromLeft 1s;
}
.heroImage {
  animation: fromRight 1s;
}

/* // Technologies */

/* Technologies Section Styles */
.technologies-section {
  text-align: center;
  padding: 2rem 0;
  background-color: transparent; /* Match dark background */
  color: #ffffff;
}

.technologies-section h2 {
  background: var(--textGradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 40px;
}

.technologies-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Space between icons */
  justify-content: center;
}

.tech-icon {
  width: 60px;
  height: 60px;
  background-color: transparent;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.tech-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Custom Hidden Class */
.myCustomHidden {
  display: none;
}

.experience-section {
  background: transparent;
  color: #fff;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 5rem;
  color: #f3f4f6;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  transform: translateX(-50px);
  animation: fadeInRight 1s ease-in-out forwards;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  transform: translateX(50px);
}

.timeline-icon {
  background: #fef08a;
  padding: 1rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 80px;
  min-height: 80px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.timeline-icon img {
  width: 40px;
  height: 40px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  width: 60%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.timeline-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-date {
  font-size: 1.2rem;
  color: #d1d5db;
  margin-bottom: 1rem;
  display: block;
}

.timeline-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #f3f4f6;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background: transparent;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: -1;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Preloader Container */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bgColor); /* Background color (white in this case) */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px dotted #fff;
  border-style: solid solid dotted dotted;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 2s linear infinite;
}
.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px dotted #0a2ddc;
  border-style: solid solid dotted;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: rotationBack 1s linear infinite;
  transform-origin: center center;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* End Preloader */

@keyframes fromLeft {
  from {
    filter: blur(20px);
    opacity: 0;
    transform: translateX(-300px);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes fromRight {
  from {
    filter: blur(20px);
    opacity: 0;
    transform: translateX(300px);
  }
  to {
    transform: translateX(0);
  }
}

.myHidden {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(200px);
  transition: all 1s;
}
.show {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}
.card:nth-child(2) {
  transition-delay: 0.6s;
}
.card:nth-child(3) {
  transition-delay: 0.9s;
}
.card:nth-child(4) {
  transition-delay: 1.2s;
}
.card:nth-child(5) {
  transition-delay: 1.4s;
}
.portCard:nth-child(even) {
  transition-delay: 0.4s;
}
.portCard:nth-child(odd) {
  transition-delay: 0.2s;
}

.portfolioCards button {
  transition-delay: 0.4s;
}

.aboutHidden {
  opacity: 0;
  filter: blur(10px);
  transform: translateX(-100%);
  transition: all 1s;
}
.aboutMe {
  transform: translateX(100%);
}
.aboutShow {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* ========= RESPONSIVENESS =============== */
/* for large screens */
@media (min-width: 1520px) {
  .hero {
    padding: 60px 10rem 0 13rem;
  }

  .title p {
    letter-spacing: -0.5px;
  }
}

/* for smart phones */
@media (max-width: 620px) {
  .container {
    padding: 1rem;
    gap: 5rem;
  }
  .player-icon {
    width: 50px !important;
  }
  /* .hero {
    padding: 0;
    text-align: center;
    display: block;
    background-image: url(./images/251.JPG) ;
    background-size: cover;
    max-height: 100vh !important;
  } */

  .hero {
    padding: 0;
    text-align: center;
    display: block;
    background-image: url(./images/251.JPG);
    background-size: cover;
    background-position: center;
    position: relative;
    max-height: 100vh !important;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity for better effect */
    z-index: 1;
  }

  .phoneImageGradient {
    display: block !important;
    position: absolute;
    background: linear-gradient(
      180deg,
      rgba(1, 50, 75, 0) 0%,
      rgba(1, 15, 46, 0.81) 43.75%,
      #0b1120 68.75%,
      #0b1120 99.48%
    ) !important;

    width: 100%;
    height: 40vh;
    z-index: 2;
    bottom: 0;
  }
  .noneInPc {
    display: block !important;
  }
  .title {
    padding: 1rem;
    max-width: 100%;
    display: flex;
    gap: 1.3rem;
    align-items: center;
    position: absolute;
    bottom: 2px;
    z-index: 3;
  }
  .title div {
    display: flex;
    flex-direction: column;
  }
  .title div .cont {
    display: none;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 18px;
  }
  .heroImage {
    display: none;
  }
  .mainText {
    height: 50vh;
  }

  .serviceCards {
    display: flex;
    flex-direction: column;
  }
  .card {
    max-width: 100%;
    gap: 1rem;
    padding: 2rem 1rem;
    border-radius: 12px;
  }
  .projects h3 {
    font-size: 1rem;
  }
  .projImage {
    width: 100%;
  }
  .about {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  .btns {
    justify-content: center;
  }
  .myHidden {
    transform: translateY(50px);
    filter: blur(4px);
    transition: all 0.4s;
  }
  .portCard {
    width: 100%;
  }
  .show {
    filter: blur(0);
  }
  .portCard,
  .card {
    transition-delay: none;
  }
  .aboutHidden,
  .aboutMe {
    transform: translateY(100%);
  }
  .aboutShow {
    transform: translateY(0);
  }
}


/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--container-color);
}

::-webkit-scrollbar-track {
  border-radius: 1.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
}
