/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: #3b82f6;
  /* accent (buttons, links) */
  --secondary-color: #60a5fa;
  /* hover / subtle */
  --bg-primary: #d5f1f5;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #2c6c81;
  --card-background: #f8fafc;
  /* muy suave */
  --bg-secondary-two: #0f172a;
  --shadow: 0 10px 40px rgba(2, 6, 23, 0.08);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #60a5fa;
  --secondary-color: #3b82f6;
  --bg-primary: #0b1220;
  --text-color: #e6eef8;
  --text-color-two: #0b1220;
  --bg-secondary: #93bff1;
  --card-background: #071029;
  --bg-secondary-two: #f8fafc;
  --shadow: 0 6px 24px rgba(2, 6, 23, 0.5);

  /* --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2); */
}

.bar {
  background-color: var(--text-color);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

html,
body {
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar #logo img {
  display: block;
  width: 40px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 160px;
  /* ajusta al tamaño que usabas */
  height: 170px;
  border-radius: 47%;
  object-fit: cover;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}

/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}

.project-meta {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.35rem;

  display: flex;
  flex-wrap: wrap;
  /* permite que los badges salten a la siguiente fila */
  gap: 0.4rem 0.6rem;
  /* fila y columna gap (fila-gap column-gap) */
  justify-content: center;
  align-items: center;
  line-height: 1.3;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #eef2ff;
  color: #2a2a9a;
  margin-right: 0.35rem;
}

.card {
  padding: 1rem;
  background: var(--card-background);
  color: var(--text-color);
  border-radius: 5px;
  transition: 0.4s ease-in-out;
  /* display: flex;
  flex-direction: column; */
  cursor: pointer;
}


.card .project-bio p {
  font-size: 0.83rem;
}

.card .project-bio h3 {
  font-size: 0.9rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  position: relative;
  transition: 0.5s ease-in-out;

}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  /* margin-bottom: auto; */
  top: 160px;
  /* bottom: 1%; */
  left: 10px;
}

.action-group {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 600px) {
  .action-group {
    flex-direction: column;
    gap: 8px;
  }
}

/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.5rem 0;
}

#footer .social img {
  width: 25px;
  height: 25px;
}

#footer .social a {
  margin: 0 0.4rem;
}

#footer p {
  font-size: 0.8rem;
}

/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }



  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

.attribution {
  position: static;
  bottom: 0;
  left: 0;
  height: 22px;
  width: 193px;
  background-color: #000000;
  padding: 0px;
  text-align: center;
  color: #fff;
  margin-bottom: 6px;
  /* padding-bottom: 20px; */
}

.attribution span {
  background-color: #70250e;
  /* padding: */
  /* padding-left: 5px; */
  padding-right: 10px;
  padding-top: 2px;
  padding-bottom: 2px;
  /* border-radius: 5px; */
}

.attribution-text {
  /* position: absolute; */
  padding-left: 2.2%;
}


@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}








/* NUEVO */


/* Updated style.css with improved variables, badge wrap, card-bottom bio, and collapsible list styles */

/* Fonts import */
@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900);

/* variables */
/* :root{
  --primary-color: #3b82f6;
  --secondary-color: #60a5fa;
  --bg-primary: #ffffff;
  --text-color: #1f2937;
  --text-color-two: #ffffff;
  --bg-secondary: #111827;
  --card-background: #f8fafc;
  --bg-secondary-two: #0f172a;
  --shadow: 0 10px 40px rgba(2,6,23,0.08);

  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"]{
  --primary-color: #60a5fa;
  --secondary-color: #3b82f6;
  --bg-primary: #0b1220;
  --text-color: #e6eef8;
  --text-color-two: #0b1220;
  --bg-secondary: #111827;
  --card-background: #071029;
  --bg-secondary-two: #f8fafc;
  --shadow: 0 6px 24px rgba(2,6,23,0.5);
} */

/* Base */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  gap: 0.6rem;
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  color: var(--text-color);
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  border-radius: 30px;
  background-color: var(--text-color);
  transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

/* Hero / header */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  /* subtle bounce on desktop only */
  animation: bounce 1.1s infinite alternate;
  margin-bottom: 18px;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-6px);
  }
}

/* reduce animation on small screens */
@media (max-width:600px) {
  .profile-image {
    animation: none;
  }
}

/* division */
.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}

/* Projects container */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

/* PROJECT METADATA (BADGES WRAP) */
.project-meta {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  justify-content: center;
  align-items: center;
  line-height: 1.3;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary-color);
  margin: 0;
}

/* Card base (used if you keep grid cards later) */
.card {
  padding: 1rem;
  background: var(--card-background);
  color: var(--text-color);
  border-radius: 5px;
  transition: 0.4s ease-in-out;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  /* important: stack content vertically */
  min-height: 180px;
}

/* ensure .project-bio sits at bottom */
.project-bio {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Projects list (collapsible) styles */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* details/summary reset */
.project-item {
  background: var(--card-background);
  border-radius: 8px;
  padding: 0.6rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 0.4rem;
  list-style: none;
}

.project-summary:hover {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.project-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-title h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-color);
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.project-chevron {
  width: 18px;
  height: 18px;
  display: inline-block;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>') center/contain no-repeat;
  background: var(--text-color);
  transform: rotate(-90deg);
  transition: transform 0.25s ease;
}

/* when details is open rotate chevron */
.project-item[open] .project-chevron {
  transform: rotate(90deg);
}

/* project detail area */
.project-detail {
  padding: 0.6rem 0.4rem 0.6rem 0.4rem;
  color: var(--text-color);
  font-size: 0.95rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
  margin-top: 0.6rem;
}

.project-links a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width:1000px) {

  /* minor global */
  .content-text h2 {
    font-size: 2rem;
  }
}

@media (max-width:670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 20px;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Footer */
/* #footer { background: #111111; color: #fff; margin-top: 2rem; }
#footer .container { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:160px; text-align:center; }
#footer a { font-size:0.9rem; color:#fff; } */
.attribution {
  position: static;
  bottom: 0;
  left: 0;
  height: 22px;
  width: 171px;
  background-color: #000;
  padding: 0;
  text-align: center;
  color: #fff;
  margin-bottom: 6px;
}

.attribution span {
  background-color: #70250e;
  padding: 2px 4px;
}