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

/*=============== VARIABLES ===============*/
:root {
  --header-height: 3.5rem;

  --hue: 255;
  --first-color: hsl(var(--hue), 60%, 64%);
  --first-color-alt: hsl(var(--hue), 80%, 56%);
  --first-color-light: hsl(var(--hue), 60%, 74%);
  --title-color: hsl(240, 8%, 95%);
  --text-color: hsl(240, 8%, 70%);
  --body-color: hsl(240, 100%, 2%);

  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;

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

  --z-fixed: 100;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 1rem;
  background-color: var(--body-color);
  color: var(--text-color);
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2rem;
}

.nav__logo {
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.nav__list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  position: relative;
  transition: color 0.3s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--first-color);
  transition: width 0.3s;
}

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

.nav__link:hover::after,
.nav__link.active-link::after { width: 100%; }

/* Resume Button */
.nav__button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--first-color);
  color: #fff;
  border-radius: 30px;
  transition: background 0.3s, transform 0.3s;
}

.nav__button:hover {
  background: var(--first-color-alt);
  transform: translateY(-2px);
}

/* Mobile */
.nav__toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}


/*=============== HOME ===============*/
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.home__greeting {
  color: var(--first-color);
}

.home__name {
  font-family: var(--second-font);
  font-size: 2.5rem;
  color: var(--title-color);
}

.home__image {
  position: relative;
}

.home__perfil {
  width: 280px;
  border-radius: 20px;
  z-index: 2;
}

/* Blob Background */
.blob-animate {
  width: 250px;
  height: 250px;
  background: linear-gradient(180deg, var(--first-color-alt), var(--first-color-light));
  border-radius: 50%;
  filter: blur(50px);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: rotate 6s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg); }
}

