/* Color palette: https://www.color-hex.com/color-palette/1054728 */
/* General styles */
:root {
  --slide-width: min(40vw, 600px);
  --slide-height: calc(var(--slide-width) / (9 / 16));
  --slide-aspect: 16 / 9;
  --slide-transition-duration: 800ms;
  --slide-transition-easing: ease;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "Jost", serif;
  color: white;
}

body::selection {
  color: #3f0e8b;
  background-color: #dec2ed;
}

/*=== Main container styles ===*/
.main-container {
  color: white;
  margin: auto;
  max-width: 1200px;
}

section {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.9px);
  -webkit-backdrop-filter: blur(5.9px);
  border: 1px solid rgba(167, 147, 238, 0.64);
  margin-top: 60px;
  margin-bottom: 60px;
  padding-bottom: 50px;
}

/*=== Main container styles end === */
/*=== Hero section styles ===*/
.hero {
  position: relative;
  width: 100%;
  padding-top: 100px;
  margin-bottom: 100px;
}

.hero-background {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 300px;
}

.hero h1 {
  font-family: "Jost", sans-serif;
  font-size: 80px;
  font-weight: 700;
}

.hero h2 {
  font-family: "Jost", serif;
  font-size: 24px;
  font-weight: 700;
  color: #dec2ed;
  margin-top: -20px;
  margin-bottom: 20px;
}

.hero-title .hero-title-highlight {
  color: #3f0e8b;
  font-family: "Titan One", cursive;
  font-weight: 500;
}

.hero-title-small {
  font-size: 30px;
}

/*=== Hero section styles end === */
/*=== Headings styles === */
.heading {
  font-family: "Titan One", sans-serif;
  font-size: 30px;
  font-weight: 250;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: white;
  margin-top: 40px;
  margin-bottom: 30px;
  text-align: center;
}

/*=== Headings styles end === */
/*=== About me section styles ===*/
.aboutme-section {
  padding: 5px 40px;
}

/*=== About me section styles end ===*/

/*=== Portfolio section styles ===*/
.portfolio-section {
  padding: 20px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5 15px rgba(0, 5px, 15px, 0.3);
  height: 300px;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.portfolio-grid-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card:hover .portfolio-grid-project-image {
  transform: scale(1.05);
  filter: blur(5px) brightness(0.7);
}

.project-card:hover .project-title {
  backdrop-filter: none;
  background-color: rgba(0, 0, 0, 0);
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.project-title {
  margin: auto;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  width: 80%;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.project-description {
  font-size: 0.95rem;
  text-align: center;
  color: white;
  margin-bottom: 15px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-botom 0.4s ease;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-botom 0.4s ease;
  justify-content: center;
}

.technology-tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-link i {
  margin-right: 6px;
  font-size: 0.9rem;
}

.project-status {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  z-index: 2;
}

.project-card:hover .project-description,
.project-card:hover .project-technologies {
  max-height: 100px;
  opacity: 1;
  margin-bottom: 15px;
}

/*=== Portfolio section styles end ===*/

/*=== Technologies section styles ===*/
.technologies-section {
  padding: 20px;
}

.technologies-scroller {
  display: flex;
  flex-direction: row;
}

.technologies-section .technologies-scroller-container li {
  list-style-type: none;
  margin-left: 10px;
  margin-right: 10px;
}

.technologies-section .technologies-item img {
  max-width: 70px;
}

/*=== Footer styles ===*/
footer {
  position: relative;
  width: 100%;
  min-height: 300px;
  color: white;
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  padding: 2rem;
  margin-top: 300px;
}

/*=== Footer styles end ===*/
/* === Gradient Styles === */
#gradient {
  background-color: #150c23;
  /* Fallback color to avoid white flashes*/
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* === Gradient styles end === */
/* === Social buttons styles === */
/* Layout mejorado - Botones en fila */
.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* CV Button - Glassmorphism Universal */
.cv-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 32px;
  font-family: "Jost", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cv-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.cv-btn:hover::before {
  left: 100%;
}

.cv-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.cv-btn:active {
  transform: translateY(-1px);
}

.cv-btn svg {
  transition: transform 0.3s ease;
}

.cv-btn:hover svg {
  transform: scale(1.1);
}

/* Botones Sociales - Efectos Universales */
.social-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.social-btn svg {
  width: 26px;
  height: 26px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.social-btn:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

#linkedin svg {
  fill: #e6e6e6;
}

#linkedin:hover svg {
  fill: #e6e6e6;
}

#github svg {
  fill: #e6e6e6;
}

#github:hover svg {
  fill: #ffffff;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .social-buttons {
    align-self: flex-start;
  }
}

