/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.875rem;
  }
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: 0.5s;
  }
}
.nav__item {
  margin-bottom: var(--mb-4);
}
.nav__link {
  position: relative;
  color: #fff;
}
.nav__link:hover {
  position: relative;
}
.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.nav__logo {
  color: var(--second-color);
}
.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/

.home-section {
  padding: 60px 20px;
  background-color: #fff;
}

.home-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Left Text */
.home-text {
  flex: 1;
  min-width: 300px;
}

.name {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.first-name,
.last-name {
  color: #6a0dad;
}

.title {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  background-color: #6a0dad;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #530ca5;
}

/* Right Circular Image */
.home-image {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 250px;
  margin-top: 20px;
}

.circle-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #6a0dad;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== ABOUT =====*/

/* About Heading */
.about-heading {
  text-align: left;
  font-size: 2rem;
  font-weight: 600;
  margin: 50px 0 20px 80px; /* space from top and left */
  color: #333;
}

.about.section {
  background-color: #f9f9ff;
  padding: 40px 20px;
}

.about__container {
  max-width: 800px;
  margin: 0 auto;
}

.about__text {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  color: #444;
}

/* ===== EDUCATION =====*/
/* ===== EDUCATION =====*/

body {
  font-family: "Segoe UI", sans-serif;
  background: #f6f6f6;
  margin: 0;
  padding: 20px;
}

/* Heading outside the section */
.edu-title {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
  padding-left: 10px;
  margin-left: 20px;
}

/* Section container (can be optional if you don’t need specific section styling) */
.education-section {
  padding: 0 20px;
}

/* Each education block */
.education-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin: 15px auto;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Left column */
.edu-left {
  display: flex;
  flex-direction: column;
}

/* Degree styling */
.degree-title {
  font-weight: bold;
  color: #6a0dad; /* Adjusted from lab() to supported format */
  font-size: 18px;
}

/* College name */
.college-name {
  color: #555;
  margin-top: 5px;
}

/* CGPA or Marks */
.cgpa {
  color: #444;
  font-size: 14px;
  margin-top: 5px;
}

/* Right side (year) */
.edu-right {
  color: #6a0dad;
  font-weight: bold;
  font-size: 14px;
  text-align: right;
}

/* ===== SKILLS =====*/
/* General body styling */
body {
  font-family: "Segoe UI", sans-serif;
  background: #f4f6fc;
  margin: 0;
  padding: 30px;
  color: #333;
}

/* Section Title */
.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  padding-left: 12px;
  color: black;
  text-align: left;
  text-decoration: none;
  border: none;
  outline: none;
}

/* Skill category block */
.skills-category {
  margin-bottom: 30px;
  border: none;
  outline: none;
}

/* Subheadings like "Frontend Technologies" */
.category-title {
  font-size: 20px;
  font-weight: 600;
  color: #6a0dad; /* Replaced lab() with a safe orange color */
  margin-bottom: 10px;
  text-decoration: none;
  border: none;
  outline: none;
}

/* Skill tag container */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: none;
  outline: none;
}

/* Individual tags */
.tag {
  background-color: #e0e0e0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border: none;
  outline: none;
}

/* Hover effect */
.tag:hover {
  color: white;
  background-color: #6a0dad;
  cursor: default;
  text-decoration: none;
  border: none;
  outline: none;
}

/* ===== PROJECT =====*/
body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  background: #f7f9fc;
  color: #333;
}

.section-title {
  text-align: left;
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #000;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px 50px;
}

.project-card {
  background: #fff;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-header {
  background: linear-gradient(135deg, #1abc9c, #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.project-icon {
  width: 60px;
  height: 60px;
}

.project-content {
  padding: 20px;
}

.project-title {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #6a0dad;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.project-tags span {
  background: #eee;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 0.75rem;
  color: #555;
}

.project-desc {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.project-role {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 10px;
}

.project-link {
  text-decoration: none;
  color: #6a0dad;
  font-weight: bold;
}

.project-link:hover {
  text-decoration: underline;
  color: #6a0dad;
}

/* Responsive Fix */
@media (max-width: 768px) {
  .project-card {
    width: 90%;
  }
}

/* ===== INTERNSHIP =====*/
.internships-section {
  padding: 50px 20px;
  background-color: #fff;
}

.section-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
  padding-left: 12px;
}

.internship-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* aligns top */
  background-color: #fafafa;
  border-radius: 10px;
  padding: 20px;
  margin: 15px auto;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap; /* wraps on smaller screens */
}

.intern-left {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  min-width: 250px;
}

.intern-title {
  font-weight: bold;
  color: #6a0dad;
  font-size: 18px;
  margin-bottom: 5px;
}

.intern-org {
  color: #555;
  font-size: 14px;
  margin-bottom: 5px;
}

.intern-desc {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}

.intern-link {
  font-size: 14px;
  color: #6a0dad;
  text-decoration: none;
  margin-top: 5px;
}

.intern-link:hover {
  text-decoration: underline;
  color: #6a0dad;
}

.intern-right {
  text-align: right;
  font-weight: bold;
  font-size: 14px;
  color: #6a0dad;
  padding-left: 15px;
  min-width: 120px;
  margin-top: 8px;
}

/* === CERTIFICATIONS SECTION === */
/* Certifications Section */
html {
  scroll-behavior: smooth;
}

/* Reset anchor styles globally if needed */
a {
  text-decoration: none;
  color: inherit;
  border: none;
}
.section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.section h2 {
  text-align: left;
  margin-bottom: 30px;
  font-size: 2em;
  color: #333;
}

/* Certifications Grid */
.certifications {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  width: 250px;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.card p {
  font-size: 0.95em;
}

/* Color Themes for Cards */
.purple {
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
}
.blue {
  background: linear-gradient(135deg, #06beb6, #48b1bf);
}
.green {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}
.orange {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}
.pink {
  background: linear-gradient(135deg, #ff0844, #ffb199);
}

/* ===== CONTACT =====*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f2f2f7;
  color: #333;
}

.contact-heading {
  text-align: left;
  font-size: 28px;
  color: black;
  margin-bottom: 30px;
  padding-left: 0;
  border-left: none;
  max-width: none;
}
.container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  gap: 40px;
  flex-wrap: wrap;
}

.form-section {
  flex: 1;
  min-width: 300px;
}

form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}

button {
  background-color: #6a0dad;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #580ca6;
}

.note {
  font-size: 12px;
  color: gray;
  margin-top: 10px;
}

/* Contact info section */
.contact-info {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  background-color: #f9f9fe;
  border-radius: 10px;
}

.contact-info h3 {
  color: #6a0dad;
  margin-bottom: 25px;
  font-size: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.label {
  font-weight: bold;
  color: #444;
  margin: 0;
  font-size: 14px;
}

.info-item p {
  margin: 0;
  font-size: 14px;
}

.connect-label {
  margin-top: 25px;
  font-weight: bold;
  color: #444;
  font-size: 14px;
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 15px; /* spacing between icons */
  margin-top: 10px;
}

.social-icons a img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.social-icons a:hover img {
  filter: none;
}

/* ===== FOOTER =====*/
.footer {
  background-color: var(--second-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}
.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}
.footer__social {
  margin-bottom: var(--mb-4);
}
.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2);
}
.footer__copy {
  font-size: var(--smaller-font-size);
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}
@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home__img {
    width: 300px;
    bottom: 25%;
  }

  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }
}
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }

  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}
@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}
