@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap);

/* || General styles */

:root {
  --ff-primary: 400 15px/24px poppins, sans-serif;
  --fs-xl: 2.668rem;
  --fs-l: 1.5rem;
  --fs-normal: 1rem;
  --fs-small: 0.8rem;
  --spacer-1: 0.5rem;
  --spacer-2: 1rem;
  --bg-main: #e5e5e5;
  --bg-prime: #fff;
  --bg-prime-a: #ffffffba;
  --bg-sec: #5867eb;
  --bg-tag: #ebebff;
  --fg-head: #172b4d;
  --fg-variant-1: #6b7687;
  --fg-prime: #344563;
  --box-shadow: 0 4px 6px rgba(64, 83, 252, 0.24);
  --height-100: calc(100vh - 56px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--fg-prime);
}

html {
  scroll-behavior: smooth;
}

body {
  font: var(--ff-primary);
  background-color: var(--bg-prime);
}

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

a { text-decoration: none; }

ul {
  list-style: none;
  display: flex;
  gap: 0.33em;
}

/* || Utilities styles */

.fw-bold { font-weight: 700; }

.fw-medium { font-weight: 500; }

.my-15 { margin: 15px 0; }

.w-100 { width: 100%; }

.vh-100 { height: var(--height-100); }

.icons {
  width: 24px;
  height: 24px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header {
  position: sticky;
  top: 0;
  background-color: var(--bg-prime-a);
  backdrop-filter: blur(6px);
}

header > * { padding: var(--spacer-2); }

.logo-text {
  font-size: 1.125em;
  color: var(--bg-sec);
}

:is(.logo, .logo:hover) {
  transform: rotateY(360deg);
  transition: all 10s ease-in-out 1s;
}

nav > ul { display: none; }

.btn {
  border-radius: 0.4em;
  padding: 0.6em;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  margin: 1rem 0;
  transition: all 1s;
}

.btn:enabled {
  border: 1px solid #6070ff;
  color: #396df2;
  background-color: #fff;
}

:is(.nav-links-desktop, .btn):hover {
  background-color: var(--bg-sec);
  color: var(--bg-prime);
  box-shadow: var(--box-shadow);
  border-radius: 5px;
  cursor: pointer;
  transform: scale(0.95);
  letter-spacing: 0.02em;
  font-weight: 700;
  border: 1px solid #396df2;
}

/* || Intro */
#headlines {
  background-image: url(images/topL.png), url(images/topC.png), url(images/topR.png), url(images/bottomL.png), url(images/bottomC.png), url(images/bottomR.png);
  background-position: left top, center top, right top, left bottom, center 95%, right bottom;
  background-repeat: no-repeat;
  border-bottom-left-radius: 100px;
}

.wrapper > :first-child { background-color: var(--bg-prime); }

.content-placeholder {
  width: 90%;
  max-width: 650px;
  margin: auto;
  padding: 10% 0;
}

.my-25 { margin: 2.5em 0; }

.head-1 {
  font-size: var(--fs-xl);
  line-height: 1.2em;
}

.head3 {
  font-weight: 500;
  font-size: var(--fs-normal);
  color: var(--bg-sec);
}

.social-media .inline-li {
  padding: 0 30px;
  gap: var(--spacer-1);
}

.works {
  gap: 5em;
  padding: 5em 8%;
}

.grid-responsive {
  background: var(--bg-prime);
  padding: 1rem;
  gap: var(--spacer-1);
}

.cards { border-radius: 0.5rem; }

.cards > * { padding: var(--spacer-1); }

.snapshoot { width: 100%; }

.project-summary { gap: 2em; }

.tags { flex-wrap: wrap; }

.tag {
  height: 1.6em;
  border: 1px solid var(--bg-tag);
  padding: 0.25em 0.3em;
  border-radius: 0.5em;
  background-color: var(--bg-tag);
  font-size: 0.75em;
  line-height: 1em;
  color: #505dd5;
}

.language-ul { display: block; }

.language-ul li {
  margin: 2px auto;
  padding: 5px;
  line-height: 25px;
  background-color: var(--bg-tag);
  text-align: center;
  align-items: center;
  gap: 20px;
  display: flex;
}

.project-summary > li:not(:first-child) {
  list-style: disc;
  color: var(--fg-variant-1);
}

footer .content-placeholder {
  text-align: center;
  padding: 1.7em 5px;
}

.grid-responsive > .content-placeholder {
  padding: 0;
  margin: 0;
}

#about > .grid-responsive {
  gap: 2em;
  padding: 5em 8%;
  border-top-right-radius: 100px;
}

.skills-dropdown {
  height: 48px;
  font-size: 1.2em;
}

/* || Foooter */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #5867eb;
  border-top-left-radius: 100px;
  width: 100%;
  background-image: url(images/contact-bg_01.png), url(images/contact-bg_03.png);
  background-position: center top, right top;
  background-repeat: no-repeat;
}

