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

:root {
  --bg-color: #dddddd;
  --second-bg-color: #aaaaaa;
  --text-color: #292929;
  --main-color: #0094ff;

  --font-primary: "Poppins", sans-serif;
  --font-tech: "Consolas", monospace;
  --font-brand: "Quando", serif;

  --header-height: 7rem;
  --page-padding: 8%;
  --content-width: 140rem;
}

.dark-mode {
  --bg-color: #1d1d1d;
  --second-bg-color: #383838;
  --text-color: #ededed;
  --main-color: #0094ff;
}

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

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 32rem;

  background-color: #f1f1f1;
  background-image:
    linear-gradient(rgba(0, 148, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 148, 255, 0.055) 1px, transparent 1px);

  background-size: 4rem 4rem;

  color: var(--text-color);
  font-family: var(--font-primary);
}

body.dark-mode {
  background-color: #151515;
  background-image:
    linear-gradient(rgba(0, 148, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 148, 255, 0.07) 1px, transparent 1px);
}

main {
  width: 100%;
  max-width: 180rem;
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  font: inherit;
}

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

/* =========================
   LOGO THEME SWITCH
   ========================= */

body:not(.dark-mode) .dark-logo {
  display: none;
}

body:not(.dark-mode) .light-logo {
  display: block;
}

body.dark-mode .light-logo {
  display: none;
}

body.dark-mode .dark-logo {
  display: block;
}

/* =========================
   HEADER
   ========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: var(--header-height);

  padding: 0 var(--page-padding);

  display: flex;
  align-items: center;
  gap: 3rem;

  background: var(--bg-color);

  z-index: 1000;

  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.header.sticky {
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}

.logo-img {
  display: block;
  width: clamp(20rem, 20vw, 31rem);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 2.8rem;

  white-space: nowrap;
}

.navbar a {
  font-size: 1.6rem;
  font-weight: 500;

  position: relative;
  transition: color 0.2s ease;
}

.navbar a:hover:not(.active) {
  color: var(--main-color);
  opacity: 0.7;
}
.navbar a.active {
  color: var(--main-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;

  flex-shrink: 0;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  background: transparent;
  color: var(--text-color);

  font-size: 2rem;

  cursor: pointer;
}

#menu-icon {
  display: none;
  font-size: 2.8rem;
}

/* =========================
   COMMON SECTIONS
   ========================= */

section {
  width: 100%;
  padding: 12rem var(--page-padding);
}

.heading {
  margin-bottom: 4rem;

  font-size: clamp(3.6rem, 4vw, 5rem);
  line-height: 1.2;

  text-align: center;
}

.heading span {
  color: var(--main-color);
}

/* =========================
   HOME
   ========================= */

.home {
  min-height: 100vh;

  padding: calc(var(--header-height) + 4rem) var(--page-padding) 6rem;

  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(30rem, 0.85fr);

  align-items: center;
  gap: 8rem;

  position: relative;
}

.home-content {
  width: 100%;
  max-width: 76rem;
}

