/*=============== GOOGLE FONTS ===============*/ 
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:wght@500;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/ 
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  --hue-color: 190;

  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 64%, 22%);
  --first-color-second: hsl(var(--hue-color), 64%, 22%);
  --first-color-alt: hsl(var(--hue-color), 64%, 15%);
  --title-color: hsl(var(--hue-color), 64%, 18%);
  --text-color: hsl(var(--hue-color), 24%, 35%);
  --text-color-light: hsl(var(--hue-color), 8%, 60%);
  --input-color: hsl(var(--hue-color), 24%, 97%);
  --body-color: hsl(var(--hue-color), 100%, 99%);
  --white-color: #fff;
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 75%);

  /*========== Font and typography ==========*/
  --body-font: "Open Sans", sans-serif;
  --title-font: "Raleway", sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes Bottom ==========*/
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;

  /*========== Hover overlay ==========*/
  --img-transition: 0.3s;
  --img-hidden: hidden;
  --img-scale: scale(1.1);
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*========== Variables Dark theme ==========*/ 
body.dark-theme {
  --first-color-second: hsl(var(--hue-color), 54%, 12%);
  --title-color: hsl(var(--hue-color), 24%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 29%, 12%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

/*========== Button Dark/Light ==========*/ 
.nav__dark {
  display: flex;
  align-items: center;
  column-gap: 2rem;
  position: absolute;
  left: 3rem;
  bottom: 4rem;
}

.change-theme, .change-theme-name {
  color: var(--text-color);
}

.change-theme {
  cursor: pointer;
  font-size: 1rem;
}

.change-theme-name {
  font-size: var(--small-font-size);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--title-font);
}

ul { list-style: none; }
a { text-decoration: none; }

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

button, input {
  border: none;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

button { cursor: pointer; }
input { outline: none; }

.main { overflow-x: hidden; }

/*=============== REUSABLE CSS CLASSES ===============*/ 
.section {
  padding: 4.5rem 0 2.5rem;
}

.section__title {
  font-size: 50px;
  color: var(--title-color);
  text-align: center;
  text-transform: capitalize;
  margin-bottom: var(--mb-2);
}

.section__title1 {
  font-size: 50px;
  color: #24283c;
  text-align: center;
  text-transform: capitalize;
  margin-bottom: var(--mb-2);
}

.container {
  max-width: 968px;
  margin-left: var(--mb-1);
  margin-right: var(--mb-1);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/*=============== HEADER ===============*/ 
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/ 
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo, .nav__toggle {
  color: white;
}

.nav__logo { font-weight: var(--font-semi-bold); }
.nav__toggle { font-size: 1.2rem; cursor: pointer; }

.nav__menu { position: relative; }

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--body-color);
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    box-shadow: -1px 0 4px rgba(14, 55, 63, 0.15);
    padding: 3rem;
    transition: 0.4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--text-color-light);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
}

.nav__link:hover { color: var(--text-color); }

.nav__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* show menu */
.show-menu { right: 0; }

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 0 4px rgba(14, 55, 63, 0.15);
}

.scroll-header .nav__logo, 
.scroll-header .nav__toggle {
  color: var(--title-color);
}

.active-link {
  position: relative;
  color: var(--title-color);
}

.active-link::before {
  content: "";
  position: absolute;
  background-color: var(--title-color);
  width: 100%;
  height: 2px;
  bottom: -0.75rem;
  left: 0;
}

.home__data-subtitle, 
.home__data-title, 
.home__social-link, 
.home__info {
  color: var(--white-color);
  font-size: 60px;
}

@media screen and (min-width: 768px) {
  body { margin: 0; }
  .nav { height: calc(var(--header-height) + 1.5rem); }
  .nav__link { color: var(--white-color); text-transform: initial; }
  .nav__link:hover { color: var(--white-color); }
  .nav__dark { position: initial; }
  .nav__menu { display: flex; column-gap: 1rem; }
  .nav__list { flex-direction: row; column-gap: 4rem; }
  .nav__toggle, .nav__close { display: none; }
  .change-theme-name { display: none; }
  .change-theme { color: var(--white-color); }
  .active-link::before { background-color: var(--white-color); }
  .scroll-header .nav__link { color: var(--text-color); }
  .scroll-header .active-link { color: var(--title-color); }
  .scroll-header .active-link::before { background-color: var(--title-color); }
  .scroll-header .change-theme { color: var(--text-color); }
  .section { padding: 7rem 0 2rem; }
}

/*=============== HOME DOS ARTIGOS ===============*/ 
.home__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: 83%;
}

