@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", serif;
}
html {
  scroll-behavior: smooth;
}
.fa-solid{
  font-size: 35px;
}
body {
  background: #fff;
  /* background: linear-gradient(to right, #68d391, #3b82f6); */
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 50px;
  color: black;
  position: relative;
}
.active-link {
  color: rgb(113, 186, 4);
  border-bottom: 3px solid rgb(132, 215, 8);
  font-weight: bold;
}
.logo-name {
  font-size: 25px;
  color: #000;
  font-weight: 600;
  transition: 0.3s ease;
}
.logo-name:hover {
  color: greenyellow;
  text-shadow: 0 0 5px #000;
  transform: scale(1.1);
  font-size: 25px;
}

/* Menu Links - Visible on larger screens */
.nav-link {
  display: flex;
}

.nav-link ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 40px;
}

.nav-link ul li {
  margin: 0 15px;
  position: relative;
}

.nav-link ul li a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  font-weight: 500;
  padding: 10px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover Effect */
.nav-link ul li a:hover {
  color: rgb(132, 215, 8); /* Change color on hover */
  transform: scale(1.1);
}

/* Underline Animation */
.nav-link ul li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: rgb(132, 215, 8);
  transition: width 0.3s ease;
}

/* Hover Underline Animation */
.nav-link ul li a:hover::before {
  width: 100%;
}

/* Focus Effect for Accessibility */
.nav-link ul li a:focus {
  outline: none;
  border-bottom: 2px solid rgb(132, 215, 8);
  box-shadow: 0 0 0 3px rgba(132, 215, 8, 0.3);
}

.main-section,
.text-main,
.card-container {
  max-width: 100%;
}

/* Menu Icon - Hidden by default */
.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  position: relative;
  z-index: 9999;
}
/* Main Section */
.main-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh;
  margin-top: -6vh;
  text-align: center;
  padding: 10% 5%;
}
/* Left Text Section */
.text-main {
  max-width: 56%;
}

.text-main h1 {
  font-size: 48px;
  font-weight: bold;
  color: #222;
}

.text-main p {
  font-size: 18px;
  color: #555;
  margin: 10px 0;
  line-height: 1.5;
}

/* Buttons */
.btn-link {
  margin: 20px 0;
  display: flex; /* Make it a flex container to align buttons */
  justify-content: center; /* Align buttons horizontally in the center */
  gap: 10px; /* Add space between buttons */
}

.btn-link button {
  color: #000;
  background: none;
  outline: 2px solid gray;
  border: none;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 30px;
  transition: 0.3s ease;
}

.btn-link button:hover {
  outline: 2px solid rgb(131, 219, 0);
  transform: scale(1.07);
}

/* Social Icons */
.icons {
  display: flex;
  justify-content: center; /* Align icons in the center */
  gap: 20px; /* Space between icons */
  margin-top: 25px; /* Adjust space above the icons */
}

.icons img {
  width: 45px;
  height: 45px;
  transition: 0.3s ease;
  cursor: pointer;
  border: 1px solid gray;
  border-radius: 50%;
  padding: 3px;
  transition: transform 0.5s ease-in-out;
}

.icons img:hover {
  animation: rotate 1s linear infinite;
  transform: rotate(360deg) scale(1.1);
  border: 2px solid rgb(131, 219, 0);
}

.main-profile {
  display: inline-block;
  padding: 15px;
  border-radius: 50%; /* Matches the image's circular shape */
  transition: all 0.5s ease-in-out;
}

.main-profile img {
  width: 350px;
  height: 350px; /* Ensures perfect circle with equal width and height */
  border-radius: 50%; /* Maintains circular shape */
  transition: all 0.5s ease-in-out;
  margin-top: -150px;
  object-fit: cover; /* Ensures image fits within circle without distortion */
}

.main-profile:hover img {
  animation: gradientPulse 6s ease-in-out infinite,
    circleWobble 2s ease-in-out infinite;
  transform: scale(1.05); /* Slight scale-up on hover */
  box-shadow: 0 0 15px rgba(128, 128, 128, 0.8); /* Glowing shadow to emphasize circle */
}

