@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

/* Theme colors */
:root {
  --primary: rgb(46, 45, 45);
  --secondary: rgb(223, 114, 5);
  --tertiary: #f5f5f5;
}

.jetbrains-mono {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary);
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================= NAV ================= */

nav {
  background-color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.nav-btn {
  height: 100px;
  width: 150px;
  font-size: 25px;
  border: 0;
  font-family: inherit;
  background-color: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background-color: var(--primary);
  color: var(--secondary);
}

.nav-brand {
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 14px;
}

/* ================= MAIN SECTIONS ================= */
main {
  flex: 1;
  padding: 40px 20px;
}

section {
  margin: 60px 0;
}

.section-heading {
  font-size: 50px;
  font-weight: 400;
  color: var(--secondary);
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding-bottom: 10px;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background-color: var(--secondary);
  transition: width 0.4s ease;
}

.section-heading:hover::after {
  width: 100%;
}

.section-content {
  color: var(--tertiary);
  font-size: 22px;
  max-width: 800px;
  line-height: 1.7;
}

.icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.icon {
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: 0.3s ease;
  filter: brightness(0) invert(70%);
}

.icon:hover {
  transform: scale(1.2);
  filter: brightness(1) invert(0);
}

/* ================= FOOTER ================= */
footer {
  background-color: var(--secondary);
  padding: 10px 0;
  text-align: center;
}

footer p {
  color: var(--tertiary);
  font-size: large;
  font-weight: bold;
}

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

/* Tablets and smaller */
@media screen and (max-width: 768px) {
  .nav-btn {
    height: 70px;
    width: 120px;
    font-size: 18px;
  }

  main {
    padding: 30px 15px;
  }

  section {
    margin: 40px 0;
  }

  .section-heading {
    font-size: 36px;
  }

  .section-content {
    font-size: 18px;
    line-height: 1.6;
  }

  .social-icon {
    width: 80px;
    height: 80px;
  }

  footer p {
    font-size: medium;
    padding: 0 10px;
  }
}

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

/* Tablets and smaller */
@media screen and (max-width: 768px) {
  nav {
    padding: 10px;
    gap: 5px;
  }

  .nav-brand {
    font-size: 18px;
    left: 10px;
  }

  .nav-btn {
    height: 60px;
    width: 100px;
    font-size: 16px;
  }

  main {
    padding: 30px 20px;
  }

  section {
    margin: 40px 0;
  }

  .section-heading {
    font-size: 36px;
  }

  .section-content {
    font-size: 18px;
    line-height: 1.6;
  }

  .icons {
    flex-wrap: wrap;
    gap: 15px;
  }

  .icon {
    width: 70px;
    height: 70px;
  }

  footer p {
    font-size: medium;
    padding: 0 10px;
  }
}

/* Mobile phones */
@media screen and (max-width: 600px) {
  nav {
    flex-direction: column;
    padding: 15px 10px;
    gap: 10px;
  }

  .nav-brand {
    position: static;
    font-size: 20px;
    margin-bottom: 10px;
  }

  .nav-btn {
    height: 50px;
    width: 100%;
    max-width: 300px;
    font-size: 16px;
  }

  main {
    padding: 20px 15px;
  }

  section {
    margin: 30px 0;
  }

  .section-heading {
    font-size: 32px;
  }

  .section-content {
    font-size: 16px;
    line-height: 1.6;
  }

  .icons {
    justify-content: center;
    gap: 20px;
  }

  .icon {
    width: 60px;
    height: 60px;
  }

  footer p {
    font-size: small;
    padding: 0 10px;
  }
}

/* Very small devices */
@media screen and (max-width: 360px) {
  .nav-brand {
    font-size: 18px;
  }

  .nav-btn {
    height: 45px;
    font-size: 14px;
  }

  .section-heading {
    font-size: 28px;
  }

  .section-content {
    font-size: 15px;
  }

  .icon {
    width: 55px;
    height: 55px;
  }
}
