@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");
svg {
  z-index: 100;
}

:root {
  --padding: 10vmin;
  --color-background: #D0CBC7;
  --font-size-large: 8vw;
  --font-size-medium: 4vw;
  --font-size-normal: 2vw;
}
@media only screen and (min-width: 800px) {
  :root {
    --font-size-large: 64px;
    --font-size-medium: 32px;
    --font-size-normal: 16px;
  }
}
@media only screen and (max-width: 500px) {
  :root {
    --font-size-large: 40px;
    --font-size-medium: 20px;
    --font-size-normal: 14px;
  }
}

a {
  color: white;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  margin-top: 10px;
}

html, body {
  margin: 0;
  min-height: 100%;
  min-width: 100%;
  font-family: "Libre Baskerville", serif;
  background: linear-gradient(to bottom right, rgba(0, 0, 30, 0.5), rgba(0, 0, 30, 0.5)), url(../img/space-bg.png) center center no-repeat;
  background-size: cover;
  transform-origin: center center;
  font-weight: 400;
  font-size: var(--font-size-normal);
}

html {
  overflow-x: hidden;
}

canvas {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.solid {
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
          clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.wireframe {
  -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
          clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
}

.content {
  position: relative;
  z-index: 1;
}
.content .trigger {
  position: absolute;
  top: 0;
  height: 100%;
}
.content .section {
  position: relative;
  padding: var(--padding);
  --pad2: calc(var(--padding) * 2);
  width: calc(100vw - var(--pad2));
  height: calc(100vh - var(--pad2));
  margin: 0 auto;
  z-index: 2;
}

.height1 {
    height: calc(100vh - var(--pad2));
}

.content .section.dark {
  color: white;
  background-color: black;
}
.content .section.right {
  text-align: right;
}
.content .blueprint {
  position: relative;
  background-color: #131C2A;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
  background-attachment: fixed;
}
.content .blueprint svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  stroke: white;
  pointer-events: none;
  visibility: hidden;
}
.content .blueprint .dark {
  background-color: transparent;
}
.content .ground-container {
  position: relative;
  overflow: hidden;
}
.content .ground-container .parallax {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -100px;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  transform-origin: top center;
}

.background-bg {
  background-image: linear-gradient(to bottom right, rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url("../img/space-bg4.png");
}

.content .ground-container .ground {
  z-index: -1;
  background-image: linear-gradient(to bottom right, rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url("../img/space-bg4.png");
}
.content .ground-container .clouds {
  z-index: 2;
  background-image: linear-gradient(to bottom right, rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url("https://assets.codepen.io/557388/clouds.png");
}
.content .scroll-cta, .content .credits {
  position: absolute;
  bottom: var(--padding);
}
.content .scroll-cta {
  font-size: var(--font-size-medium);
  opacity: 0;
}
.content .sunset {
  background: linear-gradient(to bottom right, rgba(0, 0,80, 0.7), rgba(0, 0, 80, 0.7)), url("https://assets.codepen.io/557388/sunset-reduced.jpg") no-repeat top center;
  background-size: cover;
  transform-origin: top center;
}
.content h1, .content h2 {
  font-size: var(--font-size-large);
  margin: 0vmin 0 2vmin 0;
  font-weight: 700;
  display: inline;
}
.content h3 {
  font-size: var(--font-size-medium);
  font-weight: 400;
  margin: 0;
}
.content .end h2 {
  margin-bottom: 50vh;
}
.content .loading {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-medium);
}

.space-background {
  background: linear-gradient(to bottom right, rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url(../img/space-bg.png) center center no-repeat;
  background-size: cover;
  background-position: center;
  color: #E0BBFF;
}

.space-background-1 {
  background: linear-gradient(to bottom right, rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url(../img/space-bg1.png) center center no-repeat;
  background-size: cover;
  background-position: center;
  color: #E0BBFF;
}

.project-box {
  display: grid;
  grid-template-rows: 60% 40% ;
  width: 50%; 
  background-color: #EFEDEB;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  height: 80%;
}

 .project-box.special-layout {
  display: grid;
  /* grid-template-rows: auto auto; */
}

.color-text1 {
  color: #E0BBFF;
}

.margin-left {
  margin-left: auto; 
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border: 4px solid #B47B5C; /* Bright yellow border */
  box-sizing: border-box;
  border-radius: 8px;
}

.project-content {
  padding: 2rem;
  background-color: #F4F1EF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  /* height: 20%; */
}

.blueprint-bg {
  background-color: #FAB1A0;
}

.project-content h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.project-content p {
  margin-bottom: 1rem;
  color: #555;
}

.project-buttons {
  margin-top: auto;
}

.btn {
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin-right: 0.5rem;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn.live {
  background-color: #6B9080;
  color: white;
}

.btn.live:hover {
  background-color: #558776;
}

.btn.github {
  background-color: #A4C3B2;
  color: #333;
}

.btn.github:hover {
  background-color: #8FB9A8;
}


.section-right {
  width: 50%;
  margin: 0 auto; /* center horizontally */
  padding: 2rem;
  background-color: #EFEDEB; /* soft tone matching your #D0CBC7 background */
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  color: #333;
  text-align: center;
}

.project-btn2 {
  padding: 1rem 1rem;
  background: rgba(0, 0, 50, 0.7);
  color: #ffffff;
  border: 2px solid #00ffff;
  border-radius: 50px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* box-shadow: 0 0 10px #00ffff88, 0 0 20px #00ffff55 inset; */
  position: relative;
  overflow: hidden;
  align-self: center;
  /* margin: 2rem; */
  /* width: 6rem; */
  text-align: center;
  /* justify-self: center; */
  margin-bottom: 2rem;
  text-decoration: none;
  text-wrap: none;
  display: block;
  white-space: nowrap;
}

.project-btn1 {
  color: #ffffff;
  text-decoration: none;
}

.footer-btn {
  width: 6rem;
}

.footer-project-btn {
  background: rgba(0, 0, 60, 0.7);
  background-color: rgba(40, 38, 88, 1);
}