form {
  width: 100%;
  background-image: url(images/contact-bg_02.png);
  background-position: right bottom;
  background-repeat: no-repeat;
  flex-wrap: wrap;
}

.form-input {
  width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  padding: 0.5em 12px;
  transition: all 0.5s;
}

.input-line { height: 2.5em; }

.form-button { margin: 0.5em 0; }

/* ======= Footer Ends ========= */

/* || Overlay Menu */

.no-scroll { overflow: hidden; }

:is(.modal-ui, .overlay-container) {
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  background-color: #6070ff88;
  backdrop-filter: blur(6px);
}

.overlay-container {
  color: #fff;
  grid-template-columns: 1fr;
  gap: 1em;
  grid-auto-rows: 2em;
  font-size: 2em;
  font-weight: 600;
  overflow: hidden;
  transition: all 2s;
}

#close {
  height: 24px;
  width: 24px;
  justify-self: right;
  margin: 1em;
}

.overlay {
  width: max-content;
  height: max-content;
  color: #fff;
  text-decoration: none;
  margin: 1em;
}

:is(#close, .overlay):hover {
  cursor: pointer;
  color: var(--bg-sec);
}

/* || Overlay Ends */
:is(#frameworks, #skills) { border-bottom: 1px solid #dfe1e6; }

:is(#contact-msg, #contact-me) { color: #fff; }

/* Modal Cards starts */
.modal-ui {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #c1c7d080;
  padding: 1em;
}

.modal-card {
  padding: 1em;
  height: 100%;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 48px 48px 0 #252f8914;
}

.mc-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mc-title {
  text-align: left;
  font-size: var(--fs-l);
}

.mc-btn {
  font-size: 30px;
  border: none;
  background-color: #fff;
  align-self: flex-start;
}

.mc-snap-place { padding: 0.5em; }

.modal-card > * { align-items: center; }

.mc-snapshoot {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.modal-btn-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  border-top: 1px solid #ebecf0;
  padding: 0;
}

.btn-modal {
  display: flex;
  gap: 0.5em;
  align-items: center;
  border: 1px solid #6070ff;
}

.md-show { display: flex; }

/* || Modal Cards Ends */

.skills-dropdown > .icons > img:hover { cursor: pointer; }

.border-b { border-bottom: 1px solid #dfe1e6; }

/* float label */

.input__container {
  width: 100%;
  position: relative;
  margin-top: 26px;
}

::placeholder { color: transparent; }

.input__label {
  position: absolute;
  z-index: 100;
  left: 12px;
  top: 5px;
  color: #6b7687;
  transition: all 600ms;
}

.form-input:is(:focus, :not(:placeholder-shown)) + .input__label {
  font-size: 0.8em;
  font-weight: 600;
  top: -22px;
  left: 6px;
  color: #344563;
}

/* f end */

@media only screen and (min-width: 769px) {
  /* || Deskstop Responsive */

  nav > ul {
    display: flex;
    gap: 1rem;
  }

  .nav-links-desktop { padding: 0 var(--spacer-1); }

  .nav-links-mobile {
    display: none;
  }

  .grid-responsive { grid-template-columns: repeat(2, 1fr); }

  .reverse > * { grid-row: 1/2; }

  .reverse > .snapshoot-placeholders { grid-column: 2/3; }

  .projects { padding-right: 2rem; }

  .language-ul {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: var(--spacer-1);
    padding: var(--spacer-2);
  }

  .language-ul > li {
    display: flex;
    flex-wrap: wrap;
    line-height: 0.8em;
    justify-content: center;
    padding: 0.4em;
  }

  #headlines { background-image: url(images/dtp-header-bg.svg); }

  .footer { background-image: url(images/dtp-contact-bg.svg); }

  form {
    background-image: none;
    flex-direction: column;
  }

  .mc-title {
    font-size: var(--fs-xl);
  }

  .modal-card {
    aspect-ratio: 7/5;
    gap: 0.5em;
    grid-template-rows: 3em 1em 3fr 1fr stretch; /* stylelint-disable-line */
    grid-template-areas:
      'title title title'
      'summary summary summary'
      'image image image'
      'details details tags'
      'details details buttons';
  }

  .modal-card > :nth-child(1) {
    grid-area: title;
    font-size: 3em;
  }

  .modal-card > :nth-child(2) { grid-area: summary; }

  .modal-card > :nth-child(3) { grid-area: image; }

  .modal-card > :nth-child(4) { grid-area: details; }

  .modal-card > :nth-child(5) { grid-area: tags; }

  .modal-card > :nth-child(6) { grid-area: buttons; }

  .mc-snapshoot { aspect-ratio: 3/1; }

  :is(#headlines, .footer) {
    background-position: 50% 50%;
    background-size: contain;
  }
}
