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

@font-face {
  font-family: "Montserrat-Bold";
  src: url("./fonts/Montserrat/static/Montserrat-Bold.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;
  --font-family-4: "Montserrat-Bold", 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;
  --joke-line-color: #1f1e1e;

  --mob-main-heading: 2.75rem;
  --mob-sub-heading: 2.4rem;
}

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

/* ========================= SECTION 1 STYLE ============================= */
.serv-sec-1 {
  /* background-color: #5819e3; */
  background: linear-gradient(45deg, #5a438dfd, #461ca0);
  position: relative;
  overflow: hidden;
}

#squaresCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.sec-1-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.sec-1-btn-link a {
  pointer-events: auto;
}

.sec-1-body-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 80%;
}

.sec-1-para h1 {
  margin-top: 200px;
  color: #dadada;
  font-family: var(--font-family-3);
  font-weight: 400;
  /* font-size: var(--hero-heading-font); */
  font-size: clamp(1.5rem, 6vw, 6rem);
  line-height: var(--hero-line-height);
  letter-spacing: var(--hero-letter-spacing);
}

.sec-1-btn-link {
  width: 100%;
  height: 100px;
  margin-top: 60px;
}

.animated-button {
  font-family: var(--font-family-3);
}

.button-el {
  --duration: 0.4s; /* smoother timing */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 16rem;
  height: 3.5rem;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 3rem;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  transition: background-color var(--duration) cubic-bezier(0.4, 0, 0.2, 1),
              color var(--duration) cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--duration) cubic-bezier(0.4, 0, 0.2, 1);
  color: #000;
  font-size: 1.2rem;
  font-weight: bold;
}

.button-el:hover {
  background-color: #2b2b2b;
  color: #e7e7e7;
}

/* Move inner content */
.button-el > * {
  transition: transform var(--duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.button-el:hover > * {
  transform: translateX(-1rem);
}

/* ----- Text flip effect ----- */
.button-label-wrap {
  position: relative;
  display: inline-block;
  perspective: 800px;
  overflow: hidden;
  transform: translateX(10px);
  height: 1.3em; /* matches text size */
  line-height: 1.3em;
}

.inside-label {
  display: block;
  transform-origin: 50% 100%;
  transition: transform var(--duration) cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.inside-label:nth-child(1) {
  transform: translateY(0) rotateX(0deg);
}

.inside-label:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%) rotateX(-90deg);
}

.button-el:hover .inside-label:nth-child(1) {
  transform: translateY(-100%) rotateX(90deg);
}

.button-el:hover .inside-label:nth-child(2) {
  transform: translateY(0) rotateX(0deg);
}

/* ----- Arrow movement with circle background ----- */
.button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  z-index: 1;
  transform: translateX(1.5rem);
  opacity: 0;
  transition: transform var(--duration) cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--duration) cubic-bezier(0.4, 0, 0.2, 1),
              background-color var(--duration) cubic-bezier(0.4, 0, 0.2, 1),
              color var(--duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.button-arrow::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 0;
  height: 100%;
  background-color: white;
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transition: left var(--duration) cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--duration) cubic-bezier(0.4, 0, 0.2, 1),
              width var(--duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.button-el:hover .button-arrow {
  transform: translateX(0);
  opacity: 1;
  color: #000000;
}

.button-el:hover .button-arrow::before {
  left: 0;
  opacity: 1;
  width: 100%;
}

/* Icon */
.icon {
  display: inline-flex;
  transition: transform var(--duration) cubic-bezier(0.4, 0, 0.2, 1),
              opacity var(--duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.button-el:hover .icon {
  transform: translateX(-2.5rem);
  opacity: 0;
}

/* Reset */
.--pos-l svg,
.--pos-r svg {
  width: 1.2em;
  height: 1.2em;
  stroke: currentColor;
}

/* =============================== serv us Section # 2  ======================= */

/* =============================== SECTION THREE STYLE ====================== */
.serv-sec-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

@keyframes noise-animation {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-2%, -3%);
  }

  20% {
    transform: translate(-4%, 2%);
  }

  30% {
    transform: translate(2%, -4%);
  }

  40% {
    transform: translate(-2%, 5%);
  }

  50% {
    transform: translate(-4%, 2%);
  }

  60% {
    transform: translate(3%, 0);
  }

  70% {
    transform: translate(0, 3%);
  }

  80% {
    transform: translate(-3%, 0);
  }

  90% {
    transform: translate(2%, 2%);
  }

  100% {
    transform: translate(1%, 0);
  }
}

#serv-sec-3-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.fallback-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/services/bigboysmedia-networks.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.sec-3-container {
  display: flex;
  width: 100%;
  height: 100vh;
  padding: var(--gutter);
  position: relative;
  z-index: 10;
  transition: filter 0.1s ease-out;
}

