@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*================ VARIABLES CSS ==========*/

:root {
  --header-height: 3rem;

  /*======= Colors =======*/
  /* Change Favorite color */
  --hue-color: 240;

  /*========= HSL Color mode =========*/
  --first-color: hsl(var(--hue-color), 69%, 61%);
  --first-color-second: hsl(var(--hue-color), 69%, 61%);
  --first-color-alt: hsl(var(--hue-color), 57%, 53%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --input-color: hsl(var(--hue-color), 70%, 96%);
  --body-color: hsl(var(--hue-color), 60%, 99%);
  --container-color: #fff;
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

  /*========= Font and typography ===========*/
  --body-font: "Poppins", sans-serif;

  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*=========== Font weight ==========*/

  --font-medium: 500;
  --font-semi-bold: 600;

  /*============ Margin Bottom ===========*/
  /* .25rem = 4px, .5rem=8px, .75rem = 12px*/
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

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

/* Font Size for larger devices */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*================= Variables Dark Theme ===============*/
body.dark-theme {
  /*========= HSL Color mode =========*/

  --first-color-second: hsl(var(--hue-color), 30%, 8%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 28%, 12%);
  --container-color: hsl(var(--hue-color), 29%, 16%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

/*================= Button Dark/Light ===============*/
.nav__btns {
  display: flex;
  align-items: center;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}

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

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title,
.section__subtitle {
  text-align: center;
}

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

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

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.nav__toggle {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

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

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

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

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 2rem 1.5rem 4rem;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: 0.3s;
  }
}

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

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
}

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

.nav__icon {
  font-size: 1.2rem;
}

.nav__icon {
  font-size: 1.2rem;
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

.nav__close:hover {
  color: var(--first-color-alt);
}

/* Show Menu */
.show-menu {
  bottom: 0;
}

/* Active Link */
.active-link {
  color: var(--first-color);
}

/* Change Background header */
.scroll-header {
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
}

/*========HOME=============*/
.home__container {
  gap: 1rem;
}

.home__content {
  grid-template-columns: 0.5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  font-size: 1.05rem;
  color: var(--first-color);
}

.home__social-icon:hover {
  color: var(--first-color-lighter);
}

.home__blob {
  width: 200px;
  fill: var(--first-color);
  /* keep original */
}

.home__blob-img {
  padding-left: 0;
  /* remove shift */
}

.home__data {
  grid-column: 1/3;
}

.home__title {
  font-size: var(--big-font-size);
}

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__description {
  margin-bottom: var(--mb-2);
}

.portfolio__scroll {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  cursor: pointer;
}

.home__scroll {
  display: none;
}

.home__scroll-button {
  color: var(--first-color);
  transition: 0.3s;
}

.home__scroll-button:hover {
  transform: translateY(0.25rem);
}

.home__scroll-mouse {
  font-size: 2rem;
}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
  font-size: 1.25rem;
}

/*================== Buttons ===================*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem;
  margin-bottom: 10px;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
}

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

.button__icon {
  font-size: 1.25rem;
  margin-left: 0.25rem;
  transition: 0.3s;
}

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

.button--white:hover {
  background-color: #fff;
}

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

.button--small {
  padding: 0.75rem 1rem;
}

.button--link {
  padding: 0;
  background-color: transparent;
  color: var(--first-color);
}

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

/*===================== About ==================*/
.about__img {
  width: 170px;
  border-radius: 500%;
  justify-self: center;
  align-self: center;
  /* border: 1px solid #fff; */
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
  text-align: justify;
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.about__info-name {
  font-size: var(--smaller-font-size);
}

.about__info-name,
.about__info-title {
  display: block;
  text-align: center;
}

.about__buttons {
  display: flex;
  justify-content: center;
}

/*===================== SKILLS =========================*/

.skills__container {
  row-gap: 0;
}

.skills__header {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-2-5);
  cursor: pointer;
}

.skills__icon,
.skills__arrow {
  font-size: 1.25rem;
  color: var(--first-color);
}

.skills__icon {
  margin-right: var(--mb-0-75);
}

.skills__title {
  font-size: var(--h3-font-size);
}

.skills__arrow {
  margin-left: auto;
  transition: 0.4s;
}

.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.7rem;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--mb-0-5);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.skills__bar,
.skills__percentage {
  height: 5px;
  border-radius: 0.25rem;
}

.skills__bar {
  background-color: var(--first-color-lighter);
}

.skills__percentage {
  display: block;
  background-color: var(--first-color);
}

.skills__html {
  width: 90%;
}

.skills__css {
  width: 80%;
}

.skills__js {
  width: 55%;
}

.skills__react {
  width: 40%;
}

.skills__php {
  width: 80%;
}

.skills__node {
  width: 70%;
}

.skills__firebase {
  width: 75%;
}

.skills__python {
  width: 50%;
}

.skills__figma {
  width: 85%;
}

.skills__sketch {
  width: 75%;
}

.skills__photoshop {
  width: 60%;
}

.skills__close .skills__list {
  height: 0;
  overflow: hidden;
}

.skills__open .skills__list {
  height: max-content;
  margin-bottom: var(--mb-2-5);
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
}

/*==================== Qualifications ====================*/

.qualification__tabs {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2);
}

.qualification__button {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
}

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

.qualification__icon {
  font-size: 1.8rem;
  margin-right: var(--mb-0-25);
}

.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

.qualification__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.qualification__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
}

.qualification__calender {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.qualification__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.qualification__line {
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--first-color);
  transform: translate(6px, -7px);
}

.qualification [data-content] {
  display: none;
}

.qualification__active[data-content] {
  display: none;
}

.qualification__button.qualification__active {
  color: var(--first-color);
}

/*================= Services ==================*/

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

.services__content {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem 0.5rem 1.25rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.services__button {
  cursor: pointer;
  font-size: var(--small-font-size);
}

.services__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.services__modal-content {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
}

.services__modal-services {
  row-gap: 1rem;
}

.services__modal-service {
  display: flex;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  font-family: var(--font-medium);
  margin-bottom: var(--mb-1-5);
}

.services__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}

.services__modal-icon {
  color: var(--first-color);
  margin-right: var(--mb-0-25);
}

/* Active Modal */
.active-modal {
  opacity: 1;
  visibility: visible;
}

/*================== Certifications==================*/

