* {
  box-sizing: border-box;
  margin: 0 ;
  padding: 0;
}

@font-face {
  font-family: 'Marvin Visions Variable';
  src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/756881/MarvinVisionsTrial-Variable.ttf");
}

hr {
  margin-left: 5.8vw;
  height: 0.5px;
  border: solid 0.5px #93868690;
  box-shadow: 0 0 10px #696464c1, 0 0 20px #e60909c1, 0 0 30px #e60909c1;
}

body{
    background: #080808;
    /* padding-right: 10%; */
    margin: 0;
}

.header{
  margin-top: 2vh;
  padding:  10px 5%;
}

#particles {
  width: 100%;
  height: 100%;
  background-color: lightgreen; 
  margin-left: 10%;
}

#particles-js {
  background: black;
  height: 90%;
}

nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

nav ul li{
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 
      'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
      'Open Sans', 'Helvetica Neue', sans-serif;
}

nav ul li a{
  text-decoration: none;
  color: #fff;
  font-size: 1.2em;
  position: relative;
}

nav ul li a::after{
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover::after{
  width: 100%;
}


.nav {
  position: fixed;
  top: 0;
  background: rgb(244, 226, 226);
  color: #f1f1f1;
  width: 100%;
  padding-left: 30px;
  padding-top: 20px;
  display: block;
  float: left;
  height: 10%;
  background-color: rgba(159, 157, 157, 0.166);
}

.nav a{
  position: relative;
  text-align: center;
  color: #f2f2f2;
  padding: 10% 16px;
  text-decoration: none;
  font-size: 22px;
  text-shadow: 1px 0.5px rgba(254, 255, 255, 0.37);
  font-family: 'Poppins' , sans-serif;
}

.nav a:hover{
  color: rgb(220, 57, 57);
  text-shadow: 1px 0.5px yellow;
  font-family: 'Poppins' , sans-serif;
}

.intro{
  position: fixed;
  top: 40%;
  color: #f2f2f2;
  left: 42%;
}

.intro p{
  position: relative;
  text-align: center;
  font-size: 30px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.my_intro img{
  height: 550px;
  position: fixed;
  top: 15%;
  color: #f2f2f2;
  left: 6%; 
  /* object-fit: contain; */
  /* filter: drop-shadow(20px 20px 20px rgba(128, 126, 126, 0.467)); */
  filter: drop-shadow(30px 10px 4px #4444dd);
}
.my_intro{
  position: fixed;
  height: 200;
  top: 15%;
  left: 2%;
  box-shadow: #f1f1f1;

  background-image: linear-gradient(blue, pink);
}

.myself{
  display: block;
  position: fixed;
  left: 60%;
  top: 60%;
}

.myself h1{
  position: fixed;
  font-family: "Lato";
  top: 15%;
  left: 59%;
  color: white;
  letter-spacing: 2px;
}

.about{
  padding-top: 80px;
  color: #ababab;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.rowAbt{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  pointer-events: auto;
  width: 100%;
}

.columnAbt1{
  flex-basis: 35%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.columnAbt1 img{
  margin: 2vh 0 0 5vw;
  width: 80%;
  height: auto;
  border-radius: 20%;
  pointer-events: none;
}

.columnAbt2{
  margin-top: 5vh;
  flex-basis: 65%;
}

.title{
  margin-bottom: 10px;
  font-size: 60px;
  font-weight: 600;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.me{
  font-size: 1.25em;
  font-family: "Shantell Sans";
  font-weight: 500;
  color: #c5c4c4;
  width: 90%;
}

#typewriter-text::after {
  content: '|';
  display: inline-block;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.tab-titles{
  display: flex;
  justify-content: flex-start; 
  align-items: flex-end;
  margin-top: 5vh;
  margin-bottom: 3vh;
  /* gap: 30px;  */
}

.tab-links{
  margin-right: 50px;
  font-size: 1.2em;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.Design{
  padding-top: 3px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.1em;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.Design a{
  text-decoration: none;
  color: rgb(132, 204, 235);
}

.tab-links::after{
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f ;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.tab-links.active-link::after{
  width: 50%;
}

.tab-contents{
  left: 36vw;
  top: 48vh;
}

.tab-contents ul li{
  list-style: none;
  margin:  8px 0;
  padding-bottom: 10px;
}

.tab-contents ul li span{
  color: #ba2252;
  font-size: 1em;
  letter-spacing: 1px;
  font-weight: 600;
  font-family: sans-serif;
  
}

.tab-contents{
  display: none;
}

.tab-contents.active-tab{
  display: block;
}

.contact h1{
  color: white;
  position: fixed;
  top: 50%;
}

#particles-js {
  position: relative;
  width: 100%;
  min-height: 88vh; /* Ensure the container is at least full viewport height */
  overflow: hidden;
  z-index: 1;
}

/* Particles.js canvas styles */
#particles-js > canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1; /* Place it behind the content */
}

/* Adjust the portfolio section to overlay the particles */
.portfolio {
  position: relative;
  z-index: 2; /* Ensure it's above the particles canvas */
  padding-left: 5%;
}

.portTitle{
  /* color: rgba(251, 240, 240, 0.873); */
  color: #f3cb7db6;
  font-size: 50px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

  /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
}

.work-list{
  display: grid;
  grid-template-columns: repeat(auto-fit , minmax(250px , 1fr));
  grid-gap: 1px;
  margin-top: 9vh;
}

.work{
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  height: 35vh;
  width: 30vw;
}

.project-image{
  width: 100%;
  border-radius: 10px;
  display: block;
  height: 100%;
}

.layer{
  width: 100%;
  height:100% ;
  background : linear-gradient(rgba(0 , 0 , 0 , 0.6) , #ff004f);
  color: white;
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 5px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.5px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.layer h3{
  font: weight 500px; 
  margin: 20px;
}

.layer p{
  text-align: center;
  justify-content: center;
}

.layer a{
  /* position: absolute;
  bottom: 18px;
  right: 18px; */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px #ff004f33;
  z-index: 2;
}

.layer a img{
  width: 6vw;
  /* height: 28px; */
  filter: brightness(1.2) drop-shadow(0 0 4px #ff004f88);
  transition: filter 0.2s;
}

.layer:hover a {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.1);
}

/* .layer a:hover {
  background: #ff004f;
  box-shadow: 0 4px 20px #ff004f77;
} */

.layer a:hover img {
  filter: brightness(2) drop-shadow(0 0 8px #fff);
}

.myinfo{
  position: relative;
  align-items: center;
  color: white;
  display: flex;
  flex-direction: left;
  flex-basis: 10%;
  gap: 10px;
  margin-bottom: 40px;
}
.infor{
  color: rgb(215, 243, 174);
  font-size: 20px;
  font-family: sans-serif;
  font-weight: bold;
}
.myinfo img{
  background: black;
  height: 35px;
  width: 35px;
  border-radius: 10px;
  
}

.infoCont{
  position: absolute;
  margin-left: 38%;
  margin-top: 60px;
  align-items: center;
}


.carousel-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 5%;
}

.portfolio,
.carousel-container {
  pointer-events: none;
}

#workList {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
  flex-grow: 0.33;
  justify-items: center;
}


.layer {
  color: white;
}

#prevBtn {
  width: 5vw;
  height: 5vw;
  background-color: transparent; 
  border: none;
  cursor: pointer;
  border-radius: 50%; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px; 
  color: white;
  transition: color 0.3s, text-shadow 0.3s; 
  line-height: 1; 
  text-align: center;
  transform: scaleY(1.7);
}

#prevBtn i {
  color: white; 
  font-size: 60px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#prevBtn:hover i{
  text-shadow: 0 0 20px rgba(255, 0, 79, 1), 0 0 30px rgba(255, 0, 79, 0.7); /* Enhanced glow effect */
}

#nextBtn {
  width: 5vw;
  height: 5vw;
  background-color: transparent; 
  border: none;
  cursor: pointer;
  border-radius: 50%; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px; 
  color: white;
  transition: color 0.3s, text-shadow 0.3s; 
  line-height: 1; 
  text-align: center;
  transform: scaleY(1.7);
}

#nextBtn i {
  color: white; 
  font-size: 60px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#nextBtn:hover i {
  text-shadow: 0 0 20px rgba(255, 0, 79, 1), 0 0 30px rgba(255, 0, 79, 0.7); 
}

.tech-stack {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  background-image: linear-gradient(#e60746 #ad0036 );
  border-radius: px;
  height: 15%;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 5px 5px #ba2252;
}

/* Beautify the tech stack icons in project cards */
.tech-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tech-icon {
  /* width: 3vw; */
  height: 6vh;
  border-radius: 8px;
  background: rgba(255,255,255,0.18); /* Brighter background */
  box-shadow: 0 2px 12px #ff004f44;
  padding: 6px;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  object-fit: contain;
  border: 2px solid #ff004f88; /* More visible border */
  filter: brightness(1.15) saturate(1.3) contrast(1.1); /* Boost vibrancy */
}

.tech-icon:hover {
  transform: scale(1.18) rotate(-6deg);
  box-shadow: 0 4px 20px #ff004faa, 0 0 10px #fff2;
  filter: brightness(1.35) saturate(1.5) contrast(1.2) drop-shadow(0 0 8px #ff004f88);
  border-color: #ff004f;
  background: #fff3;
}

.tab-icon {
  width: 25px; /* Adjust the size as needed */
  height: 25px;
  display: inline-block;
  margin-left: 5px;
  object-fit: contain; /* Ensures the icon fits within its container */
}


.tab-icon:hover {
  transform: scale(1.1); /* Slight zoom effect on hover */
  filter: brightness(1.2); /* Brightness effect on hover */
}

#prevBtn,
#nextBtn,
.work-list,
.work,
.work * {
  pointer-events: auto;
}

.resumeContainer {
  position: relative; /* Establish positioning context */
  margin-top: 1vh;
  height: 86vh;
  display: flex; /* Use flexbox for alignment */
  align-items: center;
  justify-content: center;
  z-index: 2; /* Higher than the canvas */
  pointer-events: none;
}

.resume{
  pointer-events: auto;
}

/* Contact Me Section */
.contactMe {
  width: 99vw;
  height: 82vh;
  display: flex;
  flex-direction: row;
  margin: 20px 0;
  pointer-events: none;
  z-index: 2;
  position: relative;
}

.left {
  flex: 1;
  padding: 20px;
  text-align: left;
  margin-left: 1vw;
  pointer-events: auto;
  height: 100%;
}

.right {
  flex: 1;
  display: flex;
  justify-content: center; 
  padding: 20px;
  width: 90%;
  margin: 0 auto;
  background-color: #1a1a1a; 
  border-radius: 10px; 
  height: 78%;
  margin-top: 12vh;
  margin-right: 4vw;
  pointer-events: auto;
}

.card-wrapper {
  width: 80%; 
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; 
  align-items: flex-start;
  margin-top: 5vh;
  height: 80%;
}

.left h1, .right h1 {
  color: rgb(226, 100, 127);
  text-align: left;
  margin-bottom: 20px;
  font-size: 40px;
  margin-left: 3.5vw;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#emailForm {
  color: white;
  font-size: 18px;
  margin-left: 3vw;
  background-color: #1a1a1a; /* Add background to make it more distinct */
  padding: 30px; /* Add padding for spacing */
  border-radius: 10px; /* Round the form edges */
  pointer-events: auto;
  height: 83.5%;
}

#emailForm label {
  display: block;
  font-size: 23px;
  color: #e4e4e4; 
  margin-bottom: 1px;
}

#emailForm input[type="text"],
#emailForm textarea {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-bottom: 20px;
  border: 1px solid #555; /* Darker border for a subtle effect */
  border-radius: 8px; /* Round input edges for a softer look */
  background-color: #2a2a2a; /* Darker input background for contrast */
  color: white;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); /* Add depth to inputs */
}

#emailForm input[type="text"]:focus,
#emailForm textarea:focus {
  outline: none; /* Remove default focus outline */
  border: 1px solid #666666;
}

#emailForm button {
  padding: 15px 30px;
  font-size: 16px;
  background-color: #ff004f;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#emailForm button:hover {
  background-color: #ff3366; /* Slightly lighter hover effect */
  transform: scale(1.05); /* Small pop-out effect on hover */
}

