@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat/static/Montserrat-Regular.ttf")
    format("truetype");
}

@font-face {
  font-family: "Ubuntu Sans";
  src: url("./fonts/Ubuntu_Sans/static/UbuntuSans-Regular.ttf")
    format("truetype");
}

@font-face {
  font-family: "Questrial";
  src: url("./fonts/Questrial-Regular.ttf") format("truetype");
}

:root {
  --background-color: black;
  --font-family-1: "Questrial", sans-serif;
  --font-family-2: "Montserrat", sans-serif;
  --font-family-3: "Ubuntu Sans", sans-serif;

  --hero-heading-font: 6rem;
  --hero-line-height: 90px;
  --hero-letter-spacing: -7px;

  --heading-color: rgb(129, 129, 129);
  --heading-font-size: 4.5rem;
  --heading-font-weight: 100;
  --heading-letter-spacing: -3px;
  --heading-line-height: 70px;

  --para-font-color: #7c7c7c;
  --para-font-size: 1.2rem;
  --para-letter-spacing: 0.3px;
  --para-line-height: 20px;

  --joke-para-color: #414040;
}

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

body {
  background-color: var(--background-color);
  font-family: var(--font-family-3);
  overflow-x: hidden;
}

section {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family-3);
}

.port-sec-1 {
  position: relative;
}

.canvas-bg-image {
  overflow: hidden;
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
}

.canvas-bg-image > div {
  background: url("../images/portfolio/portfolio_hero_img.jpg");
  background-size: cover;
  height: 100%;
  width: 100%;
  filter: blur(8px) brightness(0.8);
}

/* SECTION 1 STYLE */
.sec-1-body {
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.sec-1-heading {
  display: none;
  width: 80%;
}
.sec-1-heading h1 {
  margin-top: 200px;
  color: #fcfcfc;
  font-family: var(--font-family-3);
  font-weight: 400;
  font-size: var(--hero-heading-font);
  line-height: var(--hero-line-height);
  letter-spacing: var(--hero-letter-spacing);
  padding-right: 100px;
}

.sec-1-heading p {
  margin-top: 40px;
  font-family: var(--font-family-3);
  font-size: 1.3rem;
  font-weight: 400;
  color: #000000;
  line-height: 25px;
  width: 75%;
}
/* ------------------------------ section 2 styling -------------------- */
.stats-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #161616;
}

.stats-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.stats-heading {
  width: 60%;
  margin-top: 10%;
  font-weight: var(--heading-font-weight);
  color: var(--heading-color);
  font-size: var(--heading-font-size);
  letter-spacing: var(--heading-letter-spacing);
  line-height: var(--heading-line-height);
  text-align: center;
}

.stats-grid {
  width: 100%;
  margin-top: 3%;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.stat-card {
  padding: 1%;
  border: 1px solid #777777;
  border-radius: 20px;
  min-width: 180px;
}

.stat-label {
  font-size: 0.9rem;
  color: #9e9e9e;
  font-weight: 400;
}

.stat-value {
  font-size: 10rem;
  color: rgb(179, 179, 179);
}

.stat-desc {
  font-size: 0.95rem;
  color: #9e9e9e;
  font-weight: 400;
}

/* ======================= SECTION 3 STYLE - SWIPER =================*/
.port-sec-3 {
  height: auto;
}

.sec-3-body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 50px;
}

.sec-3-body-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.sec-3-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 50px;
}

.sec-3-heading h2 {
  margin-top: 150px;
  color: var(--heading-color);
  font-size: var(--heading-font-size);
  font-weight: var(--heading-font-weight);
  letter-spacing: var(--heading-letter-spacing);
  line-height: var(--heading-line-height);
  width: 53%;
  text-align: center;
}

/* --- Hover Wrapper (Filters) --- */
.hover-wrapper {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  border: 1px solid #2b2b2b;
  gap: 10px;
  border-radius: 50px;
  padding: 10px;
}

.hover-wrapper div {
  font-family: var(--font-family-1);
  font-size: 1.2rem;
  color: #969696;
  padding: 10px 25px;
  border: 1px solid #2b2b2b;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.hover-wrapper div:hover {
  background-color: #2b2b2b;
}

.hover-wrapper div.active-filter {
  background-color: #2b2b2b; /* orange border for active */
}