.portfolio__container {
  overflow: initial;
}

/*need change*/
.portfolio__content {
  padding: 0 1.5rem;
}

.portfolio-img {
  width: 310px;
  border-radius: 0.5rem;
  justify-self: center;
}

.portfolio__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.portfolio__description {
  margin-bottom: var(--mb-0-75);
}

.portfolio__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: -0.5rem;
}

.swiper-button-next {
  right: -0.5rem;
}

.swiper-container-horizontal>.swiper-pagination-bullets {
  bottom: -2.5rem;
}

.swiper-pagination-bullets-active {
  background-color: var(--first-color);
}

.swiper-button-next,
.swiper-button-prev,
.swiper-pagination-bullets {
  outline: none;
}



/*================== Portfolio ==================*/

.portfolio__container {
  overflow: initial;
}

/*need change*/
.portfolio__content {
  padding: 0 1.5rem;
}

.portfolio__img {
  width: 450px;
  height: 300px;
  border-radius: 0.5rem;
  justify-self: center;
}

.portfolio__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.portfolio__description {
  margin-bottom: var(--mb-0-75);
}

.portfolio__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: -0.5rem;
}

.swiper-button-next {
  right: -0.5rem;
}

.swiper-container-horizontal>.swiper-pagination-bullets {
  bottom: -2.5rem;
}

.swiper-pagination-bullets-active {
  background-color: var(--first-color);
}

.swiper-button-next,
.swiper-button-prev,
.swiper-pagination-bullets {
  outline: none;
}

/*================ Contact Me ===============*/

.contact__container {
  row-gap: 2rem;
}

.contact__information {
  display: flex;
  margin-bottom: var(--mb-2);
}

.contact__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}

.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

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

.contact__content {
  background-color: var(--input-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
}

.contact__label {
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: 0.25rem 0.5rem 0.5rem 0;
}

/*=================== Footer ==================*/

.footer {
  padding-top: 2rem;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__bg {
  background-color: var(--first-color-second);
  padding: 2rem 0 3rem;
}

.footer__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-0-25);
}

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

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

.footer__link:hover {
  color: var(--first-color-lighter);
  transition: 0.3s;
}

.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
}

.footer__social:hover {
  color: var(--first-color-lighter);
  transition: 0.3s;
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: var(--text-color-light);
  margin-top: var(--mb-3);
}

.footer__title,
.footer__link,
.footer__subtitle,
.footer__social {
  color: #fff;
}


/*==================== Scroll Up ==================*/

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: 0.8;
  padding: 0 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: 0.4s;
}

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

.scrollup__icon {
  font-size: 1.5rem;
  color: #fff;
}

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

/*====================== Scroll Bar =====================*/

::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*======================== Media Queries ======================*/

/* For Small Devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__menu {
    padding: 2rem 0.25rem 4rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .home__content {
    grid-template-columns: 0.25fr 3fr;
  }

  .home__blob {
    width: 180px;
  }

  .skills__icon,
  .skills__arrow {
    font-size: 1.25rem;
  }

  .skills__title {
    font-size: var(--normal-font-size);
  }

  .qualification__data {
    gap: 0.5rem;
  }

  .services__container {
    justify-content: center;
  }

  .services__content {
    padding-right: 0.5rem;
  }

  .services__modal {
    padding: 0 0.5rem;
  }

  .project__img {
    width: 200px;
  }
}

/* For medium Devices */
@media screen and (min-width: 568px) {
  .home__content {
    grid-template-columns: max-content 1fr 1fr;
  }

  .home__data {
    grid-column: initial;
  }

  .home__img {
    order: 1;
    justify-self: center;
  }

  .about__container,
  .skills__container,
  .project__container,
  .contact__container,

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .qualification__section {
    display: grid;
    grid-template-columns: 0.6fr;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 4rem;
  }

  .section__subtitle {
    margin-bottom: 4rem;
  }

  .header {
    top: 0;
    bottom: initial;
  }

  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }

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

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu {
    margin-left: auto;
  }

  .change-theme {
    margin: 0;
  }

  .home__container {
    row-gap: 5rem;
  }

  .home__content {
    padding-top: 5.5rem;
    column-gap: 2rem;
  }

  .home__blob {
    width: 240px;
  }

  .home__scroll {
    display: block;
  }

  .home__scroll-button {
    margin-left: 3rem;
  }

  .about__container {
    column-gap: 5rem;
  }

  .about__img {
    width: 300px;
  }

  .about__description {
    text-align: initial;
  }

  .about__info {
    justify-content: space-between;
  }

  .about__buttons {
    justify-content: initial;
  }

  .skills__icon,
  .skills__arrow {
    font-size: 1.75rem;
  }

  .qualification__tabs {
    justify-content: center;
  }

  .qualification__button {
    margin: 0 var(--mb-1);
  }

  .qualification__sections {
    grid-template-columns: 0.5fr;
  }

  .services_container {
    grid-template-columns: repeat(3, 218px);
    justify-content: center;
  }

  .services__content {
    padding: 6rem 0 2rem 2.5rem;
  }

  .services__icon {
    font-size: 2rem;
  }

  .services__modal-content {
    width: 500px;
  }

  .testimonials {
    align-items: center;
  }

  .project {
    text-align: initial;
  }

  .project__bg {
    background: none;
  }

  .project__container {
    background-color: var(--first-color-second);
    border-radius: 1rem;
    padding: 3rem 2.5rem 0;
    grid-template-columns: 1fr max-content;
    column-gap: 3rem;
  }

  .project__data {
    padding-top: 0.8rem;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__bg {
    padding: 3rem 0 3.5rem;
  }

  .footer__links {
    flex-direction: row;
    column-gap: 2rem;
  }

  .footer__socials {
    justify-self: flex-end;
  }

  .footer__copy {
    margin-top: 4.5rem;
  }
}

/* For large devices */

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

  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .home__blob {
    width: 280px;
  }

  .home__title {
    font-size: 37px;
  }

  .home__social {
    transform: translateX(-6rem);
  }

  .button--white {
    bottom: -4.5rem;
  }
}

/* ================= CHAT ICON ================= */

.ai-chat-icon {
  position: fixed;
  bottom: 95px;
  right: 20px;
  /* perfect aligned */
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6c63ff, #4f46e5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  z-index: 9999;
  animation: floatIcon 3s ease-in-out infinite;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}


