
/*=============== VARIABLES CSS ===============*/
:root {
  --hue: 615;
  --first-color: hsl(var(--hue), 95%, 60%);
  --first-color-alt: hsl(var(--hue), 76%, 45%);
  --white-color: hsl(0, 0%, 98%);
  --black-color: hsl(0, 0%, 1%);
  --text-color: hsl(var(--hue), 2%, 66%);
  --body-color: hsl(var(--hue), 100%, 1%);
  --container-color: hsl(var(--hue), 2%, 10%);
  --conic-gradient: conic-gradient(from 150deg at 50% 45%, hsl(var(--hue), 4%, 9%) 0deg, hsl(255deg 44.8% 25.57%) 140deg, hsl(var(--hue), 8%, 12%) 360deg);
  --sb-foreground-highlight-high: hsl(165 100% 60%);
  --btn-bg: hsl(255deg 95% 60% / 55%);
  --box-shadow:  32px -24px 50px rgba(0, 0, 0, .5), 0 0 50px rgb(105 56 250), 0 2px 0px rgb(118 85 206);
  --b-radius: 50px;
  --b-rad7: 7px;
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

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

/*========== Responsive typography ==========*/
@media screen and (min-width: 1168px) {
  :root {
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

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

input,
button,
textarea {
  border: none;
  outline: none;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1168px;
  margin-inline: 1.5rem;
}

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

.section {
  padding-block: 2rem 3rem;
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}
/*=============== NAV ===============*/
.nav {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  background-color: hsla(0, 0%, 98%, .1);
  width: 88%;
  margin-inline: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: .5rem 2rem;
  border-radius: 4rem;
  z-index: var(--z-fixed);
  animation: fadeInUp 2s ease-out;
}

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

.nav__link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent;
  color: var(--white-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .6s;
  padding: 5px;
}

 #language, footer{
  background: conic-gradient(from 356deg at 50% 45%, hsl(255deg 4% 9% / 66%) 0deg, hsl(234deg 44.8% 25.57%) 175deg, hsl(255deg 8% 12% / 62%) 360deg);
}
/* Active link */
.active-link {
  background-color: var(--first-color);
}

/*=============== HOME ===============*/
/*===== PERFIL =====*/
.perfil {
  position: relative;
  background: var(--conic-gradient);
  height: 415px;
  border-radius: 2rem;
  padding: 1rem;
  display: grid;
  overflow: hidden;
}

.perfil__img {
  width: 100%;
  position: absolute;
  justify-self: center;
  align-self: center;
  -webkit-filter: invert(0%) sepia(3%) saturate(60%) hue-rotate(220deg) brightness(90%) contrast(100%);
  filter: invert(0%) sepia(3%) saturate(60%) hue-rotate(220deg) brightness(90%) contrast(100%);
}

.perfil__data {
  align-self: flex-end;
  background-color: hsla(0, 0%, 1%, .1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem 1rem;
  border-radius: 1.5rem;
  border: 1px solid hsla(0, 0%, 100%, .5);
}

.perfil__name {
  font: var(--font-regular) var(--biggest-font-size) var(--body-font);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: var(--font-semi-bold);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.perfil__buttons {
  display: grid;
  column-gap: .5rem;
  grid-template-columns: repeat(2, 1fr);
}

.perfil__buttons .button {
  padding: .75rem 0;
}

/*===== INFO =====*/
.info,
.about,
.skills {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 2rem;
}

.info__circle {
  width: 2rem;
  height: 2rem;
  background-color: var(--first-color);
  border-radius: 50%;
}

.info__name {
  font: var(--font-regular) var(--h1-font-size) var(--body-font);
  animation: fadeInUp 1s ease-out;
}

.info__data {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
}

.info__image {
  background: var(--conic-gradient);
  height: 200px;
  border-radius: 2rem;
  display: grid;
  margin-block: 1.5rem;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
}
.info__image svg {
  max-block-size: -webkit-fill-available;
  margin: 0 auto;
  padding-block-start: 0.8rem;
}
.info__img {
  width: 140px;
  justify-self: center;
  align-self: flex-end;
}

.info__description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
  animation: fadeInUp 2s ease-out 0.3s both;
}

.info .button {
  width: 100%;
}

/*===== ABOUT =====*/
.about__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}
.about__description{
  animation: fadeInUp 2s ease-out 0.3s both;
}
.about__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-block: 2rem;
}

.about__link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--white-color);
  color: var(--black-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .4s, color .4s;
}

.about__link:hover {
  background-color: var(--first-color);
  color: var(--white-color);
}

.about__image {
  background: var(--conic-gradient);
  height: 180px;
  border-radius: 2rem;
  display: grid;
  overflow: hidden;
}

