* {
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background-color: inherit;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  box-shadow: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
  color: var(--clr-fg);
  background-color: var(--clr-bg);
}

.light {
  --clr-bg: #fff;
  --clr-bg-alt: #fff;
  --clr-fg: #303C55;
  --clr-fg-alt: #172a45;
  --clr-primary: #8892b0;
  --shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.dark {
  --clr-bg: #23283e;
  --clr-bg-alt: #2a2f4c;
  --clr-fg: #bdbddd;
  --clr-fg-alt: #cdcdff;
  --clr-primary: #90a0d9;
  --shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

::-moz-selection {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

::-webkit-selection,
::selection {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--clr-fg-alt);
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.3rem;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

@media (max-width: 900px) {
  h1 {
    font-size: 2.6rem;
  }
}

/*===================
  buttons and links
===================*/

.link {
  color: var(--clr-primary);
  padding: 0 0 0.3em 0;
  position: relative;
}

.link:hover {
  color: var(--clr-primary);
}

.link::before {
  content: "";
  display: inline;
  width: 0%;
  height: 0.2em;
  position: absolute;
  bottom: 0;
  background-color: var(--clr-primary);
  transition: width 0.2s ease-in;
}

.link:hover::before,
.link:focus::before {
  width: 100%;
}

.link--nav {
  color: var(--clr-fg);
  text-transform: lowercase;
  font-weight: 500;
}

.link--icon {
  color: var(--clr-fg);
  font-size: 1.2rem;
}

.btn {
  display: block;
  padding: 0.8em 1.4em;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: lowercase;
  transition: transform 0.2s ease-in-out;
}

.btn--outline {
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--outline:focus,
.btn--outline:hover {
  color: var(--clr-bg);
}

.btn--outline:before {
  content: "";
  position: absolute;
  background-color: var(--clr-primary);
  right: 100%;
  bottom: 0;
  left: 0;
  top: 0;
  z-index: -1;
  transition: right 0.2s ease-in-out;
}

.btn--outline:hover::before,
.btn--outline:focus::before {
  right: 0;
}

.btn--plain {
  text-transform: initial;
  background-color: var(--clr-bg-alt);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
  border: 0;
}

.btn--plain:hover {
  transform: translateY(-4px);
}

.btn--icon {
  padding: 0;
  font-size: 1.2rem;
}

.btn--icon:hover,
.btn--icon:focus {
  color: var(--clr-primary);
}

.btn--icon:active {
  transform: translateY(-5px);
}

/*========
  layout
========*/

.center {
  display: flex;
  align-items: center;
}

.header {
  height: 8em;
  max-width: 1100px;
  width: 95%;
  margin: 0 auto;
  justify-content: space-between;
}

main {
  max-width: 1100px;
  width: 95%;
  margin: 0 auto;
}

.section {
  margin-top: 5em;
}

.section__title {
  text-align: center;
  margin-bottom: 1em;
  text-transform: uppercase;
}

.nav__list {
  margin-right: 1.5em;
  display: flex;
}

.nav__list-item {
  margin-left: 1.5em;
}

.nav__hamburger {
  display: none;
  width: 1em;
}

.about {
  flex-direction: column;
  margin: 0em 5rem 0rem 5rem;
  padding:6rem 0rem 6rem 0rem;
}
.about__hi{
  color: var(--clr-fg);
  margin-bottom:0.14rem;
}

.about__name {
  color: var(--clr-primary);
}

.about__role {
  margin-top: 0.5em;
}

.about__desc {
  font-size: 1rem;
  max-width: 600px;
}

.about__desc,
.about__contact {
  margin-top: 2.4em;
  margin-bottom:1rem;
}

.about .link--icon {
  margin-right: 0.8em;
}

.about .btn--outline {
  margin-right: 1em;
}

 /* about section css */

 .about__section{
  min-height: 60vh;
  padding:9rem 0rem 6rem 0rem;
  margin:0rem 3rem 0rem 3rem;
}

.about__me{
  min-height: 50vh;
  display: grid;
  grid-template-columns:2fr 1fr;
  align-items:center;
  padding: 2rem 0rem 2rem 0rem;
}

.about__para{
  padding:15px 15px;
  justify-content: center;
}

.about__topic{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
}

.about__image{
  zoom:4; 
  display: block;
  height: auto;
  max-height: 80%;
  width: auto;
  max-width: 80%;
  border-radius: 0.2rem;
  box-shadow: 10px 10px;
  margin: 1rem;
}

@media only screen and (max-width: 1000px) {
     .about__section{
       flex-direction:column;
     }
     .about__para{
       padding:15px 15px;
       max-width: 70vw;
     }
     .about__image{
      zoom:4; 
      display: block;
      height: auto;
      max-height:5rem;
      width: auto;
      max-width: 5rem;
      box-shadow: 10px 10px;
      margin: 1rem;
     }
}

@media only screen and (max-width: 800px) {
  .about__me{
    grid-template-columns: 1fr;
  }

  .about__topic{
    display:none;
  }
  .about__image{
    max-width: 11em;
    max-height: 11em;
   }
}

@media only screen and (max-width: 500px) {
     .about__section{
       max-height: 100vh;
     }
     .about__me{
       flex-direction:column;
     }
     .about__para{
       max-width: 80vw;
       justify-content: center;
     }
}

/* Experience section - FIXED */
.experience__section{
  min-height: auto; /* Changed from 70vh to auto */
  padding: 4rem 0rem 7rem 0rem;
  /* Removed position: relative that was causing issues */
}

.tabset > input[type="radio"] {
  position: absolute;
  left: -200vw;
}

.tabset .tab-panel {
  display: none;
  margin: 3rem 0rem 0rem 0rem; /* Reduced top margin */
  padding: 30px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s linear;
  border-radius: 25px;
  min-height: auto; /* Changed from 20rem to auto */
  text-align: left;
}

.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
.tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6) {
  display: block;
}

.tabset > label {
  position: relative;
  display: inline-block;
  padding: 15px;
  margin: 8px;
  color: var(--clr-fg-alt);
  border: 1px solid var(--clr-fg-alt);
  border-radius: 3rem 1rem 3rem 1rem;
  font-weight: 200;
  transition: 0.6s;
  cursor: pointer;
}

.tabset > label::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 10px;
  width: 22px;
}

.tabset > label:hover,
.tabset > input:focus + label {
  background-color: var(--clr-primary);
  color: #fafafa;
}

.tabset {
  max-height: none; /* Changed from 40rem to none */
  margin: 3rem 0rem 0rem 0rem;
  align-items: center;
  text-align: center;
}

/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
  .tabset > label {
    display: block;
    margin: 5px 0;
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .tabset .tab-panel {
    margin: 2rem 0rem 0rem 0rem;
    padding: 20px 15px;
  }
  
  .experience__section {
    padding: 2rem 0rem 4rem 0rem;
    margin: 0rem 1rem;
  }
}

.CV-grid {
  display: table;
  font-family: inherit;
}

.CV-grid-column {
  display: table-cell;
}

.CV-timeline {
  position: relative;
  margin: 0 0 0 0.5em;
  padding-left: 1.5em;
  border-left: solid 1px #222222;
}

.CV-timeline:first-of-type {
  margin-top: 1em;
}

.CV-timeline:last-of-type {
  border-left-color: transparent;
}

.CV-timeline:before {
  content: "";
  position: absolute;
  top: 0;
  left: -0.5em;
  display: block;
  width: 1em;
  height: 1em;
  border: solid 1px #222222;
  background-color: #ffffff;
  border-radius: 50%;
}

.CV-timeline-heading {
  margin: 0;
  padding-bottom: 0.5em;
  line-height: 1em;
  font-weight: normal;
  -webkit-transform: translateY(-0.1em);
  -ms-transform: translateY(-0.1em);
  transform: translateY(-0.1em);
  display: flex;
  flex-direction: column;
}

.CV-timeline-heading-title {
  line-height: 1;
  color: var(--clr-primary);
  font-size: 1.4rem;
  padding-bottom: 10px;
}

.CV-timeline-heading-location {
  font-size: 1em;
  font-weight: 400;
  padding: 0.4rem 0rem 0.6rem 0rem;
}

.CV-timeline-heading-duration {
  display: block;
  font-size: 0.8em;
  padding-bottom: 1.2rem;
}

.CV-timeline-details {
  display: block;
  margin: 0;
  padding-bottom: 2em;
  padding: 0 0 2em 1em;
  list-style-type: disc;
}

.CV-timeline-details-item {
  margin-bottom: 0.5em;
}

/* Projects section - FIXED */
.section__projects {
  padding: 4rem 0 3rem 0; /* Added proper padding */
  margin: 2rem 0; /* Added margin for separation */
  clear: both; /* Ensure it clears any floated elements */
}

.projects__grid {
  max-width: 1100px;
  margin: 4rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
  grid-gap: 2em;
}

.project {
  padding: 2em;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s linear;
  border-radius: 15px;
}

.project:hover {
  transform: translateY(-7px);
}

.project__description {
  margin-top: 1em;
  text-align: left;
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.2em 0;
}

.project__stack-item {
  margin: 0.5em;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--clr-fg-alt);
}

.project .link--icon {
  margin-left: 0.5em;
}

/* Mobile responsiveness for projects */
@media (max-width: 768px) {
  .section__projects {
    padding: 2rem 0;
    margin: 1rem 0;
  }
  
  .projects__grid {
    margin: 2rem auto;
    grid-template-columns: 1fr;
    grid-gap: 1.5em;
    padding: 0 1rem;
  }
  
  .project {
    padding: 1.5em;
  }
}

.bold_desc{
   color: var(--clr-primary);
   justify-content: center;
   text-align: center !important;
   font-weight:600 !important;
  }
.skills__list {
  max-width: 650px;
  width: 95%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skills__list-item {
  margin: 0.5em;
}

/* Contact section */
.contact__me{
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 5rem;
  padding: 3rem;
}

.contactform{
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.contactform h3{
  font-weight: 800;
  color: var(--clr-primary);
}

.contactform p{
  text-align: center;
  font-size: 0.9rem;
  color: var(--clr-fg);
  line-height: 1.5rem;
  font-weight: 100;
  align-items: center;
}
  
.contactform a h5{
  color: var(--clr-fg-alt);
  padding: 0.8rem 0.8rem;
  margin: 1rem 1rem;
  border: 1px solid var(--clr-fg-alt);
  border-radius: 8px;
  font-weight: 600;
  transition: 0.6s;
}

.contactform a h5:hover{
  background-color: var(--clr-primary);
  color: #fafafa;
}

/* Wave animation */
.wave {
  animation-name: wave-animation;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  transform-origin: 70% 70%;
  display: inline-block;
  background-color: transparent;
}

@keyframes wave-animation {
    0% { transform: rotate( 0.0deg) }
   10% { transform: rotate(14.0deg) }
   20% { transform: rotate(-8.0deg) }
   30% { transform: rotate(14.0deg) }
   40% { transform: rotate(-4.0deg) }
   50% { transform: rotate(10.0deg) }
   60% { transform: rotate( 0.0deg) }
  100% { transform: rotate( 0.0deg) }
}

.footer {
  padding: 3em 0;
  margin-top: 4em;
  text-align: center;
}

.footer__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-fg);
}

.scroll-top {
  display: none;
  position: fixed;
  bottom: 1em;
  right: 2em;
  background-color: transparent;
  font-size: 1.8rem;
  transition: transform 0.2s ease-in-out;
}

@media (max-width: 600px) {
  .header {
    height: 6em;
  }

  .section {
    margin-top: 4em;
  }

  .nav__list {
    flex-direction: column;
    padding: 4em 0;
    position: absolute;
    right: 0;
    left: 0;
    top: 5em;
    background-color: var(--clr-bg);
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
  }

  .display-nav-list {
    width: 100%;
  }

  .nav__list-item {
    margin: 0.5em 0;
  }

  .nav__hamburger {
    display: flex;
    margin-left: 0.8em;
  }

  .about {
    align-items: flex-start;
    margin-top: 2em;
  }

  .footer {
    padding: 2em;
    margin-top: 3em;
  }

  .scroll-container {
    display: none;
  }
  
  /* Mobile fixes for contact section */
  .contact__me {
    margin: 2rem 1rem;
    padding: 2rem 1rem;
  }
}