@import url("layout/header.css");
@import url("layout/banner.css");
@import url("layout/footer.css");

@import url("views/homepage.css");
@import url("views/projects.css");
@import url("views/projects-detail.css");
@import url("views/customers.css");
@import url("views/contact.css");
@import url("views/office.css");

@import url("components/buttons.css");
@import url("components/form.css");

/* ============================================== */
/* ==================== FONTS =================== */
/* ============================================== */

@font-face {
  font-family: "Cera Pro";
  font-weight: 200;
  src: url("../fonts/Cera/CeraPro-Thin.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cera Pro";
  font-weight: 300;
  src: url("../fonts/Cera/CeraPro-Light.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  font-weight: 400;
  src: url("../fonts/Cera/CeraPro-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  font-weight: 500;
  src: url("../fonts/Cera/CeraPro-Medium.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  font-weight: 600;
  src: url("../fonts/Cera/CeraPro-Bold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  font-weight: 700;
  src: url("../fonts/Cera/CeraPro-Black.ttf") format("truetype");
  font-display: swap;
}

/* ============================================== */
/* ================== VARIABLES ================= */
/* ============================================== */

:root {
  color-scheme: only light;
  --container: 1520px;
  --content-spacing: 4rem 0;
  --eg-white: #ffffff;
  --eg-black: #000000;
  --eg-red-1: #ec6766;
  --eg-red-2: #fbe0e0;
  --eg-red-3: #da2028;
  --eg-green-1: #54aea5;
  --eg-blue-1: #323d56;
  --eg-blue-2: #234261;
  --eg-blue-3: #313d56;
  --eg-blue-4: #7f87b2;
  --eg-yellow-1: #fbbb0f;
  --font-80: 5rem;
  --font-60: 3.75rem;
  --font-58: 3.625rem;
  --font-50: 3.125rem;
  --font-48: 3rem;
  --font-46: 2.875rem;
  --font-44: 2.75rem;
  --font-40: 2.5rem;
  --font-36: 2.25rem;
  --font-34: 2.125rem;
  --font-32: 2rem;
  --font-30: 1.875rem;
  --font-28: 1.75rem;
  --font-26: 1.625rem;
  --font-24: 1.5rem;
  --font-22: 1.375rem;
  --font-20: 1.25rem;
  --font-18: 1.125rem;
  --font-16: 1rem;
  --font-14: 0.875rem;
  --font-12: 0.75rem;
  --line-28: 1.75rem;
  --line-26: 1.625rem;
  --line-20: 1.25rem;
  --col-2: repeat(6, 1fr);
  --col-5: repeat(5, 1fr);
  --col-3: repeat(4, 1fr);
  --col-4: repeat(3, 1fr);
  --col-6: repeat(2, 1fr);
  --col-12: repeat(1, 1fr);
}

/* ============================================== */
/* ================== RESET CSS ================= */
/* ============================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  font-family: "Cera Pro";
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

main {
  overflow: hidden;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
}

ul,
ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0;
  outline: none;
}

input[type="number"] {
  appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}

figure {
  margin: 0;
  unicode-bidi: unset;
}

/* ============================================== */
/* ================== MAIN CSS ================== */
/* ============================================== */

.eg-container {
  padding: 0 1rem;
  max-width: var(--container);
  margin: 0 auto;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track-piece {
  background: var(--eg-white);
}

::-webkit-scrollbar-track {
  background: var(--eg-white);
}

::-webkit-scrollbar-thumb {
  background: var(--eg-black);
}

::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
}

.backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  height: 100%;
  max-width: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  transition: background-color 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.backdrop.show {
  pointer-events: all;
  opacity: 1;
  visibility: visible;
}

.alert-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 5px;
  padding: 1rem;
}

.alert-box.success {
  background: rgb(0, 207, 110);
}

.alert-box.error {
  background: rgb(242, 61, 61);
}

.alert-box > .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-box > .icon > svg {
  fill: var(--eg-white);
}

.alert-box > p {
  color: var(--eg-white);
  font-size: var(--font-20);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

@keyframes waves {
  0% {
    opacity: 0;
    scale: 0.3;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    scale: 1;
  }
}

@media (max-width: 1600px) {
  :root {
    --container: 1320px;
    --font-60: 3.375rem;
    --font-50: 2.75rem;
    --font-48: 2.625rem;
    --font-46: 2.5rem;
    --font-40: 2.25rem;
    --font-36: 2rem;
    --font-30: 1.75rem;
    --font-24: 1.375rem;
    --font-20: 1.125rem;
    --font-18: 1rem;
    --line-28: 1.625rem;
    --line-26: 1.5rem;
  }
}

@media (max-width: 1400px) {
  :root {
    --container: 1180px;
    --font-60: 3rem;
    --font-50: 2.375rem;
    --font-48: 2.25rem;
    --font-46: 2.125rem;
    --font-40: 2rem;
    --font-36: 1.75rem;
    --font-30: 1.625rem;
    --font-24: 1.25rem;
    --line-28: 1.5rem;
    --line-26: 1.375rem;
  }
}

@media (max-width: 1200px) {
  :root {
    --font-60: 2.625rem;
    --font-50: 2.125rem;
    --font-48: 2rem;
    --font-46: 1.875rem;
    --font-40: 1.75rem;
    --font-36: 1.625rem;
    --font-30: 1.5rem;
    --font-24: 1.125rem;
    --font-20: 1rem;
    --font-16: 0.875rem;
    --font-14: 0.75rem;
    --line-28: 1.375rem;
    --line-26: 1.25rem;
  }
}

@media (max-width: 992px) {
  :root {
    --font-60: 2.25rem;
    --font-50: 2rem;
    --font-48: 1.875rem;
    --font-46: 1.75rem;
    --font-40: 1.625rem;
    --font-36: 1.5rem;
    --font-30: 1.375rem;
    --line-28: 1.25rem;
    --line-26: 1.125rem;
    --content-spacing: 2rem 0;
  }
}

@media (max-width: 576px) {
  :root {
    --font-60: 2rem;
    --font-50: 1.875rem;
    --font-48: 1.75rem;
    --font-46: 1.625rem;
    --font-40: 1.5rem;
    --font-36: 1.375rem;
    --font-30: 1.25rem;
  }
  .alert-box {
    flex-direction: column;
    text-align: center;
  }
}
