/* Global styles */

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
  height: 100%;
}

hr {
  color: #ff00e1;
}

footer {
  background-color: #0b001f;
  height: auto;
  text-align: center;
  padding: 1vw;
  color: #36e5ae;
}

main {
  padding-top: calc(var(--header-height) + 1rem);
  scroll-margin-top: var(--header-height);
  background-color: #0b001f;
  height: auto;
  min-height: 150vh;
  width: auto;
  font-size: 1.1rem;
}

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

li {
  padding: 0.5rem 0 0.5rem 0;
}

/* Top Navigation bar styles */

:root {
  --header-height: 55px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  background-color: #0b001f;
}

#main-header {
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

#main-header.nav-hidden {
  transform: translateY(-100%);
}

.topnav {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  transition: 0.4s;
}

.topnav a {
  color: #61c2a3;
  text-align: center;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  z-index: 5;
}

.topnav .logo {
  margin-left: 1vw;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border-style: solid;
  border-color: #581998;
  align-self: center;
}

.social-tab {
  margin-right: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.social-tab a {
  margin-left: 10px;
}

.topnav a:hover:not(.icon) {
  color: #d126bd;
  transition: all 0.3s ease-in-out;
}

.topnav a.active {
  color: #d126bd;

  background-color: #61c2a3;
}

.topnav .icon {
  display: none;
}

#highlighted-word {
  color: #36e5ae;
}

#content-links {
  margin-top: 5vh;
}

#content-links a {
  border: solid 1px #61c2a358;
  border-radius: 8px;
  background-color: #61c2a358;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
}

#content-links a:hover {
  color: #d126bd;
  transition: all 0.3s ease-in-out;
  border: solid 1px #36e5ae;
}

#split-nav-container {
  display: grid;
  grid-template-columns: 40% 1fr;
  align-items: start;
}

#split-nav {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  padding: 2rem 0rem 2rem 10rem;
  box-sizing: border-box;
}

#split-nav-content {
  padding: 4rem 6rem 4rem 6rem;
  color: #f2f2f2;
}

#split-nav-content section {
  scroll-margin-top: calc(var(--header-height) + 1rem);
  margin-bottom: 15rem;
  min-height: 50vh;
}

#split-nav-text {
  color: #f2f2f2;
}

#split-nav-title {
  font-size: 4.5rem;
  font-weight: 700;
}

#split-nav-links {
  display: flex;
  flex-direction: column;
  margin-top: 15vh;
  width: 50%;
}

#split-nav-links a,
#split-nav-links a.active {
  text-decoration: none;
  font-size: 1.5rem;
  color: #61c2a3;
  transition: all 0.3s ease-in-out;
}

#split-nav-links a:hover,
#split-nav-links a.active {
  font-size: 2rem;
  color: #d126bd;
}

#split-nav-links a:hover::before,
#split-nav-links a.active::before {
  content: ".";
  margin-right: 5px;
}

#split-nav-links a:hover::after,
#split-nav-links a.active::after {
  content: "()";
  margin-left: 5px;
}

#split-nav-socials {
  margin-top: 5rem;
  display: flex;
  flex-direction: row;
  width: 50%;
  justify-content: space-between;
  align-items: center;
}

#split-nav-socials a {
  margin-right: 1.5rem;
}

#project-card-container {
  margin-top: 5vh;
  display: flex;
  flex-direction: row;
  width: 100%;
  color: #f2f2f2;
  border: 2px solid #36e5ae4a;
  box-shadow: 0 0 30px rgba(54, 229, 174, 0.2);
  transition: all 0.3s ease-in-out;
}

#project-card-container:hover {
  background-color: #1a0e36;
  cursor: pointer;
  border-style: solid;
  border-color: #36e5ae;
  border-radius: 8px;
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(54, 229, 174, 0.4);
}

#project-card-container:hover #project-card-title {
  color: #d126bd;
  transition: color 0.2s ease-in-out;
}

#project-card-container:hover #project-card-title::after {
  content: ".";
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#project-card-container:hover img {
  border-style: solid;
  border-radius: 8px;
  border-color: #69988893;
  border-width: 1px;
}

#project-card-details {
  padding: 2rem;
  width: 60%;
}

#project-description {
  color: #a9a9a9;
}

#project-card-image-container {
  padding: 2rem;
  width: 40%;
}

#project-card-image-container img {
  width: 100%;
  min-height: 130px;
  max-height: 100%;
  object-fit: contain;
}

#project-card-tool {
  color: #36e5ae;
  padding: 0.5rem;
  display: inline-block;
  margin: 3px 3px 3px 0;
}

#project-card {
  width: 100%;
}

#about {
  padding: 2rem;
}

#resume {
  padding: 2rem;
}
#projects-header {
  color: #f2f2f2;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 2.5rem;
}

#projects-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  padding: 2rem;
  margin-left: 15%;
}

#projects-links {
  text-decoration: none;
  color: #61c2a3;
  font-size: 2rem;
}

#projects-links:hover {
  color: #d126bd;
  transition: all 0.3s ease-in-out;
}

#project-title {
  font-size: 3rem;
  color: #f2f2f2;
  margin-bottom: 1rem;
}

