/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root{
  --header-height: 3rem;
  --font-semi: 600;
}


/*===== Colores =====*/
:root{
  --first-color: #4070F4;
  --second-color: #0E2431;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --text-color: #0E2431;
  --text-secondary: #666;
  --border-color: #eee;
  --shadow-color: rgba(14,36,49,.15);
  --shadow-hover: rgba(64,112,244,.25);
}

/* Dark mode colors */
body.dark-mode {
  --first-color: #5B8EF5;
  --second-color: #E4E6EB;
  --bg-color: #0a0e27;
  --card-bg: #151b34;
  --text-color: #E4E6EB;
  --text-secondary: #B0B3B8;
  --border-color: #2a3352;
  --shadow-color: rgba(0,0,0,.3);
  --shadow-hover: rgba(91,142,245,.4);
}

/*===== Fuente y tipografia =====*/
:root{
  --body-font: 'Poppins', sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
}
@media screen and (min-width: 768px){
  :root{
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
  }
}

/*===== Margenes =====*/
:root{
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
}

/*===== z index =====*/
:root{
  --z-back: -10;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
}



/*===== BASE =====*/
*,::before,::after{
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
body{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
h1,h2,p{
  margin: 0;
}
ul{
  margin: 0;
  padding: 0;
  list-style: none;
}
a{
  text-decoration: none;
  transition: all 0.3s ease;
}
img{
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title{
  position: relative;
  font-size: 2rem;
  color: var(--text-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-2);
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.section-title::after{
  display: none;
}

.section-description{
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--mb-4);
  font-size: 0.95rem;
}
.section{
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid{
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  grid-column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}
.l-header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--bg-color);
  box-shadow: 0 1px 4px var(--shadow-color);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/*===== NAV =====*/
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}
@media screen and (max-width: 768px){
  .nav__menu{
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--card-bg);
    transition: .5s;
    box-shadow: -2px 0 10px var(--shadow-color);
  }
  
  .nav__link{
    color: var(--text-color);
  }
  
  body.dark-mode .nav__menu{
    background-color: var(--second-color);
  }
  
  body.dark-mode .nav__link{
    color: #fff;
  }
}
.nav__item{
  margin-bottom: var(--mb-4);
}
.nav__link{
  position: relative;
  color: var(--text-color);
  transition: all 0.3s ease;
  padding-bottom: 0.5rem;
}

.nav__link::after{
  content: '';
  position: absolute;
  width: 0;
  height: 0.18rem;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  transition: all 0.3s ease;
}

.nav__link:hover::after{
  width: 100%;
}
.nav__link:hover{
  position: relative;
}
.nav__link:hover::after{
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
}
.nav__logo{
  color: var(--text-color);
  font-weight: var(--font-semi);
  transition: color 0.3s ease;
}

.nav__logo:hover{
  color: var(--first-color);
}
.nav__toggle{
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*===== THEME TOGGLE =====*/
.theme-toggle{
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.theme-toggle i{
  font-size: 1.5rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.theme-toggle:hover i{
  color: var(--first-color);
  transform: rotate(20deg);
}

/*Active menu*/
.active::after{
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show{
  right: 0;
}

/*===== HOME =====*/
.home{
  min-height: calc(100vh - 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 
    "data image"
    "social image";
  align-items: center;
  gap: 4rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.home__data{
  grid-area: data;
  align-self: center;
  animation: fadeInUp 1s ease-out;
  z-index: 2;
}

.home__greeting{
  margin-bottom: 0.5rem;
}

.home__greeting-text{
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.home__title{
  margin-bottom: 1rem;
}

.home__title-name{
  font-size: 3rem;
  background: linear-gradient(135deg, var(--first-color), #0E2431);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.home__roles{
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.home__role{
  font-weight: 600;
  color: var(--first-color);
}

.cursor{
  color: var(--first-color);
  animation: blink 1s infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.home__description{
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 500px;
}

.highlight-text{
  color: var(--first-color);
  font-weight: var(--font-semi);
  background: linear-gradient(135deg, rgba(64,112,244,0.1), rgba(14,36,49,0.05));
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  border-left: 3px solid var(--first-color);
  display: inline-block;
}

.home__buttons{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.button--primary{
  background: var(--first-color);
  box-shadow: none;
}

.button--primary:hover{
  background: #5577ee;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64,112,244,.2);
}

.button--ghost{
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.button--ghost:hover{
  background: transparent;
  border-color: var(--first-color);
  color: var(--first-color);
}

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

.stat__item{
  text-align: center;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--card-bg);
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.3s ease;
}

.stat__item:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.stat__number{
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--first-color), #0E2431);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat__label{
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.home__social{
  grid-area: social;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 0;
  z-index: 2;
}

.home__social-link{
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.home__social-link i{
  font-size: 1.2rem;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.home__social-link:hover{
  background: var(--first-color);
  border-color: var(--first-color);
  transform: translateY(-2px);
}

.home__social-link:hover i{
  color: #fff;
}

.home__social-link::after{
  display: none;
}

body.dark-mode .home__social-link::after{
  display: none;
}

.home__social-link:hover::after{
  display: none;
}

.home__img{
  grid-area: image;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  z-index: 1;
  justify-self: center;
  align-self: center;
}

.home__img-photo{
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  box-shadow: 0 12px 40px rgba(64,112,244,0.3);
  border: 5px solid var(--card-bg);
  animation: fadeInScale 1s ease-out;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.home__img-photo:hover{
  transform: scale(1.05);
  box-shadow: 0 16px 50px rgba(64,112,244,0.4);
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.home__img-bg{
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(64,112,244,0.15), rgba(14,36,49,0.15));
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: 0;
}
.home__scroll{
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.home__scroll-button{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.home__scroll-button:hover{
  color: var(--first-color);
  transform: translateY(5px);
}

.home__scroll-button i{
  font-size: 1.5rem;
}

.home__scroll-button .bx-down-arrow-alt{
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.project__stats{
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.project__stat{
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project__stat i{
  color: var(--first-color);
  font-size: 1rem;
}

.projects__loading,
.projects__error{
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
}

.projects__error{
  color: var(--text-secondary);
}

.projects__error i{
  font-size: 3rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.projects__error .button{
  margin-top: 1rem;
}

/* ===== BLOG SECTION ===== */
.blog__container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog__loading{
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.spinner{
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid var(--border-color);
  border-top-color: var(--first-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.blog__card{
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog__card:hover{
  border-color: var(--first-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.blog__image{
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog__card:hover .blog__image{
  transform: scale(1.1);
}

.blog__image-container{
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--first-color), #0E2431);
}

.blog__image-overlay{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.blog__content{
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog__meta{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog__date{
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.blog__date i{
  font-size: 1rem;
}

.blog__read-time{
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.blog__read-time i{
  font-size: 1rem;
}

.blog__title{
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  font-weight: var(--font-semi);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.blog__card:hover .blog__title{
  color: var(--first-color);
}

.blog__excerpt{
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog__tag{
  background: var(--bg-color);
  color: var(--first-color);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.blog__card:hover .blog__tag{
  background: var(--first-color);
  color: #fff;
  border-color: var(--first-color);
}

.blog__footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.blog__claps{
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.blog__claps i{
  font-size: 1.1rem;
}

.blog__link{
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--first-color);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.blog__link:hover{
  gap: 0.6rem;
}

.blog__link i{
  font-size: 1rem;
}

.blog__view-more{
  text-align: center;
  margin-top: 3rem;
}

.blog__error{
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.blog__error i{
  font-size: 3rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.blog__error p{
  margin-bottom: 1rem;
}

/*BUTTONS*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: .75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: .5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.button::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.button:hover::before{
  width: 300px;
  height: 300px;
}
.button:hover{
  box-shadow: 0 10px 36px rgba(0,0,0,.15);
  transform: translateY(-3px);
}

/* ===== ABOUT =====*/
.about__container{
  row-gap: 2rem;
  text-align: center;
}

.about__content{
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.about__content--full{
  text-align: center;
}

.about__content--full .about__text{
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about__img-wrapper{
  position: relative;
  display: inline-block;
}

.about__img-wrapper img{
  width: 280px;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px var(--shadow-color);
  transition: all 0.4s ease;
}

.about__img-wrapper:hover img{
  transform: scale(1.05);
  box-shadow: 0 15px 50px var(--shadow-hover);
}

.about__img-overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(64,112,244,0.2), rgba(14,36,49,0.2));
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about__img-wrapper:hover .about__img-overlay{
  opacity: 1;
}

.about__subtitle{
  margin-bottom: var(--mb-1);
  font-size: 1.8rem;
  color: var(--text-color);
}

.about__position{
  color: var(--first-color);
  font-size: 1.1rem;
  font-weight: var(--font-semi);
  margin-bottom: var(--mb-2);
}

.about__company{
  color: var(--first-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.about__company:hover{
  text-decoration: underline;
}

.about__text{
  margin-bottom: var(--mb-2);
  line-height: 1.8;
  color: var(--text-secondary);
}

.about__img{
  justify-self: center;
}

.about__img img{
  width: 200px;
  border-radius: .5rem;
}

/* ===== SKILLS =====*/
.skills__container{
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

.skill-category{
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 25px var(--shadow-color);
  transition: all 0.3s ease;
}

.skill-category:hover{
  transform: translateY(-5px);
  box-shadow: 0 12px 35px var(--shadow-hover);
}

.category-header{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.category-icon{
  font-size: 2.5rem;
  color: var(--first-color);
  background: linear-gradient(135deg, var(--first-color), #0E2431);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-title{
  font-size: 1.5rem;
  color: var(--text-color);
  font-weight: var(--font-semi);
}

.skills-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.skill-card{
  background: transparent;
  border-radius: 0.5rem;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  position: relative;
}

.skill-card::before{
  display: none;
}

.skill-card:hover{
  transform: translateY(-2px);
  border-color: var(--first-color);
  background: rgba(64,112,244,0.03);
}

.skill-icon-wrapper{
  width: 48px;
  height: 48px;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  transition: all 0.2s ease;
}

.skill-card:hover .skill-icon-wrapper{
  transform: scale(1.05);
}

.skill-icon-wrapper i,
.skill-icon-wrapper iconify-icon{
  font-size: 1.6rem;
  color: var(--text-color);
}

.skill-card h4{
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: var(--font-semi);
}

/* ===== WORK =====*/
.work__container{
  row-gap: 2rem;
}
.work__img{
  box-shadow: 0 4px 25px rgba(14,36,49,.15);
  border-radius: .5rem;
  overflow: hidden;
}
.work__img img{
  transition: 1s;
  cursor: pointer;
}
.work__img img:hover{
  transform: scale(1.1);
}

/* ===== CONTACT =====*/
.contact__container{
  max-width: 900px;
  margin: 0 auto;
}

.contact__content{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.contact__info-section{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__header{
  margin-bottom: 0.5rem;
}

.contact__header-icon{
  display: none;
}

.contact__subtitle{
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.contact__text{
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 600px;
}

.contact__cards{
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact__card{
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.contact__card:hover{
  border-color: var(--first-color);
  background: rgba(64,112,244,0.03);
}

.contact__card-icon{
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__card-icon i{
  font-size: 1.1rem;
  color: var(--text-color);
}

.contact__card-data{
  text-align: left;
  overflow: hidden;
}

.contact__card-data h4{
  display: none;
}

.contact__card-data a{
  color: var(--text-color);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  font-weight: 500;
}

.contact__card-data a:hover{
  color: var(--first-color);
}

.contact__availability{
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.5rem;
}

.availability__status{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.status__indicator{
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.status__text{
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
}

.availability__text{
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact__form-section{
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.form__title{
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.contact__form{
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form__group{
  width: 100%;
}

.contact__input{
  width: 100%;
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
  padding: 1rem;
  border-radius: .8rem;
  border: 2px solid var(--border-color);
  outline: none;
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.contact__input:focus{
  border-color: var(--first-color);
  box-shadow: 0 0 0 3px rgba(64,112,244,0.1);
}

.contact__textarea{
  resize: vertical;
  min-height: 120px;
}

.contact__input::placeholder{
  color: var(--text-secondary);
  opacity: 0.7;
}

.contact__form .button{
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

.contact__actions{
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button--flex{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.button--outline{
  background: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
}

.button--outline:hover{
  background: var(--first-color);
  color: #fff;
}

.contact__illustration{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.contact__illustration-circle{
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(64,112,244,0.1), rgba(14,36,49,0.1));
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.contact__illustration-shape{
  position: absolute;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--first-color), #0E2431);
  opacity: 0.1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

@keyframes morphing {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

.contact__img{
  position: relative;
  max-width: 350px;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

.contact__button{
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

/* ===== FOOTER =====*/
.footer{
  background-color: var(--second-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
  padding-top: 20px;
}

body.dark-mode .footer{
  background-color: #0a0e27;
  border-top: 1px solid var(--border-color);
}


.footer__title{
  font-size: 1rem;
  margin-bottom: var(--mb-4);
}
.footer__social{
  margin-bottom: var(--mb-4);
}
.footer__icon{
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2)
}

/* ===== MEDIA QUERIES=====*/
@media screen and (min-width: 768px){
  body{
    margin: 0;
  }
  .section{
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title{
    margin-bottom: var(--mb-6);
  }
  .section-title::after{
    width: 80px;
    top: 3rem;
  }

  .nav{
    height: calc(var(--header-height) + 1rem);
  }
  .nav__list{
    display: flex;
    padding-top: 0;
  }
  .nav__item{
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle{
    display: none;
  }
  .nav__link{
    color: var(--text-color);
  }
  .nav__link:hover{
    color: var(--first-color);
  }

  .home{
    height: 100vh;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "data image"
      "social image";
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
  }
  
  .home__data{
    align-self: center;
    grid-area: data;
  }
  
  .home__title-name{
    font-size: 4rem;
  }
  
  .home__roles{
    font-size: 2rem;
  }
  
  .home__description{
    max-width: 600px;
  }
  
  .home__social{
    grid-area: social;
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .home__img{
    grid-area: image;
    justify-self: center;
    align-self: center;
    max-width: 450px;
    margin: 0;
  }
  
  .home__img-photo{
    max-width: 400px;
  }
  

@media screen and (min-width: 1024px){
  .bd-grid{
    margin-left: auto;
    margin-right: auto;
  }
  
  .home__social{
    left: 2rem;
  }
  

/* Responsive adjustments for smaller tablets */
@media screen and (max-width: 768px){
  .home__title-name{
    font-size: 2.5rem;
  }
  
  .home__roles{
    font-size: 1.3rem;
  }
  
  .home__buttons{
    flex-direction: column;
  }
  
  .button{
    width: 100%;
    justify-content: center;
  }
  
  .home__scroll{
    display: none;
  }
  
  .home{
    grid-template-columns: 1fr;
    grid-template-areas: 
      "image"
      "data"
      "social";
    padding: 2rem 1rem;
  }
  
  .home__img{
    max-width: 250px;
    margin: 1rem auto 0;
  }
  
  .home__img-photo{
    max-width: 220px;
  }
  
  .home__social{
    justify-content: center;
    margin-top: 1rem;
    gap: 0.8rem;
  }
  
  .blog__container{
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about__container{
    text-align: center;
  }
  
  .about__content{
    text-align: left;
  }
  
  .about__img-wrapper img{
    width: 220px;
  }
  

/* ===== PROJECTS SECTION ===== */
.projects__container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project__card{
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.project__card::before{
  display: none;
}

.project__card:hover{
  transform: translateY(-2px);
  border-color: var(--first-color);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.project__thumbnail{
  background: linear-gradient(135deg, rgba(64,112,244,0.08), rgba(14,36,49,0.08));
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
}

.project__thumbnail::after{
  display: none;
}

.project__icon{
  font-size: 3.5rem;
  color: var(--first-color);
  z-index: 2;
  transition: all 0.2s ease;
}

.project__card:hover .project__icon{
  transform: scale(1.05);
}

.project__content{
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.project__title{
  font-size: 1.25rem;
  color: var(--second-color);
  margin-bottom: 1rem;
  font-weight: var(--font-semi);
  transition: color 0.3s ease;
}

.project__card:hover .project__title{
  color: var(--first-color);
}

.project__description{
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.project__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project__tag{
  background: #f0f4ff;
  color: var(--first-color);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project__card:hover .project__tag{
  background: var(--first-color);
  color: #fff;
  transform: scale(1.05);
}

.project__links{
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.project__link{
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--first-color);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project__link:hover{
  gap: 0.5rem;
  transform: translateX(3px);
}

.project__link i{
  font-size: 1rem;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes colorPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

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

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for project cards */
.project__card {
  animation: slideInFromBottom 0.6s ease forwards;
  opacity: 0;
}

.project__card:nth-child(1) { animation-delay: 0.1s; }
.project__card:nth-child(2) { animation-delay: 0.2s; }
.project__card:nth-child(3) { animation-delay: 0.3s; }
.project__card:nth-child(4) { animation-delay: 0.4s; }
.project__card:nth-child(5) { animation-delay: 0.5s; }
.project__card:nth-child(6) { animation-delay: 0.6s; }

/* About image animation */
.about__img img{
  transition: all 0.4s ease;
}

.about__img img:hover{
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Nav link animation */
.nav__link{
  position: relative;
  color: #fff;
  transition: all 0.3s ease;
}

.nav__link::after{
  content: '';
  position: absolute;
  width: 0;
  height: 0.18rem;
  left: 50%;
  top: 2rem;
  background-color: var(--first-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav__link:hover::after{
  width: 100%;
}

/* Social icons animation */
.social a i {
  transition: all 0.3s ease;
}

.social a:hover i {
  transform: translateY(-3px) scale(1.1);
}

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

/* Tablets and small laptops */
@media screen and (max-width: 768px){
  .bd-grid{
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
  }
  
  .skills__container{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skills-grid{
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .contact__content{
    grid-template-columns: 1fr;
  }
  
  .contact__cards{
    gap: 0.6rem;
  }
  
  .contact__card{
    padding: 0.6rem 0.8rem;
  }
}

/* Mobile phones (landscape and portrait) */
@media screen and (max-width: 576px){
  :root{
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
  }
  
  .section{
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .section-title{
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .section-description{
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
  
  .bd-grid{
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  /* Home section */
  .home{
    padding: 1.5rem 1rem;
    min-height: auto;
  }
  
  .home__title-name{
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .home__greeting-text{
    font-size: 1rem;
  }
  
  .home__roles{
    font-size: 1.1rem;
    min-height: 2rem;
  }
  
  .home__description{
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .home__buttons{
    gap: 0.8rem;
    margin-bottom: 2rem;
  }
  
  .button{
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .home__img{
    max-width: 200px;
    margin: 1rem auto 0;
  }
  
  .home__img-photo{
    max-width: 180px;
  }
  
  .home__social{
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  
  .home__social-link{
    width: 36px;
    height: 36px;
  }
  
  .home__social-link i{
    font-size: 1rem;
  }
  
  /* About section */
  .about__subtitle{
    font-size: 1.3rem;
  }
  
  .about__position{
    font-size: 0.9rem;
  }
  
  .about__text{
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  /* Skills section */
  .skills__container{
    gap: 1.5rem;
  }
  
  .category-header{
    gap: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .category-icon{
    font-size: 1.5rem;
  }
  
  .category-title{
    font-size: 1.1rem;
  }
  
  .skills-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .skill-card{
    padding: 1rem 0.8rem;
  }
  
  .skill-icon-wrapper{
    width: 40px;
    height: 40px;
    margin-bottom: 0.6rem;
  }
  
  .skill-icon-wrapper i,
  .skill-icon-wrapper iconify-icon{
    font-size: 1.3rem;
  }
  
  .skill-card h4{
    font-size: 0.85rem;
  }
  
  /* Blog section */
  .blog__container{
    gap: 1.5rem;
  }
  
  .blog__card{
    border-radius: 0.5rem;
  }
  
  .blog__image{
    height: 180px;
  }
  
  .blog__content{
    padding: 1rem;
  }
  
  .blog__title{
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .blog__description{
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }
  
  .blog__meta{
    font-size: 0.75rem;
  }
  
  /* Contact section */
  .contact__subtitle{
    font-size: 1.2rem;
  }
  
  .contact__text{
    font-size: 0.875rem;
  }
  
  .contact__cards{
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .contact__card{
    width: 100%;
  }
  
  .contact__card-icon{
    width: 24px;
    height: 24px;
  }
  
  .contact__card-icon i{
    font-size: 1rem;
  }
  
  .contact__card-data a{
    font-size: 0.85rem;
  }
  
  .contact__availability{
    padding: 0.8rem;
  }
  
  .status__text{
    font-size: 0.85rem;
  }
  
  .availability__text{
    font-size: 0.8rem;
  }
  
  .contact__form-section{
    padding: 1.2rem;
  }
  
  .form__title{
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .contact__input{
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
  }
  
  .contact__textarea{
    min-height: 120px;
  }
  
  /* Footer */
  .footer{
    padding: 1.5rem 0;
  }
  
  .footer__title{
    font-size: 1.2rem;
  }
  
  .social a i{
    font-size: 24px !important;
  }
}

/* Extra small phones */
@media screen and (max-width: 375px){
  .home__title-name{
    font-size: 1.75rem;
  }
  
  .home__roles{
    font-size: 1rem;
  }
  
  .home__img-photo{
    max-width: 160px;
  }
  
  .home__social-link{
    width: 32px;
    height: 32px;
  }
  
  .skills-grid{
    grid-template-columns: 1fr;
  }
  
  .button{
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .contact__card-data a{
    font-size: 0.8rem;
  }
}