.main-profile:hover {
  animation: gradientPulse 6s ease-in-out infinite;
}

@keyframes gradientPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes circleWobble {
  0% {
    transform: scale(1.05) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(3deg); /* Slight wobble and scale for dynamic circular effect */
  }
  75% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1.05) rotate(0deg);
  }
}

.text-main span {
  position: relative;
  font-size: 4.5rem;
  font-weight: bold;
  /* color: aquamarine; */
  color: rgb(132, 215, 8);
  text-shadow: 0 2px 2px gray;
}
.text-main span::before {
  content: "Front-end dev";
  animation: words 20s infinite;
}
.text-main span::after {
  padding: 3px;
  content: "";
  padding-bottom: 12px;
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  background-color: #fff;
  border-left: 2px solid darkblue;
  right: -8px;
  animation: cursor 0.8s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid #ff7f5000;
  }
}

@keyframes words {
  0%,
  20% {
    content: "Front-end Dev";
  }
  21%,
  40% {
    content: "Backend Dev";
  }
  41%,
  60% {
    content: "UX / UI Design";
  }
  61%,
  80% {
    content: "Graphic Design";
  }
  81%,
  100% {
    content: "Content Creator";
  }
}
@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}
.experience {
  text-align: center;
}
.second-main {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 40px;
  width: 100%;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}
.card {
  width: 30%;
  text-align: center;
  padding: 40px;
  height: auto;
  border-radius: 12px;
  border: 2px solid orangered;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}
.card:hover {
  box-shadow: rgb(204, 219, 232) 12px 12px 18px 0px inset,
    rgba(255, 255, 255, 1) -12px -12px 18px 4px inset;
  transform: scale(1.05);
}
.card button {
  padding: 8px 20px;
  border-radius: 5px;
  border: 1.5px solid gray;
  background: none;
  transition: all 0.2s ease-in-out;
}
.card button:hover {
  background: #dadada;
}
.card button a {
  text-decoration: none;
}
.fa-code,
.fa-js,
.fa-brain {
  font-size: 30px;
}
.fa-github {
  font-size: 38px;
  color: #000;
  transition: all 0.2s ease-in-out;
}
.fa-github:hover {
  color: darkblue;
}
.git-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}
.title-vc .git-flex button {
  padding: 9px 15px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid gray;
}
.git-flex button {
  cursor: pointer;
}
.mid-about {
  text-align: center;
}
.mid-about p {
  color: gray;
}

.my-img {
  flex: 1;
  max-width: 300px;
  display: flex;
  justify-content: center;
}
.my-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0px 5px 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease-in-out;
}
.my-img img:hover {
  transform: scale(1.05);
}
/* Education & Experience Container */
.edu-contain {
  flex: 2;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.education,
.exper {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 280px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}
.education:hover,
.exper:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}
.education p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
}
.exper {
  height: 61vh;
}
.exper {
  flex: 1;
}
.exper h2,
.education h2 {
  font-size: 22px;
  margin-bottom: 15px;
  letter-spacing: 1px;
  color: #f8c000;
  text-align: center;
}
.exper p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
  margin: 5px 0;
  color: #fff;
  gap: 18px;
}
.exper p i {
  width: 25px;
  text-align: center;
  font-size: 25px;
  color: #f8c000;
}
.education p i {
  font-size: 18px;
  color: #f8c000;
}
.contact-meee {
  text-align: center;
}
/* Contact Header */
.contact-meee {
  margin-top: 50px;
}
.contact-meee p {
  color: gray;
}

.contact {
  font-size: 32px;
  font-weight: bold;
}

/* Phone Contact */
.num-con {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5vh;
  font-weight: bold;
  gap: 10px;
  font-size: 20px;
  color: darkblue;
}

.num-con i {
  font-size: 22px;
}

