* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all .2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: #f7f7f7;
  font-family: 'Poppins', sans-serif;
}

*::selection {
  background: #2b3dda;
  color: #fff;
}

html::-webkit-scrollbar {
  width: .8rem;
}

html::-webkit-scrollbar-track {
  background: rgb(235, 202, 245);
}

html::-webkit-scrollbar-thumb {
  background: #420177;
}

/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, .3);
}
header img {
  width: 60px; /* Adjust width as needed */
  height: auto; /* Maintain aspect ratio */
  margin-right: -450px; /* Decrease margin to reduce space between logo and text */
  object-fit: cover; /* Crop the logo */
/* Safari specific adjustments */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  max-width: 100%; /* Ensure the image doesn't exceed its container */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Crop the logo */
  margin-right: -480px; /* Adjust margin specifically for Safari */
}
}

header {
  display: flex;
  align-items: center;
}

/* Add glow effect when cursor hovers over logo and text */
header img,
header h1 {
    transition: color 0.3s ease-in-out; /* Smooth transition effect */
}

header img:hover,
header h1:hover {
    color: rgb(0, 136, 255); /* Change color to orange on hover */
}

section {
  min-height: 100vh;
  padding: 2rem 9%;
}

.heading {
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}

.heading span {
  color: rgb(115, 3, 167);
}

header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0E2431;
}

header .logo i {
  font-size: 2.2rem;
}

header .logo:hover {
  color: #fc8c05;
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .navbar li {
  margin-left: 2.5rem;
}

header .navbar ul li a {
  font-size: 1.57rem;
  color: #0E2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #011aff;
  border-bottom: .2rem solid #011aff;
  padding: .5rem 0;
}

/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}

@media(max-width:768px) {
  #menu {
      display: block;
  }

  header .navbar {
      position: fixed;
      top: 6.5rem;
      right: -120%;
      width: 75%;
      height: 100%;
      text-align: left;
      align-items: flex-start;
      background-color: #0e0f31;
  }

  header .navbar ul {
      flex-flow: column;
      padding: 1rem;
  }

  header .navbar ul li {
      text-align: center;
      width: 100%;
      margin: 1rem 0;
      border-radius: .5rem;
      width: 26rem;
  }

  header .navbar ul li a {
      display: block;
      padding: 1rem;
      text-align: left;
      color: #fff;
      font-size: 2rem;
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
      padding: 1rem;
      color: #fff;
      border-radius: .5rem;
      border-bottom: .5rem solid #011aff;
  }

  .fa-times {
      transform: rotate(180deg);
  }

  header .navbar.nav-toggle {
      right: 0;
  }
}

/* hamburger icon ends */

.work {
  background: linear-gradient(to bottom, #010136, #00003a);
  margin-top: 5rem;
  padding: 50px 0;
}

.work h2 {
  color: #fff;
  padding: 1rem;
}

.work .heading span {
  color: rgb(255, 230, 0);
}

.work .button-group {
  display: none; /* Hide the button group */
}

.work .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem;
}

.work .box-container .box {
  flex: 1 1 30rem;
  border-radius: .5rem;
  box-shadow: 0 .7rem 1rem rgba(0, 0, 0, .3);
  position: relative;
  overflow: hidden;
  height: 30rem;
  background: #fff;
  border: none; /* Removed border */
}

.work .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.work .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 85%;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}

.work .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  padding-left: 1rem;
  background: #ffd900;
}

.work .box-container .box .content .tag h3 {
  font-size: 2rem;
}

.work .box-container .box:hover .content {
  top: 25%;
}

.work .desc {
  margin: 2rem;
  display: flex;
  flex-direction: column;
}

.work .desc p {
  font-size: 1.5rem;
}

.work .desc .btns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}

.work .desc .btns .btn {
  line-height: 0;
  display: inline;
  padding: 1.5rem 2.5rem;
  border-radius: .5rem;
  font-size: 1.5rem;
  color: #fff;
  background: rgb(12, 12, 12);
  margin-right: 2rem;
}

.work .desc .btns .btn:hover {
  background: #310ae0f5;
}

