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

html {
  height: 100%;
}

body {
  background-color: #2e2e2e !important;
  color: #ffffff !important;
  height: 100% !important;
  overflow: hidden;
  justify-content: center;
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono",
    "Courier New", monospace, sans-serif;
}

canvas {
  background: radial-gradient(ellipse at bottom, #0c1116 0%, #161927 100%);
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
}

.landing-page,
#resume,
#research,
#contact {
  position: relative;
  z-index: 1;
}

.landing-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  background-image: url("landing1.jpeg");
  background-size: cover;
  background-position: center;
  align-items: center;
  overflow: hidden;
}

.social-media-icons {
  position: absolute;
  top: 20px;
  right: 20px; /* Adjusted for mobile view */
  z-index: 2;
}

.social-media-icons a {
  margin-left: 10px;
  color: #000000;
  font-size: 24px;
}

.social-media-icons a:hover {
  text-decoration: none;
  color: #46b96c;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px; /* Adjusted for mobile view */
}

.landing-text {
  position: absolute;
  top: -43px; /* Adjusted for mobile view */
  left: 20px; /* Adjusted for mobile view */
  text-align: left;
  z-index: 3;
}

.landing-text h1 {
  font-size: 6rem;
  color: #000000;
  margin-bottom: 10px;
  margin-top: 100px;
}

.landing-text h2 {
  font-size: 4rem;
  color: #000000;
  margin-bottom: 20px;
}

.landing-text p {
  font-size: 1.7rem;
  color: #000000;
  margin-bottom: 30px;
  max-width: 600px;
}

.landing-text button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 4px solid;
  z-index: 1;
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.landing-text button span {
  z-index: 2;
}

.landing-text button:after {
  background: #fff;
  content: "";
  height: 155px;
  left: -75px;
  opacity: 0.2;
  position: absolute;
  top: -50px;
  transform: rotate(35deg);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
  width: 50px;
  z-index: 0;
}

.landing-text button:hover:after {
  left: 120%;
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

strong {
  position: relative;
}

strong::before {
  /* Highlight color */
  background-color: #46b96c;

  content: "";
  position: absolute;
  width: calc(100% + 4px);
  height: 60%;
  left: -2px;
  bottom: 0;
  z-index: -1;
  transform: rotate(-2deg);
}

/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
  .social-media-icons {
    right: 30px;
    z-index: 9999999; /* if someone ever looks at this css dont judge, this z-index is after 6hrs of web dev*/
  }
  .landing-page {
    background-image: url("landing1.jpeg");
    background-size: cover;
    background-position: -650px 0;
  }

  .landing-text {
    left: -100%;
    opacity: 0;
    animation: slide-in 1s forwards;
  }

  .landing-text h1 {
    font-size: 4rem;
  }

  .landing-text h2 {
    font-size: 1.8rem;
  }

  .landing-text p {
    font-size: 1.1rem;
    max-width: 250px;
  }
  .landing-text button {
    font-size: 1.1rem;
  }
}

@keyframes slide-in {
  100% {
    left: 40px;
    opacity: 1;
  }
}


/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 2px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #46b96c;
  border-radius: 2px;
}

#contact {
  display: flex;
  flex-direction: column;
  /* Align children vertically */
  justify-content: center;
  /* Center children vertically */
  align-items: center;
  /* Center children horizontally */
  height: 100vh;
  /* Full viewport height */
  width: 100%;
}

.section-header {
  text-align: center;
  margin: 0 auto;
  padding: 40px 0;
  font: 300 60px "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 6px;
}

.contact-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  max-width: 840px;
}

/* Left contact page */
.form-horizontal {
  /*float: left;*/
  max-width: 400px;
  font-family: "Lato";
  font-weight: 400;
}

.form-control,
textarea {
  max-width: 400px;
  background-color: #000;
  color: #fff;
  letter-spacing: 1px;
}

