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

/*=============== VARIABLES CSS ===============*/
:root {

  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(108, 81%, 18%);
  --black-color: hsl(0, 0%, 0%);
  --black-color-light: hsl(0, 0%, 40%);
  --white-color: hsl(0, 0%, 95%);
  --title-color: hsl(0, 0%, 10%);
  --text-color: hsl(0, 0%, 35%);
  --text-color-light: hsl(0, 0%, 64%);
  --body-color: hsl(0, 0%, 95%);
  --container-color: hsl(0, 0%, 90%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Bai Jamjuree", sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

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

  /* Grid Effects */
  --grid-base: var(--first-color);
  --grid-accent: hsl(108, 81%, 28%);
  --grid-size: 40px;
  --grid-speed: 40s;
  --grid-blend: overlay;
  --grid-opacity-light: 0.2;
  --grid-opacity-dark: 0.4;
  
  /* Futuristic Effects */
  --glow-color: hsla(108, 81%, 45%, 0.3);
  --scan-line-color: hsla(108, 81%, 45%, 0.1);
  --tech-pattern: hsla(108, 81%, 45%, 0.05);

  --primary-glow: hsl(108, 81%, 45%);
  --secondary-glow: hsl(108, 81%, 35%);
  --particle-size: 2px;
  --grid-spacing: 60px;
  --grid-color: rgba(222, 255, 189, 0.05);
  --core-color: rgba(222, 255, 189, 0.8);
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 3rem;
    --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;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color .4s; /*for dark mode*/
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== THEME ===============*/
.nav__buttons{
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.change-theme{
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color .3s;
}

/*========== Variables Dark theme ==========*/
body.dark-theme{
  --first-color: hsl(103, 63%, 35%);
  --black-color: hsl(0, 0%, 18%);
  --black-color-light: hsl(0, 0%, 30%);
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 70%);
  --body-color: hsl(0, 0%, 8%);
  --container-color: hsl(0, 0%, 12%);
}

/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/

.dark-theme .shadow-header{
  box-shadow: 0 1px 12px hsla(0,0%,0%,.6);
}

.dark-theme .section__title-1,
.dark-theme .section__title-2{
color: var(--white-color);
}

.dark-theme .projects__title{
  color: var(--whicolor);
}

.dark-theme .section__title-2 span{
  color: var(--white-color);
}

.dark-theme .section__title-1::after,
.dark-theme .section__title-2::after{
  background-color: #56625b94;
}

.dark-theme h2.services__title{
  color: #deffbd;
}

.dark-theme :is(.home__arrow, .home__line, .about__line){
  filter: none;
}

.dark-theme .home__description b{
  background: linear-gradient(90deg,
  #56625b94,
  hsla(14,80%,50%,0));
}

.dark-theme :is(.button__ghost, .services__icon i){
  color: var(--white-color);
}


.dark-theme .projects__card:hover{
  background-color: var(--body-color);
}

.dark-theme :is(.contact__mail, .contact__input, .contact__label){
  background-color: var(--container-color);
}

.dark-theme .footer{
  background-color: hsl(0,0%,4%);
}

.dark-theme::-webkit-scrollbar{
  background-color: hsl(0, 0%, 20%);
}

.dark-theme::-webkit-scrollbar-thumb{
  background-color: hsl(0, 0%, 30%);
}

.dark-theme::-webkit-scrollbar-thumb:hover{
  background-color: hsl(0, 0%, 40%);
}
/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

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

.section__title-1, 
.section__title-2 {
  position: relative;
  font-size: var(--h1-font-size);
  width: max-content;
  margin: .75rem auto 2rem;
  color: var(--black-color);
}

.section__title-2 {
  color:  #deffbd;
}

.contact__data .section__title-2{
  color: rgb(44, 83, 4);
}


.section__title-1 span, 
.section__title-2 span {
  z-index: 5;
  position: relative;
}

.section__title-1::after, 
.section__title-2::after {
  content: "";
  width: 40px;
  height: 28px;
  background-color: #56625b94;
  position: absolute;
  top: -4px;
  right: -8px;
}

.section__title-2::after {
  top: initial;
  bottom: -4px;
}

.geometric-box {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--first-color);
  rotate: -30deg;
}

.geometric-box::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--black-color);
  left: -5px;
  top: -5px;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s , background-color .4s; /*for dark mode*/;
}