@keyframes floatIcon {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ================= CHAT BOX ================= */

.ai-chat-box {
  position: fixed;
  bottom: 170px;
  right: 55px;
  width: 240px;
  height: 350px;
  background: var(--container-color);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

/* header */
.ai-chat-header {
  background: var(--first-color);
  color: #fff;
  padding: 14px;
  font-weight: 600;
}

/* messages area */
.ai-chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* WhatsApp style bubbles */
.ai-user-msg {
  align-self: flex-end;
  background: var(--first-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: 14px 14px 0 14px;
  max-width: 75%;
  font-size: 14px;
}

.ai-ai-msg {
  align-self: flex-start;
  background: #e5e7eb;
  color: #111;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 0;
  max-width: 75%;
  font-size: 14px;
}

body.dark-theme .ai-ai-msg {
  background: #2d2d2d;
  color: #fff;
}

/* typing dots */
.ai-typing {
  width: 50px;
  height: 22px;
  background: #e5e7eb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: #555;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

.ai-typing span:nth-child(2) {
  animation-delay: .2s;
}

.ai-typing span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes blink {

  0%,
  80%,
  100% {
    opacity: 0.2;
  }

  40% {
    opacity: 1;
  }
}

/* input */
.ai-chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.ai-chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
  background: transparent;
  color: var(--text-color);
}

.ai-chat-input button {
  border: none;
  background: var(--first-color);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

/* close (X) button in chat header */
.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-close {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  opacity: 0.8;
  transition: 0.2s ease;
}

.ai-chat-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/*==================== LIVE PORTFOLIO ANALYTICS ====================*/

.analytics.section {
  padding: 4rem 0 2rem;
}

.analytics__container {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* Card */
.analytics__card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Top gradient line */
.analytics__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      hsl(var(--hue-color), 69%, 61%),
      hsl(var(--hue-color), 92%, 85%));
  border-radius: 1rem 1rem 0 0;
}

/* Hover */
.analytics__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Icon circle */
.analytics__icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--mb-1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsl(var(--hue-color), 69%, 61%, 0.12);
}

.analytics__icon {
  font-size: 1.6rem;
  color: var(--first-color);
}

/* Title */
.analytics__card-title {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: var(--mb-0-75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Numbers */
.analytics__number {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text value */
.analytics__text {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

/* Loader spinner */
.analytics__loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid hsl(var(--hue-color), 69%, 61%, 0.25);
  border-top-color: var(--first-color);
  border-radius: 50%;
  animation: analyticsSpinner 0.7s linear infinite;
}

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

/* Count animation */
.analytics__counted {
  animation: analyticsCountUp 0.5s ease-out;
}

@keyframes analyticsCountUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark theme */
body.dark-theme .analytics__card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-theme .analytics__icon-wrap {
  background: hsl(var(--hue-color), 69%, 61%, 0.15);
}

body.dark-theme .analytics__card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Tablet */
@media screen and (max-width: 768px) {
  .analytics__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .analytics__card:last-child {
    grid-column: 1 / -1;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Mobile */
@media screen and (max-width: 480px) {
  .analytics__container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .analytics__card:last-child {
    max-width: 100%;
  }

  .analytics__number {
    font-size: var(--h2-font-size);
  }
}



/* ===== MODERN EDUCATION HORIZONTAL CARDS ===== */

/* ===== MODERN EDUCATION HORIZONTAL CARDS ===== */

.edu-timeline {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.edu-card {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Hover effect */
.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Completed */
.edu-card.completed {
  border: 2px solid #22c55e;
}

/* Ongoing (kept for safety) */
.edu-card.ongoing {
  border: 2px dashed var(--first-color);
}

/* Text styling */
.edu-card h3 {
  font-size: var(--h3-font-size);
  margin-bottom: 0.3rem;
}

.edu-card span {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.edu-card p {
  font-size: var(--smaller-font-size);
  margin: 0.6rem 0;
}

.edu-card small {
  color: var(--first-color);
  font-weight: var(--font-medium);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .edu-timeline {
    flex-direction: column;
    align-items: center;
  }
}


/* ================= HACKATHON SLIDER GALLERY ================= */

.gallery__container {
  margin-top: var(--mb-1);
  margin-bottom: var(--mb-3);
}

.gallery__event {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-2);
  color: var(--title-color);
}

/* ===== SLIDER WRAPPER ===== */
.gallery__slider {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 0 1rem; /* Space for arrows if needed, but we'll use absolute */
}

/* ===== MOVING TRACK ===== */
.gallery__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  transition: transform 0.5s ease-in-out;
}

/* ===== NAVIGATION ARROWS ===== */
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--first-color);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 1;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 0 hsla(var(--hue-color), 69%, 61%, 0.5); }
  50%       { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 7px hsla(var(--hue-color), 69%, 61%, 0); }
}

.gallery__nav:hover {
  background: var(--first-color-alt);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  animation: none;
}

.gallery__nav-prev {
  left: 0.5rem;
}

.gallery__nav-next {
  right: 0.5rem;
}

/* Hide arrows if they don't fit well on very small screens or handle them */
@media screen and (max-width: 350px) {
  .gallery__nav {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}

/* ===== CARD ===== */
.gallery__card {
  min-width: 320px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  flex-shrink: 0;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  background: var(--container-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== IMAGE ===== */
.gallery__card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.12);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ⭐ IMAGE HOVER */
.gallery__card:hover img {
  transform: scale(1);
}

/* ===== CARD HOVER LIFT ===== */
.gallery__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ===== OVERLAY ===== */
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery__card:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  color: #fff;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

/* ===== DARK MODE ===== */
body.dark-theme .gallery__card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

body.dark-theme .gallery__nav {
  background: var(--first-color);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media screen and (max-width: 768px) {
  .gallery__card {
    min-width: 260px;
  }
  .gallery__card img {
    height: 200px;
  }
}

@media screen and (max-width: 480px) {
  .gallery__card {
    min-width: 82vw; /* Shows a bit of the next card */
  }
  .gallery__card img {
    height: 180px;
  }
  .gallery__nav {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
}

/* ===== Fix extra gap above gallery ===== */

#gallery.section {
  padding-top: 2rem;
}

.gallery__container {
  margin-top: var(--mb-1);
}





/* Container */

.testimonial-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: nowrap;
  align-items: stretch;
}

/* Card */

.testimonial-card {
  width: 320px;
  border: 2px solid #4a5ca5;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Top Section */

.testimonial-top {
  background: linear-gradient(135deg, #6b85a3, #4a6fa5);
  color: white;
  padding: 35px 30px 90px 30px;
  text-align: justify;
  line-height: 1.8;
  font-size: 15.5px;
  min-height: 240px;
  /* key to keep image alignment */
  display: flex;
  align-items: center;
}

/* Comment styling */

.testimonial-top {
  background: linear-gradient(135deg, #6b85a3, #4a6fa5);
  color: white;
  padding: 35px 30px 90px 30px;
  text-align: justify;
  line-height: 1.8;
  font-size: 15.5px;

  height: 260px;
  /* change from min-height to height */

  display: flex;
  align-items: center;
}

.testimonial-top p {
  margin: 0;
  font-size: 13.5px;
  /* reduced size */
  line-height: 1.7;
  /* keeps readability */
  letter-spacing: 0.2px;
  /* slight spacing for clarity */
  font-weight: 400;
}

.testimonial-top p::before {
  content: "❝ ";
  font-size: 20px;
  opacity: 0.6;
}

/* Bottom Section */

.testimonial-bottom {
  background: white;
  text-align: center;
  padding: 60px 25px 25px 25px;
  position: relative;
}

/* Avatar */

.avatar {
  width: 80px;
  height: 95px;
  object-fit: cover;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  border: 4px solid white;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* Peer Name */

.testimonial-bottom h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: 0.5px;
}

/* Role */

.role {
  color: #6b7280;
  font-style: italic;
  margin-top: 4px;
  font-size: 14px;
}

/* Hover effect */

.testimonial-card:hover {
  transform: translateY(-6px);
  transition: 0.3s ease;
}


.testimonial-header {
  text-align: center;
  margin-bottom: 50px;
}

.testimonial-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 8px;
}

.testimonial-header p {
  font-size: 15px;
  color: var(--text-color);
}

/* Light Theme (Default) */
:root {
  --title-color: #1f2937;
  --text-color: #6b7280;
}

/* Dark Theme */
body.dark-theme {
  --title-color: #ffffff;
  --text-color: #94a3b8;
}

/* Mobile View */
@media screen and (max-width: 768px) {

  .testimonial-container {
    flex-direction: column;
    /* stack cards */
    align-items: center;
    gap: 20px;
  }

  .testimonial-card {
    width: 100%;
    /* full width */
    max-width: 350px;
    /* keeps nice size */
  }

  .testimonial-top {
    height: auto;
    /* allow content to expand */
    padding: 30px 25px 80px 25px;
  }

  .testimonial-header h2 {
    font-size: 26px;
    /* smaller heading */
  }

  .testimonial-header p {
    font-size: 14px;
  }

}


/* ================================================
   FEATURED PROJECT SECTION
   ================================================ */

.featured__wrapper {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── HERO BANNER ── */
.featured__hero {
  background: linear-gradient(135deg,
    hsl(var(--hue-color), 69%, 18%) 0%,
    hsl(var(--hue-color), 69%, 28%) 100%);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px hsla(var(--hue-color), 69%, 30%, 0.35);
}

.featured__hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: hsla(var(--hue-color), 69%, 61%, 0.12);
  pointer-events: none;
}

.featured__hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: hsla(var(--hue-color), 69%, 61%, 0.08);
  pointer-events: none;
}

.featured__hero-badge {
  display: inline-block;
  background: hsla(255, 255%, 255%, 0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.featured__hero-title {
  font-size: 2.6rem;
  font-weight: var(--font-semi-bold);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.featured__hero-tagline {
  font-size: var(--h3-font-size);
  color: hsl(var(--hue-color), 92%, 85%);
  margin-bottom: 1rem;
  font-weight: var(--font-medium);
}

.featured__hero-desc {
  font-size: var(--normal-font-size);
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.featured__hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.featured__hero-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.featured__hero-stack span {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: var(--smaller-font-size);
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
}

/* ── STATS ROW ── */
.featured__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.featured__stat-card {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border: 1px solid hsl(var(--hue-color), 69%, 90%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.featured__stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px hsla(var(--hue-color), 69%, 61%, 0.18);
}

.featured__stat-card i {
  font-size: 1.8rem;
  color: var(--first-color);
}

.featured__stat-num {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.featured__stat-label {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/* ── CONTENT GRID ── */
.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.featured__block {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-left: 3px solid var(--first-color);
  transition: transform 0.3s ease;
}

.featured__block:hover {
  transform: translateY(-3px);
}

.featured__block--wide {
  grid-column: 1 / -1;
  border-left-color: #22c55e;
}

.featured__block-title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.featured__block-title i {
  color: var(--first-color);
  font-size: 1.1rem;
}

.featured__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured__list li {
  font-size: var(--small-font-size);
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.featured__list li i {
  color: var(--first-color);
  font-size: 1rem;
  flex-shrink: 0;
}

.featured__tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.featured__tech-pill {
  background: hsl(var(--hue-color), 92%, 93%);
  color: var(--first-color-alt);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  border: 1px solid hsl(var(--hue-color), 69%, 80%);
}

body.dark-theme .featured__tech-pill {
  background: hsl(var(--hue-color), 29%, 20%);
  color: var(--first-color-lighter);
  border-color: hsl(var(--hue-color), 29%, 30%);
}

.featured__impact-text {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.8;
}

/* ── DEVELOPMENT JOURNEY ── */
.featured__journey {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.featured__journey-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.featured__journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.featured__journey-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px hsla(var(--hue-color), 69%, 61%, 0.35);
  transition: transform 0.3s ease;
}

.featured__journey-step:hover .featured__journey-icon {
  transform: scale(1.12);
}

.featured__journey-label {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.featured__journey-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, var(--first-color), var(--first-color-alt));
  min-width: 40px;
  max-width: 120px;
  border-radius: 2px;
  margin-bottom: 1.6rem;
}

/* ── DARK THEME ADJUSTMENTS ── */
body.dark-theme .featured__stat-card {
  border-color: hsl(var(--hue-color), 29%, 25%);
}

body.dark-theme .featured__block {
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ── RESPONSIVE ── */
@media screen and (max-width: 968px) {
  .featured__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured__hero-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .featured__hero {
    padding: 2rem 1.5rem;
  }

  .featured__hero-title {
    font-size: 1.6rem;
  }

  .featured__stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .featured__block--wide {
    grid-column: 1;
  }

  .featured__journey-steps {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .featured__journey-line {
    display: none;
  }

  .featured__hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ═══════════════════════════════════════════════════════════════
   CAPTURED STORIES — MEMORY ALBUMS  (Premium Cinematic Gallery)
═══════════════════════════════════════════════════════════════ */

/* ── Section Shell ── */
.ma-section {
  padding: 5rem 0 6rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow behind section */
.ma-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--hue-color), 69%, 61%, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Floating Section Header ── */
.ma-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.ma-header__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--first-color);
  background: hsla(var(--hue-color), 69%, 61%, 0.1);
  border: 1px solid hsla(var(--hue-color), 69%, 61%, 0.25);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.ma-header__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--title-color);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.ma-header__sub {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Wrapper ── */
.ma-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

/* ── Timeline Label ── */
.ma-timeline-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ma-timeline-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--first-color);
  white-space: nowrap;
  padding: 0.25rem 0.8rem;
  border: 1px solid hsla(var(--hue-color), 69%, 61%, 0.3);
  border-radius: 2rem;
  background: hsla(var(--hue-color), 69%, 61%, 0.07);
}

.ma-timeline-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, hsla(var(--hue-color), 69%, 61%, 0.3), transparent);
}

/* ── Album Base Card ── */
.ma-album {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  background: var(--container-color);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 12px 40px rgba(0,0,0,0.1);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}

.ma-album:hover,
.ma-album:focus-visible {
  transform: translateY(-10px) scale(1.015);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.08),
    0 28px 60px rgba(0,0,0,0.18),
    0 0 0 1px hsla(var(--hue-color), 69%, 61%, 0.15);
}

/* Cover image container */
.ma-album__cover {
  position: relative;
  overflow: hidden;
}

.ma-album__img {
  width: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-album:hover .ma-album__img {
  transform: scale(1);
}

/* Gradient overlay on cover */
.ma-album__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.55) 100%
  );
  transition: opacity 0.4s ease;
}

/* Shine sweep on hover */
.ma-album__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.08) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.ma-album:hover .ma-album__shine {
  transform: translateX(100%);
}

/* Info panel */
.ma-album__info {
  padding: 1.4rem 1.6rem 1.6rem;
}

.ma-album__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  margin-bottom: 0.7rem;
}

.ma-album__title {
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ma-album__subtitle {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.ma-album__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.ma-album__date,
.ma-album__count {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  font-weight: 500;
}

.ma-album__date i,
.ma-album__count i {
  color: var(--first-color);
  font-size: 0.9rem;
}

/* CTA row (featured only) */
.ma-album__cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: var(--small-font-size);
  font-weight: 600;
  color: var(--first-color);
  transition: gap 0.3s ease;
}

.ma-album__cta i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.ma-album:hover .ma-album__cta i {
  transform: translateX(4px);
}

/* ── Featured Album ── */
.ma-featured {
  margin-bottom: 2rem;
}

.ma-album--featured .ma-album__cover {
  height: 420px;
}

.ma-album--featured .ma-album__img {
  height: 100%;
}

.ma-album--featured .ma-album__info {
  padding: 1.8rem 2rem 2rem;
}

.ma-album--featured .ma-album__title {
  font-size: var(--h2-font-size);
}

/* ── Album Grid ── */
.ma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ma-grid .ma-album__cover {
  height: 240px;
}

.ma-grid .ma-album__img {
  height: 100%;
}

/* ── Scroll Reveal ── */
[data-ma-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-ma-reveal].ma-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children in grid */
.ma-grid .ma-album:nth-child(1) { transition-delay: 0.05s; }
.ma-grid .ma-album:nth-child(2) { transition-delay: 0.15s; }
.ma-grid .ma-album:nth-child(3) { transition-delay: 0.25s; }

/* ═══════════════════════════════════════════════════════════════
   FULLSCREEN MODAL
═══════════════════════════════════════════════════════════════ */

.ma-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ma-modal.ma-modal--open {
  pointer-events: all;
  opacity: 1;
}

/* Blurred backdrop */
.ma-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}

/* Panel slides up */
.ma-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  background: #0d0d0f;
  border-radius: 2rem 2rem 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -20px 80px rgba(0,0,0,0.6);
}

.ma-modal--open .ma-modal__panel {
  transform: translateY(0);
}

/* Modal header */
.ma-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.ma-modal__header-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--first-color);
  margin-bottom: 0.2rem;
}

.ma-modal__title {
  font-size: var(--h2-font-size);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.ma-modal__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.ma-modal__close:hover {
  background: rgba(255,255,255,0.15);
  transform: rotate(90deg);
}

/* Masonry grid inside modal */
.ma-modal__masonry {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem 2rem;
  columns: 3;
  column-gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.ma-modal__masonry::-webkit-scrollbar {
  width: 5px;
}
.ma-modal__masonry::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

/* Masonry item */
.ma-masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  opacity: 0;
  transform: scale(0.94) translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.ma-masonry-item.ma-item-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ma-masonry-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-masonry-item:hover img {
  transform: scale(1.04);
}

/* Caption overlay on masonry item */
.ma-masonry-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ma-masonry-item:hover .ma-masonry-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   FULLSCREEN IMAGE VIEWER
═══════════════════════════════════════════════════════════════ */

.ma-viewer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ma-viewer.ma-viewer--open {
  opacity: 1;
  pointer-events: all;
}

.ma-viewer__img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ma-viewer__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-viewer--open .ma-viewer__img {
  transform: scale(1);
}

.ma-viewer__caption {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  text-align: center;
}

.ma-viewer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.ma-viewer__close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.ma-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.ma-viewer__nav:hover {
  background: rgba(255,255,255,0.2);
}

.ma-viewer__prev { left: 1.5rem; }
.ma-viewer__next { right: 1.5rem; }

.ma-viewer__prev:hover { transform: translateY(-50%) translateX(-3px); }
.ma-viewer__next:hover { transform: translateY(-50%) translateX(3px); }

/* ── Dark theme tweaks ── */
body.dark-theme .ma-album {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.2),
    0 12px 40px rgba(0,0,0,0.35);
}

body.dark-theme .ma-album:hover,
body.dark-theme .ma-album:focus-visible {
  box-shadow:
    0 4px 16px rgba(0,0,0,0.3),
    0 28px 60px rgba(0,0,0,0.5),
    0 0 0 1px hsla(var(--hue-color), 69%, 61%, 0.2);
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
  .ma-album--featured .ma-album__cover {
    height: 280px;
  }

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

  .ma-grid .ma-album__cover {
    height: 220px;
  }

  .ma-modal__masonry {
    columns: 2;
    padding: 1rem 1rem 1.5rem;
  }

  .ma-modal__header {
    padding: 1.2rem 1.2rem 0.8rem;
  }

  .ma-viewer__prev { left: 0.5rem; }
  .ma-viewer__next { right: 0.5rem; }

  .ma-viewer__nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 480px) {
  .ma-album--featured .ma-album__cover {
    height: 220px;
  }

  .ma-modal__masonry {
    columns: 1;
  }

  .ma-header__title {
    font-size: 1.8rem;
  }
}

/* ── Fix section padding override ── */
#gallery.section {
  padding-top: 5rem;
}

/* ── Farewell badge — warm rose tint ── */
.ma-album__badge--farewell,
.ma-album__badge:has-text("Farewell") {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.25);
}

/* Target the farewell badge by emoji content */
.ma-album[data-album="csd2026"] .ma-album__badge {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.25);
}

/* Spacing between timeline groups */
.ma-timeline-label + .ma-featured {
  margin-bottom: 2.5rem;
}


/* ═══════════════════════════════════════════════════════════════
   HERO TYPING ANIMATION — Premium Cinematic
═══════════════════════════════════════════════════════════════ */

/* Hide subtitle line until line 1 is done */
.home__subtitle {
  min-height: 1.6em; /* prevent layout shift */
}

/* Each typed character fades in */
.ht-char {
  display: inline;
  opacity: 0;
  animation: htFadeIn 0.12s ease forwards;
}

@keyframes htFadeIn {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Gradient highlight on name "Gous Patan" */
.ht-name {
  color: var(--first-color);
  font-weight: 700;
}

/* Gradient highlight on "Data Analyst & Software Developer" */
.ht-role {
  color: var(--first-color-alt);
}

/* Blinking cursor */
.ht-cursor {
  display: inline-block;
  color: var(--first-color);
  font-weight: 300;
  margin-left: 1px;
  animation: htBlink 0.9s step-start infinite;
  opacity: 1;
  line-height: 1;
  /* match parent font size naturally */
}

.ht-cursor--sub {
  font-size: var(--h3-font-size);
  color: var(--first-color);
}

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

/* Cursor hidden state (after typing finishes) */
.ht-cursor--done {
  animation: none;
  opacity: 0;
}

/* Soft glow behind the title on dark theme */
body.dark-theme .home__title {
  text-shadow: 0 0 40px hsla(var(--hue-color), 69%, 61%, 0.2);
}

/* Description and button fade in after typing */
.home__description,
.home__data .button {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.home__description.ht-visible,
.home__data .button.ht-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   PREMIUM FLOATING NAVBAR — Full Redesign
   Overrides all old .header / .nav / .nav__* rules
═══════════════════════════════════════════════════════════════ */

/* Reset body bottom margin (old nav was bottom-fixed) */
body {
  margin-bottom: 0 !important;
  padding-top: 0;
}

/* ── Wrapper ── */
.fnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.5rem;
  transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none; /* let clicks pass through padding area */
}

/* Shrink on scroll */
.fnav.fnav--scrolled {
  padding: 0.5rem 1.5rem;
}

/* ── Inner pill container ── */
.fnav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: all;
}

/* Dark theme inner */
body.dark-theme .fnav__inner {
  background: rgba(10, 10, 18, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* Scrolled state — stronger glass */
.fnav.fnav--scrolled .fnav__inner {
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.dark-theme .fnav.fnav--scrolled .fnav__inner {
  background: rgba(8, 8, 16, 0.88);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(99, 102, 241, 0.12);
}

/* ── Logo ── */
.fnav__logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--title-color);
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

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

.fnav__logo-dot {
  color: var(--first-color);
}

/* ── Desktop links ── */
.fnav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fnav__link {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  transition:
    color 0.25s ease,
    background 0.25s ease;
  white-space: nowrap;
}

.fnav__link:hover {
  color: var(--title-color);
  background: rgba(99, 102, 241, 0.07);
}

/* Active pill */
.fnav__link--active {
  color: var(--first-color) !important;
  background: hsla(var(--hue-color), 69%, 61%, 0.1);
  font-weight: 600;
}

body.dark-theme .fnav__link--active {
  background: hsla(var(--hue-color), 69%, 61%, 0.15);
}

/* ── Right actions ── */
.fnav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Theme button */
.fnav__theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.04);
  color: var(--title-color);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fnav__theme-btn:hover {
  background: hsla(var(--hue-color), 69%, 61%, 0.12);
  border-color: var(--first-color);
  color: var(--first-color);
  transform: rotate(20deg);
}

body.dark-theme .fnav__theme-btn {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--title-color);
}

/* CTA button */
.fnav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px hsla(var(--hue-color), 69%, 61%, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.fnav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px hsla(var(--hue-color), 69%, 61%, 0.5);
  color: #fff;
}

.fnav__cta i {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.fnav__cta:hover i {
  transform: translateX(3px);
}

/* Hamburger — hidden on desktop */
.fnav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.fnav__burger:hover {
  background: rgba(99, 102, 241, 0.08);
}

.fnav__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--title-color);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease,
              width 0.3s ease;
}

.fnav__burger span:nth-child(1) { width: 22px; }
.fnav__burger span:nth-child(2) { width: 16px; }
.fnav__burger span:nth-child(3) { width: 22px; }

/* Burger → X when open */
.fnav__burger.fnav__burger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 22px;
}
.fnav__burger.fnav__burger--open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.fnav__burger.fnav__burger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 22px;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE FULLSCREEN OVERLAY
═══════════════════════════════════════════════════════════════ */

.fnav__overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(4, 4, 12, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fnav__overlay.fnav__overlay--open {
  opacity: 1;
  pointer-events: all;
}

.fnav__overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 2rem;
}

/* Close button inside overlay */
.fnav__overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.3s ease;
}