/* === Social buttons styles end === */
/* === CTA button styles ===  */
.cta-btn {
  display: inline-block;
  text-align: center;
  width: 9em;
  height: 50px;
  line-height: 3em;
  margin: 20px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid #ff9250;
  transition: color 0.5s;
  z-index: 1;
  font-size: 17px;
  border-radius: 6px;
  font-weight: 600;
  color: #8e00e5;
  background-color: white;
}

.cta-btn:before {
  content: "";
  position: absolute;
  z-index: -1;
  background: #560bad;
  height: 150px;
  width: 200px;
  border-radius: 50%;
  top: 100%;
  left: 100%;
  transition: all 0.7s;
}

.cta-btn:hover {
  color: #ff9250;
}

.cta-btn:hover:before {
  top: -30px;
  left: -30px;
}

.cta-btn:active:before {
  background: #8e00e5;
  transition: background 0s;
}

/* === CTA button styles end === */

/* === hero image styles end === */
.profile-image {
  position: relative;
  width: 500px;
  height: 500px;
  overflow: hidden;
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 0px 5px #222);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-image:hover {
  transform: perspective(800px) rotateY(-15deg);
}

.profile-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.img-alt {
  opacity: 0;
}

.profile:hover .img-main {
  opacity: 0;
}

.profile:hover .img-alt {
  opacity: 1;
}

/* === hero image styles end === */
/* === Link Styles === */
a {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
  font-family: "Jost", serif;
}

/* === Link Styles end === */
/* === font styles === */
p {
  font-family: "Jost", serif;
  font-size: 18px;
  line-height: 1.6;
}

.text-outline {
  color: white;
  text-shadow: -1px -1px 0 #dec2ed, 1px -1px 0 #dec2ed, -1px 1px 0 #dec2ed,
    1px 1px 0 #dec2ed;
}

/* === font styles end === */
/* === Scroller styles === */
.technologies-scroller-container {
  max-width: 1200px;
}

.technologies-scroller {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.technologies-item svg {
  width: 100px;
  height: auto;
  -webkit-filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.7));
  filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.7));
  margin-left: 20px;
  margin-right: 20px;
}