#emailForm button:active {
  transform: scale(0.98); /* Slightly shrink on click */
}


.contact_card {
  display: flex;
  align-items: center;
  width: 45%; /* Slightly increased to minimize the gap between cards */
  background-color: #1a1a1a;
  border: 2px solid #444;
  box-shadow: 0 0 10px #444;
  text-decoration: none;
  color: white;
  padding: 15px;
  border-radius: 15px;
  gap: 10px;
  transition: transform 0.2s;
  margin-bottom: 2vh;
}

.contact_card:hover {
  transform: scale(1.05);
}

.contact_card img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.contact_card p {
  margin: 0;
  font-size: 20px;
}

.contact_card.github {
  border-color: #333;
  box-shadow: 0 0 10px #333;
}

.contact_card.linkedin {
  border-color: #0077B5;
  box-shadow: 0 0 10px #0077B5;
}

.contact_card.email {
  border-color: #D44638;
  box-shadow: 0 0 10px #D44638;
}

.contact_card.instagram {
  border-color: #C13584;
  box-shadow: 0 0 10px #C13584;
}

.contact_card.hackerrank {
  border-color: #00EA64;
  box-shadow: 0 0 10px #00EA64;
}

.contact_card.codeforces {
  border-color: #2196f3;
  box-shadow: 0 0 10px #2196f3;
}

