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

::selection {
  background-color: black;
  color: white;
}

html {
  scroll-behavior: smooth;
}

#footer {
  cursor: auto;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* ===========================
   NAVBAR
=========================== */

.navbar {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);

  width: 92%;
  max-width: 1400px;

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

  padding: 18px 40px;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);

  z-index: 1000;

  transition: all 0.35s ease;
}

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

.logo {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.logo a {
  text-decoration: none;
  color: #111;

  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 12px;

  transition: opacity 0.3s ease;
}

.logo a:hover {
  opacity: 0.7;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  position: relative;

  text-decoration: none;
  color: #111;

  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2.5px;

  padding: 10px;

  padding-left: 20px;
  padding-right: 20px;

  border-radius: 999px;

  transition: all 0.3s ease;
}

/* Active Page */

.nav-links a.active {
  background: #111;

  color: white;
}

/* Hover */

.nav-links a:hover {
  background: #111;

  color: white;

  transform: translateY(-2px);
}

/* ===========================
   MOBILE MENU BUTTON
=========================== */

.menu-toggle {
  display: none;

  background: none;
  border: none;

  font-size: 24px;

  cursor: pointer;
}

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

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 20px);
    max-width: 85dvw;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 20px;

    border-radius: 18px;
  }

  .logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;

    margin: 0;
  }

  .logo a {
    margin: 0;
    font-size: 22px;
    letter-spacing: 8px;
  }

  .menu-toggle {
    display: block;

    background: none;
    border: none;

    font-size: 22px;

    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    margin-top: -5px;

    top: calc(100% + 12px);
    left: 0;

    width: 100%;

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

    gap: 24px;

    padding: 28px 0;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 18px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);

    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      visibility 0.35s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 13px;
  }
}

/* ===================================
   SECTION HEADINGS
=================================== */

.heading {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 80px;
  text-align: center;
}

.heading .small-title {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3mm;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 20px;
}

.heading h2 {
  font-family: "Poppins", sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 30px;
  text-transform: capitalize;
  color: #111;
}

.heading .description {
  width: 90%;
  margin: 0 auto;

  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;

  color: #555;
}

/* Mobile */

@media (max-width: 768px) {
  .heading {
    margin-bottom: 50px;
    padding: 0 20px;
  }

  .heading .small-title {
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    letter-spacing: 2mm;
    margin-bottom: 15px;
  }

  .heading h2 {
    font-size: 26px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 20px !important;
    text-transform: capitalize;
  }

  .description {
    width: 100% !important;
    font-family: "Poppins", sans-serif;
    font-size: 14px !important;
    font-weight: 300;
    line-height: 1.8;
    margin-top: 0;
  }
}

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

.blog-hero {
  position: relative;

  width: 100%;
  min-height: 100dvh;

  display: flex;
  align-items: center;

  background: #000;

  overflow: hidden;
}

/* Optional subtle gradient */

.blog-hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background: black;
}

/* ==========================
   CONTENT
========================== */

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 90%;

  margin: auto;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Small Title */

.hero-content .small-title {
  font-family: "Poppins", sans-serif;

  font-size: 14px;
  font-weight: 500;

  letter-spacing: 4mm;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.65);

  margin-top: 250px !important;
}

/* Main Heading */

.hero-content h1 {
  font-family: "Poppins", sans-serif;

  font-size: 65px;

  font-weight: 400;

  line-height: 1.08;

  letter-spacing: 1mm;

  color: #fff;

  max-width: 1600px;

  margin-bottom: 0px;
}

/* Description */

.hero-description {
  font-family: "Poppins", sans-serif;

  width: 800px;
  max-width: 100%;

  font-size: 18px;
  font-weight: 300;

  line-height: 2;

  color: rgba(255, 255, 255, 0.72);

  margin-bottom: 20px;
}

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

.hero-buttons {
  display: flex;
  gap: 18px;
  padding-bottom: 150px;
}

.primary-btn,
.secondary-btn {
  font-family: "Poppins", sans-serif;

  text-decoration: none;

  padding: 16px 34px;

  border-radius: 999px;

  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.2mm;

  transition: 0.35s ease;
}

