@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;
}
html{
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body{
  background: #f7f7f7;
  font-family: 'Poppins', sans-serif;
}

*::selection{
  background: #2b3dda;
  color: #fff;
}




/* 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);
}
section{
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading{
  font-size: 3.5rem;
  color: rgb(20, 20, 20);
  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: #0f9d8a;
  border-bottom: 0.2rem solid #0f9d8a;
  padding: 0.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;
    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: 0.5rem solid #0f9d8a;
  }
  .fa-times{
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle{
    right: 0;
  }
}
/* hamburger icon ends */

/* experience section starts */
.experience {
  margin-top: 5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;

}
.experience .quote {
  max-width: 800px;
  margin: 1rem auto 3rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
  color: #444;
}
.experience .timeline {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
}
.experience .timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: 0;
}
.experience .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  z-index: 1;
}
/*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 #f68c09;
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 900;
  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 {
  position: relative;
  overflow: hidden;
}


.experience .content .tag h2 {
  font-size: 1.8rem;
  line-height: 1.4;
}

.experience .content .desc h3 {
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  
}
.experience .content .desc p {
  font-size: 1.25rem;
  line-height: 1.5;
  text-transform: none;
}


.experience .content .desc .date {
  margin-top: 0.2rem;
  font-weight: 600;
  
}

.experience .content .desc ul {
  margin-top: 1rem;
  padding-left: 2rem;
}

.experience .content .desc li {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  line-height: 1.6;
  text-transform: none;
}
/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'Nunito', sans-serif;
}
.morebtn .btn i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  transition: 0.3s;
}

.morebtn .btn:hover i {
  transform: translateX(-8px);
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .experience .timeline::after {
    left: 31px;
  }

  .experience .container {
    width: 100%;
    padding-left: 7rem;
    padding-right: 0;
  }

  .experience .container::before {
    left: 60px;
    border: medium solid #f68c09;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f68c09 transparent transparent;
  }

  .experience .left::after,
  .experience .right::after {
    left: 15px;
  }

  .experience .right {
    left: 0;
  }

  .experience .content .tag h2 {
    font-size: 1.6rem;
  }

  .experience .content .desc h3 {
    font-size: 1.5rem;
  }

  .experience .content .desc p,
  .experience .content .desc li {
    font-size: 1.2rem;
  }
}
/* experience media queries ends */
/* experience section ends */
/* ===== EXPERIENCE PAGE SCROLLBAR ===== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #04101a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    #2dd4bf,
    #0f9d8a
  );
  border: 2px solid #04101a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #42e5cf;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #0f9d8a #04101a;
}

/* 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: 2rem;
}
.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: .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: .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: .2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}
.footer .box-container .box .share a:hover{
  background: transparent;
  transform: scale(0.98);
  border: .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: .1rem solid #fff3;
}
.footer .credit a{
  color: #ffae00;
}
.footer .fa{
    color: #E90606;
    margin: 0 .3rem;
    font-size: 1.5rem;
    animation: pound .35s infinite alternate;
}

@keyframes pound{
  to{
    transform: scale(1.1);
}
}
@media(max-width:450px){
  .footer .box-container .box{
    margin: 2rem;
  }
  .footer .box-container .box p{
    padding: 0.7rem;
  }
  .footer .box-container .box .share a{
    padding: 1.1rem;
  }
}
/* footer section ends */

/* common media queries starts*/
@media(max-width:450px){
  html{
    font-size: 55%;
  }
  body{
    padding-right: 0;
  }
  section{
    padding: 2rem;
  }
}
/* common media queries ends*/


/* ===== DARK CODER EXPERIENCE THEME ===== */

.experience {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(0, 210, 190, 0.11),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(33, 126, 210, 0.12),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #020810 0%,
      #071522 48%,
      #04101a 100%
    );
}

/* Subtle coding grid */

.experience::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

/* Keep all content above background */

.experience .heading,
.experience .quote,
.experience .timeline {
  position: relative;
  z-index: 2;
}

/* Heading */

.experience .heading {
  color: #f2f8fc;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.experience .heading span {
  color: #2dd4bf;
}

.experience .quote {
  color: #b8c9d6;
}

/* Central timeline */

.experience .timeline::after {
  width: 5px;
  background: linear-gradient(
    to bottom,
    #2dd4bf,
    #249bd1,
    #2dd4bf
  );
  box-shadow:
    0 0 8px rgba(45, 212, 191, 0.45),
    0 0 18px rgba(36, 155, 209, 0.2);
}

