@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
}

li {
  list-style-type: none;
}

p {
  line-height: 1.5;
  font-size: 16px;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

section {
  background-color: rgb(245, 245, 245);
  transition: all 300ms ease;
}

input,
textarea {
  width: 100%;
  background-color: #242424;
  color: white;
  outline: none;
  border: 3px solid #cbc4cc;
  border-top: none;
  border-left: none;
  border-right: none;
  height: 40px;
  transition: all 300ms ease;
}
textarea {
  resize: vertical;
  height: 100px;
  margin-top: 8px;
}

label {
  font-size: 14px;
  font-weight: bold;
}

input:hover,
textarea:hover {
  border-color: #dcdfe6;
}

input:focus,
textarea:focus {
  border-color: #f06449;
}

.container {
  padding: 50px 0;
  width: 100%;
}

.row {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

.click {
  cursor: pointer;
  transition: all 300ms ease;
}

.click:hover {
  transform: scale(0.8);
}

.click:active {
  transform: scale(0.8);
}

.title {
  font-size: 76px;
  margin-bottom: 12px;
  text-align: left;
  line-height: 1;
}

.secondary {
  color: crimson !important;
}

.orange {
  color: darkorange;
}

.link__hover-effect {
  position: relative;
}

.link__hover-effect:after {
  content: "";
  position: absolute;
  bottom: -3px;
  height: 3px;
  width: 0;
  right: 0;
  transition: all 300ms ease;
}

.link__hover-effect--white:after {
  background-color: white;
}

.link__hover-effect--black:after {
  background-color: #242424;
}

.link__hover-effect:hover:after {
  left: 0;
  width: 100%;
}

nav,
.scroll,
.header {
  opacity: 1;
  visibility: visible;
  transition: all 600ms 800ms;
}

.modal--open nav,
.modal--open .scroll,
.modal--open .header {
  opacity: 0;
  visibility: hidden;
  transition: all 400ms;
}

.dark-theme .title,
.dark-theme .section__title,
.dark-theme .modal__sub-title,
.dark-theme .nav__link--anchor,
.dark-theme .fa-solid,
.dark-theme .header__para {
  color: white;
}

.dark-theme section {
  background-color: #242424;
}

.dark-theme #personal-logo,
.dark-theme .footer__logo--img {
  filter: invert(1);
}

.dark-theme .scroll__icon {
  border-color: white;
}

.dark-theme .scroll__icon:after,
.dark-theme .link__hover-effect--black:after {
  background-color: white;
}

.dark-theme .link__hover-effect--white:after {
  background-color: white;
}

.dark-theme .mail__btn {
  filter: invert(1);
}

/* 

LANDING PAGE

*/

#landing-page {
  min-height: 100vh;
}

.header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  padding: 0 30px;
}

.header__para {
  font-size: 20px;
  line-height: 2;
  max-width: 450px;
}

.social__list {
  margin-top: 16px;
  display: flex;
}

.social__link {
  background-color: blue;
  color: white;
  padding: 6px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  margin-right: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.mail__btn {
  width: 70px;
  height: 70px;
  font-size: 32px;
  border-radius: 50%;
  border: none;
  background-color: #242424;
  color: white;
  position: absolute;
  bottom: 32px;
  right: 40px;
}

.scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll__icon {
  width: 20px;
  height: 30px;
  border: 2px solid #242424;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll__icon:after {
  content: "";
  width: 4px;
  height: 6px;
  background-color: #242424;
  border-radius: 2px;
  animation: scroll 1000ms infinite alternate-reverse;
}

@keyframes scroll {
  0% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(-3px);
  }
}

/* 

NAVIGATION 

*/

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100px;
}

#personal-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.nav__link--list {
  display: flex;
}

.nav__link {
  margin: 0 12px;
}

.nav__link--anchor {
  text-decoration: none;
  font-family: 16px;
  color: #242424;
  font-weight: 700;
}

.fa-adjust {
  font-size: 20px;
}

/* 

MODAL 

*/

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  height: 700px;
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.55);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  visibility: hidden;
  z-index: -1;
  transition: visibility 1s, z-index 1s, box-shadow 0.5s ease;
}

.modal--open .modal {
  z-index: 60;
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.55);
  visibility: visible;
}