/* Primary */

.primary-btn {
  background: #fff;
  color: #000;

  border: 1px solid white;
}

.primary-btn:hover {
  transform: translateY(-4px);

  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.18);
}

/* Secondary */

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);

  color: white;

  background: transparent;
}

.secondary-btn:hover {
  background: white;
  color: black;

  transform: translateY(-4px);
}

/* The bottom row */
.blog-hero .bottom-row {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0px;
  text-align: center;
  margin-top: 100px;
}

.blog-hero .bottom-row > .box {
  grid-area: 2 / 1;
  background-color: white;
  width: 30px;
  height: 30px;
  margin-left: 0px;
  transition: all ease-in-out 0.3s;
  border-radius: 100%;
}

.blog-hero .bottom-row > .box:hover {
  transform: scale(1.2) !important;
}

.blog-hero .bottom-row > .apps {
  grid-area: 2 / 2;
  text-align: center;
}

.blog-hero .bottom-row > .apps > p {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  letter-spacing: 1.2mm;
  color: white;
}

.blog-hero .bottom-row > .socials {
  grid-area: 2 / 3;
  text-align: end;
  margin-right: 0px !important;
}

.blog-hero .bottom-row > .socials {
  display: flex;
  justify-content: end; /* centers icons horizontally */
  align-items: end;
  gap: 0.5rem; /* space between icons */
  margin-bottom: 15px;
}

.blog-hero .bottom-row > .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.blog-hero .bottom-row > .socials a:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.blog-hero .bottom-row > .socials img {
  width: 30px;
  height: 30px;
}

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

/* ===================================
   HERO - MOBILE
=================================== */

@media (max-width: 768px) {
  .blog-hero {
    min-height: 100dvh;
    padding-top: 0px;

    display: flex;
    align-items: center;
  }

  .hero-content {
    width: 90%;
    max-width: 100%;

    margin: 0 auto;
    text-align: center;
  }

  .hero-content .small-title {
    font-family: "Poppins", sans-serif;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 2mm;

    margin-bottom: 20px;

    text-align: center;

    margin: 0 auto;
  }

  .hero-content h1 {
    font-family: "Poppins", sans-serif;

    font-size: 32px;
    font-weight: 400;

    line-height: 1.2;

    letter-spacing: -1px;

    margin-bottom: 25px;

    margin: 0 auto;

    text-align: center;

    margin-top: 20px;
  }

  .hero-description {
    width: 100%;

    font-family: "Poppins", sans-serif;

    font-size: 12px;
    font-weight: 300;

    line-height: 1.9;

    margin-bottom: 35px;
    text-align: center;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;

    gap: 15px;

    width: 100%;

    padding-bottom: 0px !important;
  }

  .primary-btn,
  .secondary-btn {
    width: 80%;

    text-align: center;

    padding: 15px 20px;

    font-size: 12px;
    margin: 0 auto;
  }

  .scroll-indicator {
    display: none;
  }

  /* The bottom row */
  .blog-hero .bottom-row {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    padding: 0px;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 20px;
  }

  .blog-hero .bottom-row > .box {
    grid-area: 2 / 1;
    background-color: white;
    width: 10px;
    height: 10px;
    transition: all ease-in-out 0.3s;
    border-radius: 100%;
    margin: auto;
    display: none;
  }

  .blog-hero .bottom-row > .box:hover {
    transform: scale(1.2) !important;
  }

  .blog-hero .bottom-row > .apps {
    grid-area: 1 / 1;
    text-align: center;
  }

  .blog-hero .bottom-row > .apps > p {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    letter-spacing: 1.2mm;
    margin-bottom: 25px !important;
    color: white;
  }

  .blog-hero .bottom-row > .socials {
    grid-area: 3 / 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  .blog-hero .bottom-row > .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4px;
    height: 4px;
    transition: all 0.3s ease;
  }

  .blog-hero .bottom-row > .socials a:hover {
    transform: scale(1.2);
  }

  .blog-hero .bottom-row > .socials img {
    width: 25px;
    height: 25px;
  }
}