.fnav__overlay-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(90deg);
}

/* Overlay nav links */
.fnav__overlay-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
}

.fnav__overlay-link {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  letter-spacing: -0.02em;
  padding: 0.4rem 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fnav__overlay--open .fnav__overlay-link {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger each link */
.fnav__overlay--open .fnav__overlay-link[data-idx="0"] { transition-delay: 0.05s; }
.fnav__overlay--open .fnav__overlay-link[data-idx="1"] { transition-delay: 0.09s; }
.fnav__overlay--open .fnav__overlay-link[data-idx="2"] { transition-delay: 0.13s; }
.fnav__overlay--open .fnav__overlay-link[data-idx="3"] { transition-delay: 0.17s; }
.fnav__overlay--open .fnav__overlay-link[data-idx="4"] { transition-delay: 0.21s; }
.fnav__overlay--open .fnav__overlay-link[data-idx="5"] { transition-delay: 0.25s; }
.fnav__overlay--open .fnav__overlay-link[data-idx="6"] { transition-delay: 0.29s; }
.fnav__overlay--open .fnav__overlay-link[data-idx="7"] { transition-delay: 0.33s; }
.fnav__overlay--open .fnav__overlay-link[data-idx="8"] { transition-delay: 0.37s; }

.fnav__overlay-link:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.12);
}

