div {
  background-color: black;
  color: azure;
} 

h1{
  font-size: clamp(16px, 2.2vw, 50px);
}
#KARAN_NITJ{
  margin-left:clamp(-16px, -2.2vw, -32px);
}
.parentFrontPage,.content1{
  display: flex;
}
.parentFrontPage{
  display: flex;
  flex-direction: column;
}
#myname{
  font-size: clamp(30px, 7vw, 65px);
}
.containers{
  width:100%;
}
.myname {
  display: flex;
  align-items: center;
}

/* Avatar */
.card2 {
  aspect-ratio: 1 / 1;
  perspective: 1000px;
}
img{
  border: 1px solid white;
}
.card2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10%;
  border: 1px solid white;
}

#myname {
  display: flex;
  align-items: baseline;
  line-height: 1;
}
.myname{
  display: flex;
  align-items: center;
  gap: 10px; 
}
.info{
  font-size: clamp(14px, 1.6vw, 20px); padding:0% 10% ; text-align: center;
}
.tag{
  max-width:clamp(300px, 90vw, 1200px);
  font-size:clamp(14px, 1.4vw, 18px); text-align:left;
}
.containers{
  height: auto;
  padding-top: 20px;
  position: fixed;
  z-index: 1000;
}
.common{
  display: inline-block;
}
#myImage{
  border-radius:10%;

}
.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}
.flip-inner.flip {
  transform: rotateY(180deg);
}
.flip-inner img {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  object-fit: cover;
  border-radius: 6px;
}
.front {
  transform: rotateY(0deg);
}
.back {
  transform: rotateY(180deg);
}
.sidebar{
  z-index: 1000;
  height: 100svh;
  border-Right: 1px solid rgba(109, 112, 112,1);
  z-index:4000 ;
  position: fixed;
  transform: translateX(0);
  transition: transform 0.6s ease;
}
#arrow{
  background-color: rgb(79, 92, 92);
  border: 1px solid black;
}
#aboutMe,#home,
#skills,
#projects,
#Internships,#contactSection {
  margin: 1vw 7vw;
  scroll-margin-top: 100px;
  padding-left: 2px;
}
#Internships h3{
  font-size: clamp(14px, 1.4vw, 18px);
}
p{
  font-size: clamp(10px, 1.4vw, 18px);
}
li span{
  padding-left: 20px;
  color: rgb(47, 170, 252);
}
li span:hover{
  color: rgb(34, 34, 246);
  cursor:pointer ;
  text-decoration: underline;
}
.display{
    display: block;
    font-size:18px ;
}
.notDisplay{
  display: none;
}
.intern{
  font-size: clamp(10px, 1.4vw, 18px);
}
.projectName {
  font-weight: bold;
  display: inline;
  font-size: clamp(12px, 1.4vw, 18px);
}
.toggle {
  cursor: pointer;
  color: #0d6efd;
  text-decoration: underline;
}
/* Laptops & Desktops */
@media (min-width: 1025px) {
  html{
    font-size: 16px;
  }
  .flip-card{
    width: clamp(300px,40vw,700px);
    margin: 0 auto;
  }
  .content1child{
  margin: 100px;
  padding-top: clamp(60px, 10vw, 100px);
}
  .content1{
    padding-top: 110px;
  }
  .card1 {
    padding-top: 2rem;
    max-width: 500px;
    height: clamp(300px,90vh,600px);
    perspective: 1000px;
    margin: 0 auto;
    margin-bottom: 7rem;
  }
  .all{
  padding-left: 30px;
  }
  .card2{
  width: 65px; height: 65px; perspective: 1000px;
  }
.sidebar{
  top:100px;
  width: 250px;
}
.arrow.move{
  transform: translateX(-230px);
}
#arrow{
  margin-left: 230px;
  margin-bottom: 400px;
  padding: 10px 10px 10px 1px;
}
.myname {
  gap: 1rem;
}

/* Avatar */
.card2 {
  width: clamp(45px, 5vw, 70px);
}
#myname {
  margin: 0;
  gap: 0.5rem;
  line-height: 1;
}
.lastdesktop{
  display: none;
}
/* First name (highlight) */
#myname .first {
  margin-left: -10px;
  font-size: clamp(28px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Last name (subtle) */
#myname .last {
  font-size: clamp(12px, 2vw, 36px);
  font-weight: 400;
  opacity: 0.85;
}
.contactInfo{
  margin: clamp(20px, 1.7vw, 30px);
  padding:2vw 8vw;
  font-size: xx-large;
  width: clamp(300px,40vw,700px);
  height: clamp(200px,20vw,900px);
}
.leftMargin{
  padding-left: clamp(0px,39vw,700px);
}
.space{
  padding-left: clamp(0px,1vw,70px);
  padding-right: clamp(0px,1vw,70px);
}
}
/* Tablets */
@media (min-width: 600px) and (max-width: 1024px) {
  html{
    font-size: 14px;
  }
  .card1 {
    padding-top: 2rem;
    width: clamp(300px,30vw,700px);
    height: clamp(300px,40vw,700px);
    perspective: 1000px;
    margin-bottom: 7rem;
  }
  .flip-card{
    margin: 0 auto;
    width: 300px;
    perspective: 1000px;
  }
.all{
  padding-left: 10px;
}
.card2{
    width:100%;
    max-width: 120px;height: 100%;max-height: 40px;
    min-width: 50px; min-height: 60px; perspective: 1000px;
    aspect-ratio: 1/1;
}
.content1{
  padding-top: 60px;
}
.content1child{
  margin: 20px;
}
.sidebar{
  top:50px;
  width: 150px;
}
#arrow{
  margin-left: 130px;
  margin-bottom: 400px;
  padding: 10px 10px 10px 1px;
}
.arrow.move {
  transform: translateX(-130px);
}
#myname{
  font-size: 20px;
}
.myname{
  margin-top: clamp(50px, 5vw, 70px);
  align-items: center;
  gap: 0.2rem;
  width:300px;
}