.technologies-scroller-container[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.technologies-scroller-container[data-animated="true"] .technologies-scroller {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.technologies-scroller-container[data-direction="right"] {
  --animation-direction: reverse;
}

.technologies-scroller-container[data-direction="left"] {
  --animation-direction: forwards;
}

.technologies-scroller-container[data-speed="fast"] {
  --_animation-duration: 20s;
}

.technologies-scroller-container[data-speed="slow"] {
  --_animation-duration: 60s;
}

/* === Scroller styles end === */
/* === Scrollbar styles === */

body {
  --sb-track-color: rgba(0, 0, 0, 0.3);
  --sb-thumb-color: rgba(63, 14, 139, 0.8);
  --sb-size: 14px;
}

body::-webkit-scrollbar {
  width: var(--sb-size);
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 13px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 13px;
  border: 2px solid #dec2ed;
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero h1 {
    text-align: center;
  }

  .hero-image img {
    width: 100%;
    max-width: 300px;
  }

  .heading {
    text-align: center;
  }
}

@keyframes rainbow {
  to {
    transform: translateX(-25%);
  }
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

/* ========== FEATURED PROJECTS SLIDER =============== */

button {
  border: none;
  background: none;
  cursor: pointer;
}

button:focus {
  outline: none;
  border: none;
}

/* -------------------- SLIDER -------------------- */
.featured-projects {
  position: relative;
  overflow: hidden;
}

.featured-projects-slider {
  width: 100%;
  height: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  /* position: relative; */
}

.slider--btn {
  --size: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  transition: opacity 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: 999;
}

.slider--btn svg {
  width: var(--size);
  height: var(--size);
  stroke: white;
}

.slider--btn:hover {
  opacity: 1;
}

.featured-projects-slider-wrapper {
  width: 1200px;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.featured-projects-slider-wrapper > * {
  grid-area: 1 / -1;
}

.featured-projects,
.project-info-container {
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.featured-projects > *,
.project-info-container > * {
  grid-area: 1 / -1;
}

/* -------------------- FEATURED PROJECTS -------------------- */
.featured-projects-section .heading {
  padding-left: 40px;
  padding-right: 40px;
}

.single-project {
  --slide-tx: 0px;
  --slide-ty: 0vh;
  --padding: 0px;
  --offset: 0;
  width: var(--slide-width);
  aspect-ratio: var(--slide-aspect);
  user-select: none;
  perspective: 800px;
  transform: perspective(1000px)
    translate3d(var(--slide-tx), var(--slide-ty), var(--slide-tz, 0))
    rotateY(var(--slide-rotY)) scale(var(--slide-scale));
  transition: transform var(--slide-transition-duration)
    var(--slide-transition-easing);
}

.single-project[data-current] {
  --slide-scale: 1.2;
  --slide-tz: 0px;
  --slide-tx: 0px;
  --slide-rotY: 0;
  pointer-events: auto;
  z-index: 20;
}

.single-project[data-next] {
  --slide-tx: calc(1 * var(--slide-width) * 1.07);
  --slide-rotY: -45deg;
  z-index: 10;
}

.single-project[data-previous] {
  --slide-tx: calc(-1 * var(--slide-width) * 1.07);
  --slide-rotY: 45deg;
  z-index: 10;
}

.single-project:not([data-current]) {
  --slide-scale: 1;
  --slide-tz: 0;
  pointer-events: none;
}

.single-project[data-current] .project-image {
  filter: brightness(0.8);
}

.single-project:not([data-current]) .project-image {
  filter: brightness(0.5);
}

.single-project-inner {
  --rotX: 0;
  --rotY: 0;
  --bgPosX: 0%;
  --bgPosY: 0%;
  position: relative;
  left: calc(var(--padding) / 2);
  top: calc(var(--padding) / 2);
  width: calc(100% - var(--padding));
  height: calc(100% - var(--padding));
  transform-style: preserve-3d;
  transform: rotateX(var(--rotX)) rotateY(var(--rotY));
}

.single-project-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px,
    rgba(0, 0, 0, 0.22) 0px 15px 12px;
  border-radius: 5px;
  cursor: grab;
}

.project-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.25)
    translate3d(var(--bgPosX), var(--bgPosY), 0);
  transition: filter var(--slide-transition-duration)
    var(--slide-transition-easing);
}

.single-project-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center center;
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--slide-transition-duration) ease,
    transform var(--slide-transition-duration) ease;
}

.single-project-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.single-project-bg:not([data-current]) {
  opacity: 0;
}

.single-project-bg[data-previous] {
  transform: translateX(-10%);
}

.single-project-bg[data-next] {
  transform: translateX(10%);
}

/* ------------ Project info ---------------- */
.project-info {
  --padding: 0px;
  position: relative;
  width: var(--slide-width);
  height: 100%;
  aspect-ratio: var(--slide-aspect);
  user-select: none;
  perspective: 800px;
  z-index: 100;
}

.project-info[data-current] .project-info--text span {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 250ms;
}

.project-info:not([data-current]) .project-info--text span {
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  transition-delay: 0ms;
}

.project-info__inner {
  position: relative;
  left: calc(var(--padding) / 2);
  top: calc(var(--padding) / 2);
  width: calc(100% - var(--padding));
  height: calc(100% - var(--padding));
  transform-style: preserve-3d;
  transform: rotateX(var(--rotX)) rotateY(var(--rotY));
}

.project-info--text_wrapper {
  --z-offset: 45px;
  position: absolute;
  height: fit-content;
  left: 0%;
  bottom: 20%;
  transform: translateZ(var(--z-offset));
  z-index: 2;
  pointer-events: none;
}

.project-info--text {
  font-family: "Jost", serif;
  color: #fff;
  overflow: hidden;
}

.project-info--text span {
  display: block;
  white-space: nowrap;
  transition: var(--slide-transition-duration) var(--slide-transition-easing);
  transition-property: opacity, transform;
}

.project-info--text[data-title] {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.2cqw;
  white-space: nowrap;
  text-transform: uppercase;
}

.project-info--text[data-subtitle] {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2cqw;
  white-space: nowrap;
  text-transform: uppercase;
}

.project-info--text[data-subtitle] {
  margin-left: 2cqw;
  font-size: min(2.2cqw, 1.8rem);
  font-weight: 600;
}