/* Animated Text */
.home__split {
  font-size: 1.2rem;
  font-weight: var(--font-semi-bold);
  background: linear-gradient(90deg, var(--first-color), var(--first-color-light), var(--first-color-alt));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

@keyframes shineText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.home__profession-1,
.home__profession-2 {
  font-family: var(--second-font);
  font-size: 1.5rem;
  color: var(--title-color);
}

/* Social */
.home__social {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.home__social-link {
  color: var(--title-color);
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

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

/*=============== RESPONSIVE ===============*/
@media (max-width: 768px) {
  .nav__list {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(15, 15, 30, 0.95);
    padding: 1.5rem;
    display: none;
  }

  .nav__list.show-menu { display: flex; }

  .nav__button { display: none; }

  .nav__toggle { display: block; }

  .home__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home__perfil {
    width: 220px;
  }
}

/*==================== ABOUT SECTION ====================*/
.about__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* photo larger than text */
  align-items: center;
  gap: 4rem;
  margin-top: 5rem;
}

/* Left Photo */
.about__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Blob behind photo */
.blob-animate.about-blob {
  width: 450px;
  height: 450px;
  background: linear-gradient(180deg, #9b5de5, #6a4c93, #c77dff);
  border-radius: 50%;
  filter: blur(60px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 8s linear infinite, pulse 4s ease-in-out infinite;
  z-index: 1;
}

/* Large Profile Photo */
.about__perfil {
  width: 400px;
  border-radius: 20px;
  z-index: 2;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about__perfil:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(155, 93, 229, 0.7);
}

/* Right Creative Text */
.about__data {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Animated gradient title */
.about__title.animated-gradient {
  font-family: var(--second-font);
  font-size: 3rem;
  font-weight: var(--font-semi-bold);
  background: linear-gradient(90deg, #ff6ec7, #6a4c93, #c77dff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

/* Description */
.about__description {
  color: var(--text-color);
  font-size: 1.25rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  animation: fadeInRight 1.5s ease forwards;
}

/* Resume button below text */
.resume-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: var(--font-medium);
  color: #fff;
  background: linear-gradient(90deg, #9b5de5, #6a4c93, #ff6ec7);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  overflow: hidden;
  animation: float 3s ease-in-out infinite, fadeInUp 1.5s ease forwards;
  transition: transform 0.3s, box-shadow 0.3s;
  width: auto; /* wraps text */
  text-align: center;
}

.resume-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, #9b5de5, #6a4c93, #ff6ec7);
  background-size: 400% 400%;
  filter: blur(25px);
  opacity: 0.5;
  z-index: -1;
  animation: gradientGlow 6s ease infinite;
}

.resume-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(155, 93, 229, 0.5);
}

/*==================== ANIMATIONS ====================*/
@keyframes shineText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

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

@keyframes gradientGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/*==================== RESPONSIVE ====================*/
/* Large tablets */
@media (max-width: 1024px) {
  .about__container { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
  .about__perfil { width: 350px; }
  .about__title.animated-gradient { font-size: 2.6rem; }
  .about__description { font-size: 1.15rem; }
}

/* Tablets & small laptops */
@media (max-width: 768px) {
  .about__container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .about__perfil { width: 250px; margin: 0 auto; }
  .about__title.animated-gradient { font-size: 2rem; }
  .about__description { font-size: 1rem; }
  .resume-btn { margin-top: 1.5rem; padding: 0.7rem 1.8rem; font-size: 0.95rem; }
}

/* Small mobiles */
@media (max-width: 480px) {
  .about__title.animated-gradient { font-size: 1.8rem; }
  .about__description { font-size: 0.95rem; }
  .resume-btn { padding: 0.6rem 1.6rem; font-size: 0.9rem; }
  .about__perfil { width: 180px; }
  .blob-animate.about-blob { width: 250px; height: 250px; }
}
/*==================== PROJECTS SECTION ====================*/
.projects {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background-color: hsl(240, 100%, 2%);
}

.section__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
}

.section__title span {
  color: #9b5de5;
}

.projects__swiper {
  width: 100%;
  max-width: 700px;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

/* Project Card */
.projects__card {
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.projects__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(155, 93, 229, 0.5);
}

.projects__number {
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
}

.projects__type {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9b5de5;
  text-align: right;
  text-transform: uppercase;
}

.projects__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.projects__subtitle {
  font-size: 0.85rem;
  color: #9b5de5;
}

.projects__description {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}

/* Image & Buttons */
.projects__image {
  position: relative;
  margin-top: 1rem;
}

.projects__img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
}

.projects__img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(155, 93, 229, 0.4);
}

.projects__buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  gap: 0.5rem;
}

.projects__btn {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  border-radius: 50px;
  background: linear-gradient(90deg, #9b5de5, #6a4c93, #ff6ec7);
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.projects__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(155, 93, 229, 0.5);
}

/* Swiper navigation & pagination */
.swiper-button-next,
.swiper-button-prev {
  color: #9b5de5;
}

.swiper-pagination {
  margin-top: 1rem;
}

.swiper-pagination-bullet {
  background: #9b5de5;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Background Blob behind card */
.projects__card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(180deg, #9b5de5, #6a4c93, #c77dff);
  border-radius: 50%;
  filter: blur(50px);
  top: -40px;
  right: -40px;
  z-index: 0;
  animation: rotate 15s linear infinite, pulse 6s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
  .projects__card { max-width: 350px; }
  .projects__title { font-size: 1rem; }
  .projects__description { font-size: 0.8rem; }
  .projects__btn { font-size: 0.8rem; padding: 0.4rem 0; }
  .section__title { font-size: 2rem; }
}
/*=============== WORK SECTION ===============*/
/* Section Title */
.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  background: linear-gradient(90deg, #ffffff, #bdbdbd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Timeline container */
.work__container {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 20px 0;
}

/* Vertical Line */
.work__container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background: #9d6bff;
  transform: translateX(-50%);
}

/* Each Card */
.work__card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 50px 0;
}

/* Left Side (Title, School, Year) */
.work__data {
  width: 40%;
  text-align: right;
  padding-right: 30px;
}

.work__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.work__subtitle {
  color: #9d6bff;
  font-size: 1rem;
  margin: 5px 0;
}

.work__year {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

/* Right Side (Description) */
.work__description {
  width: 45%;
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
  color: #cfcfcf;
  padding-left: 30px;
}

/* Purple Dots */
.work__card::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  width: 18px;
  height: 18px;
  background: #9d6bff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(157, 107, 255, 0.7);
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  .work__container::before {
    left: 10px;
  }

  .work__card {
    flex-direction: column;
    text-align: left;
    margin: 40px 0;
    padding-left: 30px;
  }

  .work__data,
  .work__description {
    width: 100%;
    text-align: left;
    padding: 0;
  }

  .work__card::after {
    left: 10px;
    transform: translateX(0);
  }
}

/*==================== SERVICES SECTION ====================*/
.services {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  background-color: #000; /* black background */
  text-align: center;
}

/* Container */
.services__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
}

/* Card */
.services__card {
  background: #1a1a1a; /* card dark gray */
  padding: 2.5rem 2rem;
  border-radius: 20px;
  max-width: 300px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: float 4s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Card Glow (optional) */
.card-glow {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #9d6bff, #7b4de3);
  filter: blur(50px);
  z-index: -1;
  border-radius: 50%;
}

/* Title */
.services__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #9d6bff, #7b4de3, #c77dff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

/* Skills List */
.services__skills {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
}

.services__skill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.5), -4px -4px 8px rgba(255,255,255,0.05);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services__skill:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(157,107,255,0.4), -4px -4px 8px rgba(255,255,255,0.05);
}

/* Skill Logos */
.services__skill img {
  width: 24px;
  height: 24px;
}

/* Text Animation */
@keyframes shineText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

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

  .services__card {
    max-width: 90%;
  }

  .services__skills {
    flex-direction: column;
  }
}
/*==================== CONTACT SECTION ====================*/
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  background-color: #000; /* full black background */
  text-align: center;
}