.nav{
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.nav__logo{
  display: flex;
  column-gap: .5rem;
  align-items: center;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.nav__logo-circle,
.nav__toggle{
  width: 32px;
  height: 32px;
  background-color: var(--black-color);
  color: var(--white-color);
  display: grid;
  place-items: center;
}

.nav__logo-circle{
  border-radius: 50%;
}

.nav__toggle{
  font-size: 1.25rem;
  cursor: pointer;
}

/* Navigation for mobile devices */

@media screen and (max-width : 1150px){
  .nav__menu{
    position: fixed;
    top: -100%;
    left: 0;
    background-color: hsla(0,0%,0%,.75);
    width: 100%;
    padding-block: 1.8rem 5rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: top .4s;
  }
}

.nav__title,
.nav__name,
.nav__close{
  color: var(--white-color);
}

.nav__title{
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 3.5rem;
}

.nav__name{
  position: relative;
  width: max-content;
  margin: 0 auto 3rem;
  font-size: var(--h2-font-size);
}

.nav__name::after,
.nav__name::before{
  content: '';
  width: 40px;
  height: 1px;
  background-color: var(--text-color-light);
  position: absolute;
  top: 50%;
  left: -4rem;
}

.nav__name::before{
  left: initial;
  right: -4rem;
}

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

.nav__link{
  position: relative;
  color: var(--text-color-light);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: color .3s;
}


.nav__link::after{
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  position: absolute;
  left: 0;
  bottom: -.5rem;
  transition: width .3s;
}

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

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

.nav__close{
  position: absolute;
  font-size: 1.5rem;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
}
/* Show menu */
.show-menu{
  top:0;
}

/* Add shadow header */
.shadow-header{
  box-shadow: 0 1px 16px hsla(0,0%,0%,.12);
}

/* Active link */ 

.active-link{
  color: var(--white-color);
}

.active-link::after{
  width: 25%;
}

/*=============== HOME ===============*/

.home__container{
  padding-top: 2rem;
}

.home__name{
  font-size: var(--biggest-font-size);
  text-align: center;
}

.home__perfil{
  position: relative;
  justify-self: center;
}

.home__image{
  width: 220px;
}

.home__img{
  position: relative;
  z-index: 10;
}

.home__shadow{
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  position: absolute;
  bottom: -.75rem;
  right: -.75rem;
  border: 4px solid var(--black-color);
  z-index: 5;
  transition: background-color .4s;
}

.home__arrow,
.home__line{
  position: absolute;
  width: 50px;
  transition: filter .4s;
}

.home__arrow{
  left: 40%;
  bottom: -4rem;
}

.home__line{
  right: -2rem;
  bottom: -.5rem;
}

.home__perfil .geometric-box{
  top: 2.5rem;
  left: -.7rem;
  z-index: 10;
}

/* .geometric-box{
  animation: moveUpDown 10s linear infinite;
}

@keyframes moveUpDown {
  0% { top: 0; }
  50% { top: 20px; }
  100% { top: 0; }
} */

.home__social{
  height: max-content;
  position: absolute;
  left: -3rem;
  top: 0;
  bottom: 0;
  margin: auto 0 ;
  display: grid;
  row-gap: 1rem;
}

.home__social-link{
  background-color: var(--black-color-light);
  color: var(--white-color);
  font-size: 1.25rem;
  padding: 6px;
  display: grid;
  place-items: center;
  transition: background-color .3s;
}

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

.home__info{
  margin-top: 4rem;
}

.home__description{
  text-align: center;
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

.home__description b{
  background: linear-gradient(90deg,
  #56625b94,
  hsla(114,98%,50%,0));
}

.home__scroll{
  display: block;
  width:max-content;
  margin: 0 auto;
}

.home__scroll-text{
  display: none;
}

.home__scroll-box{
  background-color: var(--black-color);
  color:#deffbd;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .4s;
}

.home__scroll-box i{
  animation: scroll-down 3s infinite;
}
@keyframes scroll-down {
  0%{
    transform: translateY(-1rem);
    opacity: 0;
  }
  50%{
    transform: translateY(0);
    opacity: 1;
  }
  100%{
    transform: translateY(.6rem);
    opacity: 0;
  }
  
}
/* Animate scroll icon */

/*=============== BUTTON ===============*/
.button,
.button__ghost{
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
}

.button{
  background-color: var(--black-color);
  padding: 1.1rem 1.5rem;
  color: var(--white-color);
  font-weight: var(--font-medium);
  transition: background-color .4s;
}

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

.button__ghost{
  border: 3px solid var(--black-color);
  color: var(--black-color);
  padding: .5rem;
  transition: border .4s, color .4s;
}

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

.button__ghost:hover{
  border: 3px solid var(--first-color);
}
/*=============== ABOUT ===============*/
.about{
  background-color: var(--container-color);
  transition: background-color .4s;
}

.about__container{
  row-gap: 0;
}


.about__perfil{
  position: relative;
  justify-self: center;
  margin-block: 2.5rem 4.5rem;
}

.about__image{
  width: 220px;
}

.about__img{
  position: relative;
  border: 4px solid var(--white-color);
  z-index: 1;
}

.about__shadow,
.about__line,
.about__box{
  position: absolute;
}

.about__shadow{
  width: 150px;
  height: 385px;
  background-color: var(--body-color);
  top: -2.5rem;
  right: -3.5rem;
  border-bottom: 4px solid var(--first-color);
  transition: background-color .4s;
}

.about__perfil .geometric-box{
  top: 1.5rem;
  right: -2.8rem;
}

.about__line{
  filter: invert(1);
  right: -2.25rem;
  top: 6rem;
  width: 50px;
  transition: filter .4s;
}

.about__box{
  width: 40px;
  height: 40px;
  background-color: var(--first-color);
  right: -.5rem;
  bottom: 1.5rem;
}

.about__info{
  padding-left: 1.25rem;
}

.about__description{
  position: relative;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.about__description::after{
  content: "";
  width: 20px;
  height: 1px;
  background-color: var(--title-color);
  position: absolute;
  left: -1.75rem;
  top: .5rem;
}

.about__list{
  list-style: square;
  color: var(--title-color);
  margin-bottom: 3rem;
}

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


/*=============== SERVICES ===============*/
.services__container{
  grid-template-columns: 250px;
  justify-content: center;
  row-gap: 2rem;
  padding-top: 1rem;
}

.services__card{
  position: relative;
}

.services__content{
  height: 100%;
  background-color: var(--body-color);
  border: 4px solid var(--black-color);
  padding: 6rem 1rem 3rem;
  z-index: 5;
  position: relative;
  transition: background-color .4s, border 4s;
}

.services__border{
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid var(--first-color);
  top: 0;
  left: 0;
  transition: transform .4s;
}

.services__card:hover .services__border{
  transform: translate(.75rem, .75rem);
}

.services__icon{
  position: relative;
  display: inline-block;
}

.services__icon i{
  font-size: 2rem;
  color: var(--black-color);
  position: relative;
  z-index: 5;
}

.services__box{
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--first-color);
  right: -2px;
  top: -2px;
}

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




/*=============== PROJECTS ===============*/

.projects{
  background-color: var(--container-color);
  transition: background-color .4s;
}

.projects__container{
  row-gap: 2rem;
}


.projects__card{
  padding: 1rem 1rem 2rem;
  transition: background-color .4s;
}

.projects__image{
  position: relative;
  margin-bottom: .75rem;
}

.projects__button{
  position: absolute;
  right: 1rem;
  bottom: -1.5rem;
  padding: 1rem;
}

.projects__content{
  margin-bottom: 1.25rem;
}

.projects__subtitle{
  position: relative;
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: .75rem;
  padding-left: 1.75rem;
}

.projects__subtitle::after{
  content: '';
  width: 20px;
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  top: 50%;
  left: 0;
}

.projects__title{
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
  color: var(--black-color);
}

.projects__buttons{
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.projects__link{
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--text-color);
  font-size: var(--font-medium);
  font-weight: var(--font-medium);
  transition: color .4s;
}

.projects__link i{
  font-size: 1rem;
  color: var(--title-color);
  transition: color .4s;
}

.projects__link:hover,
.projects__link:hover i{
  color: var(--first-color);
}

.projects__card:hover{
  background-color: var(--white-color);
}
/*=============== CONTACT ===============*/
.contact{
  padding-bottom: 0;
}

.contact__container{
  position: relative;
  grid-template-rows: 300px max-content max-content;
  row-gap: 0;
}

.contact__data{
  position: relative;
  width: 300px;
  height: 300px;
  background-color: var(--container-color);
  padding: 3rem 1.5rem 3.5rem;
  margin-left: auto;
  border-bottom: 4px solid var(--first-color);
  z-index: 5;
  transition: background-color .4s;
}

.contact__data .section__title-2{
  margin: 0 0 1.5rem;
  transform: translateX(-3rem);

}

.contact__description-1{
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-bottom: 2rem;
}

.contact__description-2{
  color: var(--title-color);
  font-size: var(--small-font-size);
}


.contact__data .geometric-box{
  top:2rem;
  right: 2.5rem;
}

.contact__mail{
  position: relative;
  background-color: var(--black-color);
  padding: 5rem 1.5rem 2.5rem;
  margin-top: -2.5rem;
  transition: background-color .4s;
}

.contact__title{
  color: var(--white-color);
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
  text-align: center;
}
.contact__form,
.contact__group{
  display: grid;
  row-gap: 1.25rem;
}

.contact__form{
  position: relative;
}

.contact__box{
  position: relative;
  width: 100%;
  height: 58px;
}

.contact__input{
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--black-color);
  border: 3px solid var(--black-color-light);
  color: var(--white-color);
  padding: .5rem 1rem;
  font-weight: var(--font-medium);
  transition: border .4s, background-color .4s;
}

.contact__input::placeholder{
  color: var(--text-color-light);
  transition: opacity .4s;
}

.contact__input:focus{
  border: 3px solid var(--white-color);
}

.contact__input:-webkit-autofill{
  transition: background-color 6000s, color 6000s;
}

.contact__label{
  position: absolute;
  top: 8px;
  left: 10px;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  background-color: var(--black-color);
  padding: 8px;
  pointer-events: none;
  transition: top .4s, opacity .4s, background-color .4s;
  opacity: 0;
}

.contact__form .contact__area{
  height: 10rem;
}

.contact__area textarea{
  resize: none;
  padding-top: 1rem;
}

.contact__button{
  background-color: var(--first-color);
  cursor: pointer;
} 

/* Opaque placeholder */
.contact__input:focus::placeholder{
  opacity: 0;
}

/* Move label up & sticky label */
.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown).contact__input:not(:focus) + .contact__label{
  opacity: 1;
  top: -16px;
}

textarea:focus ~ .contact__label,
.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown).contact__input:not(:focus) ~ .contact__label{
  opacity: 1;
  top: -16px;
}

