@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.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: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: rgb(235, 202, 245);
}
html::-webkit-scrollbar-thumb {
  background: #9140d3;
}

/* 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: #080808;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
}
section {
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 5rem;
  color: rgb(155, 25, 25);
  font-weight: 800;
  text-align: center;
}
.heading span {
  color: #fc8c05;
}
header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #f3f7f9;
}
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: #e5e9eb;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}
header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #eb0d0d;
  border-bottom: 0.2rem solid #c31f2d;
  padding: 0.5rem 0;
}
/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(249, 248, 250);
  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: #050505;
  }
  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }
  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.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: 0.5rem;
    border-bottom: 0.5rem solid #c31f2d;
  }
  .fa-times {
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle {
    right: 0;
  }
}
/* hamburger icon ends */

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
}
.home #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
}
.home .image {
  flex: 1 1 40rem;
  z-index: 1;
}
.home .image img {
  width: 70%;
  margin-left: 14rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.home .image img:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.home .content h2 {
  font-size: 5rem;
  font-weight: 800;
  color: #002057;
}
.home .content h2 span {
  font-size: 5rem;
  font-weight: 800;
  color: #ff7b00;
}
.home .content p {
  font-size: 2.5rem;
  color: #000;
  font-weight: 600;
  padding: 1rem 0;
}
.home .content p span {
  font-size: 2.5rem;
  color: rgb(148, 8, 8);
  font-weight: 600;
  padding: 1rem 0;
}
.home .btn {
  margin-top: 1rem;
  position: absolute;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 4em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 18px rgba(48, 68, 247, 0.6);
  font-family: "Nunito", sans-serif;
}
.home .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
}
.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.home .btn:hover {
  background: #1a047e;
}
.home .btn:hover i {
  transform: translateX(5px);
}
/* social icons start */
.socials {
  position: relative;
  margin-top: 9rem;
}
.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}
.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: #f0f3f4;
  background-color: #080808;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  transition: all 0.2s linear;
}
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #0077B5;
}
.social-icons a.github:hover {
  background-color: #0e0e0e;
}
.social-icons a.twitter:hover {
  background-color: #00aced;
}
.social-icons a.linkedin:hover {
  background-color: #007bb6;
}
.social-icons a.dev:hover {
  background-color: #070707;
}
.social-icons a.instagram:hover {
  background-color: #d62976;
}
/* social icons end */

/* hero media queries starts*/
@media (max-width: 450px) {
  .home .btn {
    margin: 4rem 0;
  }
  .socials {
    margin-top: 12rem;
  }
  .home .image img {
    margin-top: -12rem;
  }
  .home .content p {
    font-size: 2.2rem;
  }
  .home .content p span {
    font-size: 2.2rem;
  }
}
/* hero media queries ends*/
/* hero section end */

.about {
  background-color: #080808;
  padding: 6rem 9%;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  justify-content: center;
}

.about-img img {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(247, 242, 242, 0.3);
}

.about-content {
  flex: 1 1 500px;
}

.about-content h3 {
  font-size: 3rem;
  font-weight: 800;
  color: #f1ebeb;
}

.about-content h4 {
  font-size: 2rem;
  font-weight: 700;
  color: #e5b508;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.6rem;
  color: #cabfbf;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.about-content .resume-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1.2rem 2.5rem;
  font-size: 1.6rem;
  color: #fff;
  background: #2b3dda;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(43, 61, 218, 0.4);
  transition: background 0.3s;
}

.about-content .resume-btn:hover {
  background: #1a1a99;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-content h3,
  .about-content h4 {
    text-align: center;
  }
}

/* Skills Section */

.skills {
  padding: 60px 30px;
  background: #f3f3f3;
  text-align: center;
}

.skills .heading {
  font-size: 4rem;
  margin-bottom: 5rem;
  color: #222;
}

.skills .heading span {
  color: #ff9900;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns */
  gap: 1rem;
  max-width: 1200px;
  margin: auto;
 padding: 0 1rem;
}

.skill-box {
  background-color: #0e0b21;
  padding: 2rem 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 1.4rem;
}

.skill-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ffe60080, 0 0 25px #ffe60040;
}

.skill-box img {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skill-box:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px #ffe600);
}

.skill-box h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.progress {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 0;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #ffe600;
  transition: width 2s ease;
}

/* Education Section */

.education {
  padding: 50px 20px;
  background: #eaf0ff;
  text-align: center;

}

.education .heading {
  font-size: 4rem;
  color: #222;
  margin-bottom: 0.8rem;
}

.education .heading span {
  color: #8000b0;
}

.education .quote {
  font-size: 1rem;
  color: #333;
  margin-bottom: 4rem;
}

