html, body {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; 
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(to right, #dcd8f0, #d5c9d8, #fffafc);
  background-size: 200% 200%;
  transition: background-position 1s ease;
  
}
body.gradient-left {
  background-position: left center;
}

body.gradient-right {
  background-position: right center;
}

.page-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.phoneCards{
  display: none;
}


.navbar a {
  color:#3a2e3f !important;
}
.mainUpperhalf {
  display: flex;
  flex-direction: row;
  flex: 1;
  height: 50vh;
  width: 100%;
}
.model-container {
  position: relative;
  width: 100%;
  height: 45vh;
  overflow: hidden;
}

.model-container canvas {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.selfIntro{
  position: absolute;
  z-index: 2;
  width: 45%;
  height: 100%;
  padding-top: 5vh;
  padding-bottom: 10vh;
  padding-left: 7vh;
  flex-direction: column;
  background: transparent;
  display: flex;
  align-items: flex-start;
}

.selfIntro p {
  font-size: 2rem;
  color: #4b4453;
  line-height: 1.5;
  opacity: 1;
  text-shadow: 2px 2px 4px #bbb8b8;
}




.projects {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: row !important;
  scroll-snap-type: x mandatory;

}
#myCarousel{
display: flex;
flex-grow: 1;
flex-direction: row;
overflow-x: hidden ;
overflow-y: hidden;
width: 100%;
height: 100%;
}

.carousel-item {
  display: flex;
  flex-grow: 1;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.card-container {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly ;
  width: 100%;
  height: 100%;
  scroll-snap-type: x mandatory; 
   overflow: visible;

}
.card-body{
  
   padding-right: 2vh;
   padding-left: 2vh;

}
.card 
{
  border-radius: 15% !important;
  box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  align-items: center;
  background-color:transparent !important;
  font-size: large;
   scroll-snap-align: start;
}
.card img {
  padding-top: 2vh;
  width: 80%;
  height: auto;
}
.nunito-regular {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.btn:hover {
  background-color: #d8bfd8 !important;
  color: #2b232c !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn{
  width: 200px;
  height: 150;
}

@media (max-width: 900px) {
html, body {
  height: 100%;
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: linear-gradient(to bottom, #dcd8f0, #d5c9d8, #fffafc);
  background-size: 100% 300%; /* Covers 3x the height for smooth transition */
  background-position: top;
  transition: background-position 0.8s ease-out;
  overflow-y: auto;
}
body.gradient-top {
  background-position: top center;
}

body.gradient-bottom {
  background-position: bottom center;
}

.page-layout {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow-y: auto;
}



.mainUpperhalf {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.model-container {
  width: 100%;
  position: relative; 
}

.model-container canvas {
  width: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.selfIntro {
  width: 50%;
  padding-top: 5%;
  padding-bottom: 10%;
  padding-left: 5%;
  align-items: flex-start;
  background: transparent;
  z-index: 2;
}

.selfIntro p {
  font-size: 1rem;
  color: #4b4453;
  line-height: 1.5;
  text-shadow: 2px 2px 4px #bbb8b8;
}


.projects {
  padding: 2rem;
  width: 100%;
}

.phoneCards {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
  margin: 0 auto;
}

 .card {
  min-height: 250px;
  width: 100%;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

/* ===== Carousel (if needed) ===== */
#myCarousel {
  display: none;
}
.btn{
  width: 150px !important;
}

}