/* Resume button in overlay */
.fnav__overlay-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--hue-color), 69%, 55%), hsl(var(--hue-color), 57%, 48%));
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 24px hsla(var(--hue-color), 69%, 61%, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease 0.42s,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.42s,
    box-shadow 0.25s ease;
}

.fnav__overlay--open .fnav__overlay-resume {
  opacity: 1;
  transform: translateY(0);
}

.fnav__overlay-resume:hover {
  box-shadow: 0 10px 32px hsla(var(--hue-color), 69%, 61%, 0.55);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* Show hamburger, hide desktop links + CTA on mobile */
@media screen and (max-width: 860px) {
  .fnav__links {
    display: none;
  }

  .fnav__cta {
    display: none;
  }

  .fnav__burger {
    display: flex;
  }
}

/* Tighten padding on small screens */
@media screen and (max-width: 480px) {
  .fnav {
    padding: 0.75rem 1rem;
  }

  .fnav__inner {
    padding: 0.55rem 1rem;
  }
}

/* ── Ensure page content isn't hidden under navbar ── */
.main {
  padding-top: 5rem;
}

/* ── Neutralise old header/nav rules that may conflict ── */
.header { display: none !important; }
.nav__menu, .nav__list, .nav__link,
.nav__toggle, .nav__close, .nav__btns,
.nav__logo, .nav__icon { all: unset; }


/* ═══════════════════════════════════════════════════════════════
   PREMIUM CINEMATIC FOOTER
═══════════════════════════════════════════════════════════════ */

/* Neutralise old footer rules */
.footer, .footer__bg, .footer__container,
.footer__title, .footer__subtitle, .footer__links,
.footer__link, .footer__social, .footer__socials,
.footer__copy, .scrollup, .scrollup__icon { display: none !important; }

/* ── Shell ── */
.pf {
  position: relative;
  background: #06070f;
  overflow: hidden;
  padding: 0;
}

/* Ambient canvas */
.pf__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Top edge glow — smooth transition from previous section */
.pf__edge-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    hsla(var(--hue-color), 69%, 61%, 0.5) 30%,
    rgba(6, 182, 212, 0.6) 50%,
    hsla(var(--hue-color), 69%, 61%, 0.5) 70%,
    transparent
  );
  z-index: 1;
}

