/*Font face for the content*/
@font-face {
  font-family: "Gothic";
  src: url("../fonts/gothic.woff") format("woff"),
    url("../fonts/gothic.ttf") format("truetype");
}

/*Root CSS*/
:root {
  --card-bg: rgba(0, 0, 0, 0.5);
  --white-color: #ffffff;
  --black-color: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Gothic";
}

/*Container*/
.container {
  display: flex;
  width: 100%;
}

/*Media Queries for the container*/
@media only screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }
}

/*Left content*/
.website-left-content {
  flex: 1;
  position: relative;
}

/*Cards*/
.blackcard {
  filter: drop-shadow(0.3rem 0.3rem 0.5rem #000000);
  transition: all 0.3s ease;
}

.card1,
.card2,
.card3,
.card4 {
  position: fixed;
  background-color: var(--card-bg);
  border-radius: 1rem;
  animation-iteration-count: 1;
}

.card1 {
  animation: fade1 ease 1s forwards;
  width: 7rem;
  height: 7rem;
  z-index: 0;
}

.card2 {
  animation: fade2 ease 1s forwards;
  width: 7rem;
  height: 7rem;
  z-index: 1;
  opacity: 0;
  animation-delay: 0.25s;
}

.card3 {
  animation: fade3 ease 1s forwards;
  width: 6rem;
  height: 6rem;
  z-index: 2;
  opacity: 0;
  animation-delay: 0.5s;
}

.card4 {
  align-content: center;
  animation: fade4 ease 1s forwards;
  width: 20rem;
  height: 25rem;
  z-index: 3;
  opacity: 0;
  animation-delay: 0.75s;
  transition: width 0.5s ease, height 0.5s ease;
}

/*Keyframes for the cards*/
@keyframes fade1 {
  0% {
    top: 20rem;
    left: 8rem;
    opacity: 0;
  }
  100% {
    top: 22rem;
    left: 10rem;
    opacity: 1;
  }
}

@keyframes fade2 {
  0% {
    top: 8rem;
    left: 16rem;
    opacity: 0;
  }
  100% {
    top: 10rem;
    left: 18rem;
    opacity: 1;
  }
}

@keyframes fade3 {
  0% {
    top: 14rem;
    left: 18rem;
    opacity: 0;
  }
  100% {
    top: 16rem;
    left: 20rem;
    opacity: 1;
  }
}

@keyframes fade4 {
  0% {
    top: 0rem;
    left: 0rem;
    opacity: 0;
  }
  100% {
    top: 1rem;
    left: 1rem;
    opacity: 1;
  }
}

/*Media queries for the cards*/
@media only screen and (max-width: 1520px) {
  /*They were blocking the nav menu.*/
  .card2 {
    display: none;
  }

  .card3 {
    display: none;
  }
}

@media only screen and (max-width: 1200px) {
  .card4 {
    width: 16rem;
    height: 21rem;
  }

  .card4 img {
    height: auto;
    width: 100%;
  }
}

@media only screen and (max-width: 1030px) {
  .card4 {
    width: 15rem;
    height: 20rem;
  }
}

@media only screen and (max-width: 968px) {
  .card1,
  .card2,
  .card3 {
    display: none;
    position: absolute;
  }

  .card4 {
    width: 12rem;
    height: 16rem;
    border-radius: 1rem;
    padding-right: 1rem;
    position: fixed;
  }
}

@media only screen and (max-width: 844px) {
  .card4 {
    width: 11rem;
    height: 16rem;
  }
}

@media only screen and (max-width: 769px) {
  .card4 {
    position: absolute;
  }
}

@media only screen and (max-width: 576px) {
  .card4 {
    width: 6rem;
    height: 8rem;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-left: 1rem;
  }
}

@media only screen and (max-width: 430px) {
  .card4 {
    width: 5rem;
    height: 7.5rem;
  }
}

@media only screen and (max-width: 378px) {
  .card4 {
    width: 4.5rem;
    height: 6.5rem;
  }
}

@media only screen and (max-width: 320px) {
  .card4 {
    width: 2rem;
    height: 4rem;
  }
}

/*Right content*/
.website-right-content {
  display: flex;
  flex-direction: column;
  flex: 3;
  padding: 1rem 2rem;
}

/*Video Showcase*/
.video-collage {
  height: 16rem;
  width: 100%;
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  opacity: 0;
  animation: videoFadeIn ease 1s forwards;
  animation-delay: 1s;
  animation-iteration-count: 1;
}

.video-collage video {
  height: 16rem;
  object-fit: cover;
  width: 100%;
  border-radius: inherit;
}

/*Keyframe for the video showcase*/
@keyframes videoFadeIn {
  0% {
    top: 100%;
    opacity: 0;
  }

  100% {
    top: 0;
    opacity: 1;
  }
}

/*Media queries for the video section*/
@media only screen and (max-width: 768px) {
  .video-collage {
    width: 65%;
    align-self: flex-end;
  }
}

/*The navigation menu*/
.navigation {
  width: 100%;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 6;
}

.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  text-transform: uppercase;
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  padding: 1rem 0.6rem;
  opacity: 0;
  animation: navFadeIn ease 1s forwards;
  animation-delay: 1.4s;
  animation-iteration-count: 1;
  filter: drop-shadow(0.3rem 0.3rem 0.5rem #000000);
}

.navigation .nav-menu-links {
  list-style-type: none;
}

.navigation .nav-menu-links > a {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--white-color);
  padding-right: 2.1rem;
}