.project-info--text[data-description] {
  margin-left: 1cqw;
  font-size: min(1.5cqw, 0.95rem);
  font-family: "Jost", serif;
  font-weight: 300;
}

.project-tags-container {
  display: flex;
  flex-direction: row;
  margin-top: 8px;
}

.project-tag {
  background: #ff7954;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

/* TAG color by technology */
.project-tag[technology="PHP"] {
  background: #787cb5;
  color: white;
}

.project-tag[technology="React"] {
  background: #61dafb;
  color: #000;
}

.project-tag[technology="JavaScript"] {
  background: #f7df1e;
  color: #000;
}

.project-tag[technology="MySQL"] {
  background: #4479a1;
  color: white;
}

.project-tag[technology="Java"] {
  background: #ea2a30;
  color: white;
}

.project-tag[technology="HTML"] {
  background: #e34f26;
  color: white;
}

.project-tag[technology="CSS"] {
  background: #663399;
  color: white;
}

.project-tag[technology="TailwindCSS"] {
  background: #06b6d4;
  color: white;
}

.project-tag[technology="WordPress"] {
  background: #0073aa;
  color: white;
}

.project-tag[technology="Docker"] {
  background: #0db7ed;
  color: white;
}

/* ========== FEATURED PROJECTS SLIDER END =============== */

/*=== Project grid buttons styles ===*/

.project-link-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 5px 10px;
  gap: 15px;
  background-color: #181717;
  outline: 2px #181717 solid;
  outline-offset: -3px;
  border-radius: 8px;
  cursor: pointer;
  transition: 400ms;
  text-decoration: none;
  color: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.project-link-button .button-text {
  color: white;
  font-weight: 700;
  font-size: 1em;
  transition: 400ms;
  margin: 0;
}

.project-link-button svg path {
  transition: 400ms;
}

.project-link-button:hover {
  background-color: white;
  outline: 2px #dec2ed solid;
}

.project-link-button:hover .button-text {
  color: #181717;
}

.project-link-button:hover svg path {
  fill: #181717;
}

/*=== Project grid buttons styles end ===*/
/*=== Contact form styles ===*/
.contact-header {
  text-align: center;
  margin-bottom: 80px;
}

.contact-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #dec2ed 0%, #ffffff 50%, #dec2ed 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  position: relative;
}

.contact-container {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info {
  padding: 40px;
  max-width: 40%;
}

.contact-info h3 {
  font-size: 2rem;
  color: #dec2ed;
  margin-bottom: 30px;
  font-weight: 600;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(222, 194, 237, 0.3);
  transform: translateY(-2px);
}

.contact-method svg {
  width: 24px;
  height: 24px;
  fill: #dec2ed;
  flex-shrink: 0;
}

.contact-method span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  word-break: break-word;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 35%;
}

.form-group {
  margin-bottom: 25px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #dec2ed;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dec2ed;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(222, 194, 237, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #3f0e8b 0%, #5a1a9b 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: "Jost", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(63, 14, 139, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Status message */
.status-message {
  padding: 15px;
  margin: 20px 0;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.success {
  background-color: rgba(46, 204, 113, 0.2);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

.error {
  background-color: rgba(231, 76, 60, 0.2);
  border: 1px solid #e74c3c;
  color: #e74c3c;
}

@media (max-width: 600px) {
  .project-card {
    height: 280px;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .project-links {
    flex-direction: column;
    gap: 8px;
  }

  .project-link {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   FULLSCREEN GALLERY STYLES
   ========================= */

/* Overlay and backdrop */
.gallery-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2200;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  will-change: opacity, visibility;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.16, 0.84, 0.26, 1);
  opacity: 0;
}

.gallery-overlay.open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 15, 0.86);
  backdrop-filter: blur(6px);
  transition: opacity 320ms cubic-bezier(0.16, 0.84, 0.26, 1);
  opacity: 1;
}

/* wrapper for content */
.gallery-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 18px;
  box-sizing: border-box;
}

/* media area*/
.gallery-media {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.02) 30%,
    rgba(0, 0, 0, 0.04) 100%
  );
}

/* Gallery: images */
.gallery-media img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(0);
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 320ms cubic-bezier(0.16, 0.84, 0.26, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  pointer-events: none;
  opacity: 1;
}

/* starting position for next image */
.gallery-media img.next {
  transform: translate(-50%, -50%) translateX(100%);
}

