div {
  background-color: black;
  color: azure;
}
.projectBoxParent {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.project-details {
  background-color: inherit;
}
.projectBox {
  flex: 1 1 200px;
  max-width: 350px;
}
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,
#quickOverview {
  margin: 1vw 7vw;
  scroll-margin-top: 100px;
}
#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, 4vw, 18px);
}
.toggle {
  cursor: pointer;
  color: #0d6efd;
  text-decoration: underline;
}
.projectBox {
  list-style-type: none;
  padding: 20px;
  width: clamp(200px, 80vw, 700px);
  margin: 1vw;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 20px;
  transform: scale(1.05);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    background-color 0.45s ease,
    border-color 0.45s ease;
}

.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;
  }
}

/*  */
.skills-section {
  width: 90vw;
  padding: 40px 20px;
}

.skills-section h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

#skills h1 {
  text-align: left;
}
.skill {
  margin-bottom: 25px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.progress {
  width: 100%;
  height: 14px;
  background: #e6e6e6;
  border-radius: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  animation: fillBar 2s ease forwards;
  width: 0;
}

/* Percentages */
.java {
  width: 90%;
}
.dsa {
  width: 85%;
}
.react {
  width: 80%;
}
.html {
  width: 95%;
}
.js {
  width: 85%;
}
.git {
  width: 80%;
}

@keyframes fillBar {
  from {
    width: 0;
  }
}

/*  */

body {
  margin: 0;
  overflow: hidden;
}

#landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);

  color: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  z-index: 9999;

  transition: transform 0.8s ease;
}

#landing.slideUp {
  transform: translateY(-100%);
}

#landing h1 {
  font-size: 4rem;
}

#landing p {
  font-size: 1.5rem;
}

#landing button {
  margin-top: 30px;
  padding: 15px 40px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 18px;
}

#mainContent {
  height: 100vh;
}

body.showContent {
  overflow: auto;
}
button {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/*  */

.typing-container {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #7dd3fc;
  height: 45px;
}

.cursor {
  display: inline-block;
  animation: blink 0.8s infinite;
}

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

/*  */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 25px;
  text-align: center;
  transition: 0.35s;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: #4facfe;
  box-shadow: 0 15px 35px rgba(79, 172, 254, 0.3);
}

.icon {
  font-size: 2rem;
}

.stat-card h2 {
  margin: 12px 0 5px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-card p {
  color: #d1d5db;
  font-size: 0.95rem;
}
/*  */

.skills-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 100vw;
  padding: 80px 0px;
}

.skills-section {
  flex: 1;
}

.profile-card {
  width: 100%;
  max-width: 480px;
  background: #8b8a8a;
  border-radius: 25px;
  padding: 35px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  transition: 0.4s;
  margin: 0px auto;
}

.profile-card:hover {
  transform: translateY(-8px);
}

.profile-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #0d6efd;
  margin-bottom: 20px;
}
.profile-card h2 {
  margin: 10px 0 5px;
  font-size: 28px;
  color: #0d6efd;
}
.profile-card h4 {
  color: #0d6efd;
  margin-bottom: 20px;
  text-decoration: underline;
  text-decoration-style: dashed;
}
.profile-card p {
  line-height: 1.8;
  color: black;
  font-size: x-larger;
  margin-bottom: 30px;
}

.resume-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #8b8a8a;
}

.btn {
  padding: 12px 20px;
  border-radius: 40px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.preview {
  background: #0d6efd;
}

.download {
  background: #28a745;
}
.preview:hover {
  background: rgba(1, 31, 76, 0.117);
  color: black;
}

.download:hover {
  background: #02f23a;
  color: white;
}
.btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}
@media (max-width: 900px) {
  .skills-wrapper {
    flex-direction: column;
  }
}

/* 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);
  }
  .skills-section {
    width: 40vw;
  }
  .profile-card {
    margin: 50px;
  }
}
/* Tablets */
@media (min-width: 600px) and (max-width: 1024px) {
  html {
    font-size: 14px;
  }
  .card1 {
    padding-top: 2rem;
    width: clamp(250px, 30vw, 700px);
    height: clamp(250px, 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;
  }
  #skills {
    margin: 1vw 4vw;
  }
  .skills-section {
    width: 80vw;
  }
  .profile-card {
    margin: 50px;
  }
}
/* Mobile phones */
@media (max-width: 599px) {
  html {
    font-size: 9px;
  }
  .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 {
    margin: 40px 0px;
  }
  /* .sidebar{
  top:50px;
  width: 120px;
} */
  /* #arrow{
  margin-left: 110px;
  margin-bottom: 400px;
  padding: 4px;
}
.arrow.move {
  transform: translateX(-100px);
} */
  .myname {
    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;
  }
  .projectName {
    font-size: clamp(12px, 2vw, 18px);
  }
  .projectBox {
    width: clamp(200px, 60vw, 600px);
    margin: 1vw auto;
  }
  .projectBox:hover {
    transform: scale(1) translateY(-10px);
    background-color: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow:
      0 20px 45px rgba(0, 0, 0, 0.6),
      0 0 25px rgba(255, 255, 255, 0.15);
  }
  #sidebar {
    visibility: hidden;
  }
}

.containers a {
  color: white;
  text-decoration: none;
}
.containers a :hover {
  color: grey;
  text-decoration: underline;
}

/*  */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  position: fixed;
  top: 0;
  left: 0px;
  border-bottom: 1px solid white;
}

.logo {
  text-decoration: none;
  padding-left: 20px;
}

.nav {
  display: flex;
  list-style: none;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s ease;
}

/* Hamburger */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 5px;
  transition: 0.3s;
}

/* Mobile */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 30px;
    right: 0;
    width: 40%;
    background: #212529;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }

  .nav.active {
    max-height: 50vh;
  }

  .nav li {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav a {
    display: block;
    padding: 18px;
  }
  .nav a:hover {
    color: white;
    font-size: 12px;
  }
  .nav li:hover {
    background-color: grey;
  }
}

.fade-card {
  opacity: 0;

  transform: translateY(50px);

  transition: all 0.8s ease;
}

.fade-card.show {
  opacity: 1;

  transform: translateY(0);
}
.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 10px;
  transition: width 1.5s ease;
}
footer {
  text-decoration: underline;
  text-decoration-style: dashed;
}