.send-button {
  margin-top: 15px;
  height: auto;
  width: 100%;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.alt-send-button {
  width: 100%;
  height: 20px;
  transition: all 0.2s ease-in-out;
}

.send-text {
  display: block;
  margin-top: 10px;
  font: 700 12px "Lato", sans-serif;
  letter-spacing: 2px;
}

.alt-send-button:hover {
  transform: translate3d(0px, -29px, 0px);
}

/* Begin Right Contact Page */
.direct-contact-container {
  max-width: 400px;
  margin-left: 50px;
}
.direct-contact-container,
.form-horizontal {
  width: 900px;
  padding: 0 15px; /* Add padding on the sides */
}

/* Location, Phone, Email Section */
.contact-list {
  list-style-type: none;
  margin-left: -10px;
  padding-right: 20px;
}

.list-item {
  line-height: 4;
  color: #aaa;
}

.contact-text {
  font: 300 18px "Lato", sans-serif;
  letter-spacing: 1.9px;
  color: #bbb;
}

.place {
  margin-left: 62px;
}

.phone {
  margin-left: 56px;
}

.gmail {
  margin-left: 53px;
}

.contact-text a {
  color: #bbb;
  text-decoration: none;
  transition-duration: 0.2s;
}

.contact-text a:hover {
  color: #fff;
  text-decoration: none;
}

/* Social Media Icons */
.social-media-list {
  position: relative;
  font-size: 22px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.social-media-list li a {
  color: #fff;
}

.social-media-list li {
  position: relative;
  display: inline-block;
  height: 60px;
  width: 60px;
  margin: 10px 3px;
  line-height: 60px;
  border-radius: 50%;
  color: #fff;
  background-color: rgb(27, 27, 27);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.social-media-list li:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 1px #fff;
  transition: all 0.2s ease-in-out;
}

.social-media-list li:hover {
  background-color: #fff;
}

.social-media-list li:hover:after {
  opacity: 1;
  transform: scale(1.12);
  transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
}

.social-media-list li:hover a {
  color: #000;
}

hr {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Begin Media Queries*/
@media screen and (max-width: 768px) {
  #contact {
    height: 96vh;
  }

  .contact-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: -15px;
  }

  .direct-contact-container,
  .form-horizontal {
    width: 93%; /* Full width on mobile */
    padding: 0 15px; /* Add padding on the sides */
  }

  .direct-contact-container {
    margin-top: 60px;
    max-width: 200px;
  }

  .social-media-list li {
    height: 60px;
    width: 60px;
    line-height: 60px;
  }

  .social-media-list li:after {
    width: 60px;
    height: 60px;
    line-height: 60px;
  }
  .list-item {
    font-size: 1.4rem;
  }
  .contact-text {
    font-size: 1.5rem;
    margin-left: 20px;
  }
  #contact h1 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .direct-contact-container,
  .form-wrapper {
    float: none;
    margin: 0 auto;
  }

  .form-control,
  textarea {
    margin: 0 auto;
    max-width: 300px;
    margin-right: 76px;
  }

  .name,
  .email,
  textarea {
    width: 260px;
  }
  textarea.form-control {
    height: 140px;
  }

  .direct-contact-container {
    margin-top: 10px;
    max-width: 260px;
  }

  .social-media-list {
    left: 0;
    font-size: 2.5vw;
    margin-top: -24px;
    margin-bottom: -24px;
  }

  .social-media-list li {
    height: 55px;
    width: 55px;
    line-height: 55px;
    font-size: 1.3rem;
  }

  .social-media-list li:after {
    width: 55px;
    height: 55px;
    line-height: 55px;
  }
  .contact-list {
    margin-bottom: -24px;
  }
}

@media screen and (max-width: 768px) {
  .send-button,
  .alt-send-button {
    width: calc(100% - 0px); /* Adjust for padding */
    height: 30px;
  }
}

#about-me,
#contact,
#portfolio {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#about-me {
  align-items: center;
  flex-wrap: nowrap;
  color: white;
  padding: 100px 0;
  max-width: 4000px;
  font-family: "Consolas", "monaco", "monospace", sans-serif;
  font-size: 22px;
  display: flex;
}

#about-me .container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#about-me .about-me-image {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin-left: 10px;
  margin-top: 100px;
}

#about-me .text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 2500px;
  margin-right: 50px;
}