@media screen and (max-width: 450px) {
  .work .button-group {
      width: 100%;
  }

  .work .box-container {
      margin: 0rem;
  }

  .work .box-container .grid-item .box {
      width: 95% !important;
  }
}


/* back to home button */
.backbtn {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 4rem;
}

.backbtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: .5em;
  transition: 0.3s;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0px 2px 4px rgba(48, 68, 247, .3);
  text-align: center;
}

.backbtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'Nunito', sans-serif;
}

.backbtn .btn i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  transition: 0.3s;
}

.backbtn .btn:hover {
  background: #ffffff;
  color: #000;
}

.backbtn .btn:hover i {
  transform: translateX(-8px);
}

/* common media queries starts*/
@media(max-width:450px) {
  html {
      font-size: 55%;
  }

  body {
      padding-right: 0;
  }

  section {
      padding: 2rem;
  }
}
/* common media queries ends*/

/* 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: 5rem;
  transition: 1s linear;
  z-index: 1000;
}

#scroll-top.active {
  top: calc(100% - 12rem);
}

.background-container {
  position: fixed;
  top: 6.5rem; /* Adjust according to your header height */
  left: 0;
  width: 100%;
  height: 80%; /* Adjust the height of the container as needed */
  background-color: #000; /* Example background color */
  overflow: hidden; /* Add any other styling you desire */
  z-index: -1; /* Ensures it stays behind other content */
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.about-container {
  background-color: #000; /* Black background color */
  padding: 50px 0; /* Adjust padding as needed */
}

.about-container .row {
  display: flex;
  justify-content: center;
}

.about-container .content {
  width: 50%;
  color: #fff; /* Text color */
  padding-left: 20px; /* Add padding to create space between the photo and content */
  margin-left: 60px;
}

.about-container h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-container .tag {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.about-container p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-container .box-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.about-container .box {
  display: flex; /* Use flexbox */
  flex-direction: column; /* Arrange content vertically */
  align-items: flex-start; /* Align content to the start (left side) */
  flex: 0 0 calc(50% - 15px); /* Adjust width to fit two boxes with spacing */
  background-color: rgba(255, 255, 255, 0.1); /* Box background color */
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px; /* Increase margin between boxes */
  margin-right: 30px; /* Add margin between boxes */
}

/* Adjust margin or padding for smaller screens */
@media screen and (max-width: 768px) {
  .about-container .box {
    margin-right: 0; /* Remove margin on smaller screens */
    margin-bottom: 20px; /* Add margin between rows on smaller screens */
  }
}

.about-container .box p {
  font-size: 1.6rem;
  line-height: 2.5rem;
  margin-bottom: 10px;
}

.about-container .box p span {
  font-weight: bold;
}

.about-container .resumebtn {
  margin-top: 2rem;
}

/* Style resume button */
.about-container .resumebtn .btn {
  background-color: #fff; /* Button background color */
  color: #000; /* Button text color */
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.6rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.about-container .resumebtn .btn:hover {
  background-color: #000; /* Button background color on hover */
  color: #fff; /* Button text color on hover */
}

.image-container1 {
  width: 200px; /* Adjust the width and height as needed */
  height: 200px;
  border-radius: 50%; /* Make the image container circular */
  overflow: hidden; /* Hide overflow to ensure the circular shape */
}

.image-container78 {
  width: 420px; /* Adjust the width and height as needed */
  height: 420px;
  border-radius: 50%; /* Make the image container circular */
  overflow: hidden; /* Hide overflow to ensure the circular shape */
  position: relative; /* Ensure proper positioning for child elements */
  left: 7%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow to the image container */
}

.image-container78 .tilt {
  width: 100%; /* Make the image take the full width of the container */
  height: 100%; /* Make the image take the full height of the container */
  object-fit: cover; /* Ensure the image covers the container without distortion */
  position: absolute; /* Absolutely position the image */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the image */
  border-radius: 50%; /* Match the container's border-radius for a circular effect */
}


.profile-image {
  width: 100%; /* Make the image fill its container */
  height: auto; /* Maintain aspect ratio */
}


/* Style for the overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease; /* Smooth transition effect */
}

/* Animation when cursor hovers over the image */
.image-container:hover .profile-image {
  transform: scale(1.1); /* Scale up the image by 10% */
}

/* Add this CSS to ensure typing text is visible */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: Left;
  align-items: center;
  text-align: left;
  color: black; /* Set text color to white or any contrasting color */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow to the hero section */
}