/* Email & LinkedIn */
.email-linkin {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
  margin: 20px auto;
  border: 3px solid gray;
  padding: 10px;
  border-radius: 40px;
}

.email,
.linkin {
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
}

.email {
  border-right: 3px solid gray;
}

/* Footer */
.footer ul {
  display: flex;
  list-style-type: none;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin: 10vh 0;
  padding: 0;
}

.footer a {
  text-decoration: none;
  color: #000;
  font-size: 18px;
  transition: all 0.3s ease-in-out;
}

.footer a:hover {
  color: rgb(1, 173, 1);
  border-bottom: 3px solid #333;
}
main {
  display: flex;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.title-vc {
  width: 30%;
  padding: 1rem;
}

.title-vc h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

.title-vc p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.vc-img {
  width: 70%;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vc-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

/* Programming Logos Section */
.programming {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 40px 30px;
  border-radius: 20px;
  max-width: 1200px;
  margin: 50px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  border: 2px solid #00d4ff;
}

/* Individual Logo Styling */
.programming img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%; /* Circular images */
  padding: 10px;
  background: rgba(0, 212, 255, 0.1);
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  /* box-shadow: 0 5px 5px rgba(0, 212, 255, 0.3); */
  border: 2px solid transparent;
}

/* Hover Effect with Scale and Neon Glow */
.programming img:hover {
  /* transform: scale(1.3) rotate(20deg); */
  background: rgba(0, 212, 255, 0.3);
  /* box-shadow: 0 8px 25px rgba(0, 212, 255, 0.7); */
  border: 2px solid #00d4ff;
  animation: rotate 1s linear infinite;
  transform: rotate(360deg) scale(1.1);
}

/* Float and Rotate Animation for Logos */
.programming img {
  animation: floatRotate 5s ease-in-out infinite;
}

/* Float and Rotate Animation */
@keyframes floatRotate {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Staggered Animation Delay for Each Logo */
.programming img:nth-child(1) {
  animation-delay: 0s;
}
.programming img:nth-child(2) {
  animation-delay: 0.3s;
}
.programming img:nth-child(3) {
  animation-delay: 0.6s;
}
.programming img:nth-child(4) {
  animation-delay: 0.9s;
}
.programming img:nth-child(5) {
  animation-delay: 1.2s;
}
.programming img:nth-child(6) {
  animation-delay: 1.5s;
}
.programming img:nth-child(7) {
  animation-delay: 1.8s;
}
.programming img:nth-child(8) {
  animation-delay: 2.1s;
}
.programming img:nth-child(9) {
  animation-delay: 2.4s;
}
.programming img:nth-child(10) {
  animation-delay: 2.7s;
}
.programming img:nth-child(11) {
  animation-delay: 3s;
}
.programming img:nth-child(12) {
  animation-delay: 3.3s;
}

/* Wave Animation */
@keyframes wave {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

.programming:hover::before {
  opacity: 0.7;
}

/* Timeline Container */
.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
}

/* Central Timeline Line */
.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: #ff9800;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

/* Event Card */
.event {
  padding: 20px;
  position: relative;
  width: 45%;
  border-radius: 12px;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
  color: #333;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: #fff;
}

/* Positioning for Left and Right Cards */
.left {
  right: 10%;
}

.right {
  left: 60%;
}

/* Timeline Marker */
.event::after {
  content: "\f111";
  font-family: FontAwesome;
  position: absolute;
  top: 20px;
  right: -10px;
  font-size: 16px;
  color: #fff;
  background: #ff9800;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right::after {
  left: -10px;
}

/* Hover Effect */
.event:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

/* Ribbon for Year */
.ribbon {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  color: white;
  padding: 15px 0;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 1;
  opacity: 0;
  transform: translateY(-30px);
  animation: slideIn 0.5s ease forwards;
}

/* Ribbon Triangle */
.ribbon::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid transparent;
}

/* Slide-In Animation */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
h2 {
  margin: 40px 0 10px;
  font-size: 18px;
}

p {
  margin: 0;
  font-size: 14px;
}

.all-img {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.logo {
  position: absolute;
  width: 63px;
  height: 63px;
  object-fit: contain;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: heartbeat 1.5s ease-in-out infinite, spin 20s linear infinite; /* Combined animations */
  transition: transform 0.3s ease;
  transform: rotate(var(--angle)) translateX(var(--radius))
    rotate(calc(-1 * var(--angle))); /* Initial position */
}

.logo:hover {
  transform: rotate(var(--angle)) translateX(var(--radius))
    rotate(calc(-1 * var(--angle))) scale(1.2); /* Maintain position on hover */
  z-index: 10;
}

.middle {
  position: relative;
  z-index: 1;
}

.middle img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: contain;
}

/* Fan-like spin animation */
@keyframes spin {
  0% {
    transform: rotate(var(--angle)) translateX(var(--radius))
      rotate(calc(-1 * var(--angle)));
  }
  100% {
    transform: rotate(calc(var(--angle) + 360deg)) translateX(var(--radius))
      rotate(calc(-1 * (var(--angle) + 360deg)));
  }
}

/* Logo configurations with same radius and speed, different angles */
.logo1 {
  --radius: 200px;
  --angle: 0deg;
}
.logo2 {
  --radius: 200px;
  --angle: 20deg;
}
.logo3 {
  --radius: 200px;
  --angle: 40deg;
}
.logo4 {
  --radius: 200px;
  --angle: 60deg;
}
.logo5 {
  --radius: 200px;
  --angle: 80deg;
}
.logo6 {
  --radius: 200px;
  --angle: 100deg;
}
.logo7 {
  --radius: 200px;
  --angle: 120deg;
}
.logo8 {
  --radius: 200px;
  --angle: 140deg;
}
.logo9 {
  --radius: 200px;
  --angle: 160deg;
}
.logo10 {
  --radius: 200px;
  --angle: 180deg;
}
.logo11 {
  --radius: 200px;
  --angle: 200deg;
}
.logo12 {
  --radius: 200px;
  --angle: 220deg;
}
.logo13 {
  --radius: 200px;
  --angle: 240deg;
}
.logo14 {
  --radius: 200px;
  --angle: 260deg;
}
.logo15 {
  --radius: 200px;
  --angle: 280deg;
}
.logo16 {
  --radius: 200px;
  --angle: 300deg;
}
.logo17 {
  --radius: 200px;
  --angle: 320deg;
}
.logo18 {
  --radius: 200px;
  --angle: 340deg;
}

.education-timeline {
  max-width: 1100px;
  margin: auto;
  margin-bottom: 6rem;
}

.education-timeline-wrapper {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Left Side: Timeline */
.education-timeline-left {
  flex: 1;
  border-left: 4px solid #6366f1;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.education-timeline-item {
  position: relative;
}

.education-timeline-item::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 10px;
  width: 18px;
  height: 18px;
  background-color: #6366f1;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 4px #e0e7ff;
}

.education-timeline-date {
  font-weight: bold;
  color: #374151;
  font-size: 1rem;
  margin-bottom: 10px;
  display: block;
}

.education-timeline-content {
  background-color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 80%;
}

.education-timeline-content h3 {
  color: #4f46e5;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.education-timeline-content p {
  color: #4b5563;
  font-size: 1rem;
}

/* Right Side: Images */
.education-timeline-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
}
.education-timeline-right img {
  width: 25%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: absolute;
  margin-left: 20px;
  margin-top: 90px;
  transition: all 0.4s ease-in-out;
}
.second-img {
  margin-left: 200px;
}
.first-img img {
  width: 20%;
}