.pf__edge-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 80px;
  background: radial-gradient(
    ellipse at top,
    hsla(var(--hue-color), 69%, 61%, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

/* ── Main grid ── */
.pf__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  padding: 5rem 0 4rem;
  max-width: 1100px;
}

/* ── Scroll reveal ── */
[data-pf-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-pf-reveal].pf-revealed { opacity: 1; transform: translateY(0); }
[data-pf-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-pf-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ── Brand column ── */
.pf__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pf__logo {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
  transition: color 0.25s ease;
}

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

.pf__logo-dot { color: var(--first-color); }

.pf__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.7;
  max-width: 220px;
}

.pf__resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  width: fit-content;
  transition: all 0.3s ease;
}

.pf__resume-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

/* ── Column label ── */
.pf__col-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--first-color);
  margin-bottom: 1.2rem;
}

/* ── Nav column ── */
.pf__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pf__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.25s ease, gap 0.25s ease;
  position: relative;
}

.pf__nav-link i {
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: var(--first-color);
}

.pf__nav-link:hover {
  color: #fff;
  gap: 0.6rem;
}

.pf__nav-link:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* ── Connect column ── */
.pf__connect {
  display: flex;
  flex-direction: column;
}

.pf__socials {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.pf__social {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  width: fit-content;
}

.pf__social i {
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.pf__social span {
  font-size: 0.8rem;
  font-weight: 500;
}

.pf__social:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(4px);
}

.pf__social:hover i {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--first-color);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

/* CTA button */
.pf__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg,
    hsla(var(--hue-color), 69%, 55%, 1),
    hsla(var(--hue-color), 57%, 48%, 1));
  padding: 0.6rem 1.3rem;
  border-radius: 9999px;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 4px 18px hsla(var(--hue-color), 69%, 61%, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px hsla(var(--hue-color), 69%, 61%, 0.5);
  color: #fff;
}