.edu-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.edu-box {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.edu-box img {
  width: 250px;
  object-fit: cover;
}

.edu-content {
  padding: 1.8rem;
  text-align: left;
  flex: 1;
}

.edu-content h3 {
  font-size: 1.5rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.edu-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.edu-date {
  font-weight: bold;
  font-size: 1.1rem;
}

.status.pursuing {
  color: #28a745;
}

.status.completed {
  color: #008000;
}


/* experience section starts */
.experience .timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.experience .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2;
}
.experience .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
/*circles on timeline*/
.experience .container::after {
  content: "\f0b1";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: rgb(255, 255, 255);
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 600;
  color: #02094b;
  font-family: "Font Awesome\ 5 Free";
}
.experience .left {
  left: 0;
}
.experience .right {
  left: 50%;
}
/* arrows pointing right */
.experience .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #f68c09;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #f68c09;
}
/* arrows pointing left  */
.experience .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #f68c09;
  border-width: 10px 10px 10px 0;
  border-color: transparent #f68c09 transparent transparent;
}
.experience .right::after {
  left: -16px;
}
.experience .content {
  background-color: #f68c09;
  position: relative;
  border-radius: 6px;
}
.experience .content .tag {
  font-size: 1.3rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
}
.experience .content .desc {
  margin-left: 1.5rem;
  padding-bottom: 1rem;
}
.experience .content .desc h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
.experience .content .desc p {
  font-size: 1.2rem;
}
/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
}
.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  text-align: center;
}
.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}
.morebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.morebtn .btn:hover {
  background: #1a047e;
}
.morebtn .btn:hover i {
  transform: translateX(5px);
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
    min-height: 80vh;
  }
  .experience .timeline {
    margin-top: 2rem;
  }
  .experience .timeline::after {
    left: 31px;
  }
  .experience .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }
  .experience .container::after {
    font-size: 2.2rem;
  }
  .experience .container::before {
    left: 61px;
    border: medium solid #f68c09;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f68c09 transparent transparent;
  }
  .experience .left::after {
    left: 15px;
  }
  .experience .right::after {
    left: 15px;
  }
  .experience .right {
    left: 0%;
  }
  .morebtn {
    margin-top: 3rem;
  }
}
/* experience media queries ends */

/* Slide-in animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animation to containers */
.experience .container.left {
  animation: slideInLeft 1s ease forwards;
}

.experience .container.right {
  animation: slideInRight 1s ease forwards;
}

.experience .container:nth-child(1) {
  animation-delay: 0.3s;
}
.experience .container:nth-child(2) {
  animation-delay: 0.5s;
}
.experience .container:nth-child(3) {
  animation-delay: 0.7s;
}
.experience .container:nth-child(4) {
  animation-delay: 0.9s;
}
.experience .container:nth-child(5) {
  animation-delay: 1.1s;
}
.experience .container:nth-child(6) {
  animation-delay: 1.3s;
}

/* Hide initially */
.experience .container {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

/* Show when in view */
.experience .container.reveal {
  opacity: 1;
  transform: translateY(0);
}

.experience .content .logo-wrapper {
  padding: 1rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.experience .content .logo-wrapper img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* content-wrapper for flex layout */
.experience .content-wrapper {
  display: flex;
  align-items: center;
  background-color: #f68c09;
  border-radius: 6px;
  padding: 1rem;
}

/* logo wrapper */
.experience .logo-wrapper {
  flex: 0 0 60px;
  margin-right: 1.5rem;
}

.experience .logo-wrapper img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* content stays same */
.experience .content {
  background-color: transparent;
  padding: 0;
}

/* Certifications Section */
.certifications {
  background-color: #9adc28;
  padding: 4rem 9%;
}

.certifications .heading {
  font-size: 3.5rem;
  color: #020133;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

.cert-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.cert-box {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.cert-box:hover {
  transform: translateY(-8px);
}

.cert-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.cert-box h3 {
  font-size: 1.8rem;
  color: #020133;
  margin-bottom: 0.5rem;
}

.cert-box p {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 1rem;
}

.cert-box .btn {
  font-size: 1.4rem;
  padding: 0.8rem 1.5rem;
  background-color: #2506ad;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.cert-box .btn:hover {
  background-color: #1a047e;
}

/* footer section */
.footer {
  background: #050505;
  text-align: center;
  padding: 4rem 2rem 2rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer .box h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer .box p,
.footer .box a {
  font-size: 1.4rem;
  color: #ccc;
  line-height: 1.6;
  display: block;
  text-decoration: none;
}

.footer .box a i {
  padding-right: 0.5rem;
  color: #ff9800;
}

.footer .box a:hover {
  color: #ff9800;
}

.footer .share {
  margin-top: 1.5rem;
}

.footer .share a {
  height: 40px;
  width: 40px;
  line-height: 40px;
  margin: 0 5px;
  font-size: 1.5rem;
  color: #0e0e2c;
  background: #eee;
  border-radius: 50%;
  display: inline-block;
  transition: 0.3s;
}

.footer .share a:hover {
  background: #ff9800;
  color: #fff;
}

.footer .credit {
  margin-top: 2rem;
  font-size: 1.4rem;
  font-weight: 400;
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  color: #ccc;
}

.footer .credit a {
  color: #ff9800;
  font-weight: 600;
  text-decoration: none;
}

.footer .credit .fa-heart {
  color: red;
  animation: pulse 1.5s infinite;
}

/* Heart animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
