*, *::before, *::after {
  box-sizing: border-box;
  font-family: "Alumni Sans SC", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: black;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


html::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}


img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: 0.52vw solid black;
  opacity: 1;
}



a {
  text-decoration: none;
  color: white;
}

a:hover {
  transform: translateY(0);
  box-shadow: 0 10px 10px rgba(255,255,255,0.1);
}

h1 {
  font-size: 1.56vw;
  color: white;
  font-family: "Alumni Sans SC", sans-serif;
}

h2 {
  font-size: 2.6vw;
  font-family: "Alumni Sans SC", sans-serif;
  color: white;
  margin-bottom: 1vw;
  text-align: left;
  margin-left: 7vw;
}

h3 {
  font-size: 4vw;
  text-align: center;
  font-family: "Alumni Sans SC", sans-serif;
  color: white;
  line-height: 2vw;
}

h5 {
  font-size: 0.52vw;
}

p {
  font-size: 2vw;
  text-align: center;
  font-family: "Alumni Sans SC", sans-serif;
  color: white;
}

.h2 {
  font-size: 1.56vw;
  text-align: left;
  width: 50%;
  font-family: "Alumni Sans SC", sans-serif;
  color: white;
  margin-left: 7.3vw;
  margin-right: 7.3vw;
}

.h3 {
  font-size: 1.56vw;
  text-align: right;
  width: 50%;
  font-family: "Alumni Sans SC", sans-serif;
  color: white;
  margin-left: auto;
  margin-right: 7.3vw;
}

header {
  background: black;
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;       
  z-index: 100;
  margin: 0;      
  padding: 0;
}

header h1 {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6vw 1vw;
}

nav { 
  position: relative;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  text-align: right;
  font-size: 1.3vw;
}

.nav-links a {
  font-size: 1.3vw;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.7; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  line-height: 1;
}

.headerp {
  width: 100%;
  overflow: hidden;
  padding-bottom: 0.4vw;
}

.scrolling-wrapper {
  display: flex;
  width: max-content;
  animation: myAnimation 120s linear infinite;
}

.scrolling-p {
  white-space: nowrap;
  font-size: 1.5vw;
  word-spacing: 5vw;
  margin: 0;
  padding-right: 4vw;
  flex-shrink: 0;
}

@keyframes myAnimation {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

li {
  text-align: right;
  margin-right: 2.6vw;
  list-style: none;
  font-family: "Alumni Sans SC", sans-serif;
  font-size: 1.3vw;
  word-spacing: 1.04vw;
}

#li2 {
  text-align: left;
  display: flex;
  justify-content: flex-start;
  margin-left: 2vw;
  margin-bottom: 1vw;
  word-spacing: 0.5vw;
}

#li2:hover {
	text-decoration: underline;
}

#progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  height: 0;
  width: 5px;
  background-color: white;
  background-size: cover;
  background-attachment: fixed;
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px white, 0 0 20px white;
}


.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.overlay.active {
  display: flex;
}

.overlay-inner {
  width: 70vw;
  height: 85vh;
  overflow-y: auto;
  background: white;
  border-radius: 3vw;
  position: relative;
}

.overlay-inner img {
  width: 100%;
  display: block;
  border: none;
  margin: 0;
}

