body{
    background-color: #002e45;
}

.port_header{
    font-family: "Tiny5", sans-serif;
    font-weight: lighter;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
    color: #837601;
    text-align: center;
}

.short_para{
    width: fit-content;
    position: relative;
    top: 5rem;
    left: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.short_para p{
    font-family: "Tiny5", sans-serif;
    font-weight: lighter;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
    color: #837601;
    font-size: 1.3rem;
}


.left_side a{
    font-family: "Tiny5", sans-serif;
    font-weight: lighter;
    font-size: large;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
    color: #837601;
    margin-top: 2rem;
    width: 7rem;
    height: 2rem;
    text-decoration: none;
}
.parag{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  height: 27rem;
  width: 32rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 5px 10px #888888;
}

.para{
  width: 25rem;
}

.image{
  width: 20rem;
  height: 27rem;
  border-bottom-left-radius: 1rem;
  border-top-left-radius: 1rem;
  box-shadow: 5px 10px #888888;
}

.left_side a:hover{
    border: 2px solid #837601;
    box-shadow: 5px 10px #888888;
}

.bottom{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 10rem;
  gap: 10rem;
  background-color: white;
  width: fit-content;
  padding: 1.5rem;
  left: 24rem;
  border-radius: 1rem;
  box-shadow: 5px 10px #888888;
}

.bottom img{
  width: 3rem;
  height: 3rem;
}

#demo {
  position: relative;
  display: inline-block;
}

.mid{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 25rem;
}

#demo::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 1em;
  background-color: black;
  margin-left: 5px;
  animation: blink 0.5s infinite;
}


@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Container + list (similar to before) */
.portfolio-container {
  display: flex;
  justify-content: flex-start;
  position: relative;
  top: 5rem;
  right: 5rem;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  font-family: "Tiny5", sans-serif;
  color: #837601;
  border-radius: 1rem;

}

.project-item:hover {
  background: #f0f0f0;
  transform: translateX(2px);
  border-radius: 1rem;
  box-shadow: 5px 10px #888888;
}

/* ===== OVERLAY & MODAL ===== */

.project-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.6); /* dim background */
  display: none;              /* hidden by default */
  align-items: center;        /* center modal vertically */
  justify-content: center;    /* center modal horizontally */
  z-index: 999;
}

.project-overlay.active {
  display: flex;
}

.project-modal {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: #837601;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Tiny5", sans-serif;
  text-decoration: none;
  box-shadow: 5px 10px #888888;
  
}

.project-details a{
  text-decoration: none;
  color: #014d74;
}

/* Close button */
.project-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* Only one project-details should be visible at a time */
.project-details {
  display: none;
}

.project-details.active {
  display: block;
}

/* Responsive tweaks */
@media (max-width: 1000px) {
  .project-modal {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
  }

  .project-item {
    padding: 0.6rem 0.8rem;
  }

}

/* ===== MOBILE LAYOUT TWEAKS ===== */
@media (max-width: 1000px) {

 body {
    background-color: #002e45;
    background-image: none;
     min-height: 200vh;
    }

  .port_header {
    margin-top: 1.5rem;
    font-size: 2.2rem;
  }

  .mid {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1rem 4rem;
    align-items: center;
    justify-content: flex-start;
  }

  .short_para {
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .short_para p{
    font-size: small;
    width: 15rem;
    height: auto;
  }

  .image {
    width: 20rem;
    height: auto;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 0;
  }

  .parag {
    width: 17.5rem;
    max-width: 420px;
    height: auto;
    padding: 1rem 1.25rem;
    border-top-right-radius: 0;
    border-bottom-left-radius: 1rem;
    box-shadow: 5px 10px #888888;
  
  }

  .project-item{
    background-color: white;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 5px 10px #888888;
  }

  .project-list{
    position: relative;
    left: 5rem;
  }

  .bottom{
    background-color: #002e45;
    border: none;
    display: grid;
    grid-template-columns: auto auto;
    gap: 5rem;
    position: relative;
    box-shadow: none;
    width: 0rem;
    height: 0rem;
  }

  .bottom a{
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    position: relative;
    bottom: 5rem;
    right: 12.5rem;
    box-shadow: 5px 10px #888888;
  }

  .parag a{
    border: #837601 2px solid;
    box-shadow: 5px 10px #888888;
  }

  .project-modal{
    width: 15rem;
    position: relative;
  }

  .project-details {
  display: none;
}

.project-details.active {
  display: block;
}



}

@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2)  and (orientation: landscape)  {

  body{
    background-color: #002e45;
}

.port_header{
    font-family: "Tiny5", sans-serif;
    font-weight: lighter;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
    color: #837601;
    text-align: center;
}

.short_para{
    width: fit-content;
    position: relative;
    top: 5rem;
    left: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.short_para p{
    font-family: "Tiny5", sans-serif;
    font-weight: lighter;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
    color: #837601;
    font-size: 1.3rem;
}


.left_side a{
    font-family: "Tiny5", sans-serif;
    font-weight: lighter;
    font-size: large;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
    color: #837601;
    margin-top: 2rem;
    width: 7rem;
    height: 2rem;
    text-decoration: none;
}
.parag{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  height: 27rem;
  width: 32rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 5px 10px #888888;
}

.para{
  width: 25rem;
}

.image{
  width: 20rem;
  height: 27rem;
  border-bottom-left-radius: 1rem;
  border-top-left-radius: 1rem;
  box-shadow: 5px 10px #888888;
}

.left_side a:hover{
    border: 2px solid #837601;
    box-shadow: 5px 10px #888888;
}

.bottom{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 10rem;
  gap: 10rem;
  background-color: white;
  width: fit-content;
  padding: 1.5rem;
  left: 20rem;
  border-radius: 1rem;
  box-shadow: 5px 10px #888888;
}

.bottom img{
  width: 3rem;
  height: 3rem;
}

#demo {
  position: relative;
  display: inline-block;
}

.mid{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 25rem;
}

#demo::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 1em;
  background-color: black;
  margin-left: 5px;
  animation: blink 0.5s infinite;
}