.education-timeline-right img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.soft-skills {
  position: relative;
  height: 400px;
  margin-top: 70px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 20px;
  flex-wrap: wrap;
}
.image-layer {
  position: absolute;
  top: 0;
  transition: transform 0.3s ease;
}
.image-layer img {
  width: 200px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.image-layer:nth-child(1) {
  left: 40px;
  z-index: 1;
  margin-top: 50px;
}
.image-layer:nth-child(2) {
  left: 200px;
  z-index: 3;
}
.image-layer:nth-child(3) {
  left: 360px;
  z-index: 4;
  margin-top: 50px;
}
.image-layer:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
  cursor: pointer;
}
/* You already have this */
.soft-skill {
  position: relative;
  height: 400px;
  width: 50%;
}
/* The event card next to your images */
.soft-skill-card {
  width: 45%;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  font-family: sans-serif;
}
.soft-skill-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
}
.soft-skill-card ul {
  list-style: none;
  padding: 0 20px;
}

.soft-skill-card li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  list-style-type: square;
}

.tools {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: opacity 0.3s ease;
}

.tool-card:hover::before {
  opacity: 0.8;
}

.tool-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111827;
  position: relative;
  z-index: 1;
}

.progress {
  margin-bottom: 16px;
  position: relative;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.progress-header span {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  position: relative;
}
.progress-header img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
}
.progress-header .percentage {
  font-size: 15px;
  color: #4b5563;
}