.overlay-close:hover { background: #ccc; }

.websitebox {
  cursor: pointer;
}

footer {
  color: white;
  padding: 0.78vw 0;
  width: 100%;
  top: 0;
  z-index: 100;
  height: 0.05vw;
}

footer h1 {
  text-align: center;
  margin-left: 1.04vw;
  margin-top: -0.94vw;
}

@keyframes subtleZoom {
  0%   { background-size: 110%; background-position: 40% 40%; }
  50%  { background-size: 115%; background-position: 55% 50%; }
  100% { background-size: 110%; background-position: 50% 60%; }
}

@keyframes bounce {
	0% {transform: scale(1) }
	50% {transform: scale(1.01) }
    100% {transform: scale(1) }
}

.section1 {
  line-height: 5vw;
  align-items: center;
}

.section1text {
  display: flex;
  flex-direction: column;
  gap: 3vw;
}

.parallax {
  background-image: url(background14.jpg);
  min-height: 100vh;
  background-attachment: fixed;
  background-size: cover;
  animation: subtleZoom 32s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  padding: 0 4vw;
}


.p2 {
  font-size: 10vw;
  color: white;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
  animation: bounce 6s ease-in-out infinite alternate;
}

.p2 span {
  width: 40%;
  text-align: left;
}

.p4 {
  font-size: 4vw;
  color: white;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
  animation: bounce 6s ease-in-out infinite alternate;
  margin-left: 4vw;
}


.p4 a:hover {
  transform: translateY(0);
  box-shadow: 0 10px 10px rgba(255,255,255,0.1);
}

.section2 {
  background-color: black;
  padding-top: 2vw;
  padding-bottom: 2vw;
  line-height: 3vw;
  display: block;
}

.section2-img {
  width: 20vw;
  align-items: center;
}

.section2-inner {
  display: flex;
}

.bio-block {
  display: block;
  margin-bottom: 2vw;
}

.bio-img {
  width: 19.8vw;
  height: 26vw;
}

.bio-img-right { float: right; margin-right: 7vw; }
.bio-img-left  { float: left; margin-left: 7vw;}

.section3 {
  background-image: url(background14.jpg);
  background-attachment: fixed;
  background-size: cover;
  padding-top: 4vw;
  padding-bottom: 8vw;
}

.section3 img.fade-in-image {
  opacity: 1 !important;
  transition: none !important;
}

.section3 img {
  margin-right: 1vw;
}

.section3lists {
  display: flex;
  gap: 4vw;
  padding: 2vw 0;
}

.section3list {
  display: flex;
  flex-direction: column;
}

.websitebox {
  position: relative;
  overflow: hidden;
  border-radius: 2vw;
  aspect-ratio: 12 / 9;
}

.websitebox img {
  width: 100%;
  display: block;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.websitebox:hover img {
  filter: blur(4px) brightness(0.6);
  transform: scale(1.05);
}

.websitebox-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Alumni Sans SC", sans-serif;
  font-size: 2vw;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  text-align: center;
  padding: 1vw;
}

.websitebox:hover .websitebox-label {
  opacity: 1;
}



.projects-heading {
  padding-top: 2vw;
  padding-bottom: 2vw;
}

.p3 {
  font-size: 4.43vw;
  text-align: center;
  font-family: "Alumni Sans SC", sans-serif;
  color: white;
  font-weight: bold;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  padding: 6vw 4vw;
}


.project-text {
  top: 20%;
  display: flex;
}

.project-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3vw;
}

.project-img {
  width: 60vw;
  height: 160vw;
}

.under-image-p {
  font-size: 4vw;
  text-align: left;
  font-family: "Alumni Sans SC", sans-serif;
  color: white;
  font-weight: bold;
  margin-left: 3vw;
}

.section4 {
  background-image: url(background14.jpg);
  background-attachment: fixed;
  background-size: cover;
  padding-top: 6vw;
  padding-bottom: 6vw;
  line-height: 3vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 4vw;
  width: 45%;
}

#section4p {
  text-align: left;
  margin-left: 4vw;
  font-size: 2vw;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.form-input {
  padding: 0.8rem;
  background: #1a1a1a;
  border: 1px solid #444;
  color: white;
  font-family: "Alumni Sans SC", sans-serif;
  font-size: 1.1vw;
  width: 100%;
}