.hero-content {
  z-index: 1;
}

.hero-content h1 {
  font-size: 6rem;
  margin-bottom: 20px;
  color: #00003a;
}

.hero-content p {
  font-size: 3rem;
  margin-top: 8px;
}

.hero .image {
  width: 450px; /* Adjust the width and height as needed */
  height: 450px;
  border-radius: 50%; /* Make the image container circular */
  overflow: hidden; /* Hide overflow to ensure the circular shape */
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow to the hero section */
 /* Adjust for Safari */
 @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
  mask-image: radial-gradient(circle, white 100%, black 100%);
}
}


.hero-content h1 .name {
  color: orange;
}

.skills-icons {
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
}

.skills-icons i{
  font-size: 40px;
}

.icon1 {
  position: absolute;
  top: -50px; /* Adjust the position */
  left: 50px; /* Adjust the position */
}

.icon2 {
  position: absolute;
  top: -50px; /* Adjust the position */
  right: -570px; /* Adjust the position */
}

.icon3 {
  position: absolute;
  bottom: -150px; /* Adjust the position */
  left: 80px; /* Adjust the position */
}


.icon5 {
  position: absolute;
  top: -180px; /* Adjust the position */
  left: 130px; /* Adjust the position */
  transform: translate(-50%, -50%); /* Center the icon */
}

.icon6 {
  position: absolute;
  top: -200px; /* Adjust the position */
  left: 480px; /* Adjust the position */
}

.icon7 {
  position: absolute;
  bottom: -150px; /* Adjust the position */
  left: 510px; /* Adjust the position */
}
/* Safari specific adjustments */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .icon1, .icon2, .icon3, .icon5, .icon6, .icon7 {
    transform: translate(0); /* Reset transform for Safari */
  }
}

.social-icons {
  margin-top: 20px;
}

.social-icon {
  font-size: 24px;
  color: #333;
  margin-right: 10px;
  transition: color 0.3s ease; /* Add transition effect */
}

.social-icon:hover {
  color: #007bff; /* Change color on hover */
  color: #1DA1F2
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #1DA1F2;
  color: #fff;
  text-decoration: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 50px; /* Make it round */
  box-shadow: 0 0 20px rgba(29, 161, 242, 0); /* Initial shadow */
  transition: box-shadow 0.3s ease; /* Smooth transition for shadow */
}

.btn span {
  position: relative;
  z-index: 1;
}

/* Glowing effect animation */
@keyframes glowing {
  0% { box-shadow: 0 0 0px rgba(29, 161, 242, 0.8); }
  50% { box-shadow: 0 0 20px 10px rgba(29, 161, 242, 0.8); }
  100% { box-shadow: 0 0 0px rgba(29, 161, 242, 0.8); }
}

/* Apply the glowing effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: glowing 2s linear infinite;
  z-index: 0;
}

.btn:hover::after {
  animation: none; /* Stop the animation on hover */
}

/* Shadow glow on hover */
.btn:hover {
  box-shadow: 0 0 40px 20px rgba(29, 161, 242, 0.8); /* Adjust shadow properties */
}

.typing-text {
  display: inline-block;
  min-width: 500px; /* Adjust the width based on the longest text */
}

/*skill section*/
.skills {
  text-align: center;
  padding: 50px 0;
  background-color: #f9f9f9; /* Adding a background color */
}

.skills-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-card-container {
  width: 500px; /* Adjust the width as needed */
  overflow-x: hidden; /* Hide the overflowed cards */
  display: flex;
  justify-content: center;
  margin: 0 auto; /* Center the container */
}


.skill-cards {
  display: flex;
  padding: 20px;
  transition: transform 0.3s ease;
}