.navigation .nav-menu-links > a:hover {
  text-shadow: 0 0 12px var(--white-color);
  transform: scale(2.2);
  transition: 0.5s ease;
  cursor: pointer;
}

.navigation .nav-menu-links:last-child > a {
  padding-right: 0;
}

/*Keyframe for the navigation menu*/
@keyframes navFadeIn {
  0% {
    top: 100%;
    opacity: 0;
  }

  100% {
    top: 0;
    opacity: 1;
  }
}

/*Media Query when the screen is small size*/
@media only screen and (max-width: 976px) {
  .navigation {
    top: -1rem;
  }
}

/* Home content */
.content-container {
  min-height: 40rem;
}

/*To counter the issue where the footer was broken in mobile view*/
@media only screen and (max-width: 768px) {
  .content-container {
    min-height: 60rem;
  }
}

.main-card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  width: auto;
  height: auto;
  z-index: 4;
  padding: 2rem 2.5rem;
  color: var(--white-color);
  transform-origin: center;
}

.fadeMain {
  animation: fademaincard ease 1s forwards;
  animation-delay: 1.4s;
  animation-iteration-count: 1;
}

/* Keyframe for the homecard initial animation when page loads */
@keyframes fademaincard {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*To fix the issue with the card when the page loads*/
.first-page {
  opacity: 0;
  padding: 0;
  background-color: var(--white-color);
}

.first-page > .main-section {
  margin-bottom: 1rem;
}

.content-title-H3 {
  font-size: 18px;
}

.content-title-H4 {
  font-size: 16px;
}

.content-box {
  padding: 1rem;
  overflow: hidden;
}

.grow-animation {
  max-height: 150px;
  transition: max-height 1s ease-in-out;
}

.grow-animation.expanded {
  max-height: 1700px;
}

.center-content {
  display: block;
  width: auto;
  text-align: center;
}

.content-box .content-context {
  transition: max-height 1s ease-in-out;
  max-height: 0;
  display: none;
}

.content-context.expanded {
  max-height: 1700px;
  display: block;
}

/*To select every child of the homecard element*/
.content-box:nth-child(n) {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.content-box a {
  color: lightblue;
  text-decoration: none;
}

.content-box h1 {
  font-size: 23px;
  font-weight: normal;
}

.content-box h2 {
  font-size: 18px;
}

.content-box .center-img-link {
  display: flex;
  justify-content: center;
}

.content-box .center-img-link img {
  height: auto;
  width: 60%;
  padding: 1rem 0;
}

.twitter-tweet {
  margin: 0pt auto;
  padding: 1rem 0;
}

.section-video {
  display: block;
  margin: auto;
  width: 100%;
}

/*Scale In Fade Out class*/
.ScaleInFadeOut {
  animation: ScaleInFadeOut 1s ease forwards;
  animation-iteration-count: 1;
}

/*ScaleInFadeOut effect for the homecard*/
@keyframes ScaleInFadeOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.97);
    opacity: 0;
  }
}

/*Scale Out class*/
.ScaleOutFadeIn {
  animation: ScaleOutFadeIn 1s ease forwards;
}