/* Timeline nodes */

.experience .container::after {
  background: #061523;
  border-color: #2dd4bf;
  color: #d9fbf5;
  box-shadow:
    0 0 0 5px rgba(45, 212, 191, 0.11),
    0 0 15px rgba(45, 212, 191, 0.45);
  animation: experienceNodeGlow 1.8s ease-in-out infinite alternate;
}

/* Experience cards */

.experience .content {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(13, 35, 52, 0.97),
      rgba(7, 25, 39, 0.97)
    );
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 1rem;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.36),
    0 0 18px rgba(45, 212, 191, 0.06);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.experience .content:hover {
  transform: none;
  border-color: rgba(45, 212, 191, 0.7);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(45, 212, 191, 0.16);
}

/* Company heading */

.experience .content .tag {
  padding: 1.6rem 2rem;
  background: linear-gradient(
    135deg,
    #0f766e,
    #126b8c
  );
  color: #ffffff;
}

.experience .content .tag h2 {
  color: #ffffff;
}

/* Role description */

.experience .content .desc {
  margin-left: 0;
  padding: 1.8rem 2rem 2rem;
  background: transparent;
  color: #d8e5ed;
}

.experience .content .desc h3 {
  color: #f3f8fb;
}

.experience .content .desc p {
  color: #a9bdca;
}

.experience .content .desc ul {
  color: #d8e5ed;
}

.experience .content .desc li {
  line-height: 1.65;
}

.experience .content .desc li::marker {
  color: #2dd4bf;
}

/* Timeline arrows */

.experience .left::before {
  border-color:
    transparent
    transparent
    transparent
    #0f766e;
}

.experience .right::before {
  border-color:
    transparent
    #0f766e
    transparent
    transparent;
}

/* ===== FUN ELEMENT: CODE SCAN LINE ===== */

.experience .content::after {
  position: absolute;
  top: 0;
  left: -45%;
  width: 32%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 245, 225, 0.04),
    rgba(92, 245, 225, 0.2),
    rgba(92, 245, 225, 0.04),
    transparent
  );
  content: "";
  pointer-events: none;
  transform: skewX(-12deg);
  animation: experienceCodeScan 5.5s ease-in-out infinite;
}

/* Different starting times for alternating cards */

.experience .container:nth-child(2n) .content::after {
  animation-delay: -2.4s;
}

.experience .container:nth-child(3n) .content::after {
  animation-delay: -4s;
}

/* Animations */

@keyframes experienceNodeGlow {
  from {
    box-shadow:
      0 0 0 3px rgba(45, 212, 191, 0.08),
      0 0 10px rgba(45, 212, 191, 0.26);
  }

  to {
    box-shadow:
      0 0 0 7px rgba(45, 212, 191, 0.14),
      0 0 20px rgba(45, 212, 191, 0.55);
  }
}

@keyframes experienceCodeScan {
  0%,
  20% {
    left: -45%;
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  80%,
  100% {
    left: 120%;
    opacity: 0;
  }
}

/* Mobile */

@media screen and (max-width: 600px) {
  .experience .left::before,
  .experience .right::before {
    border-color:
      transparent
      #0f766e
      transparent
      transparent;
  }

  .experience .content::after {
    animation-duration: 6.5s;
  }
}
/* ===== EXPERIENCE BACK BUTTON ===== */

.backbtn .btn,
.morebtn .btn,
.back-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.3rem 2.4rem;
  background: linear-gradient(
    135deg,
    #0f9d8a,
    #087c6d
  ) !important;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 0.7rem;
  color: #ffffff !important;
  box-shadow:
    0 7px 18px rgba(15, 157, 138, 0.3),
    0 0 14px rgba(45, 212, 191, 0.12);
  font-size: 1.6rem;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.backbtn .btn:hover,
.morebtn .btn:hover,
.back-button a:hover {
  background: linear-gradient(
    135deg,
    #22c5ad,
    #0a7468
  ) !important;
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(15, 157, 138, 0.4),
    0 0 20px rgba(45, 212, 191, 0.2);
}
/* ===== ACTIVE EXPERIENCE TRACKER ===== */

.experience .timeline-tracker-dot {
  position: absolute;
  top: 2rem;
  left: 50%;
  z-index: 5;
  width: 1.7rem;
  height: 1.7rem;
  background: #ffffff;
  border: 3px solid #2dd4bf;
  border-radius: 50%;
  box-shadow:
    0 0 7px #2dd4bf,
    0 0 16px rgba(45, 212, 191, 0.9),
    0 0 28px rgba(45, 212, 191, 0.5);
  pointer-events: none;
  transform: translateX(-50%);
  transition:
    top 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

/* Highlight whichever experience is active */

.experience .container.active-experience .content {
  border-color: rgba(45, 212, 191, 0.85);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(45, 212, 191, 0.2);
}

.experience .container.active-experience::after {
  border-color: #75f5e4;
  box-shadow:
    0 0 0 7px rgba(45, 212, 191, 0.16),
    0 0 22px rgba(45, 212, 191, 0.75);
}

@media screen and (max-width: 600px) {
  .experience .timeline-tracker-dot {
    left: 31px;
  }
}

/* Footer social icons */

.footer .box-container .box .share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  background: #e6e6e6;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #0f766e;
}

.footer .box-container .box .share a i {
  display: block;
  color: inherit;
  font-size: 1.8rem;
  line-height: 1;
}

.footer .box-container .box .share a:hover {
  background: #0f9d8a;
  border-color: #2dd4bf;
  color: #ffffff;
  transform: translateY(-3px);
}

.footer .share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  color: #0f766e;
}