.contact__social{
  display: grid;
  row-gap: 1rem;
  background-color: hsl(0,0%,10%);
  padding-block: 1rem 2rem;
  text-align: center;
}

.contact__social-arrow{
  width: 32px;
  margin: 0 auto;
}

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

.contact__social-description-1{
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin-bottom: .5rem;
}

.contact__social-description-2{
  color: var(--white-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

.contact__social-links{
  display: flex;
  justify-content: center;
  column-gap: .75rem;
}

.contact__social-link{
  background-color: var(--black-color-light);
  padding: 6px;
  color: var(--white-color);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  transition: background-color .3s;
}

.contact__social-link:hover{
  background-color: var(--first-color);
}

.contact__message{
  color: var(--white-color);
  font-size: var(--small-font-size);
  position: absolute;
  bottom: -1.6rem;
  left: 0;
}
/*=============== FOOTER ===============*/
.footer {
  background-color: var(--black-color);
  padding: 4rem 0 2rem;
}

.footer__container {
  width: 100%;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer__left {
  flex: 1;
  max-width: 300px;
}

.footer__right {
  flex: 2;
  max-width: 500px;
}

.footer__title {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.footer__links{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link{
  color: var(--text-color-light);
  transition: color .3s;
}

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

.footer__newsletter {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

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

.newsletter__icon-wrapper {
  background: var(--first-color);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white-color);
}

.newsletter__text {
  flex: 1;
}

.newsletter__title {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-bottom: 0.25rem;
  font-weight: var(--font-semi-bold);
}

.newsletter__subtitle {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  line-height: 1.5;
}

.newsletter-form {
  margin-bottom: 0.75rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.375rem;
  transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
  border-color: var(--first-color);
  box-shadow: 0 0 0 2px rgba(var(--first-color), 0.1);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: var(--white-color);
  font-size: var(--normal-font-size);
}

.newsletter-input::placeholder {
  color: var(--text-color-light);
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-button {
  background: var(--first-color);
  color: var(--white-color);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background: hsl(108, 81%, 22%);
  transform: translateY(-1px);
}

.newsletter-button i {
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.newsletter-button:hover i {
  transform: translateX(4px);
}

.newsletter-terms {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  text-align: center;
  line-height: 1.5;
  opacity: 0.7;
}

/* Dark theme adjustments */
.dark-theme .newsletter__section {
  background: rgba(255, 255, 255, 0.03);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .newsletter__section {
    padding: 1.5rem;
  }

  .newsletter__header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-button {
    width: 100%;
    justify-content: center;
  }
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__copy {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.footer__copy a {
  color: var(--white-color);
  font-weight: var(--font-medium);
}

/* Responsive adjustments */
@media screen and (max-width: 968px) {
  .footer__content {
    flex-direction: column;
    gap: 3rem;
  }

  .footer__left,
  .footer__right {
    max-width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .footer__container {
    padding: 2rem 1rem;
  }

  .footer__content {
    padding: 0;
  }

  .footer__right {
    width: 100%;
    max-width: 100%;
  }

  .newsletter__section {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 1.25rem;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-input-group {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .newsletter-input {
    width: 100%;
    padding: 0.875rem;
    text-align: center;
  }

  .newsletter-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    justify-content: center;
  }
}

@media screen and (max-width: 375px) {
  .footer__container {
    padding: 2rem 0.75rem;
  }

  .newsletter__section {
    max-width: 320px;
    padding: 1rem;
  }

  .newsletter-input-group {
    max-width: 280px;
    padding: 0.625rem;
  }

  .newsletter-input {
    padding: 0.75rem;
  }

  .newsletter-button {
    max-width: 280px;
    padding: 0.75rem;
  }

  .newsletter__icon-wrapper {
    margin: 0 auto;
  }

  .newsletter__text {
    text-align: center;
    width: 100%;
  }

  .newsletter-terms {
    max-width: 280px;
    margin: 0.875rem auto 0;
  }
}

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

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

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

/*=============== SCROLL UP ===============*/
.scrollup{
  position:fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--black-color);
  display: inline-flex;
  padding: 8px;
  font-size: 1.25rem;
  color: #deffbd;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s, background-color .4s;
}

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

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px){
  .container{
    margin-inline: .5rem; /* Reduce margins for very small screens */
  }

  .home__image{
    width: 180px;
  }

  .home__perfil{
    width: 100%; /* Ensure profile section doesn't overflow */
    padding-inline: 1rem; /* Add padding instead of overflow */
  }

  .home__social{
    left: 0; /* Adjust social icons position */
  }

  .about__image{
    width: 180px;
  }

  .about__shadow{
    height: 330px;
    right: -2.5rem;
  }

  .contact__data{
    width: 100%;
  }

  .contact__data .section__title-2{
    transform: translateX(0);
  }

  .chat-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
  }

  .projects__card{
    width: 100%;
    margin-inline: auto;
    padding: 1rem .75rem 1.5rem;
  }

  .projects__image{
    width: 100%;
    margin-bottom: .75rem;
  }

  .projects__img{
    width: 100%;
    object-fit: cover;
  }

  .projects__content{
    padding-inline: .5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px){
  .home__container,
  .about__container,
  .projects__container{
    grid-template-columns: 350px;
    justify-content: center;
  }

  .contact__data{
    width: 350px;
    padding: 4rem 1.5rem;
    margin-inline: auto;
  }

  .contact__container{
    grid-template-columns: 500px;
    justify-content: center;
  }

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

  .contact__social{
    background-color: transparent;
  }

  /* .contact__social-arrow{
    filter: invert(1);
  } */

  .contact__social-description-1{
    color: var(--text-color);
  }

  /* .contact__social-description-2{
    color: var(--title-color);
  } */

  .dark-theme .contact__social-arrow{
    filter: none;
  }
}


@media screen and (min-width: 768px){
  .services__container{
    grid-template-columns: repeat(2, 350px);
  }

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

/* For large devices */

@media screen and (min-width: 1150px){

  .container{
    margin-inline: auto;
  }
  .section{
    padding-block: 7rem 2rem;
  }

  .section__title-1::after,
  .section__title-2::after{
    width: 70px;
    height: 48px;
  }

  .section__title-2 {
    color:  #deffbd;
  }
  
  .contact__data .section__title-2{
    color: rgb(44, 83, 4);
  }

  .geometric-box{
    transform: scale(1.2);
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
    column-gap: 4rem;
  }

  .nav__close,
  .nav__toggle,
  .nav__title,
  .nav__name{
    display: none;
  }

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

  .nav__menu{
    margin-left: auto;
  }

  .nav__link{
    color: var(--text-color);
    font-size: var(--normal-font-size);
  }

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

  .nav__link::after{
    background-color: var(--title-color);
  }

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

  .nav__link-button{
    background-color: var(--black-color);
    color: var(--white-color);
    padding: 1.1rem 1.5rem;
  }

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

  /* .nav__link-button::after{
    background-color: transparent;
  } */

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

  .change-theme:hover{
    color: var(--title-color);
  }

  .home__container{
    grid-template-columns: repeat(2,460px);
    gap: 2rem 4rem;
    align-items: center;
    padding-block: 5.5rem;
  }

  .home__perfil{
    grid-column: 2/3;
    grid-row: 1/3;
  }

  .home__image{
    width: 350px;
  }

  .home__shadow{
    right: -1.25rem;
    bottom: -1.25rem;
    border: 6px solid var(--black-color);
  }

  .home__name,
  .home__description{
    text-align: initial;
  }

  .home__name{
    align-self: flex-end;
  }

  .home__info{
    margin-top: 0;
    align-self: flex-start;
  }

  .home__description{
    position: relative;
    font-size: var(--h2-font-size);
    margin-bottom: 5.5rem;
    padding-left: 3rem;
  }

  .home__description::after{
    content: '';
    width: 32px;
    height: 2px;
    background-color: var(--white-color);
    position: absolute;
    left: 0;
    top: 14px;
  }


  .home__scroll{
    margin: 0;
    display: flex;
    align-items: center;
    column-gap: .75rem;
  } 

 .home__scroll-text{
    display: block;
    color:#deffbd;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
  }

  .home__scroll-box{
   width: 44px;
   height: 44px;
  }

  .home__scroll-box i{
    font-size: 1.25rem;
  }

  .home__perfil .geometric-box{
    top: 15rem;
  }

  .home__arrow{
    top: 4.5rem;
    left: -8rem;
    rotate: 80deg;
    width: 80px;
  }

  .home__line{
    left: -15rem;
    bottom: 4rem;
    width: 80px;
    rotate: 30deg;
  }

  .home__social{
    left: initial;
    right: -6rem;
  }

  .home__social-link{
    font-size: 1.5rem;
    padding: .5rem;
  }

  .about__container{
    grid-template-columns: 440px 525px;
    gap: 1rem 9rem;
    align-items: center;
    padding-block: 1rem;
  }

  .about__perfil{
    order: -1;
    grid-row: 1/3;
  }

  .about__image{
    width: 350px;
  }

  .about__img{
    border: 8px solid var(--white-color);
  }

  .about__shadow{
    width: 240px;
    height: 615px;
    top: -4rem;
    right: -5.5rem;
    border-bottom: 6px solid var(--first-color);
  }

  .about__perfil .geometric-box{
    right: -4rem;
    top: 4.5rem;
  }

  .about__line{
    width: 80px;
    right: -2rem;
    top: 10rem;
  }

  .about__box{
    width: 64px;
    height: 64px;
    right: -.75rem;
  }

  .about__container .section__title-1{
    align-self: flex-end;
    margin-inline: 0;
  }

  .about__info{
    align-self: flex-start;
    padding-left: 3rem;
  }

  .about__description{
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
  }

  .about__description::after{
    width: 32px;
    height: 2px;
    left: -3rem;
    top: 14px;
  }

  .about__list{
    margin-bottom: 5rem;
  }

  .about__buttons{
    justify-content: initial;
  }

  .buttons__ghost{
    padding: .75rem;
  }

  .button__ghost i{
    font-size: 1.5rem;
  }

  .services__container{
    grid-template-columns: repeat(3, 282px);
    column-gap: 5rem;
    padding-block: 3rem 5rem;
  }

  .services__content{
    padding: 6.5rem 1.5rem 3.5rem;
    border: 6px solid var(--black-color);
  }

  .services__icon i{
    font-size: 3rem;
  }

  .services__box{
    width:32px ;
    height: 32px;
  }

  .services__title{
    margin-bottom: 1.5rem;
  }

  .services__card:hover .services__border{
    transform: translate(1.25rem, 1.25rem);
  }

  .projects__container{
    grid-template-columns: repeat(3,352px);
    padding-block: 3rem 1rem;
  }

  .projects__card{
    padding: 1.25rem 1.25rem 2.5rem;
  }

  .projects__image{
    margin-bottom: 1rem;
  }

  .projects__content{
    margin-bottom: 2rem;
  }

  .projects__button{
    right: 1.25rem;
  }

  .contact__container{
    grid-template-columns: 440px 670px;
    grid-template-rows: initial;
    padding-bottom: 2rem;
  }

  .contact__mail{
    grid-column: 2/3;
    grid-row: 1/3;
    padding: 7rem 5.5rem 6rem 7.5rem;
    margin-top: 0;
  }

  .contact__title{
    font-size: var(--h3-font-size);
    text-align: initial;
  }

  .contact__box{
    height: 60px;
  }

  .contact__form .contact__area{
    height: 11rem;
  }

  .contact__button{
    margin-top: 1.25rem;
    width: max-content;
  }

  .contact__data{
    width: 381px;
    height: 375px;
    padding: 4.5rem 3.5rem 3.5rem;
    margin: 7.5rem 0 0 8rem;
    border-bottom: 6px solid var(--first-color);
  }

  .contact__data .section__title-2{
    margin: 0 0 2rem;
    transform: translateX(-6.5rem);
  }

  .contact__social{
    margin-left: 8rem;
    text-align: initial;
  }

  .contact__social-data{
    flex-direction: row;
    align-items: center;
    column-gap: 1.25rem;
  }

  .contact__social-arrow{
    width: 40px;
  }

  .contact__social-link{
    font-size: 1.5rem;
    padding: .5rem;
  }

  .contact__message{
    bottom: -2.5rem;
  }

  .dark-theme .contact__data{
    box-shadow: 4px 0 8px hsla(0,0%,4%,.3);
  }

  .footer__container{
    padding-block: 4rem;
    grid-template-columns: repeat(2,max-content);
    justify-content: space-between;
  }

  .footer__links{
    column-gap: 3rem;
    order: 1;
  }

  .scrollup{
    right: 3rem;
  }

}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* Use viewport width */
  height: 100vh; /* Use viewport height */
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20px, 1fr)); /* Responsive grid */
  grid-template-rows: repeat(auto-fill, minmax(20px, 1fr));
  gap: 2px;
  pointer-events: none;
  background: #0a0e14;
  overflow: hidden; /* Prevent grid overflow */
}

.grid-bg::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, rgba(100, 255, 100, 0.05) 100%);
}

.grid-bg .cell {
  background: rgba(100, 255, 100, 0.03);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(100, 255, 100, 0.05);
}

/* Floating button container */
.chat-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
}

/* Main chat button */
.chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:var(--first-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.chat-button i{
  font-size: 1.5rem;
  color: #deffbd;
}

/* Social icons container */
.social-icons {
  position: absolute;
  bottom: 70px;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

/* When active */
.social-icons.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Individual social buttons */
.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.social-icon:hover {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Icon colors */
.messenger { color: #006AFF; }
.viber { color: #7360F2; }
.telegram { color: #229ED9; }

/* Pulse animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Hover effect on main button */
.chat-button:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.newsletter-iframe {
  width: 100% !important;
  min-width: unset !important;
  max-width: 100% !important;
  background: transparent !important;
  mix-blend-mode: lighten;
}

.home__cta-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.medium-follow-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--first-color);
  color: var(--white-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
}

.medium-follow-btn i {
  font-size: 1.25rem;
}

.medium-follow-btn:hover {
  background: var(--black-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dark theme adjustments */
.dark-theme .medium-follow-btn {
  background: var(--first-color);
  color: var(--white-color);
}

.dark-theme .medium-follow-btn:hover {
  background: var(--black-color);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .home__cta-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .medium-follow-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Remove old Medium subscription styles */
.medium-subscribe-form,
.medium-iframe,
.newsletter-iframe {
  display: none;
}

/* Cyber Grid Styles */
.cyber-grid {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: 
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  animation: gridPulse 8s infinite alternate;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.cyber-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(var(--grid-base) 1px, transparent 0),
    linear-gradient(90deg, var(--grid-base) 1px, transparent 0),
    repeating-linear-gradient(
      45deg,
      var(--tech-pattern) 0px,
      var(--tech-pattern) 10px,
      transparent 10px,
      transparent 20px
    );
  background-size: 
    calc(var(--grid-size) * 2) calc(var(--grid-size) * 2),
    calc(var(--grid-size) * 2) calc(var(--grid-size) * 2),
    100px 100px;
  animation: 
    gridMove var(--grid-speed) linear infinite,
    techPatternMove 20s linear infinite;
  opacity: var(--grid-opacity-light);
  mix-blend-mode: overlay;
}

.cyber-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(
      to bottom,
      transparent 50%,
      var(--scan-line-color) 50%,
      var(--scan-line-color) 51%,
      transparent 51%
    );
  background-size: 100% 8px;
  animation: scanlines 10s linear infinite;
  opacity: 0.3;
  pointer-events: none;
}

/* Enhanced Text Readability */
.section__title-1, 
.section__title-2,
.home__name,
.home__description,
.about__description,
.services__title,
.projects__title {
  position: relative;
  color: var(--title-color);
  text-shadow: 
    0 1px 1px rgba(0,0,0,0.1),
    0 0 15px var(--glow-color);
  z-index: 1;
}

.dark-theme .section__title-1,
.dark-theme .section__title-2,
.dark-theme .home__name,
.dark-theme .home__description,
.dark-theme .about__description,
.dark-theme .services__title,
.dark-theme .projects__title {
  color: var(--white-color);
  text-shadow: 
    0 1px 2px rgba(0,0,0,0.2),
    0 0 20px var(--glow-color);
}

/* Text Container Enhancement */
.home__description,
.about__description,
.services__content,
.projects__content {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* New Animations */
@keyframes techPatternMove {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 0 0, 100px 100px;
  }
}

@keyframes scanlines {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes gridPulse {
  0%, 100% {
    opacity: var(--grid-opacity-light);
    filter: brightness(0.9) contrast(1.1) saturate(1.1);
  }
  50% {
    opacity: var(--grid-opacity-dark);
    filter: brightness(1.2) contrast(1.3) saturate(1.3);
  }
}

/* Performance Optimizations */
.cyber-grid,
.cyber-grid::before,
.cyber-grid::after {
  transform: translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Advanced Hover Effects */
.button:hover,
.nav__link:hover,
.projects__card:hover {
  text-shadow: 0 0 15px var(--glow-color);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  :root {
    --grid-size: 20px;
    --grid-speed: 30s;
  }
  
  .cyber-grid::before {
    background-size: 
      calc(var(--grid-size) * 2) calc(var(--grid-size) * 2),
      calc(var(--grid-size) * 2) calc(var(--grid-size) * 2),
      50px 50px;
  }
}

/* System Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .cyber-grid {
    background: 
      linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  }
  
  .cyber-grid::before {
    opacity: var(--grid-opacity-dark);
  }
}

/* Additional Text Contrast Improvements */
.nav__link,
.footer__link,
.contact__description-1,
.contact__description-2 {
  color: var(--text-color);
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
  font-weight: var(--font-medium);
}

.dark-theme .nav__link,
.dark-theme .footer__link,
.dark-theme .contact__description-1,
.dark-theme .contact__description-2 {
  color: var(--white-color);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Cyberpunk Background System */
.cyber-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: var(--body-color);
    overflow: hidden;
    z-index: -1;
}

/* Dynamic Particle Network */
.particle-network {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(35px);
    opacity: 0.5;
    mix-blend-mode: screen;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    width: var(--particle-size);
    height: var(--particle-size);
    border-radius: 50%;
    animation: particle-flow 20s infinite linear;
}

/* Holographic Grid System */
.hologrid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-spacing) var(--grid-spacing);
    mask: radial-gradient(circle at center, black 20%, transparent 80%);
    animation: grid-pulse 4s infinite alternate ease-in-out;
}

/* Central Energy Core */
.energy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--core-color), transparent 70%);
    filter: blur(50px);
    animation: core-pulse 4s infinite ease-in-out;
    mix-blend-mode: screen;
}

/* Floating Tech Orbs */
.tech-orb {
    position: absolute;
    background: radial-gradient(circle, var(--secondary-glow), transparent 70%);
    filter: blur(30px);
    border-radius: 50%;
    animation: orb-float 20s infinite linear;
    mix-blend-mode: screen;
}

/* Enhanced Text Container */
.home__description,
.about__description,
.services__content,
.projects__content {
    background: linear-gradient(
        135deg,
        rgba(222, 255, 189, 0.05),
        rgba(222, 255, 189, 0.02)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(222, 255, 189, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Text Glow Effects */
.section__title-1, 
.section__title-2,
.home__name,
.home__description,
.about__description,
.services__title,
.projects__title {
    color: var(--title-color);
    text-shadow: 
        0 0 10px var(--primary-glow),
        0 0 20px var(--secondary-glow);
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes particle-flow {
    0% { 
        transform: translateY(-100%) translateX(-50%);
        opacity: 0;
    }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { 
        transform: translateY(100vh) translateX(50%);
        opacity: 0;
    }
}

@keyframes core-pulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: translate(-50%, -50%) scale(1);
        filter: blur(50px);
    }
    50% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(1.2);
        filter: blur(40px);
    }
}

@keyframes orb-float {
    0% { transform: translate(0,0) scale(0.8); }
    25% { transform: translate(100px,50px) scale(1.2); }
    50% { transform: translate(50px,100px) scale(0.9); }
    75% { transform: translate(-30px,70px) scale(1.1); }
    100% { transform: translate(0,0) scale(0.8); }
}

@keyframes grid-pulse {
    0%, 100% {
        opacity: 0.3;
        background-size: var(--grid-spacing) var(--grid-spacing);
    }
    50% {
        opacity: 0.5;
        background-size: calc(var(--grid-spacing) * 1.1) calc(var(--grid-spacing) * 1.1);
    }
}

/* Dark Theme Adjustments */
.dark-theme .cyber-container {
    --primary-glow: hsl(108, 81%, 45%);
    --secondary-glow: hsl(108, 81%, 35%);
    --grid-color: rgba(222, 255, 189, 0.08);
    --core-color: rgba(222, 255, 189, 0.9);
}

.dark-theme .particle-network {
    opacity: 0.7;
}

/* Performance Optimizations */
.cyber-container * {
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
}