.skill-card {
  flex: 0 0 auto; /* Prevent cards from shrinking */
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-right: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.skill-card:last-child {
  margin-right: 0;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card i {
  font-size: 50px;
  color: #333;
}

.skill-card h3 {
  margin: 15px 0;
  font-size: 20px;
  color: #333;
}
.progress-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.swipe-buttons {
  margin-top: 20px;
  display: flex;
}

.swipe-button {
  font-size: 30px;
  cursor: pointer;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.swipe-button:hover {
  transform: translateY(-5px);
}



/* education section starts */
.education {
  background: #e5ecfb;
  min-height: 80vh;
}
.education .qoute {
  font-size: 1.5rem;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  margin-top: 0.5rem;
}
.education .box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.education .box-container .box {
  display: flex;
  flex-direction: row;
  width: 80%;
  border-radius: 0.5rem;
  box-shadow: 0.2rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  transition: 0.3s;
  background: rgb(252, 252, 252);
}
.education .box-container .box:hover {
  transform: scale(1.03);
  box-shadow: 1rem 0.5rem 1.2rem rgba(0, 0, 0, 0.3);
}
.education .box-container .box .image {
  flex: 1 1 20rem;
  width: 100%;
}
.education .box-container .box img {
  object-fit: cover;
  position: relative;
  width: 100%;
  height: 100%;
}
.education .box-container .box .content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  flex-wrap: wrap;
  flex: 1 1 70rem;
}
.education .box-container .box .content h3 {
  font-size: 2.5rem;
  color: #012970;
  padding: 0.5rem 0;
  font-weight: 600;
  text-align: left;
  margin-left: 1rem;
}
.education .box-container .box .content p {
  font-size: 1.5rem;
  margin-left: 1rem;
  text-align: left;
}
.education h4 {
  font-size: 2rem;
  color: rgb(34, 109, 0);
  text-align: left;
  margin: 1rem;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}

/* education media queries starts*/
@media screen and (max-width: 600px) {
  .education .box-container .box {
    flex-direction: column;
    width: 100%;
  }
  .education .box-container .box .image {
    width: 100%;
    height: 25rem;
  }
  .education .box-container .box img {
    width: 100%;
  }
  .education .box-container .box .content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex-wrap: wrap;
    flex: 0;
  }
  .education .btns {
    margin-top: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    flex-wrap: wrap;
  }
}
/* education media queries ends*/
/* education section ends */

/* contact section starts */
.contact {
  background: none;
  min-height: 60vh;
}
.contact .container {
  max-width: 1050px;
  width: 100%;
  background: #000000;
  border-radius: 1.5rem;
  margin: 2rem 5rem;
  box-shadow: 0 5px 10px white(255, 255, 255, 0.15);
}
.contact .container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
}
.contact .content .image-box {
  max-width: 60%;
  margin-left: 4rem;
}
.contact .content .image-box img {
  width: 100%;
  height: 40rem;
  position: relative;
}
.contact .content form {
  width: 45%;
  margin-right: 3.5rem;
}
form .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  margin: 1rem;
  width: 100%;
}
form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: rgb(51, 51, 51);
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}
form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  border-radius: 5px;
  border: 1px solid rgb(51, 51, 51);
  background: #e5ecfb;
}
.field input::placeholder,
.message textarea::placeholder {
  color: rgb(51, 51, 51);
}
.field input:focus,
.message textarea:focus {
  padding-left: 47px;
  border: 2px solid rgb(115, 3, 167);
}
.field input:focus ~ i,
.message textarea:focus ~ i {
  color: rgb(115, 3, 167);
}
form .message {
  position: relative;
  margin: 1rem;
  width: 100%;
}
form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}
form .message textarea {
  min-height: 130px;
  max-height: 230px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
}
form .message textarea::-webkit-scrollbar {
  width: 0px;
}
form .button-area {
  display: flex;
  float: right;
  flex-direction: row-reverse;
}
.button-area button {
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 13px 25px;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  transition: 0.3s ease;
  font-family: "Nunito", sans-serif;
}
.button-area button:hover {
  background: #421cecf5;
}
.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}
.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #fff;
}
.button-area button:hover i {
  left: 8px;
}
/* contact section media queries starts */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
  }
  .contact .container {
    margin: 3rem 0 2rem 0;
  }
  .contact .container .content {
    padding: 18px 12px;
  }
  .contact .content .image-box {
    display: none;
  }
  .contact .content form {
    width: 100%;
    margin-right: 2rem;
  }
}
/* contact section media queries ends */
/* contact section ends */