.footer .share a i {
  display: block;
  color: inherit;
  font-family: "Font Awesome 5 Brands";
  font-size: 1.8rem;
  line-height: 1;
}

.footer .share a:last-child i {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.footer .share a i {
  color: #000000 !important;
}

.footer .share a:hover i {
  color: #000000 !important;
}

/* ===== CONSISTENT SCROLL-TO-TOP BUTTON ===== */

#scroll-top {
  position: fixed;
  right: 2rem;
  bottom: -8rem;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 4.8rem;
  height: 4.8rem;
  padding: 0;

  background: #168be3;
  border: 2px solid #60baff;
  border-radius: 50%;

  box-shadow:
    0 7px 18px rgba(22, 139, 227, 0.35),
    0 0 14px rgba(22, 139, 227, 0.18);

  opacity: 0;

  transition:
    bottom 0.4s ease,
    opacity 0.4s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

#scroll-top.active {
  bottom: 2rem;
  opacity: 1;
}

#scroll-top:hover {
  background: #0876c9;
  transform: translateY(-4px);
}

/* White upward chevron */

.scroll-chevron {
  position: relative;
  width: 2rem;
  height: 1.2rem;
}

.scroll-chevron::before,
.scroll-chevron::after {
  position: absolute;
  top: 0.4rem;

  width: 1.35rem;
  height: 0.4rem;

  background: #ffffff;
  border-radius: 1rem;

  content: "";
}

.scroll-chevron::before {
  left: 0;
  transform: rotate(-45deg);
}

.scroll-chevron::after {
  right: 0;
  transform: rotate(45deg);
}

/* ===== COLLAPSIBLE EXPERIENCE CARDS ===== */

@media (hover: hover) and (pointer: fine) {

  .experience .content {
    cursor: pointer;
    transition:
      box-shadow 0.35s ease,
      border-color 0.35s ease;
  }

  /* Collapsed state */
  .experience .content .desc {
    max-height: 6.5rem;
    padding: 1.4rem 2rem;
    overflow: hidden;

    transition:
      max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .experience .content .desc h3 {
    margin-bottom: 0;
  }

  .experience .content .desc .location,
  .experience .content .desc .date,
  .experience .content .desc ul {
    opacity: 0;
    transform: translateY(-10px);

    transition:
      opacity 0.35s ease,
      transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Expanded state */
  .experience .content:hover .desc {
    max-height: 45rem;
    padding: 1.8rem 2rem 2rem;
  }

  .experience .content:hover .desc .location,
  .experience .content:hover .desc .date,
  .experience .content:hover .desc ul {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
  }

  /* Arrow */
  .experience .content .tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .experience .content .tag::after {
    content: "\f078";
    flex-shrink: 0;
    color: #ffffff;
    font-family: "Font Awesome 5 Free";
    font-size: 1.4rem;
    font-weight: 900;

    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .experience .content:hover .tag::after {
    transform: rotate(180deg);
  }

  .experience .content:hover {
    transform: none;
  }
}