@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root {

  /* temp */

  --Cmaincolor: #ffffff;
  --Ccolor1: #f77c73;
  --Ccolor2: #6cbdff;
  --Ccolor3: #71ff76;
  --Ccolor4: #ffd65d;

  /* Color Palette Section */

  --color-1: #0f1016;
  --text-color: #f0f0f0;
  --accent-color: #89D1D1;
  --accent-color-2: #908FDB;
  --bg-color: #030C44;
  --card-bg-color: #1C1853;
  --heading-font: 'Outfit', sans-serif;
  --body-text-font: 'Roboto', sans-serif;

  /* Main-section */

  --body-text-font-family: "Roboto", Helvetica;
  --body-text-font-weight: 400;
  --body-text-font-size: 16px;
  --body-text-letter-spacing: 0px;
  --body-text-line-height: 27.5px;
  --body-text-font-style: normal;
  --main-heading-font-family: "Outfit", Helvetica;
  --main-heading-font-weight: 700;
  --main-heading-font-size: 65px;
  --main-heading-letter-spacing: 0px;
  --main-heading-line-height: 100%;
  --main-heading-font-style: normal;
  --sub-heading-font-family: "Outfit", Helvetica;
  --sub-heading-font-weight: 700;
  --sub-heading-font-size: 20px;
  --sub-heading-letter-spacing: 2.6px;
  --sub-heading-line-height: 27.5px;
  --sub-heading-font-style: normal;
  --h2-font-family: "Outfit", Helvetica;
  --h2-font-weight: 700;
  --h2-font-size: 58px;
  --h2-letter-spacing: 0px;
  --h2-line-height: 100%;
  --h2-font-style: normal;
}

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

html {
  font-size: 12pt;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
}

body {
  background-color: var(--bg-color);
}

/* #parent {
  z-index: -1;
  width: 100%;
  height: 100vh;
} */

/* -------------- */
/* Navbar Section */
/* -------------- */

nav {
  height: 60px;
  /* background-color: var(--color-1); */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: var(--heading-font);

  z-index: 1000;
}

.links-container {
  height: 100%;
  width: 80%;
  display: flex;
  align-items: center;
  padding-right: 10%;

  z-index: 1001;
}

nav {
  font-weight: bold;
}

#overlay {
  z-index: 1000;
  /* Ensure overlay is above the rest */
}

nav a {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
}

nav .work-page-link {
  margin-right: auto;
}

nav svg {
  fill: var(--text-color);
}

#sidebar-action {
  display: none;
}

.open-sidebar-button,
.close-sidebar-button {
  display: none;
  z-index: 1002;
}

/* ------------------ */
/* Work Title Section */
/* ------------------ */

.work-section-container {
  display: none;
}

.word-card {
  min-height: 100px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* border: 8px solid red; */
  overflow: hidden;
}

.loader {
  background-color: #1c185370;
  border-radius: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 78%;
  height: 68px;
  box-shadow: 8px 8px 19px #07070717,
    -8px -8px 19px #ffffff00;
  overflow: hidden;
  padding-left: 2rem;
}

.loader pre,
span {
  color: var(--text-color);
  font-family: var(--h2-font-family);
  font-weight: var(--h2-font-weight);
  font-size: 50px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  transition: color 0.3s ease;
}

.words {
  overflow: hidden;
  position: relative;
}

.words::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
}

.word {
  display: block;
  height: 100%;
  padding-left: 6px;
  color: var(--accent-color-2);
  animation: spin_4991 6s infinite;
  transition: color 0.3s ease;
}

.word-card:hover .word {
  color: var(--accent-color);
}

/* .word-card:hover .loader pre {
  color: var(--accent-color-2);
} */

@keyframes spin_4991 {
  0% {
    -webkit-transform: translateY(200%);
    transform: translateY(200%);
  }

  25% {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
  }

  50% {
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
  }

  75% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  100% {
    -webkit-transform: translateY(-200%);
    transform: translateY(-200%);
  }
}



/* ------------- */
/* Work section  */
/* ------------- */

.work-card-main-container {
  max-width: 1200px;
  margin: 0 auto;
  /* margin-left: 1rem;
  margin-right: 1rem; */
}

.portfolio-header {
  margin-bottom: 30px;
  padding: 10px 0;
}