#about-me .text-container p {
  line-height: 1.4;
}

#about-me h1 {
  margin-bottom: 20px;
  font-size: 50px;
  align-items: center;
}

#about-me img {
  --s: 15px;
  /* size of the frame */
  --b: 2px;
  /* border thickness */
  --w: 550px;
  /* width of the image */
  --c: #46b96c;

  width: var(--w);
  aspect-ratio: 1;
  object-fit: cover;
  padding: calc(2 * var(--s));
  --_g: var(--c) var(--b), #0000 0 calc(100% - var(--b)), var(--c) 0;
  background: linear-gradient(var(--_g)) 50%/100% var(--_i, 100%) no-repeat,
    linear-gradient(90deg, var(--_g)) 50% / var(--_i, 100%) 100% no-repeat;
  outline: calc(var(--w) / 2) solid #0001;
  outline-offset: calc(var(--w) / -2 - 2 * var(--s));
  transition: 0.4s;
  cursor: pointer;
}

#about-me img:hover {
  outline: var(--b) solid var(--c);
  outline-offset: calc(var(--s) / -2);
  --_i: calc(100% - 2 * var(--s));
}

.container {
  margin-top: 10px;
}

.text-container h1 {
  color: #fff;
  font-family: monospace;
  overflow: hidden;
  /* Ensures the content is not revealed until the animation */
  border-right: 0.15em solid #46b96c;
  /* The typwriter cursor */
  white-space: nowrap;
  /* Keeps the content on a single line */
  margin: 0 auto;
  /* Gives that scrolling effect as the typing happens */
  letter-spacing: 0.15em;
  /* Adjust as needed */
  animation: typing 3s steps(30, end), blink-caret 0.5s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #46b96c;
  }
}

#about-me .text-container .buttons-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.buttons-container {
  margin-left: 65px;
}

.info-button {
  padding: 10px 10px;
  background-color: #46b96c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  margin-top: 30px;
  font-size: 2rem;
}

.info-button:hover {
  transform: scale(1.1);
  background-color: #349b5a;
}

@media only screen and (max-width: 768px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  #about-me {
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
  }

  #about-me .container {
    flex-direction: column;
    align-items: center;
    height: 71vh;
  }
  #about-me .about-me-image,
  #about-me .text-container {
    max-width: 100%;
    margin: 0;
  }

  #about-me .about-me-image {
    order: -1; /* Make sure this comes first */
    width: 90%; /* Adjust width as needed, considering mobile viewport */
    height: 18vh;
    margin-top: 5px; /* Remove top margin */
    margin-bottom: 5px; /* Add some space below the image */
  }

  #about-me .text-container {
    order: 2;
    align-items: center; /* Center align the text-container items */
    height: 24vh;
  }

  #about-me .text-container h1 {
    font-size: 1.5rem;
    text-align: center; /* Center the title */
    margin-bottom: 10px; /* Adjusted for spacing below the title */
  }

  #about-me .text-container p {
    font-size: 1.2rem;
    text-align: left;
    margin-bottom: 20px; /* Adjusted for spacing below the paragraph */
    margin-top: 20px; /* Adjusted for spacing below the paragraph */
    max-width: 250px;
    line-height: 1.6; /* Adjust line-height for better readability */
  }
  #about-me .text-container ul {
    font-size: 1.2rem;
    text-align: left;
    padding: 0 20px; /* Add padding for paragraph text */
    margin-bottom: 20px; /* Adjusted for spacing below the paragraph */
    margin-top: 20px; /* Adjusted for spacing below the paragraph */
    max-width: 250px;
    line-height: 1.6; /* Adjust line-height for better readability */
  }

  #about-me .buttons-container {
    width: 100%; /* Ensure the container takes full width */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center; /* This centers the buttons horizontally */
    align-items: center; /* This centers the buttons vertically */
    gap: 5px; /* Provide some gap between wrapped buttons */
    margin-top: 15px; /* Spacing from the paragraph to the buttons */
    margin: 0 auto;
  }

  #about-me .buttons-container .info-button {
    margin: 5px; /* Uniform margin for buttons */
    font-size: 1.1rem;
    padding: 14px 23px; /* Increased padding for better touch target size */
    flex: 0 1 auto;
  }

  #about-me img {
    width: 70%; /* Adjust width as needed, considering mobile viewport */
    margin-top: 5px;
    margin-bottom: 10px;
  }
}