/* Avatar */
.card2 {
  width: clamp(50px, 5vw, 70px);
  aspect-ratio: 1 / 1;
  perspective: 1000px;
}
#myname {
  margin: 0;
  gap: 0.5rem;
  line-height: 1;
}

/* First name (highlight) */
#myname .first {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: 1px;
}
.last{
  display: none;
}
/* Last name (subtle) */
.lastdesktop {
  font-size: clamp(20px, 1.7vw, 36px);
  font-weight: 400;
  opacity: 0.85;
}
.contactInfo{
  margin: clamp(20px, 1.7vw, 30px);
  padding:5vw 6vw;
  font-size: xx-large;
  width: clamp(300px,40vw,700px);
  height: clamp(200px,20vw,900px);
}
.contactContent{
  gap: 1vw;
  margin:1vw 0;
}
.contactSection{
  margin:1vw 3vw;
}
.leftMargin{
  padding-left: clamp(0px,22vw,600px);
}
.space{
  padding-left: 6px;
  padding-right: 6px;
}
}
/* Mobile phones */
@media (max-width: 599px) {
  html{
    font-size: 10px;
  }
  .containers{
  height: auto;
  padding-top: 20px;
  position: fixed;
  z-index: 1000;
}
  .card1 {
    padding-top: 2rem;
    width: 400px;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 7rem;
  }
  .flip-card{
    margin: 0 auto;
    max-width: 200px;
    min-width: 100px;perspective: 1000px;
  }
.all{
  padding-left: 20px;
}
.card2{
  width:100%;
    max-width: 50px;height: 100%;max-height: 40px;
    min-width: 25px; min-height: 30px; perspective: 1000px;
}
.content1{
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  width: clamp(200px, 80vw, 400px);
}
.content1child{
  width:100%;
  margin: 40px auto;

}
.sidebar{
  top:50px;
  width: 120px;
}
#arrow{
  margin-left: 110px;
  margin-bottom: 400px;
  padding: 4px;
}
.arrow.move {
  transform: translateX(-100px);
}
.myname{
  width:100%;
  margin:0 auto;
  align-items: center;
  gap: 0.2rem;
  width: clamp(200px, 80vw, 400px);
}


/* Avatar */
.card2 {
  width: clamp(45px, 5vw, 70px);
  aspect-ratio: 1 / 1;
  perspective: 1000px;
}

#myname {
  margin: 0;
  gap: 0.5rem;
  line-height: 1;
}

/* First name (highlight) */
#myname .first {
  font-size: clamp(28px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 1px;
}
.last{
  display: none;
}
/* Last name (subtle) */
.lastdesktop {
  margin-top: 5px;
  font-size: clamp(11px, 2vw, 36px);
  font-weight: 400;
  opacity: 0.85;
}
.contactContent{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1vw;
  margin:1vw 1vw;
}
.contactInfo{
  margin: 20px auto;
  width: clamp(300px,40vw,700px);
  height: clamp(200px,20vw,900px);
}
.contact{
  margin:0 auto;
}
.leftMargin{
  padding-left: clamp(0px,4vw,100px);
}
.space{
  padding-left: 4px;
  padding-right: 4px;
}
}
.contactContent{
  display: flex;
  flex-direction: row;
  gap: 1vw;
}
.card1{
  aspect-ratio: 1/1;
}
.contactInfo{
  display: flex;
  background-color: rgb(33, 32, 32);
  flex-direction: column;
  border: 1px solid rgb(247, 245, 245);
  box-sizing: border-box;
  border-radius:2vw;
  padding: 10vw;
  justify-content: center; /* horizontal */
}
.contact form{
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(247, 245, 245);
  padding: 5vw;
  box-sizing: border-box;
  border-radius:2vw;
  width: clamp(300px,40vw,700px);
  max-height:clamp(400px,40vw,900px);
}
.contact form:hover,.contactInfo{
    animation: glow 2.5s ease-in-out infinite;
}
.contact input ,textarea{
  border-radius:2vw;
  height: 5vw;
  background-color: rgb(247, 236, 236);
  margin-bottom: 3.5vw;
}
.contact input::placeholder,textarea::placeholder{
    padding-left: 1vw;
}
.contact button{
  border-radius:3vw;
  max-width: max-content;
  margin:0 auto;
  padding: 1vw 2vw;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
  transition: 
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}
.contact button:hover{
border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255,255,255,0.7);
  color: #ffffff;
}
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(255,255,255,0.4);
  }
  50% {
    box-shadow: 0 0 18px rgba(255,255,255,0.9);
  }
  100% {
    box-shadow: 0 0 5px rgba(255,255,255,0.4);
  }
}
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}