.contact_card.leetcode {
  border-color: #FFA116;
  box-shadow: 0 0 10px #FFA116;
}

.contact_card.gfg {
  border-color: #0F9D58;
  box-shadow: 0 0 10px #0F9D58;
}

/* Responsive layout for About section */
@media (max-width: 900px) {
  .rowAbt {
    flex-direction: column;
    align-items: center;
  }

  .columnAbt1,
  .columnAbt2 {
    flex-basis: 100%;
    margin: 0;
    width: 100%;
    max-width: 400px;
  }

  .columnAbt1{
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .columnAbt1 img {
    margin: 0 auto;
    display: block;
    width: 60vw;
    max-width: 220px;
    height: auto;
    margin-bottom: 2vh;
  }

  .columnAbt2 {
    margin-top: 0;
    padding: 0 5vw;
    width: 100%;
    max-width: 600px;
  }

  .about {
    padding-top: 30px;
    width: 100vw;
  }

  .tab-titles {
    flex-direction: row;
    justify-content: flex-start; /* Keep left-aligned on small screens */
    align-items: flex-end;
    margin-top: 3vh;
    margin-bottom: 2vh;
    gap: 20px;
  }

  .me{
    font-size: 1.1em;
    width: 100%;
  }

  .work-list {
    grid-template-columns: 1fr !important;
    gap: 24px;
    justify-items: center;
  }
  .work {
    width: 90vw;
    max-width: 400px;
    min-width: 220px;
    height: auto;
  }
  .carousel-container {
    flex-direction: column;
    align-items: center;
    /* padding-right: 0; */
  }
  #prevBtn,
  #nextBtn {
    width: 48px;
    height: 48px;
    font-size: 32px;
    margin: 12px 0;
    transform: none;
  }

  .layer a img{
    width: 8vw;
  }

  .resumeContainer {
    width: 100vw !important;
    height: 70vh !important;
    padding: 0;
    margin: 0;
    pointer-events: auto;
  }
  .resume {
    width: 95vw !important;
    height: 60vh !important;
    min-width: 0;
    min-height: 0;
    border-radius: 8px;
  }
}