.vertical-navbar {
  overflow: visible;
  position: fixed;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(128, 128, 128, 0.3);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vertical-navbar ul {
  list-style-type: none;
  padding: 0;
}

.vertical-navbar li {
  margin-bottom: 20px;
}

.vertical-navbar a {
  color: #000000;
  text-decoration: none;
  font-size: 30px;
  transition: color 0.1s ease-in-out, background 0.1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
}

.vertical-navbar a::before {
  content: "";
  /* Empty content for the circle */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #46b96c;
  transform: scale(0);
  transition: transform 0.1s ease-in-out;
  z-index: 0;
}

.vertical-navbar a > * {
  position: relative;
  z-index: 2;
}

.vertical-navbar a:hover {
  color: #ffffff;
}

.vertical-navbar a:hover::before {
  transform: scale(1);
}

.vertical-navbar a::after {
  content: attr(data-description);
  position: absolute;
  top: 50%;
  right: 65px;
  transform: translateY(-50%);
  padding: 5px 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
  transition: opacity 0.1s ease, right 0.1s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
  opacity: 0;
}

.vertical-navbar a:hover::after {
  opacity: 1;
}

/* Media Query for Smaller Screens */
@media (max-width: 600px) {
  .vertical-navbar {
    padding: 7px; 
    border-radius: 10px; 
  }

  .vertical-navbar li {
    margin-bottom: 13px; 
  }

  .vertical-navbar a {
    font-size: 24px; 
    width: 40px; 
    height: 40px; 
  }

  .vertical-navbar a::after {
    font-size: 10px; 
    right: 55px; 
  }
}

.fogwrapper {
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
  -webkit-filter: blur(1px) grayscale(0.4) saturate(1.2) sepia(0.4);
  filter: blur(1px) grayscale(0.4) saturate(1.2) sepia(0.4);
}

#foglayer_01,
#foglayer_02,
#foglayer_03 {
  height: 100%;
  position: absolute;
  width: 200%;
}

#foglayer_01 .image01,
#foglayer_01 .image02,
#foglayer_02 .image01,
#foglayer_02 .image02,
#foglayer_03 .image01,
#foglayer_03 .image02 {
  float: left;
  height: 100%;
  width: 50%;
}

#foglayer_01 {
  -webkit-animation: foglayer_01_opacity 10s linear infinite,
    foglayer_moveme 15s linear infinite;
  -moz-animation: foglayer_01_opacity 10s linear infinite,
    foglayer_moveme 15s linear infinite;
  animation: foglayer_01_opacity 10s linear infinite,
    foglayer_moveme 15s linear infinite;
}

#foglayer_02,
#foglayer_03 {
  -webkit-animation: foglayer_02_opacity 21s linear infinite,
    foglayer_moveme 13s linear infinite;
  -moz-animation: foglayer_02_opacity 21s linear infinite,
    foglayer_moveme 13s linear infinite;
  animation: foglayer_02_opacity 21s linear infinite,
    foglayer_moveme 13s linear infinite;
}

#foglayer_01 .image01,
#foglayer_01 .image02 {
  background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png")
    center center/cover no-repeat transparent;
}

#foglayer_02 .image01,
#foglayer_02 .image02,
#foglayer_03 .image01,
#foglayer_03 .image02 {
  background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png")
    center center/cover no-repeat transparent;
}

/* ---------- Keyframe Layer 1 ---------- */
@-webkit-keyframes foglayer_01_opacity {
  0% {
    opacity: 0.9;
  }

  22% {
    opacity: 0.5;
  }

  40% {
    opacity: 0.48;
  }

  58% {
    opacity: 0.4;
  }

  80% {
    opacity: 0.96;
  }

  100% {
    opacity: 0.4;
  }
}