/* optional class applied during animation to prevent interaction */
.gallery-media.animating {
  pointer-events: none;
}

/* nav buttons */
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12, 14, 24, 0.6);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 26px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: background 160ms ease, transform 160ms ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(12, 14, 24, 0.78);
}

.gallery-prev {
  left: 18px;
}

.gallery-next {
  right: 18px;
}

/* close button */
.gallery-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(12, 14, 24, 0.6);
  color: #fff;
  border: none;
  padding: 10px 12px;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 12;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: background 160ms ease, transform 160ms ease;
}

.gallery-close:hover {
  transform: scale(1.03);
  background: rgba(12, 14, 24, 0.78);
}

/* Gallery: caption for title and description */
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 12px 28px;
  box-sizing: border-box;
  z-index: 11;
}

.gallery-caption-inner {
  width: 100%;
  max-width: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(3, 6, 20, 0.45) 20%,
    rgba(3, 6, 20, 0.92) 100%
  );
  color: #fff;
  padding: 26px 28px;
  border-radius: 0;
  pointer-events: auto;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
}

/* title and description */
.gallery-title {
  margin: 0 0 8px 0;
  font-size: clamp(22px, 5vw, 44px);
  line-height: 1.03;
  letter-spacing: 0.2px;
  font-weight: 800;
  color: #ffffff;
}

.gallery-desc {
  margin: 0;
  color: #e9f0ff;
  line-height: 1.6;
  font-size: clamp(14px, 2.6vw, 18px);
  max-width: 1600px;
  opacity: 0.98;
  margin-bottom: 6px;
}

.gallery-counter {
  margin-top: 12px;
  color: #cbd5ff99;
  font-size: 13px;
}

@media (max-width: 768px) {
.project-info{
  left: 15%;
  aspect-ratio: 0;
  width: 100%;
}
.featured-projects-slider button{
  display: none;
}

  .gallery-prev,
  .gallery-next {
    display: none;
  }

  .gallery-caption-inner {
    padding: 16px;
  }

  .gallery-title {
    font-size: 20px;
  }

  .gallery-desc {
    font-size: 13px;
  }

  .gallery-clone {
    border-radius: 6px;
  }

  body::-webkit-scrollbar {
    display: none;
  }
  /* Featured projects */
  .project-info__inner {
    max-width: 100%;
  }
  .project-info--text_wrapper {
    transform: none;
    max-width: 100%;
  }
  /* Portfolio section */

  .project-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }
  .portfolio-grid-project-image {
    filter: blur(2px) brightness(0.7);
  }
  .project-title {
    backdrop-filter: none;
    background-color: rgba(0, 0, 0, 0);
  }
  .project-description,
  .project-technologies {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 15px;
  }
}

/* accessibility focus */
.gallery-prev:focus,
.gallery-next:focus,
.gallery-close:focus {
  outline: 2px solid rgba(120, 160, 255, 0.25);
  outline-offset: 2px;
}

/* utility hide when closed */
.gallery-overlay[aria-hidden="true"] {
  pointer-events: none;
}

.gallery-overlay[aria-hidden="false"] {
  pointer-events: auto;
}

/* ===== End FULLSCREEN GALLERY STYLES ===== */

/* TODO: RESPONSIVE */
@media (max-width: 1200px) {
  section {
    margin-bottom: 30px;
  }

  .profile {
    display: none;
  }

  .portfolio-grid {
    display: flex;
    flex-direction: column;
  }

  .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }

  .contact-container form {
    width: 80%;
  }

  .contact-info {
    max-width: 100%;
    padding-top: 0px;
    margin-top: 0px;
  }

  .contact-info h3 {
    margin-top: 0px;
  }

  .featured-projects-slider {
    max-width: 100%;
    width: 100%;
  }

  .single-project-image-wrapper {
    height: calc(150% - var(--padding));
    width: calc(120% - var(--padding));
  }

  .featured-projects-slider {
    height: 600px;
  }

  .featured-projects-slider-wrapper {
    top: -70px;
  }

  .featured-projects-slider-wrapper {
    height: 150%;
  }

  .hero-buttons {
    align-items: center;
  }

  .social-buttons {
    align-self: center;
  }
}

/* RESPONSIVE END */

.slide-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease-out;
}

.slide-in.active {
  opacity: 1;
  transform: translateY(0);
}