/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  background: rgb(0, 1, 43);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
}
.footer .box-container .box a:hover {
  color: #ffae00;
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}
.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #ffae00;
}
.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: 0.1rem solid #fff3;
}
.footer .credit a {
  color: #ffae00;
}
.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */


/* 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: 0.5s linear;
  z-index: 1000;
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  border: 2px solid #333; /* Adjust line color here */
  border-radius: 50%;
  background-color: #333; /* Adjust line color here */
  width: 10px; /* Adjust line thickness here */
  height: 10px; /* Adjust line thickness here */
  left: -5px;
  transform: translateY(-50%);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.timeline-item::after {
  content: '';
  position: absolute;
  background-color: #333; /* Adjust line color here */
  left: 0;
  width: 2px; /* Adjust line thickness here */
  top: 0;
  bottom: 0;
  margin-left: 2px;
  z-index: 0;
}

.timeline-content {
  position: relative;
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

.project-box {
  position: absolute;
  top: 0;
  background-color: #f1f1f1;
  border-radius: 8px;
  padding: 10px;
}

.project-box-left {
  left: -200px; /* Adjust distance from the timeline here */
}

.project-box-right {
  right: -200px; /* Adjust distance from the timeline here */
}

.timeline-date {
  position: absolute;
  top: 0;
  right: 0;
  background: #333;
  color: #fff;
  padding: 8px 15px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.timeline-item:nth-child(odd) .timeline-content {
  order: 1;
}

.timeline-item:nth-child(odd) .timeline-date {
  left: 0;
  right: auto;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.timeline-item:nth-child(odd)::before {
  left: auto;
  right: -5px;
}

/* CSS for Projects Section */
.projects {
  padding: 50px 0;
  text-align: center;
  perspective: 1000px; /* Add perspective to create 3D effect */
}

.project {
  display: inline-block;
  margin: 40px; /* Increase the margin between project containers */
}

.project-container {
  position: relative; /* Position the container relative to its parent */
  background-color: #f5f5f5;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 60px; /* Increase the padding to make the container larger */
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
  transform-style: preserve-3d; /* Preserve 3D position after transformation */
}

.project-container:hover {
  transform: scale(1.1) rotate(5deg); /* Scale up and add a slight rotation on hover */
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.1); /* Glowing shadow effect */
}

.project-container::before {
  content: ''; /* Create a pseudo-element for the backside */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Adjust background color as needed */
  backface-visibility: hidden; /* Hide the backside */
  transform: rotateY(180deg); /* Initially rotate to hide the backside */
  transition: transform 0.3s ease; /* Smooth transition for rotation */
}

.project-container:hover::before {
  transform: rotateY(0deg); /* Rotate to show the backside on hover */
}

.project-container .front {
  position: relative;
  z-index: 2; /* Ensure front content is above back content */
}

.project-container .back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hide the backside */
  transform: rotateY(180deg); /* Initially rotate to hide the backside */
  z-index: 1; /* Ensure back content is below front content */
}

.project-container h3 {
  margin-top: 0;
}

.image-container2 {
  width: 100%;
  padding-top: 100%;
  position: relative;
  overflow: hidden;
}

.image-container2 img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%; /* Ensure the image does not exceed the container's width */
  max-height: 100%; /* Ensure the image does not exceed the container's height */
  object-fit: cover; /* Cover the entire container while maintaining aspect ratio */
  border-radius: 20px;
}
.btn {
  display: inline-block;
  padding: 15px 30px; /* Increase the button size */
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 30px; /* Increase the margin between the button and the container */
  transition: background-color 0.3s;
}

.toggle-buttons-container {
  display: flex;
  justify-content: center;
  margin-top: 20px; /* Adjust margin from the top */
}

.btn:hover {
  background-color: #0056b3;
}

/* Adjust the size of the button */
.relative {
  font-size: 18px; /* Change font size */
}

/* Adjust the padding to increase button size */
.group {
  padding: 12px 24px; /* Increase padding to increase button size */
  position: relative; /* Add relative positioning */
  overflow: hidden; /* Hide overflowing content */
  border: 2px solid transparent; /* Add border */
  margin-top: 10px; /* Reduce margin from the top */
  border-radius: 20px; /* Round the corners */
}

