html,
body {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
}

.post-header {
  padding-left: 20px;
}

.post-header h2 {
  font-size: 30px;
}

.intro {
  display: flex;
  flex: 1;
  padding-bottom: 500px;
  max-height: 500px;
  max-width: 100%;
  justify-content: center;
  font-family: "Times New Roman", Times, serif;
  position: relative;
  z-index: 1;
}

.intro h1 {
  font-size: 250px;
  position: absolute;
  transform: translateX(-400px) translateY(-100px);
}

.intro h2 {
  font-size: 70px;
  max-width: 1000px;
  position: absolute;
  transform: translateX(200px) translateY(20px);
}

.intro p {
  box-shadow: 0 2px 8px black;
  border-radius: 20px;
  background-color: white;
  padding: 10px 20px;
  color: rgb(72, 72, 72);
  font-size: 22px;
  max-width: 810px;
  position: absolute;
  transform: translateX(290px) translateY(150px);
}

.image-index {
  position: absolute;
  transform: translateY(-600px);
  width: 100%;
  left: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.my-stuff {
  display: flex;
  justify-content: center;
  height: 500px;
}

.inline-stuff h1 {
  font-size: 60px;
}

.inline-stuff a {
  display: inline-block;
  text-decoration: none;
}

.inline-stuff h4 {
  padding: 30px 0;
  text-align: center;
  font-size: 25px;
  width: 300px;
  height: 25px;
  background-color: white;
  box-shadow: 0px 1px 10px black;
  border-radius: 10px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-stuff div {
  position: absolute;
  display: flex;
  gap: 50px;
  transform: translateX(-525px);
}

#middle1 {
  transform: translateY(150px) translateX(-80px);
}

#middle2 {
  transform: translateY(150px) translateX(80px);
}

a {
  color: rgb(100, 100, 100);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.textcomp {
  width: 100%;
  text-align: center;
}

.sizecomp {
  display: flex;
  justify-content: center;
  gap: 250px;
}

.sizecomp h1 {
  font-size: 50px;
}

.post-div {
  display: flex;
  justify-content: center;
}

.post-main {
  width: 60%;
  font-size: 130%;
}

.post-main p {
  color: rgb(75, 75, 75);
}

.post-main h6 {
  color: gray;
}

.post-main {
  font-family: "Times New Roman", Times, serif;
  word-spacing: 0.1em;
}

.post-main a {
  font-weight: 600;
}

.main-index {
  flex: 1;
  padding-bottom: 300px;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 60px 20px 40px;
  width: 100%;
  margin-top: auto;
  background-color: white;
  box-shadow: 0px 0px 8px black;
  min-height: 250px;
}

.contact h3 {
  font-size: 32px;
}

.links {
  display: flex;
  gap: 24px;
  z-index: 1;
}

.links a {
  font-size: 24px;
  background-color: white;
  box-shadow: 0 1px 4px black;
  padding: 8px 16px;
  border-radius: 10px;
}

.copyright {
  margin-top: 30px;
  color: #666;
  font-size: 14px;
}

#img-for-contact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: bottom;
  z-index: 0;
  opacity: 0.8;
}

.contact h3,
.contact p,
.links {
  position: relative;
  z-index: 1;
}

@keyframes moving {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(25px);
  }
}

#geoarsh:hover,
#weboneshot:hover,
#oneshot:hover,
#fuzzy:hover {
  animation: moving 1s ease-in-out infinite alternate;
}

#p-for-geo,
#p-for-weboneshot,
#p-for-oneshot,
#p-for-fuzzy {
  font-size: 20px;
  position: absolute;
  z-index: -1;
  opacity: 0;
  padding: 12px 20px;
  background-color: white;
  box-shadow: 0px 0px 8px;
  border-radius: 8px;
  width: 200px;
  color: #666;
  transition: opacity 1s ease-in-out;
}

#p-for-geo {
  transform: translate(90px, -500px);
}

#p-for-weboneshot {
  transform: translate(360px, -100px);
}

#p-for-oneshot {
  right: 0;
  transform: translate(-360px, -100px);
}

#p-for-fuzzy {
  right: 0;
  transform: translate(-90px, -500px);
}

