* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cursor-frame-1: url('Graphics/Cursors/Cursor_Default_1.png') 8 8, auto;
  --cursor-frame-2: url('Graphics/Cursors/Cursor_Default_2.png') 8 8, auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cursor-animate {
  0%, 100% {
    cursor: var(--cursor-frame-1);
  }
  50% {
    cursor: var(--cursor-frame-2);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Consolas, monospace;
  background: #ffffff;
  color: #111111;
  line-height: 1.5;
  animation: cursor-animate 0.2s steps(1) infinite;
  cursor: var(--cursor-frame-1);
}

a,
button,
input[type="button"],
input[type="submit"],
input[type="image"],
[role="button"],
[role="link"] {
  cursor: inherit;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-shell-project-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1rem 0 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.site-nav a {
  color: #444444;
  text-decoration: none;
  font-size: 0.98rem;
  position: relative;
  display: inline-block;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: -2.15rem;
  top: 50%;
  width: 2.4rem;
  height: 2.4rem;
  background-image: url('Graphics/Misc/HandClickRight.gif');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.5);
}

.site-nav a:hover::after {
  opacity: 1;
}

.site-foot {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1rem 0 2rem;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.site-foot a {
  color: #444444;
  text-decoration: none;
  font-size: 0.98rem;
}

.hero {
  text-align: center;
  padding-bottom: 0rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  margin-bottom: -10px;
  letter-spacing: -0.03em;
}

.hero h2 {
  font-size: 1.5rem;
  color: #444444;
}

.hero p {
  margin-bottom: 5rem;
  font-size: 1.5rem;
  color: #444444;
}

.hero p1 {
  display: block;
  margin-top: 100px; 
  margin-bottom: 100px;
  font-size: 1.75rem;
  font-variant: normal;
  text-align: center;
  color: #444444;
}

.content-section {
  font-size: 1.5rem;
  color: #383838;
}

.content-section h3 {
  font-size: larger;
  margin-top: 1rem;
}

.content-section p {
  font-size: large;
}

.projects-list {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.section-heading {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 500;
  padding-bottom: 0rem;
  margin-bottom: 0rem;
  margin-left: 0rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.normal-section-heading {
  font-size: 50px;
  font-weight: 300;
  margin-bottom: 0rem;
  margin-top: 2rem;
  color: #111111;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.project-card {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2.4fr;
  gap: 2.5rem;
  align-items: start;
  height: auto;
  margin-bottom: 2rem;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3rem;
  height: 3rem;
  transform: translate(-175%, -50%) scale(0.8);
  background-image: url('Graphics/Misc/HandClickRight.gif');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-info h2 {
  font-size: 2.7rem;
  margin-bottom: 0rem;
}

.project-info p {
  max-width: 48rem;
  font-size: 104%;
  color: #333333;
  overflow: clip;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.project-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  position: relative;
  overflow: visible;
}

.project-thumb-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.project-thumb img,
.project-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: box-shadow 0.5s, transform 0.3s;
  z-index: 1;
  position: relative;
  border-radius: 2px;
}

.project-thumb:hover img,
.project-thumb:hover video {
  transform: translateY(9.7%);
  z-index: 10;
  box-shadow: 0px 12px 8px -2px rgba(0, 0, 0, 0.2);
}

.project-divider {
  width: 100%;
  height: 10px;
  background-image: url('Graphics/Misc/Divider.gif');
  background-size: contain;
  background-repeat: repeat-x;
  background-position: center;
  margin: 0 auto 2rem;
}

.divider {
  width: 100%;
  height: 10px;
  background-image: url('Graphics/Misc/Divider.gif');
  background-size: contain;
  background-repeat: repeat-x;
  background-position: center;
  margin: 2rem auto 2rem;
}

@media (max-width: 1024px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    flex-direction: column;
  }
}

@media (max-width: 1800px) {
  .sidebar {
    display: none !important;
    visibility: hidden;
  }
}

.grid-container {
  margin: 2rem auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}

.project-image img,
.project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.video-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.video-link:hover .video-container {
  opacity: 0.96;
}

.video-container {
  width: 100%;
  height: 350px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  animation: fadeIn 1.2s ease-out 0.6s;
  transform: translate(-50%, -50%);
}

.sidebar {
  position: sticky;
  top: 20px;
  margin-left: 20px;
  width: 200px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
  animation: fadeIn 0.8s ease-out 1s both;
  height: 0;
}

.sidebar a {
  color: #919191;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  position: relative;
  padding-left: 3rem;
}

.sidebar a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  background-image: url('Graphics/Misc/HandClosed.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.sidebar a:hover,a.active {
  color: #333333;
}

.sidebar a.active::before {
  background-image: url('Graphics/Misc/HandOpen.gif');
}