.home__container {
  position: relative;
  height: calc(100vh - var(--header-height));
  align-content: center;
  row-gap: 3rem;
}

.home__data-subtitle,
.home__data-title,
.home__social-link,
.home__info {
  color: var(--white-color);
}

.home__data-subtitle {
  display: block;
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-75);
  font-size: 30px;
}

.home__data-title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-2-5);
}

.home__social {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.home__social-link {
  font-size: 1.2rem;
  width: max-content;
}

.home__info {
  background-color: var(--first-color);
  display: flex;
  padding: 1.5rem 1rem;
  align-items: center;
  column-gap: 0.5rem;
  position: absolute;
  right: 0;
  bottom: 1rem;
  width: 228px;
}

.home__info-title {
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-75);
}

.home__info-button {
  font-size: var(--smaller-font-size);
}

.home__info-overlay {
  overflow: var(--img-hidden);
}

.home__info-img {
  width: 145px;
  transition: var(--img-transition);
}

.home__info-img:hover {
  transform: var(--img-scale);
}
@media screen and (min-height: 721px) {
  body {
    margin: 0;
  }
  .home__container,
  .home__img {
    height: 640px;
  }
}
.button1 {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  transition: 0.3s;
  margin-left: 30px;
}

.button1:hover {
  background-color: var(--first-color-alt);
}
.home__social {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.home__social-link {
  font-size: 1.2rem;
  width: max-content;
}
.home__social {
  flex-direction: row;
  align-self: flex-end;
  margin-bottom: 3rem;
  column-gap: 2.5rem;
}
/*=============== LISTA DE ARTIGOS ===============*/ 
.articles {
  padding: 4rem 2rem;
}

.section__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1e2435;
}

.articles__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/*=============== CARD DE ARTIGO ===============*/ 
.article__item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 6px solid #0d9488;
}

.article__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-left: 6px solid #0f766e;
}

.article__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article__content { padding: 1rem; }

.article__tag {
  font-size: 0.9rem;
  color: #6b7280;
  display: block;
  margin-bottom: 0.5rem;
  padding-top: 20px;
}

.article__title {
  font-size: 1.4rem;
  color: #1e2435;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.article__description {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

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

.article__link {
  font-weight: 600;
  color: #0d9488;
  transition: 0.3s;
}

.article__link:hover { color: #0f766e; }

.article__author {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

/*=============== RESPONSIVIDADE CARDS ===============*/ 
@media screen and (min-width: 768px) {
  .article__item { flex-direction: row; height: 280px; }
  .article__image img { width: 100%; height: 100%; }
  .article__content { padding: 1.8rem; flex: 1; }
}

/*=============== FOOTER ===============*/ 
.footer__container { row-gap: 5rem; }
.footer__content {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}
.footer__title, .footer__subtitle { font-size: var(--h3-font-size); }
.footer__title { margin-bottom: var(--mb-0-5); }
.footer__description { margin-bottom: var(--mb-2); }
.footer__social {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1-25);
}
.footer__subtitle { margin-bottom: var(--mb-1); }
.footer__item { margin-bottom: var(--mb-0-75); }
.footer__link { color: white; }
.footer__link:hover { color: var(--title-color); }
.footer__rights {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  text-align: center;
}
.footer__copy, .footer__terms-link {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.footer__terms {
  display: flex;
  column-gap: 1.5rem;
  justify-content: center;
}
.footer__terms-link:hover { color: var(--text-color); }
.footer__rights { flex-direction: row; justify-content: space-between; }
.footer__content { justify-items: center; }

/*=============== RESPONSIVIDADE GLOBAL ===============*/
@media screen and (max-width: 576px) {
  .section { padding: 3rem 1rem; }

  .section__title,
  .section__title1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .nav__menu { width: 100%; padding: 2rem; }
  .nav__list { row-gap: 1.5rem; }

  .articles__home { padding: 3rem 1rem; }
  .articles__home-title { font-size: 1.8rem; }
  .articles__home-subtitle {
    font-size: 1rem;
    padding: 1rem 0 2rem 0;
  }

  .articles__list { gap: 1.5rem; padding: 0 1rem; }

  .article__item { flex-direction: column; height: auto; }
  .article__image img { height: 180px; }
  .article__title { font-size: 1.2rem; }
  .article__description { font-size: 0.95rem; }

  .footer__rights {
    flex-direction: column;
    row-gap: 1rem;
    text-align: center;
  }
}

@media screen and (max-width: 350px) {
  .articles__home-title { font-size: 1.5rem; }
  .articles__home-subtitle { font-size: 0.9rem; }
  .article__image img { height: 150px; }
  .article__title { font-size: 1rem; }
}