@-moz-keyframes foglayer_01_opacity {
  0% {
    opacity: 0.6;
  }

  22% {
    opacity: 0.5;
  }

  40% {
    opacity: 0.58;
  }

  58% {
    opacity: 0.4;
  }

  80% {
    opacity: 0.16;
  }

  100% {
    opacity: 0.4;
  }
}

@-o-keyframes foglayer_01_opacity {
  0% {
    opacity: 0.6;
  }

  22% {
    opacity: 0.5;
  }

  40% {
    opacity: 0.58;
  }

  58% {
    opacity: 0.4;
  }

  80% {
    opacity: 0.16;
  }

  100% {
    opacity: 0.4;
  }
}

@keyframes foglayer_01_opacity {
  0% {
    opacity: 0.6;
  }

  22% {
    opacity: 0.5;
  }

  40% {
    opacity: 0.98;
  }

  58% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.16;
  }

  100% {
    opacity: 0.6;
  }
}

/* ---------- Keyframe Layer 2 ---------- */
@-webkit-keyframes foglayer_02_opacity {
  0% {
    opacity: 0.7;
  }

  25% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.7;
  }
}

@-moz-keyframes foglayer_02_opacity {
  0% {
    opacity: 0.7;
  }

  25% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.7;
  }
}

@-o-keyframes foglayer_02_opacity {
  0% {
    opacity: 0.7;
  }

  25% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.1;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.7;
  }
}

@keyframes foglayer_02_opacity {
  0% {
    opacity: 0.7;
  }

  25% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.3;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.7;
  }
}

/* ---------- Keyframe Layer 3 ---------- */
@-webkit-keyframes foglayer_03_opacity {
  0% {
    opacity: 0.7;
  }

  27% {
    opacity: 0.3;
  }

  52% {
    opacity: 0.6;
  }

  68% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.8;
  }
}

@-moz-keyframes foglayer_03_opacity {
  0% {
    opacity: 0.7;
  }

  27% {
    opacity: 0.3;
  }

  52% {
    opacity: 0.6;
  }

  68% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.8;
  }
}

@-o-keyframes foglayer_03_opacity {
  0% {
    opacity: 0.7;
  }

  27% {
    opacity: 0.3;
  }

  52% {
    opacity: 0.6;
  }

  68% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.8;
  }
}

@keyframes foglayer_03_opacity {
  0% {
    opacity: 0.8;
  }

  27% {
    opacity: 0.3;
  }

  52% {
    opacity: 0.6;
  }

  68% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.8;
  }
}

/* ---------- Keyframe moveMe ---------- */
@-webkit-keyframes foglayer_moveme {
  0% {
    left: -100%;
  }

  100% {
    left: 0;
  }
}

@-moz-keyframes foglayer_moveme {
  0% {
    left: -100%;
  }

  100% {
    left: 100;
  }
}

@-o-keyframes foglayer_moveme {
  0% {
    left: -100%;
  }

  100% {
    left: 0;
  }
}

@keyframes foglayer_moveme {
  0% {
    left: -100%;
  }

  100% {
    left: 0;
  }
}

@media only screen and (min-width: 280px) and (max-width: 767px) {
  #foglayer_01 .image01,
  #foglayer_01 .image02,
  #foglayer_02 .image01,
  #foglayer_02 .image02,
  #foglayer_03 .image01,
  #foglayer_03 .image02 {
    width: 100%;
  }
}

.hidden {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.visible {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Base Styles */
#portfolio {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  transition: transform 0.3s ease-in-out;
  margin-top: 30px;
}

.description button {
  font-size: 1.5rem;
  padding: 8px 15px;
  border-radius: 4px;
}

.box {
  position: relative;
  width: 570px;
  height: 400px;
  cursor: pointer;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  border-radius: 10px;
  border: 2px solid #46b96c;
}

.box:hover {
  transform: scale(1.1);
  z-index: 2;
  box-shadow: 5px 5px 15px rgba(70, 185, 108, 0.9);
}

.image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: filter 0.3s ease-in-out;
}

.box:hover .image {
  filter: brightness(0.5);
  blur: 30px;
}