.pf__cta i { transition: transform 0.25s ease; }
.pf__cta:hover i { transform: translateX(4px); }

/* ── Animated divider ── */
.pf__divider {
  position: relative;
  z-index: 1;
  padding: 0 0;
  overflow: hidden;
}

.pf__divider-line {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.06) 20%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 80%,
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf__divider-line.pf-line-visible {
  transform: scaleX(1);
}

/* ── Bottom bar ── */
.pf__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  max-width: 1100px;
  flex-wrap: wrap;
}

.pf__copy,
.pf__built {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
}

.pf__copy-accent {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* Back to top button */
.pf__top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
  margin-left: auto;
}

.pf__top-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* ── Responsive ── */
@media screen and (max-width: 900px) {
  .pf__main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 4rem 0 3rem;
  }

  .pf__brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
  }

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

@media screen and (max-width: 600px) {
  .pf__main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
  }

  .pf__brand { flex-direction: column; }

  .pf__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.2rem 0 1.8rem;
  }

  .pf__top-btn { margin: 0.5rem auto 0; }
}


/* ═══════════════════════════════════════════════════════════════
   PREMIUM CONTACT SECTION
═══════════════════════════════════════════════════════════════ */

/* Neutralise old contact rules */
.contact__container, .contact__information, .contact__form,
.contact__inputs, .contact__content, .contact__input,
.contact__icon, .contact__title, .contact__subtitle,
.content__label { all: unset; }