@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Container + list (similar to before) */
.portfolio-container {
  display: flex;
  justify-content: flex-start;
  position: relative;
  top: 5rem;
  right: 5rem;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  font-family: "Tiny5", sans-serif;
  color: #837601;
  border-radius: 1rem;

}

.project-item:hover {
  background: #f0f0f0;
  transform: translateX(2px);
  border-radius: 1rem;
  box-shadow: 5px 10px #888888;
}

/* ===== OVERLAY & MODAL ===== */

.project-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.6); /* dim background */
  display: none;              /* hidden by default */
  align-items: center;        /* center modal vertically */
  justify-content: center;    /* center modal horizontally */
  z-index: 999;
}

.project-overlay.active {
  display: flex;
}

.project-modal {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: #837601;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Tiny5", sans-serif;
  text-decoration: none;
  box-shadow: 5px 10px #888888;
  
}

.project-details a{
  text-decoration: none;
  color: #014d74;
}

/* Close button */
.project-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* Only one project-details should be visible at a time */
.project-details {
  display: none;
}

.project-details.active {
  display: block;
}
}


@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2)  and (orientation: portrait)  {

   body {
    background-color: #002e45;
    background-image: none;
     min-height: 200vh;
    }

  .port_header {
    margin-top: 1.5rem;
    font-size: 2.2rem;
  }

  .mid {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1rem 4rem;
    align-items: center;
    justify-content: flex-start;
  }

  .short_para {
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .short_para p{
    font-size: small;
    width: 15rem;
    height: auto;
  }

  .image {
    width: 20rem;
    height: auto;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 0;
  }

  .parag {
    width: 17.5rem;
    max-width: 420px;
    height: auto;
    padding: 1rem 1.25rem;
    border-top-right-radius: 0;
    border-bottom-left-radius: 1rem;
    box-shadow: 5px 10px #888888;
  
  }

  .project-item{
    background-color: white;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 5px 10px #888888;
  }

  .project-list{
    position: relative;
    left: 5rem;
  }

  .bottom{
    background-color: #002e45;
    border: none;
    display: grid;
    grid-template-columns: auto auto;
    gap: 5rem;
    position: relative;
    box-shadow: none;
    width: 0rem;
    height: 0rem;
  }

  .bottom a{
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    position: relative;
    bottom: 5rem;
    left: 6rem;
    box-shadow: 5px 10px #888888;
  }

  .parag a{
    border: #837601 2px solid;
    box-shadow: 5px 10px #888888;
  }

  .project-modal{
    width: 15rem;
    position: relative;
  }

  .project-details {
  display: none;
}

.project-details.active {
  display: block;
}
}



/* ===== iPAD PRO LANDSCAPE (1024px–1366px) ===== */
/* ===== TABLETS LANDSCAPE + SMALL LAPTOPS (1025px–1366px) ===== */



/* ===== BIG MONITORS (>= 1400px) ===== */
@media (min-width: 1400px) {

  /* Center the main layout and reduce the huge gap */
  .mid{
    width: min(1200px, 100% - 6rem);  /* nice centered block */
    margin: 3rem auto 0;              /* center in page */
    gap: 10rem;                       /* instead of 25rem */
    align-items: flex-start;
  }

  .short_para{
    top: 3rem;
    margin: 0 auto;
  transform: translateX(-300px);                          /* no manual shifting */
  }

  .portfolio-container{
    position: relative;
    top: 3rem;
    right: 0;                         /* keep things balanced */
  }

  .project-list{
    gap: 1.5rem;
  }

  /* Bottom icons a bit closer to content on large screens */
  .bottom{
    margin: 0 auto;
  transform: translateX(-380px);
  }

  .port_header{
    margin-top: 2rem;
    font-size: 2.8rem;
  }
}