/* Add circle shape at the center */
.group::before {
  content: "";
  position: absolute;
  top: 50%; /* Adjust vertical position to center */
  left: 50%; /* Adjust horizontal position to center */
  transform: translate(-50%, -50%); /* Center the circle */
  width: 40px; /* Adjust size of circle */
  height: 40px; /* Adjust size of circle */
  background-color: rgba(255, 255, 255, 0.1); /* Circle color with transparency */
  border-radius: 50%; /* Make it a circle */
  z-index: -1; /* Move the circle behind the button */
  transition: transform 0.3s ease; /* Add transition effect */
}

/* Adjust the text color and background color */
.group {
  color: black; /* Change text color */
  background-color: transparent; /* Set background color to transparent */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow */
}

/* Adjust the hover color */
.group:hover {
  background-color: #00bfff; /* Change background color on hover */
  border-color: #00bfff; /* Change border color on hover */
}

/* Glowing effect */
.group:hover::before {
  transform: scale(3); /* Increase the size of the circle on hover */
}

/* Add margin from the top to the button */
.border {
  margin-top: 20px !important; /* Add margin from the top */
}

/* Define keyframes for the animation */
@keyframes runningColor {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Apply animation to the button */
.border:hover {
  animation: runningColor 3s linear infinite;
}
/* Glowing effect for project and certificate buttons */
.group:hover {
  box-shadow: 0 0 10px #00bfff, 0 0 20px #00bfff, 0 0 30px #00bfff, 0 0 40px #00bfff; /* Adjust the shadow color and size */
}
.certificates {
  padding: 50px 0;
  text-align: center;
}

.certificate {
  display: inline-block;
  margin: 40px; /* Increase the margin between certificate containers */
  position: relative; /* Ensure relative positioning for child elements */
}

.certificate-container {
  position: relative;
  background-color: #f5f5f5;
  border-radius: 20px; /* Make the container square with rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 60px; /* Increase the padding to make the container larger */
  text-align: center;
  overflow: hidden;
  width: 300px; /* Adjust width and height to be the same for a square */
  height: 300px; /* Must be equal to width for a perfect square */
  transition: all 0.4s ease-in-out; /* Smooth transition for the container */
}

.certificate-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the image */
  max-width: 90%; /* Ensure the image doesn't exceed the container */
  max-height: 90%;
  width: auto; /* Allow the image to scale while maintaining aspect ratio */
  height: auto; /* Allow the image to scale while maintaining aspect ratio */
  opacity: 1; /* Image is visible initially */
}

.certificate-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px; /* Match the container's border-radius */
  background: linear-gradient(90.21deg, #aa367c -5.91%, #4a2fbd 111.58%);
  opacity: 0;
  transition: opacity 0.2s ease-in-out; /* Smooth transition for opacity */
}

.certificate-container:hover::before {
  opacity: 0.85; /* Change opacity on hover */
}

.certificate-content {
  position: absolute;
  bottom: 20px; /* Adjust the vertical position from the bottom as needed */
  left: 0;
  right: 0;
  text-align: center; /* Center align the text */
  padding: 0 20px; /* Add padding to give some space around the text */
}

.certificate-content span {
  display: block;
  font-size: 14px; /* Increase font size for better readability */
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.5s ease; /* Smooth transition for opacity */
}



/* Ensure the text becomes visible on hover */
.certificate-container:hover .certificate-content span {
  opacity: 1; /* Fade in span text content on hover */
}

/* Adjust for Safari */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .certificate-container::before {
    -webkit-backdrop-filter: blur(10px); /* Apply backdrop filter for Safari */
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.5); /* Fallback background color */
  }
}
/* Adjust for Safari */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .certificate-container:hover::before {
    background-color: rgba(255, 255, 255, 0); /* Fallback background color */
  }
}



@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --color: rgba(30, 30, 30);
  --bgColor: rgba(245, 245, 245);
  --creamColor: #f9f9f9; /* Cream color for section background */
  --accent-color: #41516C; /* Accent color for timeline dates */
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 2rem;
  padding: 2rem;
  font-family: "Poppins", sans-serif;
  color: var(--color);
  background: var(--bgColor);
}

