html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Shadows Into Light', cursive;
  background: #1a1a1a;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.01) 0%, transparent 30%);
  background-color: #2d3436;
  position: relative;
  color: #f0f0f0;
}

*,
*::before,
*::after {
  color: inherit;
}

html {
  scroll-behavior: smooth;
}

/* Chalkboard texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px),
    repeating-linear-gradient(90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* body {
  display: flex;
  flex-direction: column;
} */
.pfp {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}



.hero-img-wrapper {
  position: relative;
  width: 450px;
  height: 100vh;
  margin: 0 auto;
  text-align: center;
  display: block;
}

.hero-wrapper {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
  display: block;
}

.tech-stack-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  box-sizing: border-box;
  z-index: 2;
}

.tech-stack-heading {
  font-size: 2.4rem;
  font-family: 'Patrick Hand', cursive;
  color: #f0f0f0;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.programming-languages {
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.pl-heading {
  font-size: 1.4rem;
  color: #e8e8e8;
  margin-bottom: 1rem;
  font-weight: 600;
}

.pl-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  align-items: center;
}

.pl-logo {
  width: 64px;
  height: 64px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.2));
}

.pl-logo:hover {
  transform: translateY(-3px);
  filter: drop-shadow(3px 3px 0px rgba(255, 255, 255, 0.4));
}

.libraries-worked {
  margin-top: 2rem;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding-top: 24px;
  border-top: 1px solid #efefef;
}

.lib-heading {
  font-size: 1.3rem;
  color: #e8e8e8;
  margin-bottom: 1rem;
  font-weight: 600;
}

.lib-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.lib-logo {
  width: 64px;
  height: 64px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.2));
}

.lib-logo:hover {
  transform: translateY(-3px);
  filter: drop-shadow(3px 3px 0px rgba(255, 255, 255, 0.4));
}

/* Graphics Knowns */
.graphics-knowns {
  width: 100%;
  max-width: 900px;
  margin: 24px auto 64px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #efefef;
}

.graphics-heading {
  font-size: 1.3rem;
  color: #e8e8e8;
  margin-bottom: 1rem;
  font-weight: 600;
}

.graphics-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  align-items: center;
}

.graphics-logo {
  width: 64px;
  height: 64px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.2));
}

.graphics-logo:hover {
  transform: translateY(-3px);
  filter: drop-shadow(3px 3px 0px rgba(255, 255, 255, 0.4));
}

/* Force chalk look for all logos */
.pl-logo path,
.lib-logo path,
.graphics-logo path,
.pl-logo circle,
.lib-logo circle,
.graphics-logo circle,
.pl-logo rect,
.lib-logo rect,
.graphics-logo rect {
  fill: #f0f0f0 !important;
  stroke: none;
}

/* Ensure SVG text uses global font */
.graphics-logo text {
  font-family: 'Patrick Hand', cursive;
  font-weight: 700;
}

/* Sections: Skills, About, Contact */
.section-heading {
  font-size: 3rem;
  color: #f0f0f0;
  margin: 48px auto 16px;
  text-align: center;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.skills-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 24px;
  z-index: 2;
  position: relative;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 16px;
}

.skill-item {
  font-family: 'Merriweather', serif;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  color: #e8e8e8;
}

.about-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 16px;
  z-index: 2;
  position: relative;
}