.virtual {
  color: lightsalmon;
  font-size: 15px;
}

.progress-bar {
  height: 10px;
  background-color: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 12px;
  width: 0;
  transition: width 2s ease-in-out;
  background: linear-gradient(90deg, #3807aa, #a78bfa);
  position: relative;
  overflow: hidden;
}

.progress-fill.animated {
  width: var(--progress-width);
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,50 C20,30 40,70 60,50 C80,30 100,70 120,50 C140,30 160,70 180,50 C200,30 220,70 240,50" fill="rgba(255,255,255,0.4)" /></svg>');
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: wave 3s linear infinite;
  z-index: 1;
  opacity: 0.5;
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-img {
  width: 400px;
}
.about-me {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}
.img-about-me img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.info-card {
  background-color: #f9f9f9;
  border-left: 5px solid #3498db;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  margin-bottom: 1rem;
}
.about-paragraph {
  display: flex;
  flex-direction: column;
  width: 80%;
}
.four-cards {
  display: flex;
}
.four-cards-under {
  display: flex;
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  width: 600px;
  max-width: 500px;
  margin: 0 auto;
  border: 2px solid #00b82b;
}
.form-group label {
  font-size: 20px;
}
.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #00b82b;
  border-radius: 8px;
}

.btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: #00b82b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.btn-submit:hover {
  background: #25c705;
  transform: scale(1.05);
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

}
.message-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.message-box img {
  width: 400px;
}