.modal__half {
  width: 50%;
  padding: 40px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 300ms ease;
}

.modal--open .modal__about,
.modal--open .modal__contact {
  transform: translateX(0%);
}

.modal__about {
  background-color: rgb(245, 245, 245);
  transform: translateX(-110%);
}

.modal__languages {
  display: flex;
  flex-wrap: wrap;
}

.modal__language {
  width: 25%;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 300ms ease;
}

.modal__language:hover .language__name {
  transform: scale(1);
}

.modal__language:hover {
  filter: brightness(80%);
  transform: scale(0.9);
}

.language__name {
  position: absolute;
  bottom: -10px;
  transform: scale(0);
  transition: all 300ms ease;
}

.modal__language--img {
  width: 100%;
}

.modal__contact {
  background-color: #242424;
  color: white;
  transform: translateX(110%);
}

.modal__title {
  font-size: 26px;
}

.modal__sub-title {
  margin: 12px 0 24px 0;
  font-size: 14px;
}

.modal__para {
  margin-bottom: 12px;
  line-height: 1.75;
}

.form__item {
  margin-bottom: 20px;
}

.form__submit {
  background-color: #f06449;
  border: 2px solid #f06449;
  color: white;
  font-weight: 700;
  width: 100%;
  max-width: 240px;
  padding: 12px 24px;
  font-size: 20px;
  transition: all 300ms ease;
}

.form__submit:hover {
  border-color: #fff;
  background-color: transparent;
}

.form__submit:active {
  border-color: #f06449;
  color: #f06449;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.modal__overlay--loading {
  background-color: #242424;
  font-size: 80px;
}

.modal__overlay--success {
  background-color: #4bb543;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  padding: 28px;
}

.modal__overlay--visible {
  z-index: 1;
  display: flex;
}

.fa-spinner {
  animation: spinner 750ms linear infinite;
}
@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.modal__exit {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 32px;
  z-index: 100;
}
/* === Layout Grid: 3x2 === */
.anim__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0 20px;
}

/* === Card Base === */
.anim__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1115;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    opacity 700ms ease var(--delay, 0ms);
  will-change: transform, opacity;
  perspective: 900px;
  transform-style: preserve-3d;
  height: auto;
  min-height: 240px;
}

/* === Gravity Gun Card (keeps same box size as others) === */
.anim__card.gravity-gun-card {
  background: #0f1115 !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit !important;
  cursor: pointer;
}

/* === Image Styling (default cards) === */
.anim__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  background-color: #111;
  transition: transform 600ms ease, filter 400ms ease;
  backface-visibility: hidden;
}

/* === Gravity Gun Image === */
#gravityGunImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  background: none;
  display: block;
}

.gravity-gun-img {
  background-color: transparent !important;
}

/* === Overlay (text always visible, doesn’t block clicks) === */
.anim__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(12, 14, 20, 0.2) 20%,
    rgba(12, 14, 20, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  opacity: 1;
  border-radius: 16px;
  pointer-events: none; /* lets mouse pass through */
}

.anim__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.anim__meta {
  margin-top: 8px;
  font-size: 15px;
  opacity: 0.9;
}

/* === Larger Preview Images === */
.anim__img,
.gravity-gun-img {
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover & Tilt Effects */
.anim__card:hover .anim__img,
.anim__card:focus-within .anim__img {
  transform: scale(1.12);
  filter: brightness(0.9);
}

.anim__card:hover {
  transform: rotateX(var(--rx, 2deg)) rotateY(var(--ry, 6deg));
}

/* === Gravity Gun Canvas === */
.gravity-gun-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin-top: 12px;
  background: radial-gradient(circle at center, #0f0f0f, #000);
  display: block;
}

/* Fullscreen when equipped */
body.gunEquipped .gravity-gun-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 900;
  border-radius: 0;
  margin: 0;
  aspect-ratio: auto;
}

/* === Floating Cursor Gun (below objects so hover works) === */
#gravityGunCursor {
  position: fixed;
  pointer-events: none;
  width: 200px;
  height: 200px;
  z-index: 1500; /* lower than physElement */
  transform: translate(-50%, -50%);
  display: none;
  image-rendering: crisp-edges;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.75));
}