.text-element {
  position: fixed;
  font-family: var(--font-primary);
  color: var(--color--foreground);
  text-transform: uppercase;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.description {
  top: 120px;
  left: 50px;
  width: 360px;
  font-size: 0.75rem;
  line-height: 1.2;
}

.division {
  bottom: 120px;
  left: 50px;
  font-size: 0.625rem;
}

.central-text {
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.1;
  white-space: nowrap;
  width: max-content;
}

.dg.ac {
  z-index: 3000 !important;
  position: fixed !important;
  top: 10px !important;
  right: 10px !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .description,
  .nav-links,
  .division,
  .performance {
    left: 20px;
  }

  .footer,
  .signal {
    right: 20px;
  }

  .central-text {
    font-size: 1rem;
    white-space: normal;
    max-width: 90%;
  }

  .description {
    width: calc(100vw - 40px);
    max-width: 300px;
  }

  /* Optimize GUI for mobile */
  .dg.ac {
    transform: scale(0.8);
    transform-origin: top right;
  }
}

@media (max-width: 480px) {
  .central-text {
    font-size: 0.9rem;
  }

  .description {
    font-size: 0.7rem;
  }

  /* Further scale down GUI on very small screens */
  .dg.ac {
    transform: scale(0.7);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .nav-links a:hover::after {
    width: 0;
  }

  .nav-links a:active::after {
    width: 100%;
  }
}
/* =============================== SECTION FOUR STYLE ====================== */
.serv-sec-4 {
  height: 100%;
}

.sec-4-body {
  width: 80%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.serv-heading {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  width: 64%;
}
.serv-heading h2 {
  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);
}
.services-flex {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.service-card {
  width: 350px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background-color: transparent;
  padding: 15px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: border 0.3s ease, background-img 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.service-card:hover {
  border: 2px solid rgb(236, 144, 22);
}

.service-card:hover::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background-image: url("/static/images/burger_menu/form_back.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.3;
}

.service-card h3 {
  color: #b7b7b7;
  font-weight: 100;
  font-size: 1.5rem;
  letter-spacing: -1px;
  line-height: 20px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.service-card h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 38%;
  height: 1px;
  background-color: #9b9b9b;
  opacity: 0.7;
}

.service-card p {
  color: var(--para-font-color);
  font-size: 1.1rem;
  letter-spacing: var(--para-letter-spacing);
  line-height: 18px;
  margin-bottom: 20px;
  height: 130px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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


/* ============================   Section Sixth Style ============================ */

.sec-5-body {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 80%;
  height: 100vh;
}

.button-container {
  display: flex;
}

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

.sec-5-btn-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-color 0.2s ease, color 0.2s ease;
}

.sec-5-btn-link a:hover {
  border-color: #747373;
  color: #969595;
}

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

.sec5-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-5-row2 {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.round-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  border-radius: 80px;
  border: 2px solid #5a5a5a;
  padding: 30px;
}

.round-container {
  font-family: var(--font-family-1);
  color: var(--para-font-color);
  font-size: var(--para-font-size);
}

.row-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.container-row {
  display: flex;
  color: #7c7c7c;
  gap: 20px;
}

.container-row p {
  border: 2px solid #5a5a5a;
  padding: 15px 25px;
  border-radius: 50px;
  transition: border-color 0.3s ease;
}

.container-row P:hover {
  border-color: #f88c18;
}

.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;
}

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

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

.joke-para p {
  position: relative;
}

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

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

/* ------------------------------------ RESPONSIVENESS ------------------ */
@media (max-width: 1550px) {
  .sec-1-para h1 {
    font-size: 5rem;
    letter-spacing: -3px;
    line-height: 0.8;
  }
}

@media (min-width: 1367px) and (max-width: 1440px) {
  .sec-1-para {
    width: 100%;
  }
  .sec-1-para h1 {
    margin-top: 15%;
    font-size: 4rem;
    letter-spacing: -3px;
    line-height: 0.9;
  }

  .sec-4-body {
    padding-bottom: 50px;
    width: 100%;
  }

  .serv-heading {
    width: 43%;
    margin-bottom: 2%;
  }

  .serv-heading h2 {
    font-size: 3rem;
    line-height: 1;
    text-align: center;
  }

  .services-flex {
    width: 100%;
  }

  .serv-sec-5{
    padding-bottom: 50px;
  }
  .sec-5-row1,
  .sec-5-row2 {
    width: 100%;
  }
  .sec-5-row1 h2 {
    line-height: 0.8;
  }
}


/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */
/* Standard Laptops (up to 1366px) */
@media screen and (max-width: 1366px) {

  .sec-1-para h1 {
    margin-top: 13%;
    font-size: 4rem;
    letter-spacing: -3px;
    line-height: 1;
  }

  .serv-sec-5{
    padding-bottom: 100px;
  }

  .sec-4-body,
  .services-flex {
    width: 100%;
  }
  .serv-heading {
    width: 70%;
  }

  .serv-heading h2 {
    width: 100%;
  }

  .sec5-row1-heading {
    font-size: 4rem;
    line-height: 0.8;
  }

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

  .joke img {
    width: 250px;
  }
}

/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */
/* Small Laptops & Large Tablets (up to 1000px) */
@media (max-width: 1024px) {
  .sec-1-para h1 {
    margin-top: 15%;
    font-size: 3rem;
    letter-spacing: -3px;
    line-height: 1;
  }

  .serv-heading {
    width: 65%;
  }
  .serv-heading h2 {
    font-size: 3rem;
    line-height: 0.8;
    width: 100%;
  }

  .sec-4-body {
    width: 100%;
  }
  .services-flex {
    width: 95%;
  }
  .service-card {
    padding: 30px 40px;
    border: 2px solid rgb(99, 99, 99);
  }

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

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

  .sec-5-row1 {
    margin-top: 100px;
  }
}

@media  screen and (max-width: 760px) {
  .serv-heading {
    width: 89%;
  }
  .serv-heading h2 {
    width: 100%;
  }
  .services-flex {
    width: 95%;
  }
  .service-card {
    width: 600px;
  }
  .sec-4-body {
    margin-bottom: 50px;
  }
}

/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */
/* Tablets (up to 786px) */
@media (max-width: 786px) {
  .sec-1-para h1 {
    margin-top: 20%;
    font-size: 2.5rem;
    letter-spacing: -3px;
    line-height: 1;
  }

}

/* ----------------------- form mobile screens ------------------- */

@media (max-width: 600px){
  .serv-sec-1 {
    justify-content: flex-start;
  }
  .sec-1-body-content {
    margin-top: 200px;
    width: 100%;
  }
  .sec-1-para {
    padding: 0 20px;
  }
  .sec-1-para h1 {
    margin-top: -70px;
    letter-spacing: -2px;
    font-size: var(--mob-main-heading);
    line-height: 1;
  }
  .sec-1-btn-link {
    margin-left: 40px;
  }
  /* ------------------------ section 2 --------------------- */
  .serv-heading h2 {
    line-height: 0.9;
    letter-spacing: -2px;
    font-size: var(--mob-sub-heading);
  }
  /* ------------------ section 3 ------------------ */
  .serv-sec-3 {
    height: 28vh;
  }
  /* ------------------- section 4 -------------------------- */
  .serv-sec-5 {
    padding-bottom: 0;
    justify-content: center;
    align-items: center;
  }

  .sec-5-body {
    width: 97% !important;
    height: 100% !important;
    justify-content: space-evenly;
  }
  .sec-5-row1 {
    width: 90%;
    padding: 0.4rem;
    margin-top: 0;
  }
  .sec-5-row2 {
    flex-direction: column-reverse;
    gap: 100px;
  }
  .sec-5-row1 h2 {
    font-size: 2rem;
    letter-spacing: normal;
    line-height: 0.9;
  }
  .project-modern-btn {
    margin-left: -30px;
  }
}