.about__img {
  width: 250px;
  justify-self: center;
  transform: translateY(-2.5rem);
}

.about__note {
  font-size: var(--small-font-size);
  margin-block: 1rem 2rem;
  animation: fadeInUp 4s ease-out 0.6s both;
}

.about .button {
  width: 100%;
}

/*===== SKILLS =====*/
.skills__title {
  font-size: var(--h2-font-size);
}

.skills__item {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform .4s;
}

.skills__item:hover {
  transform: translateY(-.25rem);
}

.skills__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-block: 1.5rem;
}

.skills__description {
  font-size: var(--small-font-size);
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  justify-content: center;
  background-color: var(--btn-bg);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: .8rem 2.5rem;
  border-radius: 4rem;
  transition: background-color .4s;
}

.button__black {
  background-color: var(--black-color);
}
.button:hover {
background-image: radial-gradient(circle closest-corner at 50% 100%, #6938fa 29%, #31245b);
}

/*=============== PROJECTS ===============*/
.projects__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 2rem;
}

.projects__image {
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
}

.projects__img {
  transition: transform .4s;
}

.projects__name {
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.projects__description {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.projects__skill {
  width: 1rem;
  transition: transform .4s;
}

.projects__skill:hover {
  transform: translateY(-.25rem);
}

.projects__skills {
  width: max-content;
  height: 34px;
  background-color: var(--black-color);
  padding-inline: .75rem;
  display: flex;
  align-items: center;
  column-gap: .75rem;
  border-radius: 4rem;
  margin-bottom: 1.5rem;
}

.projects__button {
  color: var(--white-color);
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  transition: color .4s;
}

.projects__button i {
  font-size: 1.25rem;
}

.projects__button span {
  font-weight: var(--font-medium);
}

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

.projects__card:hover .projects__img {
  transform: scale(1.2);
}

/*=============== SERVICES ===============*/
.services__card {
  background-color: var(--container-color);
  padding: 4rem 1.5rem 3.5rem 1.5rem;
  border-radius: 2rem;
}

.services__card.even{
background-color: #20244b;
}

.services__icon {
  display: inline-block;
  position: relative;
  margin-bottom: 2rem;
}

.services__icon svg {
  width: 5rem;
  position: relative;
  z-index: var(--z-tooltip);
}

.services__circle {
  width: 3rem;
  height: 3rem;
  background-color: var(--first-color);
  border-radius: 50%;
  position: absolute;
  top: -1rem;
  right: -1rem;
  transition: transform .4s;
}

.services__name {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.services__description {
  color: var(--text-color);
}

.services__card:hover .services__circle {
  transform: translate(.25rem, -.25rem);
}

/*=============== language ===============*/
.skilss__container {
  row-gap: 2rem;
}

/*=============== LANGUAGE & TOOLS ===============*/
.my__skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.my__skills-list {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 17px 30px;
  background-color: var(--container-color);
  width: 145px;
  max-width: 145px;
  border-radius: var(--b-rad7) ;
}
.skills__list-ico {
  display: block;
  flex: none;
  margin-right: var(--stack-icon-margin, 10px);
  color: var(--text-color);
}
.skills__list-txt {
  display: block;
  flex-shrink: 1;
  max-width: calc(100% - var(--stack-icon-size) - var(--stack-icon-margin));
}
.skills__list-ico>* {
  display: block;
  height: var(--stack-icon-size, 20px);
  width: var(--stack-icon-size, 20px);
}
 .my__skills-list:hover {
 background-color: hsla(0, 0%, 98%, .1);
} 
.about__skills-img {
  width: 35px;
  transition: transform .4s;
}

.about__skills-img:hover {
  transform: translateY(-.5rem);
}

.skills__card {
  display: grid;
  row-gap: 1rem;
}



.language__data {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: inset 1px 0 0 0px var(--sb-foreground-highlight-high);
}

/*=============== CONTACT ===============*/
.contact__group, 
.contact__form {
  gap: 1rem;
}

.contact__form {
  position: relative;
}

.contact__input {
  background-color: var(--container-color);
  padding: 1.25rem;
  border-radius: 4rem;
  color: var(--white-color);
}

.contact__input::placeholder {
  color: var(--text-color);
}
.contact__input:autofill {
  transition: background-color 6000s, color 6000s;
}

.contact__area {
  height: 10rem;
  border-radius: 1.5rem;
  resize: none;
}

.contact__button {
  margin-top: 1.5rem;
  cursor: pointer;
}

.contact__message {
  position: absolute;
  left: 0;
  bottom: 4.5rem;
  font-size: var(--smaller-font-size);
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 2rem 8rem;
}

.footer__container {
  row-gap: 2.5rem;
}

.footer__logo {
  color: var(--white-color);
  font: var(--font-regular) var(--biggest-font-size) var(--body-font);
  justify-self: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.footer__link {
  color: var(--white-color);
  transition: color .4s;
}

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

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
}

.footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--first-color);
  color: var(--white-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .4s, color .4s;
}

.footer__social-link:hover {
  background-color: var(--white-color);
  color: var(--black-color);
}

.footer__copy {
  display: block;
  margin-top: 4.5rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(0, 0%, 20%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 30%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 40%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: hsla(0, 0%, 98%, .1);
  display: inline-flex;
  padding: 6px;
  color: var(--white-color);
  font-size: 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 5rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}
.scrollup svg {
  width: 3rem;
}
.scrollup:hover {
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 8rem;
}


/*=============== SERVICES ===============*/
.services__container {
  row-gap: 2rem;
}

.services__card {
  background-color: var(--container-color);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.services__icon {
  display: inline-block;
  font-size: 3rem;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.services__description {
  margin-bottom: 3rem;
}

.services__button {
  cursor: pointer;
}

.services__modal {
  position: fixed;
  inset: 0;
  background-color: hsla(var(--hue), 90%, 20%, .3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); /* For safari */
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  z-index: var(--z-modal);
  transition: opacity .4s, visibility .4s;
}

.services__modal-content {
  max-height: 520px;
  max-width: 650px;
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem 2.5rem;
  border-bottom: 6px solid var(--first-color);
  overflow: auto;
}
.services__modal-content p{
  color: var(--text-color);
  line-height: 1.5rem;
  font-size: var(--h3-font-size);
}
.services__modal-content::-webkit-scrollbar {
  width: .6rem;
}

.services__modal-content::-webkit-scrollbar-thumb {
  background-color: var(--text-color-light);
}

.services__modal-title {
  font-size: var(--h2-font-size);
  margin-bottom: 2.5rem;
}

.services__modal-list {
  margin-left: 1rem;
}

.services__modal-item {
  text-align: initial;
  list-style: square;
}

.services__modal-item::marker {
  color: var(--first-color);
}

.services__modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  cursor: pointer;
}
.services__modal-close svg{
  width: 3rem;
}

/* Active modal */
.active-modal {
  opacity: 1;
  visibility: visible;
}
/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 767px) {
  .info__data{
    display: none;
  }
  .about__image, .info__image{
    height: 10rem;
  }
  .about__image svg, .info__image svg{
    height: 10rem;
    margin: 0 auto;
}
  .section{padding-block: 1rem 1rem;}
  .container{margin-inline: 1rem;}
  .perfil__name{
    font-size:var(--h1-font-size);
  }
  .services__modal-content{
    padding: 2.5rem 1.5rem;
  }
}
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .nav {
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .nav {
    width: max-content;
  }
  .nav__list {
    column-gap: 1.25rem;
  }

  .home__container,
  .projects__container,
  .services__container,
  .skilss__container,
  .contact__container {
    grid-template-columns: 100%;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .home__container {
    grid-template-columns: repeat(2, 350px);
    align-items: flex-start;
  }

  .perfil {
    height: 100%;
  }

  .projects__container,
  .services__container {
    grid-template-columns: repeat(2, 350px);
  }

  .skilss__container {
    grid-template-columns: initial;
  }
  .skills__card {
    grid-template-columns: 320px 380px;
    align-items: center;
  }

  .footer__container, 
  .footer__content {
    grid-template-columns: repeat(2, max-content);
    align-items: center;
  }
  .footer__container {
    justify-content: space-between;
  }
  .footer__content {
    column-gap: 4.5rem;
  }

  .show-scroll {
    bottom: 3rem;
  }
}
/* For large devices */
@media screen and (min-width: 1200px) {
  .container {
    margin-inline: auto;
  }
  .section {
    padding-block: 4rem 4rem;
  }
  .section__title {
    font-size: var(--h1-font-size);
    margin-bottom: 4rem;
  }
  .home__container {
    grid-template-columns: 280px 560px 280px;
    align-items: stretch;
  }
  .perfil {
    grid-column: 2/3;
    grid-row: 1/3;
    padding: 2rem;
  }
  .perfil__img {
    width: 100%;
  }
  .perfil__data {
    width: 500px;
    padding: 1.5rem;
    border-radius: 2rem;
  }
  .info {
    grid-column: 1/2;
    grid-row: 1/2;
  }
  .info__name {
    font-size: var(--h2-font-size);
  }

  .about {
    grid-column: 3/4;
    grid-row: 1/3;
    align-content: center;
  }
  .about__image {
    height: 210px;
    padding: 1rem;
    animation: fadeInUp 4s ease-out;
  }
  .about__img {
    transform: translateY(-1rem);
  }
  .skills {
    grid-column: 1/2;
    grid-row: 2/3;
  }
  .skills__title {
    font-size: var(--h3-font-size);
  }
  .projects__container {
    grid-template-columns: repeat(3, 368px);
    gap: 2rem;
  }
  .projects__card{
    padding-bottom: 2rem;
  }
  .projects__card:hover {
    box-shadow: inset 0 0 0 1px var(--sb-foreground-highlight-high);
  }
  .services__container {
    grid-template-columns: repeat(3, 368px);
    gap: 2rem;
  }
  .services__card {
    padding-block: 6rem 5rem;
  }
  .services__icon i {
    font-size: 3.5rem;
  }
  .services__circle {
    width: 4rem;
    height: 4rem;
    right: -1.5rem;
    top: -1.5rem;
  }

  .skilss__container {
    row-gap: 4rem;
  }
  .skills__card {
    grid-template-columns: 320px 850px;
  }
  .language__company {
    font-size: var(--h1-font-size);
  }
  .language__data {
    padding: 2rem;
    border-radius: 2rem;
  }

  .contact__container {
    grid-template-columns: 100%;
  }
  .contact__group {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__area {
    height: 15rem;
  }
  .contact__button {
    width: max-content;
    justify-self: center;
  }

  .footer {
    padding-top: 3rem;
  }
  .footer__links {
    column-gap: 3rem;
  }
  .footer__copy {
    margin-top: 7rem;
  }
}

@media screen and (min-width: 1500px) {
  .nav {
    width: max-content;
    height: max-content;
    padding: 2rem 1rem;
    left: initial;
    right: 3rem;
    top: 0;
    bottom: 0;
    margin-block: auto;
  }
  .nav__list {
    flex-direction: column;
    row-gap: 1.25rem;
  }

  .footer {
    padding-block: 3rem;
  }

  .scrollup {
    right: 3.5rem;
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}


/* blogs */
.hero-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #2563eb;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.featured-section {
  padding: 2rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: var(--h1-font-size);
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.featured-articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
  height: 200px;
  background: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  color: white;
  overflow: hidden;
  border-radius: 12px;
}

.article-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.article-image .overlay-text {
  position: relative;
  z-index: 2;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-image .overlay-title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.article-image.tax-obligations {
  background: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.article-image.vat-guide {
  background: url('https://images.unsplash.com/photo-1551836022-deb4988cc6c0?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.article-content {
  display: none;
}

.article-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.main-featured {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.main-featured-image {
  height: 400px;
  background: url('https://images.unsplash.com/photo-1573164713714-d95e436ab8d6?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  overflow: hidden;
  border-radius: 12px;
}

.main-featured-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.main-featured-image .overlay-category {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-featured-image .overlay-title {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  line-height: 1.2;
}

.main-featured-image .overlay-buttons {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: flex;
  gap: 1rem;
}

.overlay-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.overlay-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.main-featured-content {
  display: none;
}

.main-featured-category {
  color: #2563eb;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.main-featured-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.meta-item {
  background: #f3f4f6;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #6b7280;
}

.popular-section {
  background: #f1f5f9;
  padding: 4rem 0;
  border-radius: 20px;
  margin: 2rem 0;
}

.popular-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.popular-title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-medium);
  color: var(--white-color);
}

.popular-subtitle {
  color: var(--text-color);
  margin-top: 0.5rem;
}

.read-all-btn {
  background: #1f2937;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-all-btn:hover {
  background: #111827;
  transform: translateY(-2px);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.popular-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.popular-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.popular-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  font-weight: 600;
  overflow: hidden;
  border-radius: 12px;
}

.popular-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.popular-image .overlay-category {
  position: relative;
  z-index: 2;
  padding: 1rem 1rem 0 1rem;
  font-size: 0.7rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popular-image .overlay-title {
  position: relative;
  z-index: 2;
  padding: 0 1rem 1rem 1rem;
  font-size: 0.95rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  line-height: 1.3;
}

.popular-image:nth-of-type(1) {
  background: url('https://images.unsplash.com/photo-1559526324-4b87b5e36e44?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.popular-image:nth-of-type(2) {
  background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.popular-image:nth-of-type(3) {
  background: url('https://images.unsplash.com/photo-1568992687947-868a62a9f521?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.popular-card-content {
  display: none;
}

.popular-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .featured-grid {
      grid-template-columns: 1fr;
  }

  .popular-grid {
      grid-template-columns: 1fr;
  }

  .hero-content h1 {
      font-size: 2rem;
  }

  .nav-links {
      display: none;
  }

  .newsletter-form {
      flex-direction: column;
      max-width: 300px;
  }

  .popular-header {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
  }
}