/* ✅ Screen size 1024px - Keep menu normal */
@media (max-width: 1024px) {
  .nav-link ul li a {
    font-size: 20px;
  }
  .main-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }

  .text-main {
    max-width: 100%;
  }

  .main-profile img {
    width: 300px;
    margin-top: 30px;
  }
  .main-section {
    flex-direction: column-reverse;
  }
  .card {
    width: 45%; /* Cards should stack on small screens */
  }

  .my-img {
    max-width: 100%;
  }
  .edu-contain {
    flex-direction: column;
    gap: 15px;
  }
  .education,
  .exper {
    min-width: 100%;
  }
  main {
    flex-direction: column;
    padding: 1.5rem;
  }

  .title-vc,
  .vc-img {
    width: 100%;
    padding: 0.5rem;
  }

  .title-vc h2 {
    font-size: 1.5rem;
  }

  .title-vc p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
    gap: 1.5rem;
  }

  .title-vc h2 {
    font-size: 1.25rem;
  }

  .title-vc p {
    font-size: 0.9rem;
  }

  .vc-img {
    border-radius: 10px;
  }

  .vc-img img {
    border-radius: 8px;
  }
  .programming {
    padding: 30px 20px;
    gap: 20px;
  }

  .programming img {
    width: 60px;
    height: 60px;
    padding: 8px;
  }
  .event {
    width: 45%;
  }
  .left {
    right: -2%;
  }
  .right {
    left: 53%;
  }
  .ribbon {
    font-size: 16px;
  }

  .about-me {
    display: flex;
    flex-direction: column;
    padding: 20px 20px;
    border: none;
  }
  .about-me p {
    font-size: 16px;
    text-align: justify;
    line-height: 30px;
  }
  .img-about-me img {
    width: 350px;
    margin-left: -20px;
  }
  .all-img {
    height: 500px;
    max-width: 500px;
  }

  .logo {
    width: 40px;
    height: 40px;
    --radius: 120px; /* Scaled radius */
  }

  .middle img {
    width: 120px;
    height: 120px;
  }

  .education-timeline-wrapper {
    flex-direction: column;
  }

  .education-timeline-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  .education-timeline-right div {
    width: 45%;
  }

  .education-timeline-right img {
    width: 100%;
  }
  .tools {
    grid-template-columns: 1fr; /* stack cards vertically */
    gap: 16px; /* smaller gap */
    padding: 0 20px; /* some side padding */
  }

  .tool-card {
    padding: 16px; /* reduce padding on smaller screens */
  }

  .tool-card h3 {
    font-size: 1.3rem; /* smaller heading */
  }

  .progress-header span,
  .progress-header .percentage {
    font-size: 0.9rem; /* smaller text in progress header */
  }

  .progress-bar {
    height: 8px; /* slightly thinner progress bar */
  }
}

