
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

@media (max-width: 1500px) { html { font-size: 57.25%; } }
@media (max-width: 1200px) { html { font-size: 50%; } }
@media (max-width: 770px)  { html { font-size: 43.75%; } }
@media (max-width: 615px)  { html { font-size: 40%; } }
@media (max-width: 350px)  { html { font-size: 35%; } }

body {
  min-height: 100vh;
  color: #fafafa;
  font-family: 'Montserrat', sans-serif;
  background-color: #1a1a1a;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  outline: none;
  background-color: transparent;
  color: inherit;
}

.about {
  width: 1300px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 1500px) { .about { width: 1100px; } }
@media (max-width: 1200px) { .about { width: auto; } }

.about__heading:before {
  position: absolute;
  content: '';
  border-bottom: 18px solid #2b6ABC;
  width: 16rem;
  display: block;
  margin: 0 auto;
  position: relative;
  left: 3.5rem;
  top: 6.3rem;
  z-index: -1;
}

@media (max-width: 770px) {
  .about__heading:before {
    border-bottom: 14px solid #2b6ABC;
  }
}

.about__content {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 1300px) {
  .about__content {
    flex-direction: column;
  }
}

.profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  left: -500px;
  opacity: 0;
  transition: all 1.1s;
  top: -30px;
}

@media (max-width: 1301px) {
  .profile {
    margin-bottom: 10rem;
    left: 0;
    opacity: 1;
  }
}

@media (max-width: 1000px) {
  .profile {
    margin-bottom: 7rem;
  }
}

.profile__picture {
  height: 24rem;
  margin-bottom: 4rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.profile__picture svg {
  transition: all 1.1s;
}

.profile__blurb {
  font-size: 1.6rem;
  max-width: 600px;
  width: 90%;
  line-height: 1.7;
  margin: 120px auto 0;
  transition: margin-top 0.4s ease;
  text-align: justify;
}

.profile__picture.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* ⬅️ now 5 columns */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  justify-items: center;
}

/* img1–5 */
.profile:has(.image-grid img:nth-child(-n+5):hover) .profile__blurb {
  margin-top: 150px;
  text-align: center;
}

/* img6–10 */
.profile:has(.image-grid img:nth-child(n+6):hover) .profile__blurb {
  margin-top: 250px;
  text-align: center;
}

@media (max-width: 600px) {
  .profile__blurb {
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
  }
}

.profile__fade-in {
  opacity: 1;
  transform: translateX(300px);
}

@media (max-width: 1300px) {
  .profile__fade-in {
    transform: translateX(0);
  }
}

.skills {
  display: flex;
  justify-content: center;
  flex-direction: row; /* ← ensure horizontal row layout */
  margin-top: -45px;
  position: relative;
  flex-wrap: nowrap;
}

/* ⬇️ Add heading wrapper absolutely positioned at the top */
.skills__heading-wrapper {
  position: absolute;
  top: -60px;
  left: 48%;
  transform: translateX(-50%);
  text-align: center;
}

.tech-skills-heading {
  position: relative;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  display: inline-block;
}

.tech-skills-heading::after {
  content: "";
  position: absolute;
  top: 100%;                  /* place directly under the text */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;            /* space between text and bar */
  width: 120%;                /* wider than the text */
  height: 5px;
  background-color: #4a90e2;
  border-radius: 2px;
}

/* .about__heading1:before {
  position: absolute;
  content: '';
  border-bottom: 15px solid #2b6ABC;
  width: 12rem;
  display: block;
  margin: 0 auto;
  position: relative;
  left: 2rem;
  top: 3.5rem;
  z-index: -1;
}

@media (max-width: 770px) {
  .about__heading1:before {
    border-bottom: 14px solid #2b6ABC;
  }
} */

.section-heading1 {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0rem;
  z-index: 9999;
}