/*ScaleOutFadeIn effect for the homecard*/
@keyframes ScaleOutFadeIn {
  0% {
    transform: scale(0.97);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/*Footer*/

.footer {
  margin-top: 1rem;
  filter: drop-shadow(0.3rem 0.3rem 0.5rem #000000);
  background-color: var(--card-bg);
  border-radius: 1rem;
  color: var(--white-color);
  text-align: center;
  max-width: 90%;
  margin-right: auto;
  margin-left: auto;
  opacity: 0;
  padding: 0.5rem 1rem;
  animation: fadeFooter 1s ease forwards;
  animation-delay: 1.4s;
}

@keyframes fadeFooter {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

footer .social-icons {
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0;
}

footer .social-icons li > a {
  text-decoration: none;
  color: var(--white-color);
}

footer .social-icons .footer-icon img {
  transition: width 1s ease, height 1s ease;
}

/*Media query for the footer social images*/
@media only screen and (max-width: 380px) {
  footer .social-icons .footer-icon img {
    width: 80%;
    height: auto;
  }
}

/*Portfolio Page*/
.multiple-contents-container {
  padding: 0;
  background-color: var(--white-color);
}

.multiple-contents-container > * {
  margin-bottom: 2rem;
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.faded {
  opacity: 0;
}

.fadeForScroll {
  animation: fadeSections ease 1.5s forwards;
  animation-iteration-count: 1;
}

/* Keyframe for the scroll fade in animation for the portfolio sections */
@keyframes fadeSections {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.portfolio-content h1 {
  align-self: flex-start;
}

.image-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.image-heading img {
  width: 80%;
  height: auto;
}

@media only screen and (max-width: 968px) {
  .image-heading {
    margin-bottom: 2rem;
  }

  .image-heading img {
    width: 60%;
  }
}

/*High Omega v3*/
.upper-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.upper-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upper-left img {
  width: 70%;
  height: auto;
  padding: 0;
  margin-bottom: 0;
}

.portfolio-content .center-text {
  margin: 4rem auto;
  text-align: center;
}

.upper-left p,
.portfolio-content .center-text p {
  font-size: 18px;
}

.upper-left .upper-text a,
.portfolio-content .center-text p > a {
  text-decoration: none;
  color: lightblue;
}

.upper-right {
  max-width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-gallery {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.img-gallery figure a img {
  width: 100%;
  height: auto;
  padding-left: 0;
}

.img-gallery figure figcaption {
  display: none;
}

@media only screen and (max-width: 1500px) {
  .img-gallery {
    justify-content: center;
  }
}

@media only screen and (max-width: 968px) {
  .img-gallery {
    flex-direction: column;
  }
}

@media only screen and (max-width: 600px) {
  .upper-row {
    flex-direction: column;
  }

  .upper-left img {
    margin-bottom: 2rem;
  }

  .upper-left .upper-text {
    margin-bottom: 3rem;
    text-align: center;
  }
}

@media only screen and (max-width: 430px) {
  .portfolio-content .upper-row .upper-right {
    width: 70%;
    height: auto;
    padding-top: 3rem;
    padding-bottom: 0;
  }
}

@media only screen and (max-width: 370px) {
  .upper-right {
    max-width: 40%;
    height: auto;
  }
}

/*The shadertoys links*/
.images-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 3rem;
}

.grid-content {
  flex: 0 0 150pt;
  text-align: center;
  min-height: 150pt;
}

.grid-content a {
  text-decoration: none;
}

.grid-content p {
  user-select: none;
}

.grid-content .grid-links img {
  width: 100%;
  height: auto;
  border: 4px solid var(--white-color);
  transition: transform 0.8s ease;
  padding: 0;
  margin-bottom: 1rem;
}

.grid-content img:hover {
  transform: scale(1.1);
  cursor: pointer;
  box-shadow: 0px 0px 15px var(--black-color);
}

@media only screen and (max-width: 968px) {
  .images-grid img {
    float: none;
  }
}

@media only screen and (max-width: 768px) {
  .grid-content {
    flex: 1 0 50%;
  }

  .images-grid {
    gap: 1rem;
  }

  .images-grid .grid-content p {
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

/*SauRay Section*/
.content-box .logo-heading {
  margin: 0;
}

.center-text h2 {
  padding-bottom: 2rem;
}

/*Scroll Fade In animation for the portfolio content*/
.scroll {
  transform: translateY(-30px);
  opacity: 0;
  transition: 1s;
}
.scroll--show {
  transform: translateY(0px);
  opacity: 1;
}

/*Artwork Section*/
.images-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.logo-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
}

@media only screen and (max-width: 968px) {
  .upper-text-box {
    flex-direction: column;
  }

  .upper-text-box img {
    width: 60%;
    height: auto;
    padding-top: 4rem;
  }
}