.portfolio-title {
  font-size: 24px;
  /* font-size: var(--sub-heading-font-size); */
  font-weight: var(--sub-heading-font-weight);
  font-family: var(--sub-heading-font-family);
  letter-spacing: var(--sub-heading-letter-spacing);
  color: var(--Cmaincolor);
  padding-top: 2rem;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

.portfolio-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  transition: color 0.3s ease;
}

.portfolio-title:hover {
  color: var(--accent-color);
}

.filter-container {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--Cmaincolor);
  font-size: 14px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background-color: rgba(255, 255, 255, 0.1);
  /* color: var(--accent-color); */
}

.filter-btn.active {
  color: var(--accent-color);
  /* font-weight: bold; */
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-card {
  display: block;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);

}

/* .portfolio-card:hover .card-content {
  transform: translateY(80px);
  pointer-events: auto;
} */

.card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: 15px;
  background-color: #030c44a6;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none; 
}

.card-title {
  font-size: var(--sub-heading-font-size);
  font-weight: var(--sub-heading-font-weight);
  font-family: var(--sub-heading-font-family);
  letter-spacing: var(--sub-heading-letter-spacing);
  color:var(--Cmaincolor);
  margin-bottom: 5px;
}

.card-category {
  color: var(--text-color);
  font-family: var(--body-text-font-family);
  opacity: .7;
  font-size: 12px;
}

/* ---------------- */
/* Fullscreen Modal */
/* ---------------- */

.modal {
  position: fixed;
  z-index: 9999;
  top: 0; 
  left: 0;
  width: 100vw; 
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.modal img {
  max-width: 90%;
  max-height: 80%;
  transition: transform 0.3s ease;
}


.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.close-btn:hover {
  color: var(--accent-color);
}

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  z-index: 10000;
}

.arrow-btn.left {
  left: 20px;
}

.arrow-btn.right {
  right: 20px;
}

.arrow-btn:hover {
  color: var(--accent-color);
}


/* -------------------- */
/* footer email Section */
/* -------------------- */

.rectangle {
  /* transform: translateY(150rem); */
  width: 100%;
  height: 8px;
  background: rgb(58,58,190);
  background: linear-gradient(140deg, rgba(58,58,190,1) 21%, rgba(137,209,209,1) 88%);
}


.email-container {
  z-index: 10;
  /* background-color: #1c185370; */
  width: 100%;
  height: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email-container p {
  display: flex;
  margin-left: 2rem;
  color: var(--text-color);
  font-size: 20px;
  font-weight: 500;
  font-family: var(--sub-heading-font-family);
  letter-spacing: var(--sub-heading-letter-spacing);
  transform: translateY(5px);
  cursor: pointer;
  transition: opacity .3s ease-in-out;
}

.email-container p:hover {
  opacity: .7;
}

.email-container .emailButton {
  position: relative;
  display: flex;
  gap: 4px;
  margin-right: 2rem;
  width: auto;
  /* background-color: red; */
}

.email-container input {
  height: 40px;
  border-radius: 50px;
  background-color: #1c185370;
  width: 20rem;
  outline: none;
  border: none;
  color: var(--text-color);
  /* border: 2px solid var(--accent-color) ; */
  padding-left: 30px;
  /* cursor: pointer;
  transition: .3s ease-in-out; */
}

/* .email-container input:hover {
  border: 2px solid var(--accent-color-2) ;
} */

.email-container input::placeholder {
  color: #ffffff71;
  padding-bottom: .3rem;
}

.email-container form button {
  position: absolute;
  top: 4.5px;
  right: 6.5px;
  
  background: var(--accent-color-2);
  font-family: var(--sub-heading-font-family);
  font-weight: var(--sub-heading-font-weight);
  color: var(--bg-color);
  font-size: 12px;
  letter-spacing: 1px;
  outline: none;
  border: none;
  padding: 8px 26px;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity .3s ease-in-out;
}

.email-container form button:hover {
  opacity: .7;
}

/* --------------- */
/* -scroll to top- */
/* --------------- */

.scrolltotop {
  display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
  color: transparent;
  transition: transform 0.3s ease;
}

.scrolltotopsvg {
  display: none;
}

/* .scrolltotop:hover {
  transform: translateY(-6px);
} */

.scrolltotop:hover {
  animation: popup 0.8s ease-out;
}

.scrolltotop:hover p {
  color: var(--accent-color);
}

@keyframes popup {
  0% {
    transform: translateY(0px);
  }  
  25% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(-2px);
  }
  75% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

.scrolltotop .scroll {
	display: flex;
	flex-direction: row;
	gap: 6px;
	align-items: center;
  font-size: 15px;
}

.scrolltotop p {
  text-decoration: none;
}

/* ------------------------- */
/* -scroll to top ends here- */
/* ------------------------- */

/* ---------------------- */
/* Responsiveness Section */
/* ---------------------- */

/* Navigation Section */

@media(max-width: 525px) {
  .links-container {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 10;
    width: 300px;
    height: 100%;
    background-color: var(--color-1);
    box-shadow: -5px 0 5px rgba(0, 0, 0, .25);
    transition: right 0.3s ease;
    padding-top: 60px;
    /* Ensure enough space for the close button */
  }

  nav a {
    box-sizing: border-box;
    height: auto;
    width: 100%;
    padding: 20px 30px;
    justify-content: flex-start;
  }

  .open-sidebar-button,
  .close-sidebar-button {
    padding: 20px;
    display: block;
  }

  #sidebar-action:checked~.links-container {
    right: 0;
  }

  #sidebar-action:checked~.open-sidebar-button {
    z-index: 1;
    display: none;
  }

  .close-sidebar-button {
    position: absolute;
    top: -5px;
    right: 0;
  }

  #sidebar-action:checked~#overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
  }
}