/* ===================================
   FEATURED ARTICLE
=================================== */

.featured {
  width: 90%;
  max-width: 90%;
  margin: 140px auto;
}

/* Card */

.featured-card {
  margin-top: 70px;

  display: grid;
  grid-template-columns: 1.2fr 1fr;

  gap: 60px;
  align-items: center;

  background: #fff;

  border: 1px solid #e8e8e8;
  border-radius: 28px;

  overflow: hidden;

  transition: all 0.35s ease;
}

.featured-card:hover {
  transform: translateY(-8px);

  border-color: #111;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

/* Image */

.featured-image {
  height: 100%;
}

.featured-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;

  object-fit: cover;

  display: block;
}

/* Content */

.featured-content {
  padding: 60px;
}

.category {
  display: inline-block;

  padding: 8px 18px;

  background: #111;
  color: #fff;

  border-radius: 999px;

  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;

  letter-spacing: 1px;
  text-transform: uppercase;

  margin-bottom: 25px;
}

.featured-content h3 {
  font-family: "Poppins", sans-serif;

  font-size: 40px;
  font-weight: 400;

  color: #111;

  line-height: 1.25;

  margin-bottom: 25px;
}

.featured-content p {
  font-family: "Poppins", sans-serif;

  font-size: 16px;
  font-weight: 300;

  color: #666;

  line-height: 1.9;

  margin-bottom: 40px;
}

.featured-content a {
  display: inline-flex;
  align-items: center;

  color: #111;

  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;

  text-decoration: none;

  transition: all 0.3s ease;
}

.featured-content a:hover {
  transform: translateX(8px);
}

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

@media (max-width: 768px) {
  .featured {
    width: 90%;
    margin: 80px auto;
  }

  .featured-card {
    grid-template-columns: 1fr;

    gap: 0;

    border-radius: 20px;
  }

  .featured-image img {
    min-height: 260px;
  }

  .featured-content {
    padding: 30px 25px;
  }

  .featured-content h3 {
    font-size: 28px;
  }

  .featured-content p {
    font-size: 15px;
  }

  .category {
    font-size: 12px;
    padding: 7px 16px;
  }
}

/* ===================================
   LATEST ARTICLES
=================================== */

.articles {
  width: 95%;
  max-width: 95%;
  margin: 140px auto;
}

/* Grid */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 70px;
}

/* Card */

.article-card {
  background: #fff;

  border: 1px solid #e8e8e8;
  border-radius: 24px;

  overflow: hidden;

  transition: all 0.35s ease;
}