.container {
  width: 100%; /* Adjust max-width as needed */
  margin: auto;
  background-color: var(--creamColor); /* Cream color background for container */
  padding: 2rem; /* Padding around container */
  border-radius: 0.5rem; /* Rounded corners for container */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Box shadow for container */
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem; /* Increased font size */
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-header i {
  margin-right: 1rem; /* Space between icon and text */
  font-size: 2.5rem; /* Increased icon size */
}

.timeline {
  --col-gap: 2rem;
  --row-gap: 2rem;
  --line-w: 0.25rem;
  display: grid;
  grid-template-columns: var(--line-w) 1fr;
  grid-auto-columns: max-content;
  column-gap: var(--col-gap);
  list-style: none;
  width: 100%; /* Full width of container */
  margin-inline: auto;
  background-color: #ffffff; /* Background color for timeline */
  padding: 2rem; /* Padding around timeline */
  border-radius: 0.5rem; /* Rounded corners for timeline */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Box shadow for timeline */
}

/* line */
.timeline::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 20;
  background: rgb(225, 225, 225);
  border-radius: calc(var(--line-w) / 2);
}

/* card */
.timeline li {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: var(--inlineP);
  grid-row: span 2;
  display: grid;
  grid-template-rows: min-content min-content min-content;
  background-color: #ffffff; /* Background color for timeline cards */
  padding: 1.5rem; /* Padding inside timeline cards */
  border-radius: 0.5rem; /* Rounded corners for timeline cards */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Box shadow for timeline cards */
}

/* date */
.timeline li .date {
  --dateH: 3rem;
  height: var(--dateH);
  margin-inline: calc(var(--inlineP) * -1);
  text-align: center;
  background-color: var(--accent-color);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  display: grid;
  place-content: center;
  position: relative;
  border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* date flap */
.timeline li .date::before {
  content: "";
  width: var(--inlineP);
  aspect-ratio: 1;
  background: var(--accent-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

/* circle */
.timeline li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--bgColor);
  border: 0.3rem solid var(--accent-color);
  border-radius: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
.timeline li .title,
.timeline li .descr {
  background: var(--bgColor);
  position: relative;
  padding-inline: 1.5rem;
}

.timeline li .title {
  overflow: hidden;
  padding-block-start: 1.5rem;
  padding-block-end: 1rem;
  font-weight: 500;
}

.timeline li .descr {
  padding-block-end: 1.5rem;
  font-weight: 300;
}

/* shadows */
.timeline li .title::before,
.timeline li .descr::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
}

.timeline li .title::before {
  bottom: calc(100% + 0.125rem);
}

.timeline li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

@media (min-width: 40rem) {
  .timeline {
    grid-template-columns: 1fr var(--line-w) 1fr;
  }
  .timeline::before {
    grid-column: 2;
  }
  .timeline li:nth-child(odd) {
    grid-column: 1;
  }
  .timeline li:nth-child(even) {
    grid-column: 3;
  }

  /* start second card */
  .timeline li:nth-child(2) {
    grid-row: 2/4;
  }

  .timeline li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  .timeline li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }
  .timeline li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }
}


/* Styles for thank you overlay */
.thank-you-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 999;
}

.thank-you-overlay.show {
  opacity: 1;
}

/* Styles for thank you pop-up */
.thank-you-popup {
  position: fixed;
  top: -100px; /* Start above the viewport */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  color: white;
  padding: 20px 40px;
  border-radius: 50px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.5s ease-in-out;
  z-index: 1000;
  font-size: 1.2em;
  font-family: 'Arial', sans-serif;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.thank-you-popup.show {
  top: 30px; /* Move into view */
  opacity: 1;
}

.thank-you-popup p {
  margin: 0;
  padding: 0;
}

.thank-you-popup i {
  font-size: 1.5em;
  animation: pop 0.5s ease-in-out;
}

@keyframes pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Confetti effect */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 0.7;
  animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0);
  }
  100% {
    transform: translateY(600px) rotate(360deg);
  }
}

@keyframes pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Optional: Styling the container and form */
.container {
  position: relative;
  z-index: 1;
}