/* Work title Section */

@media(max-width: 700px) {
  .work-section p {
    font-size: 45px;
  }
}

@media(max-width: 600px) {
  .work-section p {
    font-size: 35px;
  }
}

@media(max-width: 572px) {
  .loader {
    height: 65px;
    display: flex;
    padding-left: 5rem;
  }

  .loader pre,
  span {
    font-size: 40px;
  }
}

@media(max-width: 525px) {
  .word-card {
    display: none;
  }

  .work-section-container {
    min-height: 15px;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-left: .5rem;

    transform: translateY(-3.3rem);
  }

  .work-section {
    background-color: #1c185370;
    border-radius: 10px;
    width: 50%;
    height: 40px;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 9.5px #07070717,
      -4px -4px 9.5px #ffffff00;
  }

  .work-section a {
    text-decoration: none;
  }

  .work-section p {
    font-size: 20px;
    font-family: var(--h2-font-family);
    font-weight: var(--h2-font-weight);
    letter-spacing: var(--h2-letter-spacing);
    color: var(--text-color);
    transition: color 0.3s ease;
  }

  .work-section p:hover {
    color: var(--accent-color);
  }
}

/* ------------- */
/* Work section  */
/* ------------- */

@media (max-width: 768px) {
  .work-card-main-container {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      margin-left: 10px;
      margin-right: 10px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
      grid-template-columns: 1fr;
  }
}


/* Footer Email Section */

@media (max-width: 768px) {
  .email-container .emailButton {
    display: block;
  }

  .email-container form , .email-container p {
    transform: scale(.7);
  }
}

@media (max-width: 560px) {
  .email-container {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }
  .email-container .emailButton {
    display: block;
  }

  .email-container form , .email-container p {
    transform: scale(.6);
  }

  .email-container p {
    margin-left: 1rem;
    font-size: 15px;
    transform: translateY(0);
  }
  .email-container .emailButton {
    margin-right: .2rem;
  }
}

@media (max-width: 390px) {
  .email-container p {
    margin-left: 0;
  }
  .email-container form , .email-container p {
    transform: scale(.5);
  }
  .email-container p {
    font-size: 10px;
  }
}

/* -scroll to top- */

@media (max-width:832px) {
  .scrolltotop {
    display: none;
  }
  .scrolltotopsvg {
    display: block;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: white;
    transition: transform 0.3s ease;
    transform: translateX(-3rem);
  }
}


@media (max-width:444px) {
  .emailButton #emailInput, #emailsubmitbutton {
    transform: translateX(-5rem);
  }
  .scrolltotopsvg {
    transform: translateX(-7rem);
  }
}