/* Stack navbar links vertically on small screens */
@media (max-width: 700px) {
  nav ul {
    display: flex;
    flex-direction: row; /* Keep navbar links in a row */
    align-items: center;
    gap: 10px;
    justify-content: space-evenly;
    width: 100%;
  }
  nav ul li {
    margin: 8px 0;
  }
  nav ul li a {
    font-size: 1em; 
  }

  .me{
    font-size: 1em;
    text-align: center;
  }
  
  .me-intro{
    display: flex;
    justify-content: center;
  }

  .tab-titles{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 5px;
  }

  .tab-links{
    font-size: 1em; 
  }

  .tab-contents ul li span{
    font-size: 0.9em;
  }

  .Design{
    font-size: 1em;
  }

  .layer a img{
    width: 12vw;
  }
}

/* Ensure tab-contents is always below tab-titles */
.columnAbt2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tab-contents {
  width: 100%;
  margin-top: 0;
  margin-left: 0;
}


/* Responsive styles for Contact Me page */
@media (max-width: 900px) {
  .contactMe {
    flex-direction: column;
    height: auto;
    min-height: 90vh;
    width: 100vw;
    margin: 0;
    padding: 0;
  }
  .left, .right {
    width: 100% !important;
    max-width: 100vw;
    margin: 0;
    padding: 16px 2vw;
    box-sizing: border-box;
    height: auto;
  }
  .right {
    margin-top: 2vh;
    margin-right: 0;
    border-radius: 0 0 10px 10px;
  }
  .card-wrapper {
    width: 100%;
    margin-top: 2vh;
    justify-content: center;
    gap: 12px;
  }
  .contact_card {
    width: 90%;
    margin: 0 auto 2vh auto;
    justify-content: flex-start;
  }
  #emailForm {
    margin-left: 0;
    padding: 20px 10px;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .contactMe {
    min-height: 100vh;
    padding: 0;
  }
  .left h1, .right h1 {
    font-size: 1.6em;
    margin-left: 0;
    text-align: center;
  }
  .card-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .contact_card {
    width: 98%;
    font-size: 1em;
    padding: 10px;
  }
  #emailForm label {
    font-size: 1.1em;
  }
  #emailForm input[type="text"],
  #emailForm textarea {
    font-size: 1em;
    padding: 10px;
  }
  #emailForm button {
    width: 100%;
    font-size: 1em;
    padding: 12px 0;
  }
}

/* --- Responsive: Only show icons (2 per row), hide text, on small screens --- */
@media (max-width: 700px) {
  .right {
    padding: 10px 0;
    background: transparent;
    box-shadow: none;
    margin: 0 auto;
    border-radius: 0;
    height: auto;
  }
  .card-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
    width: 90%;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
  }
  .contact_card {
    width: 100%;
    height: 60px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 12px;
    background: #181818;
    box-shadow: 0 2px 8px #ff004f22;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 0;
    transition: transform 0.18s, box-shadow 0.18s;
  }
  .contact_card img {
    width: 38px;
    height: 38px;
    margin: 0;
    display: block;
  }
  .contact_card p {
    display: none !important;
  }
}

.work:hover .layer > *:not(a) {
  opacity: 0.5 !important;
  pointer-events: none !important;
  transition: opacity 0.3s;
}

.work:hover .layer a {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2;
  transition: opacity 0.3s, transform 0.3s;
  transform: scale(1.2);
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) scale(1.2);
}