.projects-container {
  width: 100%;
  height: auto;
  padding: 6%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3.125rem 2.5625rem;
  grid-column: span 12;
  transition: height 0.5s ease;
}

.project-card {
  grid-column: span 6;
  text-decoration: none;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-title-container {
  display: flex;
  color: #969696;
  justify-content: space-between;
  border-top: 1px solid #2b2b2b;
  border-left: 1px solid #2b2b2b;
  border-right: 1px solid #2b2b2b;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  padding: 1.1rem 1rem 1.7rem 1rem;
  margin-bottom: -1rem;
}

.project-title-container p {
  font-size: 1.2rem;
  font-weight: 100;
}

.project-title-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.link-to-target {
  color: #969696;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-to-target:hover {
  color: #f88c18;
}

.project-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10%;
}

.project-overlay h4 {
  font-family: var(--font-family-3);
  font-size: 2rem;
  font-weight: 100;
  color: #dadada;
}

.overlay-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.__tag {
  font-size: 1.2rem;
  font-weight: 100;
  border: 2px solid #6b6b6b;
  padding: 8px 24px;
  color: #aaaaaa;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}

.__tag:hover {
  background-color: #3f3f3f;
}

.project-title-text svg {
  transform: rotate(270deg);
}

.project-image-container {
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
}

.project-image-container:hover .project-image {
  filter: blur(5px);
}

.project-image-container video, .project-image-container .zoomed-one {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 5% 9%;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  border-radius: 1rem;
}

.project-image-container:hover .project-overlay {
  opacity: 1;
}

.no-projects {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: #666;
  display: none;
}

.no-projects.visible {
  display: block;
}

/* ===================================SECTION 4 STYLE ===============================*/
.sec-4-body {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 80%;
  height: 100vh;
}

.sec-4-row1 {
  margin-top: 150px;
  width: 90%;
}

.sec4-row1-heading {
  color: var(--heading-color);
  font-size: var(--heading-font-size);
  font-weight: var(--heading-font-weight);
  letter-spacing: var(--heading-letter-spacing);
  line-height: var(--heading-line-height);
}

.sec-4-btn-link {
  width: 100%;
  height: 100px;
}

.a-link a {
  text-decoration: none;
  font-family: var(--font-family-3);
  font-size: 1rem;
  color: var(--heading-color);
  border-radius: 100px;
  padding: 10px 30px;
  border: 2px solid var(--para-font-color);
  transition: border 0.2s ease, color 0.2s ease;
}

.a-link a:hover {
  border: 2px solid #747373;
  color: #969595;
}

.sec-4-row2 {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sec-4-joke {
  margin-top: 30px;
}

.sec-4-joke img {
  width: 300px;
  margin-bottom: 15px;
  mix-blend-mode: exclusion;
  filter: grayscale(100%);
  opacity: 0.5;
}

.joke-para p {
  color: var(--joke-para-color);
  letter-spacing: -1px;
  line-height: 15px;
  font-size: 1rem;
  position: relative;
  width: 300px;
}

.joke-para p::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 20px;
  width: 1px;
  height: 70%;
  background-color: #333333;
}

.joke-para p::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -20px;
  width: 60%;
  height: 1px;
  background-color: #333333;
}

.project-modern-btn {
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 250px;
  padding: 13px 20px;
  border: 4px solid;
  border-color: transparent;
  background-color: white;
  border-radius: 100px;
  color: #2c2c2c;
  box-shadow: 0 0 0 2px #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-modern-btn svg {
  position: absolute;
  width: 24px;
  fill: #303030;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-modern-btn .modern-arr-1 {
  right: 16px;
}

.project-modern-btn .modern-arr-2 {
  left: -25%;
}

.project-modern-btn .modern-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-modern-btn .modern-text {
  position: relative;
  font-size: 1rem;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-modern-btn:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #1e1e1e;
}

.project-modern-btn:hover .modern-arr-1 {
  right: -25%;
}

.project-modern-btn:hover .modern-arr-2 {
  left: 16px;
}

.project-modern-btn:hover .modern-text {
  transform: translateX(12px);
}

.project-modern-btn:hover svg {
  fill: #424242;
}

.project-modern-btn:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #ffffff;
}

.project-modern-btn:hover .modern-circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