.about-text {
  font-family: 'Merriweather', serif;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  color: #e8e8e8;
  line-height: 1.6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.contact-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 24px;
  z-index: 2;
  position: relative;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  font-family: 'Merriweather', serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form textarea {
  grid-column: 1 / -1;
}

.btn-submit {
  grid-column: 1 / -1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  color: #f0f0f0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: 'Shadows Into Light', cursive;
  font-size: 1.1rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* Tech item container styles */
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.tech-name {
  font-size: 1rem;
  font-weight: 400;
  color: #f0f0f0;
  margin-top: 0.5rem;
  font-family: 'Patrick Hand', cursive;
  letter-spacing: 0.5px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .tech-stack-heading {
    font-size: 2rem;
  }

  .pl-logo,
  .lib-logo,
  .graphics-logo {
    width: 56px;
    height: 56px;
  }

  .tech-name {
    font-size: 0.75rem;
  }
}

.arrow-1 {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-50%, -50%);
}

.arrow-2 {
  position: absolute;
  width: 350px;
  top: 63%;
  left: 87%;
  transform: translate(-50%, -50%);
}

.arrow-3 {
  position: absolute;
  width: 450px;
  top: 65%;
  left: 5%;
  transform: translate(-50%, -50%);
}

.arrow-4 {
  position: absolute;
  width: 550px;
  top: 75%;
  left: -60%;
  transform: translate(-50%, -50%);
  /* transform: scale(-1, 1); */
  transform: rotate(-125deg);
}

.arrow-tip-text {
  transform: translate(-50%, -50%);
  font-family: 'Shadows Into Light', cursive;
  color: #f0f0f0;
  pointer-events: auto;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.arrow-tip-text.text3 {
  pointer-events: auto;
  z-index: 10;
}

.text1 {
  font-size: 3rem;
  position: absolute;
  top: 33%;
  left: 130%;
}

.text2 {
  position: absolute;
  top: 62%;
  left: 105%;
  font-size: 1.8rem;
  white-space: nowrap;
  transform: rotate(-2deg);

}

.text3 {
  position: absolute;
  top: 14%;
  left: -95%;
  font-size: 1.5rem;
  /* white-space: nowrap; */
  transform: rotate(-2deg);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.text4 {
  position: absolute;
  top: 25%;
  left: -70%;
  font-size: 1.2rem;
  white-space: nowrap;
  transform: rotate(-9deg);
}

.text6 {
  position: absolute;
  top: 23%;
  left: 160%;
  font-size: 1.2rem;
  white-space: nowrap;
  transform: rotate(-14deg);
}

.text5 {
  position: absolute;
  top: 14%;
  left: 150%;
  font-size: 1.5rem;
  white-space: nowrap;
  transform: rotate(-9deg);
}

.text7 {
  position: absolute;
  top: 43%;
  left: -50%;
  font-size: 1.8rem;
  white-space: nowrap;
  transform: rotate(-9deg);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.text8 {
  position: absolute;
  top: 80%;
  left: -50%;
  font-size: 1.8rem;
  white-space: nowrap;
  transform: rotate(-9deg);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.arrow-tip-text.text5 {
  pointer-events: auto;
  z-index: 10;
}

.arrow-tip-text.text7 {
  pointer-events: auto;
  z-index: 10;
}

.c-logo {
  position: absolute;
  width: 40px;
  height: auto;
  top: 19%;
  left: -3%;
}

.cpp-logo {
  position: absolute;
  width: 51px;
  height: auto;
  top: 18%;
  left: -23%;
}

.java-logo {
  position: absolute;
  width: 48px;
  height: auto;
  top: 19%;
  left: -47%;
}

.ps-logo {
  position: absolute;
  width: 50px;
  height: auto;
  top: 15%;
  left: 117%;
}

.fig-logo {
  position: absolute;
  width: 50px;
  height: auto;
  top: 21%;
  left: 140%;
}

:root {
  --color-surface-white: #ffffff;
  --color-text-gradient: linear-gradient(90deg, #e91e63, #2196f3);
}

/*   style added to align boxes for styling purposes - not necessary for */
sup {
  line-height: 0
}

.line {
  overflow: hidden;
}

/* ANIMATIONS */
.arrow-path {
  stroke-dasharray: 900;
  /* Adjusted for better fit */
  stroke-dashoffset: 900;
  animation: draw-arrow 2s ease-out forwards;
  /* Removed scaleY(-1) to prevent clipping */
  transform-origin: bottom center;
  animation-delay: 2s;
}

.pfp {
  opacity: 0;
}


.arrow-head {
  opacity: 0;
  animation: fade-in-arrow-head 0.6s 0.8s forwards;
  animation-delay: 3s;
}

@keyframes fade-in-arrow-head {
  to {
    opacity: 1;
  }
}

@keyframes draw-arrow {
  to {
    stroke-dashoffset: 0;
  }
}

/* RED ARROW */
.red-arrow {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.red-arrow-1 {
  position: absolute;
  width: 250px;
  top: 8%;
  left: 21%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.red-arrow-2 {
  top: 8%;
  width: 330px;
  left: 15%;
  /* transform: scaleX(-1); */
}

.red-arrow-3 {
  width: 450px;
  top: 7%;
}

.red-arrow-4 {
  width: 550px;
  top: 7%;
  left: -9%;
}

.rev {
  transform: scale(-1, 1);
  left: 45%;
  top: -5%;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  border: 4px solid #f0f0f0;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #f0f0f0;
  padding: 10px 0;
  height: 150px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.5rem;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f0f0f0;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  font-family: sans-serif;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Animation for lightbox */
.lightbox-content,
#lightbox-caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.text9 {
  position: absolute;
  top: 90%;
  left: 120%;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.5rem;
  font-weight: bold;
  transform: rotate(-5deg);
  width: 200px;
  text-align: center;
}

/* Designs Section Styles */
.designs-section {
  width: 100%;
  max-width: 1200px;
  margin: 64px auto;
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  padding: 2rem 0;
}

.design-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.design-item:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.design-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 4px;
}

.design-item p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  color: #f0f0f0;
  margin: 0;
}