.article-card:hover {
  transform: translateY(-8px);

  border-color: #111;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Image */

.article-card img {
  width: 100%;
  height: 240px;

  object-fit: cover;

  display: block;
}

/* Category */

.article-card span {
  display: inline-block;

  margin: 30px 30px 18px;

  padding: 7px 16px;

  background: #111;
  color: #fff;

  border-radius: 999px;

  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 500;

  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Title */

.article-card h3 {
  margin: 0 30px 18px;

  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 400;

  color: #111;

  line-height: 1.35;
}

/* Description */

.article-card p {
  margin: 0 30px 30px;

  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 300;

  color: #666;

  line-height: 1.8;
}

/* Link */

.article-card a {
  display: inline-flex;

  margin: 0 30px 35px;

  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;

  color: white;
  background-color: black;
  padding: 15px;
  border-radius: 10px;

  text-decoration: none;

  transition: all 0.3s ease;
}

.article-card a:hover {
  transform: translateX(8px);
}

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

@media (max-width: 768px) {
  .articles {
    width: 90%;
    margin: 80px auto;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;

    margin-top: 50px;
  }

  .article-card {
    border-radius: 20px;
  }

  .article-card img {
    height: 220px;
  }

  .article-card span {
    margin: 25px 25px 16px;
  }

  .article-card h3 {
    margin: 0 25px 16px;

    font-size: 24px;
  }

  .article-card p {
    margin: 0 25px 25px;

    font-size: 15px;
  }

  .article-card a {
    margin: 0 25px 30px;
  }
}

/* ===================================
   CATEGORIES
=================================== */

.categories {
  width: 90%;
  max-width: 90%;
  margin: 140px auto;
}

/* Grid */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 70px;
}

/* Category Card */

.category-grid div {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 120px;
  padding: 20px;

  background: #fff;

  border: 1px solid #e8e8e8;
  border-radius: 20px;

  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;

  color: #111;
  text-align: center;

  cursor: pointer;

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

/* Hover */

.category-grid div:hover {
  transform: translateY(-8px);

  border-color: #111;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Decorative top border */

.category-grid div::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 0;
  height: 4px;

  background: #111;

  transition: width 0.35s ease;
}

.category-grid div {
  position: relative;
  overflow: hidden;
}

.category-grid div:hover::before {
  width: 100%;
}

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

@media (max-width: 768px) {
  .categories {
    width: 90%;
    margin: 40px auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;

    margin-top: 50px;
  }

  .category-grid div {
    min-height: 20px;

    font-size: 12px;

    padding: 20px 18px;

    border-radius: 16px;
  }

  .category-grid div:hover {
    transform: translateY(-4px);
  }
}

/* ===================================
   CTA
=================================== */

.cta {
  width: 90%;
  max-width: 95%;

  margin: 20px auto;

  padding: 100px 60px;

  background: black;
  color: #fff;

  border-radius: 30px;

  text-align: center;

  overflow: hidden;
  position: relative;
}

/* Decorative background */

.cta::before {
  content: "";

  position: absolute;

  width: 450px;
  height: 450px;

  top: -180px;
  right: -180px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);
}

.cta::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  bottom: -120px;
  left: -120px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.03);
}

/* Keep content above circles */

.cta .heading {
  position: relative;
  z-index: 2;
}

/* Small Title */

.cta .small-title {
  color: #d0d0d0;

  letter-spacing: 3px;
  text-transform: uppercase;

  margin-bottom: 20px;
}

/* Heading */

.cta h2 {
  font-family: "Poppins", sans-serif;

  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;

  line-height: 1.15;

  margin-bottom: 25px;

  color: #fff;
}

/* Description */

.cta .description {
  width: 700px;
  max-width: 100%;

  margin: 0 auto 45px;

  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 300;

  line-height: 1.9;

  color: rgba(255, 255, 255, 0.75);
}

/* Button */

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

  padding: 18px 42px;

  background: #fff;
  color: #111;

  border: 1px solid #fff;
  border-radius: 999px;

  text-decoration: none;

  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;

  transition: all 0.35s ease;
}

.cta-btn:hover {
  background: transparent;
  color: #fff;

  transform: translateY(-4px);
}

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

@media (max-width: 768px) {
  .cta {
    width: 85%;

    margin: 20px auto;

    padding: 70px 25px;

    border-radius: 24px;
  }

  .cta .description {
    width: 100%;

    margin: 25px auto 35px;
  }

  .cta-btn {
    width: 80%;

    padding: 16px 25px;

    font-size: 12px !important;
  }

  .cta::before {
    width: 260px;
    height: 260px;

    top: -100px;
    right: -100px;
  }
}

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

#footer {
  width: auto;
  background: #000;
  color: #fff;
  padding: 80px 0 30px;
}

.footer-container {
  width: 90%;
  margin: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand h3 {
  font-family: "Poppins", sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #d6d6d6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 25px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column a {
  color: #d6d6d6;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  margin-bottom: 15px;
  transition: 0.3s;
}

.footer-column a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-bottom {
  margin-top: 30px;

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

.footer-bottom p {
  font-family: "Poppins", sans-serif;
  color: #bdbdbd;
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a {
  color: #bdbdbd;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  transition: 0.3s;
}

.footer-bottom-links a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  #footer {
    padding: 60px 0 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-brand p {
    font-size: 14px;
  }

  .footer-column a {
    font-size: 14px;
  }

  .footer-column h4 {
    font-size: 16px;
    margin-bottom: 10px !important;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom-links a {
    font-size: 12px;
  }
}