/* Container / Card */
.contact__container {
  background: #1a1a1a; /* dark card */
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: float 4s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Card Glow */
.card-glow {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #9d6bff, #7b4de3);
  filter: blur(50px);
  z-index: -1;
  border-radius: 50%;
}

/* Title */
.contact__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #9d6bff, #7b4de3, #c77dff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

/* Description */
.contact__description {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

/* Info / Social Links */
.contact__info,
.contact__social,
.contact__write {
  margin-top: 2rem;
}

.contact__title-small {
  font-size: 1.2rem;
  font-weight: 500;
  color: #9d6bff;
  margin-bottom: 0.5rem;
}

.contact__address {
  color: #ccc;
  font-style: normal;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.contact__link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: transform 0.3s, color 0.3s;
}

.contact__link:hover {
  color: #9d6bff;
  transform: translateY(-3px);
}

/* Contact Button */
.contact__button {
  background: #9d6bff;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact__button:hover {
  background: #7b4de3;
  transform: scale(1.05);
}

/* Text Animation */
@keyframes shineText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Responsive */
@media (max-width: 768px) {
  .contact__container {
    padding: 2rem;
  }

  .contact__links {
    gap: 0.6rem;
  }
}

/*==================== FOOTER ====================*/
.footer {
  background-color: #000; /* black background */
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
}

.footer__copy span {
  color: #9d6bff; /* purple accent */
  font-weight: 600;
}

.footer__year {
  color: #ccc;
  font-size: 0.95rem;
}

/* Hover effect for future social links or span if needed */
.footer__copy span:hover {
  color: #7b4de3;
  transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
  }
}
/*=============== SCROLLREVEAL ===============*/
::-webkit-scrollbar{
  width: .6rem;
  background-color: hsl(240, 6%, 12%);
  border-radius: .5rem;
}

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

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

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(240, 6%, 24%);

}
/*Active Link */
.active-link{
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}