body::before {
  content: "";
  position: fixed;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  width: 50rem;
  height: 50rem;
  background: radial-gradient(circle, #2b01794a 0%, rgba(209, 38, 189, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Social Icons */

.fa,
.fa-brands {
  padding: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  color: #61c2a3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fa:hover,
.fa-brands:hover {
  opacity: 0.7;
  color: #d126bd;
}

.fa-youtube,
.fa-github,
.fa-linkedin,
.fa-envelope,
.fa-bars {
  background-color: #1b1542;
}
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #0b001f;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.overlay-content-wrapper {
  position: absolute;
  top: 5%;
  right: 5%;
  bottom: 5%;
  width: 50%;
  max-width: 800px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.text-overlay {
  color: #f2f2f2;
  text-align: left;
  flex-shrink: 0;
}

#preview-viewer {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(54, 229, 174, 0.2);
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  flex-grow: 1;
  min-height: 0;
  cursor: pointer;
  margin-top: 6rem;
}

#preview-viewer img,
#preview-viewer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.gallery {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  overflow-y: auto;
}

.thumbnail-img {
  width: 130px;
  height: auto;
  object-fit: cover;
  opacity: 0.7;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail-img:hover,
.thumbnail-img.active {
  opacity: 1;
  transform: scale(1.1);
  border-color: #36e5ae;
  border-radius: 8px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(11, 0, 31, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #08031158;
  color: #36e5ae;
  text-align: center;
}

.close {
  color: #f2f2f2;
  position: absolute;
  top: 15px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1001;
}

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

.modal .prev,
.modal .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: #f2f2f2;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.modal .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.modal .prev:hover,
.modal .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal .mySlides {
  display: none;
}

.split-layout-container {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  width: 90%;
  max-width: 1400px;
  padding-bottom: 3rem;
  margin: 4rem auto 0 auto;
}

.video-column {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.video-column video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.text-column {
  flex: 1;
  color: #f2f2f2;
}

#project-title {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.text-column p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.fullscreen-iframe {
  width: 100vw;
  height: 100vh;
}

.split-layout-container.contact-layout {
  align-items: center;
  color: #f2f2f2;
  width: 80%;
}

.contact-form-column {
  flex: 1.5;
  padding-right: 2rem;
}

.contact-image-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image-column img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  border: 2px solid #36e5ae4a;
  box-shadow: 0 0 30px rgba(54, 229, 174, 0.2);
  transition: all 0.3s ease-in-out;
}

.contact-image-column img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(54, 229, 174, 0.4);
}

.contact-page-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #f2f2f2;
  margin-bottom: 1rem;
}

.contact-page-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #a9a9a9;
  margin-bottom: 2.5rem;
}

.contact-form-main .form-group {
  margin-bottom: 1.5rem;
}

.contact-form-main label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #61c2a3;
  font-weight: bold;
}

.contact-form-main input,
.contact-form-main textarea {
  width: 100%;
  padding: 1rem;
  background-color: #1a0e36;
  border: 1px solid #36e5ae58;
  border-radius: 8px;
  color: #f2f2f2;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-form-main input::placeholder,
.contact-form-main textarea::placeholder {
  color: #61c2a380;
}

.contact-form-main input:focus,
.contact-form-main textarea:focus {
  outline: none;
  border-color: #d126bd;
  box-shadow: 0 0 15px rgba(209, 38, 189, 0.3);
}

.contact-form-main textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: transparent;
  border: 2px solid #36e5ae;
  color: #36e5ae;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #36e5ae;
  color: #0b001f;
  box-shadow: 0 0 20px rgba(54, 229, 174, 0.5);
  transform: translateY(-3px);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Media Queries and Animations */

@media screen and (max-width: 1023px) {
  .topnav > .social-tab {
    display: flex;
    justify-content: center;
  }

  .social-tab > a.fa,
  .social-tab > a.fa-brands {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .topnav > a:not(.icon),
  .topnav > .dropdown {
    display: none;
  }

  .topnav > a.icon {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .topnav.responsive {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
    margin-left: 0;
  }

  .topnav.responsive > a:not(.icon) {
    display: block;
    width: 100%;
    text-align: center;
  }

  .topnav.responsive > a:not(.active, .icon) {
    background-color: #0b001f;
  }

  .topnav.responsive > .social-tab {
    display: none;
  }

  .topnav.responsive > .logo {
    display: block;
    margin-bottom: 10px;
  }

  #split-nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #split-nav {
    position: static;
    padding: 2rem;
  }

  #about {
    padding: 0.5rem;
  }

  #resume {
    padding: 0.5rem;
  }

  #split-nav-text h1 {
    font-size: 3rem;
  }

  #split-nav-links,
  #split-nav-socials {
    display: none;
  }

  #split-nav-content {
    width: 100%;
    padding: 0.5rem;
  }

  .split-layout-container {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
  }

  #preview-viewer {
    width: 100%;
    height: auto;
    margin-top: 1rem;
  }

  .thumbnail-img {
    width: 100px;
    height: auto;
  }

  #content-links,
  #content-links a {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0 0.5rem 0;
  }

  .video-container {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  #bg-video {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    max-height: 75vh;
    z-index: auto;
  }

  .overlay-content-wrapper {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  #preview-viewer,
  .gallery {
    background-color: transparent;
    backdrop-filter: none;
  }

  #project-card-container {
    flex-direction: column;
  }

  #project-card-details,
  #project-card-image-container {
    width: 100%;
    padding: 1rem;
  }

  #project-card-image-container {
    order: -1;
  }

  .split-layout-container.contact-layout {
    flex-direction: column;
    width: 90%;
    margin-top: 2rem;
  }

  .contact-form-column {
    padding-right: 0;
    order: 2;
  }

  .contact-image-column {
    order: 1;
    margin-bottom: 2rem;
  }

  .contact-page-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .contact-page-subtitle {
    text-align: center;
  }

  #projects-page-container {
    margin: 0;
    width: 100%;
    padding: 1rem;
  }
}