.home-content h1 {
  font-family: var(--font-brand);

  font-size: clamp(4.6rem, 4.5vw, 6.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.15rem;
}

.home-content h1 span {
  color: var(--text-color);
}

.text-animate h3 {
  font-family: var(--font-tech);
  font-size: clamp(2rem, 2vw, 2.8rem);
  font-weight: 500;
  line-height: 1.3;

  color: var(--main-color);
}

.text-animate {
  margin-top: 1.2rem;
}

.home-content p {
  max-width: 62rem;

  margin: 2.4rem 0 3.2rem;

  font-size: 1.6rem;
  line-height: 1.75;
}

/* =========================
   HERO LOGO
   ========================= */

.home-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-logo {
  display: block;
  width: min(100%, 48rem);
  height: auto;
}

/* =========================
   BUTTONS
   ========================= */

.btn-box {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 15rem;
  min-height: 5rem;

  padding: 1rem 2rem;

  border: 0.2rem solid var(--main-color);
  border-radius: 0.8rem;

  background: var(--main-color);
  color: #ffffff;

  font-size: 1.6rem;
  font-weight: 600;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.btn:nth-child(2) {
  background: transparent;
  color: var(--main-color);
}

.btn:hover {
  background: transparent;
  color: var(--main-color);
}

.btn:nth-child(2):hover {
  background: var(--main-color);
  color: #ffffff;
}

/* =========================
   HOME SOCIAL LINKS
   ========================= */

.home-sci {
  position: static;

  display: flex;
  gap: 1.2rem;

  margin-top: 5rem;
}

.home-sci a {
  width: 4rem;
  height: 4rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0.2rem solid var(--main-color);
  border-radius: 50%;

  color: var(--main-color);

  font-size: 2rem;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.home-sci a:hover {
  background: var(--main-color);
  color: #ffffff;
}

/* =========================
   ABOUT
   ========================= */

.about {
  background: linear-gradient(
    to bottom,
    var(--second-bg-color) 0%,
    var(--second-bg-color) 88%,
    var(--bg-color) 100%
  );
}

.about-layout {
  max-width: var(--content-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(36rem, 0.9fr) minmax(0, 1.1fr);
  gap: 10rem;

  align-items: start;
}

.about-heading {
  position: sticky;
  top: calc(var(--header-height) + 4rem);
}

.section-label {
  margin-bottom: 1.5rem;

  font-family: var(--font-tech);
  font-size: 1.4rem;
  color: var(--main-color);
}

.about-heading h2 {
  font-family: var(--font-brand);
  font-size: clamp(3.8rem, 3.6vw, 5.4rem);
  font-weight: 400;
  line-height: 1.15;
}

.about-heading h2 span {
  display: block;
}

.about-heading h2 span:first-child {
  color: var(--text-color);
}

.about-heading h2 span:last-child {
  color: var(--main-color);
}

.about-content {
  max-width: 76rem;
}

.about-content h3 {
  max-width: 68rem;

  margin-bottom: 3rem;

  font-size: clamp(2.4rem, 2.2vw, 3rem);
  font-weight: 500;
  line-height: 1.35;
}

.about-content p {
  margin-bottom: 2.2rem;

  font-size: 1.7rem;
  line-height: 1.8;
}

/* =========================
   SERVICES
   ========================= */

.services {
  background: linear-gradient(
    to bottom,
    var(--bg-color) 0%,
    var(--bg-color) 92%,
    var(--second-bg-color) 100%
  );
}

.services-header {
  max-width: var(--content-width);
  margin: 0 auto 3rem;
}

.services-header h2 {
  font-family: var(--font-brand);
  font-size: clamp(4rem, 4vw, 5.8rem);
  font-weight: 400;
  line-height: 1.15;
}

.services-header h2 span:first-child {
  color: var(--text-color);
}

.services-header h2 span:last-child {
  color: var(--main-color);
}

.services-container {
  max-width: var(--content-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
}

.services-box {
  position: relative;

  min-height: 30rem;
  padding: 3.2rem 3.2rem 5rem;

  border: 0.1rem solid rgba(127, 127, 127, 0.25);
  border-radius: 1.2rem;

  background: var(--bg-color);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.services-box:hover {
  transform: translateY(-0.6rem);

  border-color: var(--main-color);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.08);
}

.service-number {
  position: absolute;
  right: 2rem;
  bottom: 2rem;

  font-family: var(--font-tech);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--main-color);
}

.services-box h3 {
  margin-bottom: 2rem;

  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.services-box p {
  margin-bottom: 1.8rem;

  font-size: 1.6rem;
  line-height: 1.7;
}

.services-box p:last-child {
  margin-bottom: 0rem;
}

/* =========================
   TECHNOLOGIES
   ========================= */

.technology {
  background: linear-gradient(
    to bottom,
    var(--second-bg-color) 0%,
    var(--second-bg-color) 88%,
    var(--bg-color) 100%
  );
}

.technology-layout {
  max-width: var(--content-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(32rem, 0.8fr) minmax(0, 1.2fr);
  gap: 10rem;
  align-items: start;
}

.technology-heading {
  position: sticky;
  top: calc(var(--header-height) + 4rem);
}

.technology-heading h2 {
  font-family: var(--font-brand);
  font-size: clamp(3.8rem, 3.6vw, 5.4rem);
  font-weight: 400;
  line-height: 1.15;
}

.technology-heading h2 span {
  display: block;
}

.technology-heading h2 span:first-child {
  color: var(--text-color);
}

.technology-heading h2 span:last-child {
  color: var(--main-color);
}

.technology-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 4rem;
}

.technology-box {
  position: relative;

  padding: 3rem 0 3rem 4rem;

  border-top: 0.1rem solid rgba(127, 127, 127, 0.35);
}

.technology-number {
  position: absolute;
  top: 3.3rem;
  left: 0;

  font-family: var(--font-tech);
  font-size: 1.3rem;
  color: var(--main-color);
}

.technology-box h3 {
  margin-bottom: 1.2rem;

  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.technology-box p {
  font-size: 1.6rem;
  line-height: 1.7;
}

/* =========================
   CONTACT
   ========================= */

.contact {
  background: linear-gradient(
    to bottom,
    var(--bg-color) 0%,
    var(--bg-color) 92%,
    var(--second-bg-color) 100%
  );
}

.contact-layout {
  max-width: var(--content-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(34rem, 0.8fr) minmax(0, 1.2fr);
  gap: 10rem;
  align-items: start;
}

.contact-heading {
  margin-bottom: 6rem;
}

.contact-heading h2 {
  font-family: var(--font-brand);
  font-size: clamp(4.6rem, 5vw, 7rem);
  font-weight: 400;
  line-height: 1.1;
}

.contact-heading h2 span {
  display: inline;
}

.contact-heading h2 span:first-child {
  color: var(--text-color);
}

.contact-heading h2 span:last-child {
  color: var(--main-color);
}

.contact-content {
  max-width: 82rem;
  margin-left: auto;
  text-align: left;
}

.contact-content h3 {
  margin-bottom: 2rem;

  font-size: clamp(2.4rem, 2.2vw, 3rem);
  font-weight: 500;
  line-height: 1.35;
}

.contact-content > p {
  margin-bottom: 4rem;

  font-size: 1.7rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: center;
  gap: 2rem;

  padding: 2rem 0;

  border-top: 0.1rem solid rgba(127, 127, 127, 0.35);

  color: var(--text-color);
  font-size: 1.6rem;

  transition: color 0.2s ease;
}

.contact-item:last-child {
  border-bottom: 0.1rem solid rgba(127, 127, 127, 0.35);
}

.contact-item:hover {
  color: var(--main-color);
}

.contact-label {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  color: var(--main-color);
}

/* =========================
   FOOTER
   ========================= */

.footer {
  padding: 2.5rem var(--page-padding);

  background: var(--second-bg-color);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-text p {
  font-size: 1.4rem;
  line-height: 1.6;
}

.footer-services {
  margin-top: 0.3rem;
  font-size: 1.3rem;
  opacity: 0.8;
}

.footer-iconTop a {
  width: 4rem;
  height: 4rem;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  border: 0.1rem solid var(--main-color);
  border-radius: 0.6rem;

  background: transparent;
  color: var(--main-color);

  font-size: 2.4rem;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-iconTop a:hover {
  background: var(--main-color);
  color: #ffffff;
  transform: translateY(-0.3rem);
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1200px) {
  .navbar {
    display: none;
  }

  #menu-icon {
    display: inline-flex;
  }

  .navbar.active {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: var(--page-padding);
    left: auto;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 24rem;
    padding: 1rem 1.4rem;

    background: var(--bg-color);
    border: 0.1rem solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.1);
  }

  .navbar.active a {
    width: 100%;
    padding: 1rem 0.8rem;
    font-size: 1.6rem;
  }

  .home {
    grid-template-columns: minmax(0, 1.1fr) minmax(28rem, 0.9fr);
    gap: 4rem;
  }

  .hero-logo {
    width: min(100%, 40rem);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-heading {
    position: static;
  }

  .about-content {
    max-width: 100%;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  .technology-layout {
    grid-template-columns: minmax(32rem, 0.7fr) minmax(0, 1.3fr);
    gap: 6rem;
  }

  .technology-heading {
    position: static;
  }

  .technology-container {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 800px) {
  :root {
    --page-padding: 5%;
    --header-height: 6.4rem;
  }

  html {
    font-size: 58%;
  }

  .logo-img {
    width: 22rem;
  }

  .header {
    gap: 1.2rem;
  }

  .header-actions {
    gap: 1rem;
    margin-left: auto;
  }

  .home {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-top: calc(var(--header-height) + 5rem);
    text-align: center;
  }

  .home-content {
    max-width: 70rem;
    margin: 0 auto;
  }

  .home-img {
    order: -1;
  }

  .hero-logo {
    width: min(70vw, 32rem);
  }

  .home-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-box {
    justify-content: center;
  }

  .home-sci {
    position: static;
    margin-top: 3rem;
    justify-content: center;
  }

  .technology-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile section rhythm */
  section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .home {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
  }

  .about,
  .services,
  .technology,
  .contact {
    min-height: auto;
  }
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {
  html {
    font-size: 55%;
  }

  .header {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .header-actions {
    gap: 1.8rem;
  }

  .logo-img {
    width: 18rem;
  }

  #language-icon {
    font-size: 1.5rem;
  }

  #darkMode-icon {
    font-size: 1.8rem;
  }

  #menu-icon {
    font-size: 2.6rem;
  }

  section {
    padding: 6rem 2rem;
  }

  .navbar.active {
    left: var(--page-padding);
    right: var(--page-padding);
    width: auto;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .home {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
  }
}