body.physGunEquipped {
  cursor: none !important;
}
.mobile__note {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(0);
  z-index: 9999; /* raise above physElements, cursor, etc */
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #ff4444;
  background: rgba(255, 243, 243, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #ffcccc;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 280px;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile__note.show {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(-10px) scale(1.05);
  pointer-events: auto; 
}





/* === PhysElement Defaults === */
.physElement {
  position: absolute;
  font-size: 56px;
  cursor: grab;
  user-select: none;
  z-index: 2000; /* sits above the gun cursor */
  transition: transform 0.3s ease, top 0.4s ease, left 0.4s ease;
}

.physElement.dragging {
  cursor: grabbing;
  transition: none;
}

/* Resting state */
.physElement.resting {
  z-index: 1000;
  transform: none;
  transition: left 0.6s ease, top 0.6s ease, transform 0.6s ease;
}

/* === Fire / Recoil FX === */
.physElement.fired {
  animation: firedPulse 0.4s ease-out;
  filter: drop-shadow(0 0 16px rgba(0, 255, 255, 0.6));
}

@keyframes firedPulse {
  0% {
    transform: scale(1) rotate(0deg);
  }
  40% {
    transform: scale(1.2) rotate(15deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* === Trigger Highlight === */
#gravityGunTrigger.active {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px #00ffff);
}
#gravgun {
  touch-action: none;
}

.snapZone.highlight {
  outline: 2px dashed #00ffff;
  transition: outline 0.3s ease;
}

/* === Root Variables === */
:root {
  --blob-fill: #00bcd4;
  --particle-opacity-default: 0.85;
  --particle-opacity-active: 1;
  --particle-fade-duration: 0.4s;
  --hover-scale: 1;
}

/* === Theme Sync === */
body.dark-mode {
  --blob-fill: #ff4081;
}

/* === Blob Morph SVG === */
.svg-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  aspect-ratio: 1 / 1;
}

svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

path,
.blob-icon {
  fill: var(--blob-fill);
  transition: fill 0.3s ease, transform 0.4s ease;
  transform-origin: center;
  will-change: transform;
}

.morph-target {
  transform-origin: center;
  will-change: transform;
}

/* === Particle Trail Canvas === */
.particle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20; /* ⬆️ Must be above .anim__card */
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: var(--particle-opacity-default);
  transition: opacity var(--particle-fade-duration) ease;
}

.anim__card:hover .particle-bg,
.anim__card:active .particle-bg {
  opacity: var(--particle-opacity-active);
}

@media (prefers-reduced-motion: reduce) {
  .particle-bg {
    transition: none;
  }
}

/* === Resume Tilt Card === */
.resume-tilt {
  width: 100%;

  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.resume-tilt .tilt-card {
  perspective: 1000px;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.resume-tilt .tilt-card:hover {
  --hover-scale: 1.03;
  transform: scale(var(--hover-scale));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.resume-tilt .tilt-inner {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  border-radius: 12px;
  padding: 2rem;
  transform-style: preserve-3d;
  transform-origin: center;
  transform: rotateX(0deg) rotateY(0deg) scale(1.07);
  transition: transform 0.2s ease;
  will-change: transform;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backface-visibility: hidden;
}

.resume-tilt .anim__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.resume-tilt .anim__meta {
  font-size: 1rem;
  opacity: 0.85;
}

/* === Displacement SVG === */
.displacement-svg {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}

/* === Marquee Card Polish === */
.anim__card .marquee-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
  background: linear-gradient(to right, #f0f4ff, #e0f7ff);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.anim__card .marquee-track {
  display: inline-block;
  animation: scroll-left 25s linear infinite;
  font-size: 1.1rem;
  color: #1e3a8a;
  white-space: nowrap;
  font-weight: 600;
}

.anim__card .marquee-track span {
  margin: 0 1.25rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.anim__card .marquee-track span:hover {
  transform: scale(1.1);
  color: #3b82f6;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  .anim__card .marquee-track {
    animation-duration: 30s;
  }
}

@media (min-width: 769px) {
  .anim__card .marquee-track {
    animation-duration: 25s;
  }
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
  .anim__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .anim__title {
    font-size: 19px;
  }

  .anim__meta {
    font-size: 13px;
  }

  .gravity-gun-canvas {
    aspect-ratio: 4 / 3;
  }

  .anim__img,
  .gravity-gun-img {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .anim__img,
  .gravity-gun-img {
    height: 220px;
  }
}

/*

PROJECTS

*/

.section__title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
}

.project__img {
  width: 100%;
  transition: all 600ms ease;
}
.project__list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 60px;
  column-gap: 40px;
  justify-content: center;
  padding: 0 40px;
}

.project:hover .project__img {
  transform: scale(1.05);
  filter: blur(5px);
}

.project__wrapper {
  position: relative;
  border-radius: 40px;
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.45);
  overflow: hidden;
}

.project__wrapper:hover .project__description {
  opacity: 1;
  transform: translateY(-50%);
}

.project__wrapper:hover .project__img {
  transform: scale(1.07);
  filter: blur(5px);
}

.project__description {
  position: absolute;
  top: 50%;
  left: 90px;
  transform: translateY(100%);
  opacity: 0;
  transition: opacity 300ms ease, transform 450ms ease;
  color: white;
  max-width: 550px;
}

.project__wrapper:hover .project__wrapper--bg {
  opacity: 0.7;
}

.project__wrapper--bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1c1d25;
  opacity: 0;
  transition: all 450ms ease;
}