.form-input::placeholder { color: #888; }
.form-input:focus { outline: none; border-color: #888; }
.form-textarea { resize: vertical; min-height: 8rem; }

.form-submit {
  padding: 0.9rem;
  background: white;
  color: black;
  border: none;
  font-weight: 700;
  font-family: "Alumni Sans SC", sans-serif;
  font-size: 1.2vw;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
}

.form-submit:hover { background: #ccc; }

.contact-alt {
  margin-top: 2rem;
  font-size: 1vw;
  opacity: 0.6;
  text-align: left;
  line-height: 2rem;
}



.gallery {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gallery .item {
  flex: 1 1 calc(50% - 0.5vw);
  margin-bottom: 0.5vw;
  text-align: center;
}

.gallery .item img {
  width: 50%;
  height: auto;
  border-radius: 0.26vw;
  border: 0.52vw solid black;
}

.gallery .item h3 {
  max-width: 41.6vw;
  text-align: center;
  margin-top: 0.52vw;
  font-size: 1.04vw;
  margin-left: 3.9vw;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.letter.visible {
  opacity: 1;
  transform: translateX(0);
}



.animate-on-scroll {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}



.fade-in-image {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.fade-in-image.visible { opacity: 1; }

@media (max-width: 1024px) {
  .section1,
  .parallax,
  .section3,
  .section4 {
    background-attachment: scroll;
  }

  .parallax { min-height: 50vw; padding-top: 18vw; padding-bottom: 20vw; }

  .bio-img { width: 30vw; height: auto; }
  .bio-img-right { float: none; display: block; margin: 0 auto 2vw; }
  .bio-img-left  { float: none; display: block; margin: 0 auto 2vw; }

  .h3 { text-align: center; width: 80%; margin: 0 auto; }

  .project { flex-wrap: wrap; }
  .project-text { width: 100%; position: static; }
  .project-image { width: 100%; justify-content: center; }
  .project-img { width: 80vw; height: auto; }

  .contact-wrapper { max-width: 70%; }
  .form-input { font-size: 1.8vw; }
  .form-submit { font-size: 1.8vw; }
  .contact-alt { font-size: 1.6vw; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #111;
    padding: 1rem 1.5rem;
    gap: 0.8rem;
    min-width: 160px;
    border: 1px solid #333;
    z-index: 300;
  }
  .nav-links.open { display: flex; }
  header { height: auto; padding: 3vw 0 2vw; }
  header h1 { font-size: 3.5vw; margin-top: 0; }
  .header-inner { padding: 0 3vw; }
  .nav-links a { font-size: 3.5vw; }
  .scrolling-p { font-size: 3vw; word-spacing: 5vw; }
  .headerp { margin-top: 0; }

  .parallax { min-height: 80vw; padding-top: 25vw; padding-bottom: 20vw; }

  .p2 { flex-direction: column; align-items: flex-start; font-size: 8vw; margin-top: 2vw; margin-left: 3vw !important; text-align: center;}
  .p2 span { width: 100%; }

  .section2 { line-height: normal; padding: 4vw; }
  h2 { font-size: 5vw; margin-left: 4vw; }
  .h2 { font-size: 3.5vw; width: 90%; margin: 0 auto; line-height: 1.6; }
  .h3 { font-size: 3.5vw; width: 90%; line-height: 1.6; text-align: center; }

  .section2-img { float: none; display: block; width: 20vw; margin: 0 auto 4vw; }
  .bio-img { width: 50vw; height: auto; }

  .p3 { font-size: 7vw; }
  .under-image-p { font-size: 9vw; margin-left: 4vw; margin-top: 0; }
  .project-img { width: 90vw; height: auto; }
  .project { padding-top: 8vw; padding-bottom: 8vw; }

  .section4 { line-height: normal; padding: 8vw 4vw; }
  #section4p { font-size: 4.5vw; margin-left: 0; }
  .contact-wrapper { max-width: 100%; margin-left: 0; }
  .form-input { font-size: 3.5vw; }
  .form-submit { font-size: 3.5vw; }
  .contact-alt { font-size: 3vw; line-height: 1.8; }

  footer h1 { font-size: 3.5vw; margin: 0; padding: 1vw 0; }
}

@media (max-width: 480px) {
  .p2 { font-size: 7vw; margin-left: 3vw;}
  .section1button { font-size: 5vw; }
  h2 { font-size: 6vw; }
  .h2, .h3 { font-size: 4vw; }
  .p3 { font-size: 8vw; }
  .under-image-p { font-size: 10vw; }
  .bio-img { width: 65vw; }
  .section2-img { width: 20vw; }
  .project-img { width: 95vw; height: auto; }
  #section4p { font-size: 5.5vw; }
  .form-input { font-size: 4vw; }
  .form-submit { font-size: 4vw; }
  .contact-alt { font-size: 3.5vw; }
  header h1 { font-size: 4.5vw; }
  footer h1 { font-size: 4.5vw; }
}