/* Keep your existing row, item, responsive, and animation styles below */
.skills__row {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skills__row:not(:last-child) {
  margin-right: 25px;
}

@media (max-width: 410px) {
  .skills__row:not(:last-child) {
    margin-right: 15px;
  }
}

@media (max-width: 300px) {
  .skills__row:not(:last-child) {
    margin-right: 10px;
  }
}

.skills__item {
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100px;
  width: 160px;
  border: double 3px transparent;
  border-image-slice: 1;
  border-width: 3px;
  background-image:
    linear-gradient(#1a1a1a, #1a1a1a),
    radial-gradient(circle at top left, #2b6ABC, #E18AAA);
  border-radius: 10px;
  background-origin: border-box;
  background-clip: content-box, border-box;
  transition: transform 1.5s ease, opacity 1.5s ease;
  overflow: hidden;
}

.skills__item-fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1500px) {
  .skills__item {
    height: 90px;
    width: 145px;
  }
}

@media (max-width: 1300px) {
  .skills__item {
    opacity: 1;
    border-width: 2px;
  }
}

@media (max-width: 1000px) {
  .skills__item {
    height: 80px;
    width: 130px;
  }
}

@media (max-width: 600px) {
  .skills__item {
    height: 70px;
    width: 115px;
  }
}

@media (max-width: 500px) {
  .skills__item {
    height: 60px;
    width: 100px;
  }
}

@media (max-width: 410px) {
  .skills__item {
    height: 50px;
    width: 80px;
  }
}

@media (max-width: 340px) {
  .skills__item {
    height: 45px;
    width: 70px;
  }
}

.skills__item:not(:last-child) {
  margin-bottom: 3rem;
}

@media (max-width: 410px) {
  .skills__item:not(:last-child) {
    margin-bottom: 15px;
  }
}

.skills__item img {
  height: 60px;
  width: auto;
  transition: all 0.2s;
}

@media (max-width: 1500px) { .skills__item img { height: 55px; } }
@media (max-width: 1000px) { .skills__item img { height: 50px; } }
@media (max-width: 600px)  { .skills__item img { height: 45px; } }
@media (max-width: 500px)  { .skills__item img { height: 35px; } }
@media (max-width: 410px)  { .skills__item img { height: 26px; } }

.skills__item-name {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s;
  letter-spacing: 1px;
}

@media (max-width: 1200px) {
  .skills__item-name {
    font-size: 1.4rem;
  }
}

.skills__item--js img {
  border-radius: 5px;
}

@keyframes moveInLeft {
  0% {
    opacity: 0;
    transform: translateX(-10rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes moveInRight {
  0% {
    opacity: 0;
    transform: translateX(10rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-1rem); }
  100% { transform: translateY(0); }
}

@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* .contact {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: 500px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin-bottom: 10rem;
} */

.contact {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  z-index: 10;
  margin-bottom: 10rem;
}


@media (max-width: 700px) {
  .contact { width: 400px; }
}

@media (max-width: 470px) {
  .contact { width: 330px; }
}

@media (max-width: 400px) {
  .contact { width: 260px; }
}

.contact__heading {
  margin-top: -4rem !important;
  margin-bottom: 6rem !important;
}

.contact__heading:before {
  position: absolute;
  content: '';
  border-bottom: 18px solid #2b6ABC;
  width: 21rem;
  display: block;
  margin: 0 auto;
  position: relative;
  left: 3.5rem;
  top: 6.3rem;
  z-index: -1;
}

@media (max-width: 770px) {
  .contact__heading:before {
    border-bottom: 14px solid #2b6ABC;
  }
}

.contact__text {
  font-size: 1.8rem;
  margin-bottom: 6rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact__form-name,
.contact__form-email {
  margin-bottom: 6px;
  padding: 1rem;
  height: 4rem;
}

.contact__form-message {
  height: 12rem;
  padding: 1rem;
}

.contact__form-submit {
  align-self: flex-start;
  position: relative;
  padding: 0.6rem 1rem;
  width: fit-content;
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  z-index: 9;
  cursor: pointer;
}

.contact__form-submit:hover {
  color: #1a1a1a;
  font-weight: 700;
}

.contact__form-submit:after {
  position: absolute;
  content: '';
  border-bottom: 2px solid #2b6ABC;
  width: calc(100% + 2rem);
  left: -14%;
  top: 0.5rem;
  display: block;
  margin: 0 auto;
  position: relative;
  transform-origin: bottom;
  transition: all 0.2s;
  z-index: -1;
}

.contact__form-submit:hover:after {
  transform: scaleY(17.5);
}

@media (max-width: 1500px) {
  .contact__form-submit:hover:after { transform: scaleY(16.5); }
}

@media (max-width: 1200px) {
  .contact__form-submit:hover:after { transform: scaleY(14); }
}

@media (max-width: 770px) {
  .contact__form-submit:hover:after { transform: scaleY(12.5); }
}

.contact input,
.contact textarea {
  width: 500px;
  resize: none;
  border: none;
  color: inherit;
  background-color: #282828;
  font-size: 1.6rem;
  font-family: monserrat, sans-serif;
  border-left: 2px solid transparent;
}

@media (max-width: 700px) {
  .contact input,
  .contact textarea {
    width: 400px;
  }
}

@media (max-width: 470px) {
  .contact input,
  .contact textarea {
    width: 330px;
  }
}

@media (max-width: 400px) {
  .contact input,
  .contact textarea {
    width: 260px;
  }
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: rgba(250, 250, 250, 0.6);
  opacity: 1;
}

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

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

.contact__form-error-submit {
  margin-top: 1.5rem;
  height: 7rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-error {
  align-self: start;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-error > * {
  display: none;
}

.input-error {
  border-left: 2px solid #2b6ABC !important;
}

.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 160px;
  background-color: #282828;
}

.socials {
  display: flex;
  margin-bottom: 20px;
}

.socials__github,
.socials__email,
.socials__linkedin,
.socials__facebook,
.socials__instagram {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.socials__github:hover,
.socials__email:hover,
.socials__linkedin:hover,
.socials__facebook:hover,
.socials__instagram:hover {
  transform: scale(1.2);
}

.socials__github {
  margin-right: 1rem;
}

.socials__email {
  margin-left: 1rem;
}

.socials__linkedin {
  margin-left: 1rem;
}

.socials__facebook {
  margin-left: 1rem;
}

.socials__instagram {
margin-left: 1rem;
}

.socials img {
  height: 100%;
}

.socials__linkedin img {
  width: 41px;
  height: 41px;
  margin-left: 5px;
}

.socials__facebook img {
  margin-left: 3.5px;
}

.socials__instagram img {
  width: 41px;
  height: 41px;
  margin-left: 3.5px;
}

.copyright {
  color: #fafafa;
  font-size: 10px;
  font-weight: 500;
}

.return-home {
  position: absolute;
  top: -25px;
  width: 40px;
  height: 45px;
  margin-right: auto;
  margin-left: auto;
  left: 0;
  right: 0;
  text-align: center;
  background-color: #2b6ABC;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
}

.return-home:hover {
  cursor: pointer;
  animation-name: bounce;
  -moz-animation-name: bounce;
}

.return-home svg {
  width: 100%;
}

.hero {
  position: relative;
  display: flex;
  height: 100vh;
  width: 100%;
  z-index: 999;
}

.canvas {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background-color: #1a1a1a;
  overflow: hidden;
}

.connecting-dots {
  height: 100%;
  width: 100%;
}

.heading {
  position: relative;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: normal;
  width: fit-content;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  color: #fafafa;
  font-weight: 300;
  z-index: 999;
}

.heading__line-1 {
  animation-name: moveInLeft;
}

.heading__line-1 span {
  color: #2b6ABC;
  font-weight: 400;
}

.heading__line-2 {
  animation-name: moveInRight;
}

.heading__line-1,
.heading__line-2 {
  font-size: 6rem;
  background-color: rgba(26, 26, 26, 0.25);
  animation-duration: 1.4s;
  animation-timing-function: cubic-bezier(0.21, 1.11, 0.81, 0.99);
}

@media (max-width: 700px) {
  .heading__line-1,
  .heading__line-2 {
    font-size: 5rem;
    text-align: center;
    margin-left: 4rem;
    margin-right: 4rem;
  }
}

@media (max-width: 550px) {
  .heading__line-1,
  .heading__line-2 {
    font-size: 5rem;
  }
}

.heading-cta {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 2.4rem;
  padding: 0.8rem 3rem;
  width: 23rem;
  height: 4.8rem;
  background-color: rgba(26, 26, 26, 0.6);
  border: 2px solid #2b6ABC;
  border-radius: 2px;
  color: #2b6ABC;
  font-size: 2.4rem;
  font-weight: 500;
  cursor: pointer;
  animation: moveInBottom 0.7s 1.2s;
  animation-fill-mode: backwards;
  animation-timing-function: cubic-bezier(0.21, 1.11, 0.81, 0.99);
}

@media (max-width: 1500px) {
  .heading-cta {
    width: auto;
  }
}

@media (max-width: 700px) {
  .heading-cta {
    margin-top: 1.8rem;
  }
}

@media (max-width: 550px) {
  .heading-cta {
    padding: 0.8rem 2rem;
  }
}

.heading-cta:before,
.heading-cta:after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 23rem;
  height: 4.8rem;
  border-radius: 3px;
  border: 2px solid #2b6ABC;
  filter: blur(0);
  transform-origin: 50%;
  z-index: -1;
}

@media (max-width: 1500px) {
  .heading-cta:before,
  .heading-cta:after {
    width: 27.8rem;
  }
}

@media (max-width: 1200px) {
  .heading-cta:before,
  .heading-cta:after {
    width: 28.5rem;
    border: 2px solid transparent;
  }
}

.heading-cta:hover {
  transform: translateY(-2px);
}

.heading-cta:hover:before,
.heading-cta:hover:after {
  border-color: transparent;
  filter: blur(2px);
  transform: scaleX(1.3) scaleY(2.2);
  transition: 800ms transform ease, 1900ms blur ease, 700ms border-color ease;
  pointer-events: none;
}

.heading-cta:hover:after {
  transition-delay: 150ms;
}

.heading-cta:active {
  transform: translateY(-1px);
}

.heading__arrow {
  display: inline-block;
  height: 24px;
  width: 24px;
  margin-left: 15px;
  transform: rotate(90deg);
  fill: #2b6ABC;
  transition: all 0.3s;
}

@media (max-width: 770px) {
  .heading__arrow {
    height: 20px;
    width: 20px;
  }
}

@media (max-width: 615px) {
  .heading__arrow {
    margin-left: 10px;
  }
}

@media (max-width: 550px) {
  .heading__arrow {
    height: 16px;
    width: 16px;
  }
}

.main-bg {
  height: 100vh;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: royalblue;
}

.navigation {
  display: flex;
  margin-right: 10rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 1px;
}

@media (max-width: 1200px) {
  .navigation {
    margin-right: 3rem;
  }
}

@media (max-width: 700px) {
  .navigation {
    margin-right: 0;
  }
}

.navigation-bar {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 6rem;
  border-bottom: 1px solid #1a1a1a;
  background-color: #282828;
  box-shadow: 0 7px 7px rgba(0, 0, 0, 0.4);
  z-index: 99999999999;
}

@media (max-width: 700px) {
  .navigation-bar {
    justify-content: center;
  }
}

.navigation__item {
  transition: all 0.2s;
}

.navigation__item:not(:last-child) {
  margin-right: 3rem;
}

.navigation__item--active {
  color: #2b6ABC;
}

.navigation__item:hover {
  color: #2b6ABC;
}

.projects {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.projects__heading:before {
  position: absolute;
  content: '';
  border-bottom: 18px solid #2b6ABC;
  width: 22.5rem;
  display: block;
  margin: 0 auto;
  position: relative;
  left: 3.5rem;
  top: 6.3rem;
  z-index: -1;
}

@media (max-width: 770px) {
  .projects__heading:before {
    border-bottom: 14px solid #2b6ABC;
  }
}

.project {
  position: relative;
  display: flex;
  margin-bottom: 14rem;
  justify-content: flex-start;
}

@media (max-width: 560px) {
  .project {
    margin-bottom: 12rem;
  }
}

@media (max-width: 440px) {
  .project {
    margin-bottom: 10rem;
  }
}

.project__image-container {
  position: relative;
  height: 70rem;
  width: 100rem;
  background-color: #3216bb;
  transition: all 0.2s;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .project__image-container {
    height: 64rem;
    width: 90rem;
  }
}

@media (max-width: 970px) {
  .project__image-container {
    height: 58rem;
    width: 80rem;
  }
}

@media (max-width: 900px) {
  .project__image-container {
    height: 54rem;
    width: 75rem;
  }
}

@media (max-width: 700px) {
  .project__image-container {
    height: 48rem;
    width: 64rem;
  }
}

@media (max-width: 560px) {
  .project__image-container {
    height: 40rem;
    width: 52rem;
  }
}

@media (max-width: 440px) {
  .project__image-container {
    height: 30rem;
    width: 39rem;
  }
}

.project__image-container:hover {
  transform: scale(0.95);
}

.project__image-image {
  width: 85%;
  position: relative;
}

.project__image-image img {
  width: 100%;
}

.project__info {
  position: relative;
  top: 8rem;
  height: fit-content;
  padding: 1rem;
  z-index: 9999999;
}

@media (max-width: 1000px) {
  .project__info {
    width: fit-content;
  }
}

@media (max-width: 700px) {
  .project__info {
    background-color: rgba(26, 26, 26, 0.5);
  }
}

@media (max-width: 560px) {
  .project__info {
    top: 4rem;
  }
}

@media (max-width: 440px) {
  .project__info {
    top: 2rem;
  }
}

@media (max-width: 400px) {
  .project__info {
    top: 0;
  }
}

.project__title {
  position: relative;
  z-index: 66;
  font-size: 3.5rem;
}

@media (max-width: 900px) {
  .project__title {
    font-size: 3rem;
  }
}

@media (max-width: 820px) {
  .project__title {
    font-size: 2.7rem;
  }
}

@media (max-width: 550px) {
  .project__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 400px) {
  .project__title {
    font-size: 2.2rem;
  }
}

.project__description {
  position: relative;
  margin-top: 3rem;
  font-size: 1.8rem;
  font-weight: 500;
  z-index: 999909999;
}

@media (max-width: 560px) {
  .project__description {
    margin-top: 2rem;
  }
}

.project__live,
.project__code {
  position: relative;
  margin-top: 3rem;
  padding: 0.6rem 1rem;
  width: fit-content;
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  z-index: 9;
  transition: all 0.2s;
  cursor: pointer;
}

@media (max-width: 560px) {
  .project__live,
  .project__code {
    margin-top: 2rem;
  }
}

.project__live:hover,
.project__code:hover {
  color: #1a1a1a;
  font-weight: 700;
}

.project__live:after,
.project__code:after {
  position: absolute;
  content: '';
  border-bottom: 2px solid #2b6ABC;
  width: calc(100% + 2rem);
  left: -10%;
  top: 0.5rem;
  display: block;
  margin: 0 auto;
  position: relative;
  transform-origin: bottom;
  transition: all 0.2s;
  z-index: -1;
}

.project__live:hover:after,
.project__code:hover:after {
  transform: scaleY(17.5);
}

@media (max-width: 1500px) {
  .project__live:hover:after,
  .project__code:hover:after {
    transform: scaleY(16.5);
  }
}

@media (max-width: 1200px) {
  .project__live:hover:after,
  .project__code:hover:after {
    transform: scaleY(14);
  }
}

@media (max-width: 770px) {
  .project__live:hover:after,
  .project__code:hover:after {
    transform: scaleY(12.5);
  }
}

.project__code:after {
  width: calc(100% + 2rem);
  left: -8%;
}

.project-left {
  align-self: flex-start;
  margin-left: 22rem;
}

@media (max-width: 1700px) {
  .project-left {
    margin-left: 11rem;
  }
}

@media (max-width: 1500px) {
  .project-left {
    margin-left: 0;
  }
}

.project-left .project__info {
  left: -8rem;
  margin-right: -2rem;
}

@media (max-width: 800px) {
  .project-left .project__info {
    margin-right: -4rem;
  }
}

@media (max-width: 770px) {
  .project-left .project__info {
    margin-right: -4rem;
  }
}

@media (max-width: 600px) {
  .project-left .project__info {
    margin-right: -6rem;
  }
}

@media (max-width: 440px) {
  .project-left .project__info {
    left: -10rem;
    margin-right: -7rem;
  }
}

.project-right {
  align-self: flex-end;
  margin-right: 22rem;
}

@media (max-width: 1700px) {
  .project-right {
    margin-right: 11rem;
  }
}

@media (max-width: 1500px) {
  .project-right {
    margin-right: 0;
  }
}

.project-right .project__info {
  right: -8rem;
  margin-left: -2rem;
}

@media (max-width: 770px) {
  .project-right .project__info {
    margin-left: -4rem;
  }
}

@media (max-width: 600px) {
  .project-right .project__info {
    margin-left: -6rem;
  }
}

@media (max-width: 440px) {
  .project-right .project__info {
    right: -10rem;
    margin-left: -7rem;
  }
}

.retro {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.retro img {
  margin-bottom: -3px;
}

.todo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.weather {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.section-heading {
  position: relative;
  font-size: 5.5rem;
  font-weight: 700;
  margin-top: 9rem;
  margin-bottom: 13rem;
  z-index: 9999;
}

@media (max-width: 1200px) {
  .section-heading {
    margin-bottom: 10rem;
  }
}

@media (max-width: 1000px) {
  .section-heading {
    margin-top: 6rem;
  }
}

@keyframes moveInLeft {
  0% {
    opacity: 0;
    transform: translateX(-10rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes moveInRight {
  0% {
    opacity: 0;
    transform: translateX(10rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  outline: none;
  background-color: transparent;
  color: inherit;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

@media (max-width: 1500px) {
  html {
    font-size: 57.25%;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 50%;
  }
}

@media (max-width: 770px) {
  html {
    font-size: 43.75%;
  }
}

@media (max-width: 615px) {
  html {
    font-size: 40%;
  }
}

@media (max-width: 350px) {
  html {
    font-size: 35%;
  }
}

body {
  min-height: 100vh;
  color: #fafafa;
  font-family: montserrat, sans-serif;
  background-color: #1a1a1a;
}

/* 
.profile__picture {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-50px);
}

.slider {
  position: relative;
  width: 350px;
  perspective: 1000px;
  margin-top: -120px;
}

.rotator {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 55%;
  height: 150px;
  transform-style: preserve-3d;
  animation: roter 29s linear infinite;
}

.items {
  position: absolute;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 17px;
}

.items img {
  height: 100%;
  width: 100%;
  transition: all 3s ease;
}

.items:hover img {
  transform: scale(1.1);
}

@keyframes roter {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.items:nth-child(1) {
  transform: rotateY(40deg) translateZ(300px);
}
.items:nth-child(2) {
  transform: rotateY(80deg) translateZ(300px);
}
.items:nth-child(3) {
  transform: rotateY(120deg) translateZ(300px);
}
.items:nth-child(4) {
  transform: rotateY(160deg) translateZ(300px);
}
.items:nth-child(5) {
  transform: rotateY(200deg) translateZ(300px);
}
.items:nth-child(6) {
  transform: rotateY(240deg) translateZ(300px);
}
.items:nth-child(7) {
  transform: rotateY(280deg) translateZ(300px);
}
.items:nth-child(8) {
  transform: rotateY(320deg) translateZ(300px);
}
.items:nth-child(9) {
  transform: rotateY(360deg) translateZ(300px);
}

.rotator:hover {
  animation-play-state: paused;
} */

.image-path-curve p {
  height: 200px;
  width: 600px; /* slightly wider for 5 images */
  margin: 0 auto;
  position: relative;
}

.image-path-curve img {
  height: 150px;
  position: absolute;
  left: 0;
  offset-path: path('m 0 50 q 50-30 100-30 t 100 30 100 0 100-30 100 30');
  box-shadow: 1px 1px 3px #0008;
  transition: transform 0.4s ease-out,
              offset-path 0.4s cubic-bezier(0.77,-1.17,0.75,0.84),
              box-shadow 0.3s,
              z-index 0.3s;
  z-index: 0;
}

.image-path-curve img:hover {
  transform: scale(2.5);
  offset-path: path('m 5 65 q 45-0 90-0 t 90 0 90 0 90-0 90 0');
  box-shadow: 3px 4px 10px #0006;
  z-index: 999;
}

/* For 5 images */
.image-path-curve img:nth-child(1) {
  offset-distance: 5%;
}
.image-path-curve img:nth-child(2) {
  offset-distance: 27%;
}
.image-path-curve img:nth-child(3) {
  offset-distance: 50%;
}
.image-path-curve img:nth-child(4) {
  offset-distance: 73%;
}
.image-path-curve img:nth-child(5) {
  offset-distance: 95%;
}

/* CUBE IMAGES */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  justify-items: center;
}

.image-grid img {
  height: 150px;
  width: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, z-index 0.3s;
  box-shadow: 1px 1px 5px #0005;
  cursor: pointer;
  z-index: 1;
}

.image-grid img:hover {
  transform: scale(2.5);
  z-index: 999;
  box-shadow: 4px 6px 20px #0007;
}

@media (max-width: 600px) {
  .image-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Existing contact styles remain unchanged */

.contact__text {
  font-size: 1.8rem;
  margin-bottom: 6rem;
}

.contact__flex-container {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* FORM STYLES – UNCHANGED */
.contact__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact__form-name,
.contact__form-email {
  margin-bottom: 6px;
  padding: 1rem;
  height: 4rem;
}

.contact__form-message {
  height: 12rem;
  padding: 1rem;
}

.contact__form-submit {
  align-self: flex-start;
  position: relative;
  padding: 0.6rem 1rem;
  width: fit-content;
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  z-index: 9;
  cursor: pointer;
}

.contact__form-submit:hover {
  color: #1a1a1a;
  font-weight: 700;
}

.contact__form-submit:after {
  position: absolute;
  content: '';
  border-bottom: 2px solid #2b6ABC;
  width: calc(100% + 2rem);
  left: -14%;
  top: 0.5rem;
  display: block;
  margin: 0 auto;
  position: relative;
  transform-origin: bottom;
  transition: all 0.2s;
  z-index: -1;
}

.contact__form-submit:hover:after {
  transform: scaleY(17.5);
}

@media (max-width: 1500px) {
  .contact__form-submit:hover:after { transform: scaleY(16.5); }
}

@media (max-width: 1200px) {
  .contact__form-submit:hover:after { transform: scaleY(14); }
}

@media (max-width: 770px) {
  .contact__form-submit:hover:after { transform: scaleY(12.5); }
}

/* INPUT STYLES – UNCHANGED */
.contact input,
.contact textarea {
  width: 500px;
  resize: none;
  border: none;
  color: inherit;
  background-color: #282828;
  font-size: 1.6rem;
  font-family: monserrat, sans-serif;
  border-left: 2px solid transparent;
}

@media (max-width: 700px) {
  .contact input,
  .contact textarea {
    width: 400px;
  }
}

@media (max-width: 470px) {
  .contact input,
  .contact textarea {
    width: 330px;
  }
}

@media (max-width: 400px) {
  .contact input,
  .contact textarea {
    width: 260px;
  }
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: rgba(250, 250, 250, 0.6);
  opacity: 1;
}

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

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

.contact__form-error-submit {
  margin-top: 1.5rem;
  height: 7rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ✅ NEW STYLES ADDED BELOW THIS LINE */

.contact__info-box {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  text-align: left;
  padding: 1rem;
  color: #fafafa;
  font-family: monserrat, sans-serif;
}

.contact__info-box h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact__info-box p {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.contact__info-detail {
  line-height: 2;
  font-size: 1.3rem;
  margin-top: 1rem;
}

.contact__info-detail div {
  margin-bottom: 0.5rem;
}

.contact__info-detail a {
  color: #64b5f6;
  text-decoration: none;
}

.contact__info-detail a:hover {
  text-decoration: underline;
}

.contact__icons {
  margin-top: 1rem;
  display: flex;
  gap: 1.2rem;
  font-size: 1.8rem;
}

.contact__icons a {
  color: #64b5f6;
  transition: color 0.2s ease;
}

.contact__icons a:hover {
  color: #ffffff;
}

.slider {
  position: relative;
  width: 500px; /* increased from 350px */
  margin: 0 auto;
  perspective: 1000px;
  padding-top: 120px;
  min-height: 400px; /* increased from 300px to fit taller images */
}

.rotator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 70%; /* wider carousel ring */
  height: 250px; /* increased from 150px */
  transform-style: preserve-3d;
  animation: roter 25s linear infinite;
}

.items {
  position: absolute;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 17px;
}

.items img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 17px;
  transition: all 0.5s ease;
}

.items:hover img {
  transform: scale(1.05);
}

@keyframes roter {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

/* Carousel positions - you can add more if needed */
.items:nth-child(1) {
  transform: rotateY(0deg) translateZ(400px); /* increased Z distance */
}
.items:nth-child(2) {
  transform: rotateY(90deg) translateZ(400px);
}
.items:nth-child(3) {
  transform: rotateY(180deg) translateZ(400px);
}
.items:nth-child(4) {
  transform: rotateY(270deg) translateZ(400px);
}

.rotator:hover {
  animation-play-state: paused;
}

.projects__heading {
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

.projects {
  margin-bottom: 10rem;
}

.container {
  display: flex;
  width: 95vw;
  margin: 1.5rem auto 0 auto;
  gap: 20px;
}

.panel {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  border-radius: 30px;
  color: #fff;
  cursor: pointer;
  flex: 0.5;
  margin: 10px 0;
  position: relative;
  transition: all 700ms ease-in;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.panel h3 {
  font-size: 24px;
  margin: 20px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease-in 0.4s;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 30px;
}

.panel.active {
  flex: 5;
}

.panel.active h3 {
  opacity: 1;
}

.panel__content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  color: #2b6ABC;
  text-shadow: 0 0 4px white;
}

.panel__content h3 {
  font-size: 24px;
  margin: 0;
  color: #000000;
}

.panel__content p {
  margin-top: 5px;
  font-size: 0.95rem;
  max-width: 250px;
  line-height: 1.3;
  color: #000000;
}

.panel__content p {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.panel.active .panel__content p {
  display: block;
  opacity: 1;
}

.panel__card {
  background: rgba(255, 255, 255, 0.9);
  color: #020202;
  padding: 1rem;
  border-radius: 15px;
  max-width: 300px;
  margin: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
  backdrop-filter: blur(4px);
  max-height: 60vh;
  overflow-y: auto;
}

.panel.active .panel__card {
  opacity: 1;
  transform: translateY(0);
}

.panel__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.panel__card p {
  margin: 0.25rem 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.panel__card a {
  color: #000000;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .panel {
    width: 100%;
    height: 60vh;
    margin: 1rem 0;
  }

  .panel.active {
    flex: 1 !important;
  }
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  height: 65vh;
  min-height: 500px; 
  flex: 0.5;
  margin: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  transition: all 700ms ease-in;
}

.panel__img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;           /* Default when collapsed */
  z-index: 0;
  border-radius: 30px;
  pointer-events: none;

  /* 🔽 Animate scale and object-fit for smooth effect */
  transition: transform 0.7s ease-in-out, object-fit 0.7s ease-in-out;
  transform: scale(1); /* normal size */
  padding: 0px;
}

.panel.active .panel__img {
  object-fit: fill;          /* Stretch image when expanded */
  transform: scale(1.05);    /* Slight zoom-in effect for smoothness */
  padding: 25px;
  border-radius: 40px;
}

/* 
.projects__heading {
  padding-bottom: 10rem;
}

.items {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  width: 300px;
  min-height: 800px; 
  box-sizing: border-box;
}

.items img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 17px;
  transition: all 0.5s ease;
}

.item-info {
  margin-top: 0.75rem;
  padding: 0 0.5rem;
  width: 100%;
}

.item-info h3 {
  font-size: 1rem;
  margin: 0.25rem 0;
}

.item-info p {
  font-size: 0.85rem;
  color: #ddd;
  margin: 0;
  line-height: 1.3;
  word-wrap: break-word;
} */