.project__description--title {
  font-size: 40px;
}
.project__description--sub-title {
  margin-top: 8px;
}

.project__description--link {
  color: white;
  font-size: 20px;
  margin-right: 16px;
}

.project__description--para {
  margin: 16px 0;
}

/*
 
FOOTER 
 
 */

footer {
  position: relative;
  background-color: #242424;
  display: flex;
  padding: 6% 0;
}

.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__logo--img {
  width: 100px;
  height: 100px;
  border-radius: 100%;
  filter: invert(1);
}

.footer__social--list {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-around;
  margin-bottom: 28px;
}

.footer__social--link,
.footer__copyright {
  color: white;
}

/* 

SHAPES 

*/

.shape {
  position: fixed;
}

.shape--0 {
  top: 15vh;
  left: 5vw;
}

.shape--1 {
  top: 15vh;
  left: 50vw;
}

.shape--2 {
  top: 15vh;
  left: 80vw;
}

.shape--3 {
  top: 50vh;
  left: 5vw;
}

.shape--4 {
  top: 50vh;
  left: 50vw;
}

.shape--5 {
  top: 50vh;
  left: 80vw;
}

.shape--6 {
  top: 80vh;
  left: 5vw;
}

.shape--7 {
  top: 80vh;
  left: 50vw;
}

.shape--8 {
  top: 80vh;
  left: 80vw;
}

@media (max-width: 768px) {
  .title {
    font-size: 80px;
    max-width: 100%;
    word-wrap: break-word;
  }

  .header__para {
    font-size: 20px;
  }

  .modal {
    top: 0;
    left: 0;
    transform: none;
    height: auto;
    width: 100%;
    flex-direction: column-reverse;
    border-radius: 0%;
    overflow-y: auto;
  }

  .modal__half {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 36px;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
    margin: 0 auto;
  }

  .header__para {
    font-size: 14px;
    line-height: 1.4;
    padding: 0 1rem;
  }

  .nav__link:first-child {
    display: none;
  }

  @media (max-width: 480px) {
    .title {
      font-size: 52px;
    }

    .header__para {
      font-size: 16px;
    }

    .nav__link:first-child {
      display: none;
    }
    .project__description--para {
      display: none;
    }
    .project__description--title {
      font-size: 20px;
    }

    .project__description {
      left: 0;
      padding: 0;
      width: 100%;
      text-align: center;
    }

    .project__description--sub-title {
      margin-bottom: 8px;
    }

    .modal__half {
      padding: 40px;
    }
  }
}
/* --- Mobile fixes for Gravity Gun Card --- */
@media (max-width: 768px) {
  .gravity-gun-card .anim__overlay {
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 16px;
  }

  .gravity-gun-card .anim__title {
    font-size: 18px;
    line-height: 1.3;
    word-break: break-word;
  }

  .gravity-gun-card .anim__meta {
    font-size: 13px;
    margin-top: 6px;
  }

  body.gunEquipped #gravityGunImage {
    position: fixed;
    inset: 0;
    width: auto;
    max-width: 100vw;
    height: auto;
    max-height: 90vh;
    margin: auto;
    transform: none;
    left: 0;
    right: 0;
  }
}