@media (max-width: 480px) {
  /* Prevent horizontal scrolling */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  * {
    max-width: 100vw;
  }

  .intro h1 {
    font-size: 80px;
    transform: translateX(-100px) translateY(100px);
    position: absolute;
    text-align: center;
  }

  .intro h2 {
    font-size: 35px;
    transform: translateX(0px) translateY(100px);
    position: absolute;
    text-align: center;
    margin-top: 20px;
  }

  .intro p {
    font-size: 14px;
    transform: translateX(100px) translateY(150px);
    position: absolute;
    margin: 20px 10px;
    max-width: 180px;
  }

  .image-index {
    transform: translateY(-600px) translateX(0);
    position: absolute;
    width: 200%;
    height: 1500px;
    object-fit: cover;
  }

  /* Projects section */
  .my-stuff {
    height: auto;
    padding: 20px 10px;
  }

  .inline-stuff h1 {
    font-size: 80px;
    text-align: center;
  }

  .inline-stuff div {
    position: relative;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .inline-stuff h4 {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  #middle1,
  #middle2 {
    transform: none;
  }

  /* Hide project descriptions on mobile */
  #p-for-geo,
  #p-for-weboneshot,
  #p-for-oneshot,
  #p-for-fuzzy {
    display: none;
  }

  /* Text sections */
  .sizecomp {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }

  .sizecomp h1 {
    font-size: 60px;
  }

  .sizecomp h3 {
    font-size: 25px;
  }

  /* Contact section */

  .contact h3 {
    padding-right: 40px;
    font-size: 24px;
  }

  .links {
    padding-right: 70px;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
  }

  .links a {
    font-size: 18px;
    text-align: center;
    width: 100%;
  }

  /* Remove hover animations on mobile */
  #geoarsh:hover,
  #weboneshot:hover,
  #oneshot:hover,
  #fuzzy:hover {
    animation: none;
  }

  /* Post/Blog page styles */
  .post-div {
    padding: 10px;
  }

  .post-main {
    width: 95%;
    padding: 0 30px;
  }

  .post-main h1 {
    font-size: 60px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .post-main h6 {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .post-main p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .post-main img {
    width: 300px !important;
    height: auto;
    margin: 20px 0;
  }

  .post-main div {
    padding: 10px;
    margin: 15px 0;
  }

  .post-main a {
    word-break: break-word;
  }

  .reader-thing {
    font-size: 18px !important;
    transform: translate(-230px, 210px);
  }
}

.reader-thing {
  position: absolute;
  font-size: 25px;
  font-weight: bold;
  right: 50px;
  top: 25px;
  font-family: "Times New Roman", Times, serif;
  color: #666;
  opacity: 90%;
}

.for-reader {
  position: absolute;
  right: 0;
  z-index: -1;
}

.comment-section {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  margin-top: 50px;
  background: white;
}

.in-comment {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.in-comment text {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  font-family: "Times New Roman", Times, serif;
}

.in-comment input {
  width: 100%;
  max-width: 500px;
  padding: 15px 20px;
  border-radius: 15px;
  border: 2px solid #e0e0e0;
  background-color: white;
  font-size: 16px;
  font-family: "Times New Roman", Times, serif;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.in-comment input::placeholder {
  color: #999;
  font-style: italic;
}

.in-comment input:focus {
  border-color: #5caa5e;
  box-shadow: 0 4px 12px rgba(92, 170, 94, 0.2);
  transform: translateY(-2px);
}

.in-comment input:hover {
  border-color: #8eda90;
}

/* Comments Display Styles */
.comments-display {
  width: 100%;
  padding: 0 40px;
  margin: 60px 0;
}

.comments-display h3 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  font-family: "Times New Roman", Times, serif;
  margin-bottom: 30px;
  text-align: center;
}

#comments-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  align-items: flex-start;
}

.comment-item {
  background: white;
  border-radius: 15px;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  position: relative;
  flex: 0 0 auto;
}

.comment-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.comment-name {
  font-size: 13px;
  color: #666;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: monospace;
}

.comment-text {
  font-size: 15px;
  color: #444;
  line-height: 1.4;
  font-family: "Times New Roman", Times, serif;
}

.no-comments {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 15px;
  font-size: 16px;
}