/* ── Section shell ── */
.cf-section {
  position: relative;
  padding: 5rem 0 6rem;
  background: #07080f;
  overflow: hidden;
}

/* Ambient radial glow */
.cf-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse,
    rgba(99,102,241,0.07) 0%,
    rgba(6,182,212,0.04) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Section header ── */
.cf-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.cf-header__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #06b6d4;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.cf-header__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.cf-header__sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.38);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Scroll reveal ── */
[data-cf-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22,1,0.36,1),
    transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
[data-cf-reveal].cf-revealed { opacity: 1; transform: translateY(0); }
[data-cf-reveal]:nth-child(2) { transition-delay: 0.12s; }

/* ── Two-column wrapper ── */
.cf-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

/* ══════════════════════════════════════
   LEFT INFO PANEL
══════════════════════════════════════ */
.cf-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.cf-info__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.cf-info__card:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.2);
}

.cf-info__card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #818cf8;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.cf-info__card:hover .cf-info__card-icon {
  background: rgba(99,102,241,0.2);
  box-shadow: 0 0 16px rgba(99,102,241,0.3);
}

.cf-info__card-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.15rem;
}

.cf-info__card-value {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

a.cf-info__card-value:hover { color: #818cf8; }

/* Social icons */
.cf-info__socials {
  display: flex;
  gap: 0.75rem;
}

.cf-info__social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.5);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}

.cf-info__social:hover {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.4);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99,102,241,0.25);
}

.cf-info__note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.7;
  padding: 1rem 1.2rem;
  border-left: 2px solid rgba(99,102,241,0.3);
}

.cf-info__note strong { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════
   RIGHT FORM PANEL
══════════════════════════════════════ */
.cf-form-wrap {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.5rem;
  padding: 2.2rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.cf-form-wrap:focus-within {
  border-color: rgba(99,102,241,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.1);
}

.cf-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ── Floating label field ── */
.cf-field {
  position: relative;
}

.cf-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 0.75rem;
  padding: 1.1rem 1rem 0.5rem;
  font-size: 0.9rem;
  font-family: var(--body-font);
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  resize: none;
  display: block;
}

.cf-input::placeholder { color: transparent; }

.cf-input:focus {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.45);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1), 0 0 20px rgba(99,102,241,0.08);
}

/* Floating label */
.cf-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
  background: transparent;
}

.cf-field--textarea .cf-label {
  top: 1.1rem;
  transform: none;
}

/* Float up when focused or has value */
.cf-input:focus ~ .cf-label,
.cf-input:not(:placeholder-shown) ~ .cf-label {
  top: 0.45rem;
  transform: none;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: #818cf8;
}

.cf-field--textarea .cf-input:focus ~ .cf-label,
.cf-field--textarea .cf-input:not(:placeholder-shown) ~ .cf-label {
  top: 0.35rem;
}

.cf-label__opt {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
}

/* Animated bottom border */
.cf-field__border {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 2px);
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 0 0 0.75rem 0.75rem;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}

.cf-input:focus ~ .cf-label ~ .cf-field__border,
.cf-input:focus ~ .cf-field__border {
  transform: translateX(-50%) scaleX(1);
}

/* Error state */
.cf-field--error .cf-input {
  border-color: rgba(239,68,68,0.5);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.cf-field__error {
  display: block;
  font-size: 0.7rem;
  color: #f87171;
  margin-top: 0.35rem;
  padding-left: 0.25rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.cf-field--error .cf-field__error {
  opacity: 1;
  transform: translateY(0);
}

/* Char counter */
.cf-char-count {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  pointer-events: none;
}

/* Textarea */
.cf-textarea {
  padding-top: 1.4rem;
  padding-bottom: 1.8rem;
  min-height: 130px;
}

/* ── Submit button ── */
.cf-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--body-font);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(99,102,241,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  letter-spacing: 0.02em;
}

.cf-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(99,102,241,0.5);
}

.cf-submit:active:not(:disabled) { transform: translateY(0); }

.cf-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Loader spinner (hidden by default) */
.cf-submit__loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cfSpin 0.7s linear infinite;
}

/* Success check (hidden by default) */
.cf-submit__check { display: none; font-size: 1.1rem; }

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

/* States */
.cf-submit.cf-loading .cf-submit__text,
.cf-submit.cf-loading .cf-submit__icon { display: none; }
.cf-submit.cf-loading .cf-submit__loader { display: block; }

.cf-submit.cf-success {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 6px 24px rgba(16,185,129,0.4);
}
.cf-submit.cf-success .cf-submit__text,
.cf-submit.cf-success .cf-submit__icon { display: none; }
.cf-submit.cf-success .cf-submit__check { display: block; }

/* ── Toast notification ── */
.cf-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(15,15,25,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
  white-space: nowrap;
}

.cf-toast.cf-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cf-toast.cf-toast--success { border-color: rgba(16,185,129,0.4); }
.cf-toast.cf-toast--error   { border-color: rgba(239,68,68,0.4); }

.cf-toast__icon { font-size: 1.1rem; }
.cf-toast.cf-toast--success .cf-toast__icon::before { content: '✓'; color: #10b981; }
.cf-toast.cf-toast--error   .cf-toast__icon::before { content: '✕'; color: #f87171; }

/* ── Responsive ── */
@media screen and (max-width: 860px) {
  .cf-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cf-info__cards { flex-direction: row; flex-wrap: wrap; }
  .cf-info__card  { flex: 1; min-width: 200px; }
}

@media screen and (max-width: 520px) {
  .cf-form-wrap { padding: 1.5rem 1.2rem; }
  .cf-info__card { min-width: 100%; }
  .cf-toast { width: 90%; white-space: normal; text-align: center; }
}