.description {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  border-radius: 10px;
  font-size: 2rem;
}

.box:hover .description {
  transform: translateY(0);
  z-index: 2;
}

.description h3,
.description p {
  margin: 0;
  padding: 10px;
  font-size: 18px;
}

.description p {
  font-size: 14px;
}

#portfolio h1 {
  font-size: 4rem;
}

.info-card {
  display: none;
  position: fixed;
  top: 50;
  left: 50;
  width: 40%;
  height: 80%;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: 5px 5px 15px rgba(128, 128, 128, 0.7);
  overflow: hidden;
  z-index: 3;
}

.info-card::before {
  content: "";
  position: fixed;
  top: 50;
  left: 50;
  width: 40%;
  height: 90%;
  background: rgba(128, 128, 128, 0.98);
  border-radius: 10px;
  blur: 10px;
  z-index: -1;
}

.info-card.visible {
  opacity: 1;
}

.info-image {
  width: 80%;
  height: 50%;
  margin-top: 5px;
  background-position: center;
  box-shadow: 5px 5px 15px rgba(128, 128, 128, 0.8);
}

.info-description {
  width: 80%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px;
  text-align: center;
}

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.info-card .info-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  border: 3px solid #46b96c;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: 40px;
  height: 60%;
  width: 85%;
  box-sizing: border-box;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 1);
  color: #333333;
  border: 2px solid #46b96c;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
}

.card-content h3 {
  font-weight: bold;
  letter-spacing: 1px;
  color: #333;
  text-align: center;
  margin-bottom: 12px;
  font-size: 2.4rem;
  margin-top: 0px;
}

.card-content p {
  font-size: 1.2rem;
}

.card-content button {
  margin-top: 10px;
}

button {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 10px;
  transition-duration: 0.4s;
}

button:hover {
  background-color: white;
  color: black;
  border: 2px solid #4caf50;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .box {
    width: 56vw; /* Adjusted to viewport width */
    height: 16vh; /* Adjusted to viewport height */
  }
  .gallery {
    gap: 1.5vh; /* Adjust the gap between boxes */
    grid-template-columns: 1fr;
  }

  #portfolio {
    width: 100%;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
  }
  #portfolio h1 {
    font-size: 2rem;
    text-align: center;
  }

  .description h3 {
    font-size: 10px;
    padding: 0;
    margin-top: 20px;
    text-align: center;
  }

  .description p {
    margin-bottom: -16px;
    font-size: 0.6rem;
    max-width: 228px;
  }

  .description button {
    font-size: 1rem;
    padding: 3px 8px;
    border-radius: 4px;
    padding-top: 1px;
    margin-left: 68px;
  }

  .info-card {
    width: 90%;
    height: auto;
  }

  .info-card::before {
    width: 90%;
  }

  .card-image {
    width: 90vw; /* Adjusted to viewport width */
    height: 22vh; /* Adjusted to viewport height */
    margin-bottom: 10px;
  }

  .card-content p {
    font-size: 0.8rem;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 40px;
    height: 60%;
    width: 85%;
  }

  .card-content h3 {
    font-weight: bold;
    letter-spacing: 1px;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.4rem;
  margin-top: 0px;
  }
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 999999999999999999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; 
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  padding-top: 100px; /* Location of the box */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 50% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  color: black;
  z-index: 9999999999999999999;
  text-align: center;
  line-height: 2;
}
/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Dismiss Button Styles */
.dismiss-button {
  background-color: #4caf50; /* Green */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

/* Styles for the notification window */
.notification-window {
  display: none;
  position: fixed;
  left: 50%; 
  top: -100px;
  transform: translateX(-50%);
  max-width: 50%;
  background-color: #fefefe;
  text-align: center;
  line-height: 2;
  padding: 20px;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.5);
  border: 1px solid #888;
  z-index: 99999999999999999999999999999999999999999999999999999999999999;
  transition: top 0.5s ease;
  border: 1px solid #888;
  border-radius: 10px;
}

/* Success message styling */
.notification-success {
  color: green;
}

/* Error message styling */
.notification-error {
  color: red;
}