.hidden-one {
  opacity: 0;
}

/* ------------------------------------ RESPONSIVENESS ------------------ */
/* Medium Desktops (up to 1400px) */
@media (min-width: 1367px) and (max-width: 1440px) {
  .stats-section {
    height: 105vh;
  }
  .stats-heading {
    width: 80%;
    margin-top: 10%;
    line-height: 1;
  }
  .sec-3-heading h2 {
    font-size: 4rem;
    line-height: 1;
    margin-top: 8%;
    width: 60%;
  }
  .project-overlay .__tag {
    font-size: 0.9rem;
  }

  .overlay-tags {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .sec-4-row1,
  .sec-4-row2 {
    width: 100%;
  }

  .port-sec-4 {
    height: 100vh;
    margin-bottom: 50px;
  }
  .sec4-row1-heading {
    line-height: 0.8;
  }
}

/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */
/* Standard Laptops (up to 1366px) */
@media screen and (max-width: 1366px) {
  .stats-section {
    padding: 0 0 5rem 0;
    height: auto;
  }
  .stats-heading {
    width: 80%;
    margin-top: 8%;
    font-size: 4rem;
    line-height: 1;
  }

  .sec-3-heading h2 {
    font-size: 4rem;
    line-height: 1;
    margin-top: 5%;
    width: 60%;
  }

  .hover-wrapper {
    width: 80%;
  }

  .hover-wrapper div {
    font-size: 0.8rem;
  }

  .project-overlay .__tag {
    font-size: 0.9rem;
  }

  .overlay-tags {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .joke-para p {
    font-size: 0.9rem;
    width: 290px;
    line-height: 0.9;
  }

  .sec-4-joke img {
    width: 250px;
  }

  .port-sec-4 {
    height: 100vh;
    margin-bottom: 100px;
  }
  .sec4-row1-heading {
    font-size: 4rem;
    line-height: 0.8;
  }

}

@media  screen and (max-width: 1024px) {
  .stats-section {
    height: 100vh;
  }
  .stats-heading {
    font-size: 3.5rem;
    letter-spacing: -3px;
    margin-top: 13%;
    line-height: 0.9;
    width: 90%;
  }
  .stat-card .stat-value {
    font-size: 7rem !important;
  }

  .sec-3-heading h2 {
    font-size: 2.5rem;
    line-height: 1;
    margin-top: 8%;
    width: 80%;
  }

  .hover-wrapper {
    border-radius: 20px;
    flex-wrap: wrap;
  }

  .project-overlay h4 {
    font-size: 1.2rem;
  }
  
  .project-overlay .__tag {
    font-size: 0.7rem;
    padding: 8px 10px;
  }
  .overlay-tags {
    gap: 5px;
  }

  .overlay-tags {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .sec4-row1-heading {
    font-size: 3rem;
  }

  .sec-4-body {
    width: 90%;
  }

}


@media screen and (max-width: 930px) {
  .stats-heading {
    font-size: 3rem;
    letter-spacing: -3px;
    margin-top: 20%;
    line-height: 0.9;
    width: 90%;
  }
  .stat-card .stat-value {
    font-size: 5.5rem !important;
  }
}
/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */
/* Tablets (up to 786px) */
@media (max-width: 786px) {

  .sec-1-heading h1 {
    font-size: 3rem;
    line-height: 50px;
    letter-spacing: -3px;
    padding-right: 0;
  }

  .sec4-row1-heading {
    font-size: 2.5rem;
    line-height: 40px;
  }
  .stats-heading {
    letter-spacing: normal;
    font-size: 2.3rem;
  }

  .sec-4-row1 h2{
    font-size: 2.5rem;
  }
  .stats-grid {
    flex-wrap: wrap;
  }
  .sec-3-body-content {
    height: auto;
  }

  .projects-container {
    display: flex;
    flex-direction: column;
  }

  .project-overlay h4 {
    font-size: 2rem;
  }

  .project-overlay .__tag {
    font-size: 1rem;
    padding: 8px 30px;
  }

  .overlay-tags {
    gap: 10px;
  }

  .overlay-tags {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .joke-para p {
    line-height: 0.9;
    font-size: 0.9rem;
    width: 200px;
  }

  .sec-4-joke img {
    width: 180px;
  }

}