@media screen and (max-width: 736px) {
  .menu-icon {
    display: block; /* Show menu icon */
  }
  .nav-link {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 0;
    text-align: center;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden; /* Instead of display: none */
    height: 110vh;
  }
  .nav-link ul {
    flex-direction: column;
    list-style: none;
    padding: 0;
  }

  .nav-link ul li {
    margin: 10px 0;
  }

  .nav-link ul li a {
    font-size: 18px;
    color: white;
  }
  .main-section {
    flex-direction: column-reverse;
  }
  .text-main h1 {
    font-size: 36px;
    margin-top: 20px;
  }

  .text-main p {
    font-size: 16px;
  }

  .btn-link button {
    font-size: 14px;
    padding: 10px 16px;
  }
  .icons {
    display: flex;
    justify-self: center;
    align-items: center;
  }
  .icons img {
    width: 30px;
    height: 30px;
  }

  .main-profile img {
    width: 250px;
  }
  .card {
    width: 100%; /* Cards should stack on small screens */
  }

  .my-img img {
    max-width: 300px;
  }
  .education h2 {
    font-size: 20px;
  }
  .education p {
    font-size: 14px;
  }
  p i {
    font-size: 16px;
  }
  .email-linkin {
    width: 80%; /* Increase width on smaller screens */
    flex-direction: column; /* Stack items vertically */
    text-align: center;
    padding: 15px;
  }

  .email {
    border-right: none;
    border-bottom: 2px solid gray;
    padding-bottom: 15px;
  }

  .num-con {
    flex-direction: column;
    text-align: center;
    font-size: 18px;
    gap: 8px;
  }

  .num-con i {
    font-size: 20px;
  }

  .footer ul {
    flex-direction: column; /* Stack links */
    gap: 15px;
    margin-bottom: 5vh;
    margin-top: 5vh;
  }
}
/* Mobile Responsive Styles */
@media (max-width: 480px) {
  .nav-link {
    transform: translateX(100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 90px;
    background-color: #000000d2;
    z-index: 1000;
    transition: visibility 0s 0.5s, opacity 0.5s ease, transform 0.5s ease;
  }
  .logo-name {
    font-size: 20px;
  }
  .nav-link ul li a {
    font-size: 16px;
  }
  .text-main span {
    position: relative;
    font-size: 2rem;
    font-weight: bold;
    color: rgb(105, 176, 0);
    text-shadow: 0 2px 2px gray;
  }
  .icons img {
    width: 45px;
    height: 45px;
  }

  .my-img img {
    max-width: 250px;
    margin-top: 2vh;
  }
  .education h2 {
    font-size: 18px;
  }
  .education p {
    font-size: 12px;
  }
  p i {
    font-size: 14px;
  }
  .exper {
    height: auto;
  }
  .contact {
    font-size: 28px;
  }
  .email-linkin {
    width: 90%;
  }
  .email,
  .linkin {
    font-size: 16px;
    padding: 15px;
  }
  .footer a {
    font-size: 16px;
  }
  .education p {
    font-size: 16px;
  }
  .main-profile:hover {
    background: none;
    animation: none;
    box-shadow: none;
  }
  main {
    padding: 0.75rem;
    gap: 1rem;
  }

  .title-vc h2 {
    font-size: 1.1rem;
  }

  .title-vc p {
    font-size: 0.85rem;
  }
  .programming {
    padding: 20px 15px;
    gap: 15px;
  }

  .programming img {
    width: 50px;
    height: 50px;
    padding: 6px;
  }

  /* Timeline Container */
  .timeline {
    padding-left: 30px;
  }

  /* Central Timeline Line */
  .timeline::after {
    left: 10px;
    margin-left: 0;
  }

  /* Event Card */
  .event {
    width: 85%;
    padding: 15px;
    margin: 20px 0;
    left: 30px;
    right: auto;
  }

  /* Positioning for Left and Right Cards */
  .left,
  .right {
    left: 30px;
    right: auto;
  }

  /* Timeline Marker */
  .event::after {
    left: -20px;
    font-size: 12px;
    width: 16px;
    height: 16px;
    top: 15px;
  }

  /* Ribbon */
  .ribbon {
    font-size: 14px;
    padding: 10px 0;
  }

  /* Typography */
  h2 {
    font-size: 16px;
  }

  p {
    font-size: 13px;
  }
  .main-profile {
    display: inline-block;
    padding: 10px;
    border-radius: 50%;
    margin-top: 70px;
  }

  .main-profile img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-top: -80px;
    object-fit: cover;
  }

  /* Remove hover effects and animations */
  .main-profile:hover img {
    transform: none;
    box-shadow: none;
  }
  .email .number {
    word-break: break-all;
  }
  .all-img {
    height: 400px;
    max-width: 400px;
  }
  .logo {
    width: 40px;
    height: 40px;
    --radius: 120px;
  }
  .middle img {
    width: 210px;
    height: 210px;
    margin-top: -30px;
  }
  .middle:hover ~ .logo,
  .middle:hover + .logo {
    --radius: 180px;
  }

  .education-timeline-left {
    margin-left: 2rem;
    margin-top: 15px;
  }
  .education-timeline-right {
    margin-bottom: 15rem;
    position: relative;
    margin-top: -5rem;
    margin-left: -4rem;
  }

  .soft-skills {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 95vh;
  }
  .image-layer img {
    width: 150px;
  }
  .image-layer:nth-child(1) {
    left: 0;
    z-index: 1;
    margin-top: 0;
  }
  .image-layer:nth-child(2) {
    left: 100px;
    z-index: 3;
    margin-top: -50px;
  }
  .image-layer:nth-child(3) {
    left: 200px;
    z-index: 4;
    margin-top: 0;
  }
  .soft-skill {
    position: relative;
    height: 400px;
  }
  .soft-skill-card {
    width: 100%;
    margin-top: 14rem;
    margin-left: -11.5rem;
  }
  .soft-skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
  }
  .soft-skill-card ul {
    list-style: none;
    padding: 0 20px;
  }

  .soft-skill-card li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    list-style-type: square;
  }
  .about-paragraph {
    display: flex;
    flex-direction: column;
    width: 80%;
  }
  .four-cards {
    display: flex;
    flex-direction: column;
  }
  .four-cards-under {
    display: flex;
    flex-direction: column;
  }
  .message-box img{
    display: none;
  }
  .contact-form{
    width: 370px;
  }
}

/* ---------------------------------------------------*/
