/* ==== VARIABLES ==== */
:root {
  --bg-dark: #0e0e10;
  --bg-light: #f4f4f4;
  --accent: #00ff99;
  --text-light: #e0e0e0;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --font-main: 'Poppins', sans-serif;
}

/* ==== GLOBAL RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
}

body.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body.light-theme {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-main);
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

/* ==== HEADER ==== */
.header {
  width: 100%;
  background-color: var(--bg-dark);
  position: fixed;
  top: 0;
  z-index: 10000;
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav__logo {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: bold;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  position: relative;
}

.nav__link {
  position: relative;
  font-weight: 600;
  color: var(--text-light);
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent);
}

.nav__indicator {
  position: absolute;
  bottom: -4px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
  z-index: 1;
}

/* Ocultar botón de cerrar en escritorio */
.nav__close {
  display: none;
}

/* ==== MOBILE ==== */
@media (max-width: 768px) {
  .nav__list {
    position: fixed;
    top: 0;
    right: -100%; /* Oculto inicialmente */
    width: 100%;
    height: 100vh;
    background: rgba(14, 14, 16, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 30px;
    padding: 20px;
    z-index: 999999;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav__list.show-menu {
    right: 0; /* Se muestra */
  }

  .nav__link {
    padding: 15px 20px;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    width: auto;
    position: relative;
    z-index: 999999;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  }
  
  .nav__link:hover,
  .nav__link.active {
    color: var(--accent);
    background: rgba(0, 255, 153, 0.1);
  }

  .nav__indicator {
    display: none;
  }

  /* Close button (mobile) */
  .nav__close {
    position: absolute;
    top: 14px;
    right: 14px;
    list-style: none;
    display: block; /* Solo visible en móvil */
  }
  .nav__close button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
  }
  .nav__close button:hover {
    background: rgba(255,255,255,0.08);
  }
}

/* ==== SECTIONS ==== */
/* ==== SECTIONS ==== */
.section {
  padding: 100px 0 60px;
  width: 100%;
  overflow-x: hidden;
}

.section__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
}

/* ==== HOME ==== */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 120px;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.home__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.home__content {
  flex: 1;
  padding: 20px;
}

.home__title {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

.highlight {
  color: var(--accent);
}

.home__subtitle {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.home__description {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.home__buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn {
  background-color: var(--accent);
  color: var(--bg-dark);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent);
}

.home__socials a {
  font-size: 2rem;
  color: var(--text-light);
  margin-right: 15px;
  transition: transform 0.3s, color 0.3s;
}

.home__socials a:hover {
  color: var(--accent);
  transform: translateY(-3px) scale(1.2);
}

.home__img img {
  max-width: 350px;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--accent);
  transition: transform 0.4s ease;
}

.home__img img:hover {
  transform: rotate(3deg) scale(1.05);
}

/* ==== ABOUT ==== */
.about__text {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
  background: var(--glass-bg);
  padding: 30px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
}

/* ==== PROJECTS ==== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project__card {
  background-color: var(--glass-bg);
  border-radius: 15px;
  padding: 0;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
  border: 1px solid rgba(0, 255, 153, 0.1);
  overflow: hidden;
  display: block;
  color: inherit;
  cursor: pointer;
}

.project__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(0, 255, 153, 0.3);
  border-color: var(--accent);
}

.project__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.project__content {
  padding: 20px;
}

.project__card h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.project__description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 15px;
  opacity: 0.9;
}

.project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tech-tag {
  background: rgba(0, 255, 153, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 153, 0.2);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(0, 255, 153, 0.2);
  border-color: var(--accent);
}

/* ==== PROJECT MODALS ==== */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.project-modal.active {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal__content {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 20, 25, 0.95), rgba(10, 10, 15, 0.95));
  border: 1px solid rgba(0, 255, 153, 0.2);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 255, 153, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.modal__close:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: rotate(90deg);
  border-color: var(--accent);
}

.modal__title {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.modal__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 25px;
  border: 1px solid rgba(0, 255, 153, 0.2);
}

.modal__description {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 25px;
  opacity: 0.95;
}

.modal__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.modal__github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #00d684);
  color: var(--bg-dark);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
  text-decoration: none;
}

.modal__github:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 153, 0.5);
}

.modal__github i {
  font-size: 1.5rem;
}

/* ==== CONTACT ==== */
.contact__description {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-light);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.contact__item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 30px 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
}

.contact__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 255, 153, 0.3);
  border-color: var(--accent);
  background: rgba(0, 255, 153, 0.05);
}

.contact__item i {
  font-size: 3rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.contact__item:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px var(--accent));
}

.contact__info h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact__info p {
  color: var(--text-light);
  font-size: 0.95rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact__item {
    padding: 25px 20px;
  }
  
  .contact__item i {
    font-size: 2.5rem;
  }
}

/* ==== FOOTER ==== */
.footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
  border-top: 1px solid rgba(0, 255, 153, 0.1);
}

.footer__text {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer__subtitle {
  color: rgba(224, 224, 224, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.footer__subtitle i {
  color: #e74c3c;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
}

/* ==== SCROLL TO TOP BUTTON ==== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent);
  color: var(--bg-dark);
  border: none;
  padding: 15px;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent);
  z-index: 999;
  transition: transform 0.3s;
}

.scroll-top-btn:hover {
  transform: scale(1.2);
}

/* ==== MEDIA QUERIES ==== */
@media (max-width: 768px) {
  .home__container {
    flex-direction: column-reverse;
    text-align: center;
    max-width: 100%;
  }
  .home__img img {
    margin: 0 auto;
    max-width: 100%;
  }
  .projects__grid {
    grid-template-columns: 1fr;
  }
  
  /* Prevenir overflow horizontal */
  .home__title,
  .home__subtitle,
  .section__title {
    max-width: 100%;
    word-wrap: break-word;
  }
  
  .home__buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==== PARTICLES & NAV INDICATOR ==== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
  opacity: 0.25;
}


/* ==== PRELOADER ==== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease;
}

.loader-text {
  font-size: 2.5rem;
  color: var(--accent);
  font-family: var(--font-main);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

.home__subtitle {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 500;
  min-height: 2.2em; /* Mantiene altura */
  display: inline-block;
  white-space: nowrap;
}

.texto {
  display: flex;
  justify-content: center;
}

/* ==== SKILLS ==== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  justify-items: center;
  margin-top: 40px;
  padding: 0 20px;
  width: 100%;
  max-width: 100%;
}

.skill {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  padding: 25px 20px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 130px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.skill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 153, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill i {
  font-size: 3rem;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 8px currentColor);
  z-index: 1;
}

.skill-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(0, 255, 153, 0.3));
  z-index: 1;
}

.skill span {
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 1;
}

.skill:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 255, 153, 0.3);
  border-color: rgba(0, 255, 153, 0.3);
}

.skill:hover::before {
  opacity: 1;
}

.skill:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px currentColor);
}

.skill:hover .skill-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(0, 255, 153, 0.6));
}

/* Logos que necesitan inversión de color para fondo oscuro */
.skill:nth-child(7) .skill-logo {
  filter: invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.skill:nth-child(7):hover .skill-logo {
  filter: invert(1) drop-shadow(0 0 15px rgba(0, 255, 153, 0.6)) scale(1.1);
  transform: scale(1.1);
}

/* Logo de Mercado Pago */
.mercadopago-logo {
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .skills__grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    padding: 0 10px;
    max-width: 100%;
  }
  
  .skill {
    padding: 20px 15px;
    min-width: 100px;
    max-width: 100%;
  }
  
  .skill i {
    font-size: 2.5rem;
  }
  
  .skill-logo {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .skill span {
    font-size: 0.85rem;
  }
}

/* ==== EXPERIENCE ==== */
.experience__timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
  position: relative; /* needed for the progress line */
  padding-left: 80px; /* gutter for the line and points */
}

/* vertical progress line */
.experience__line {
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

.experience__line-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), rgba(0,255,153,0.6));
  border-radius: 4px;
  transition: height 0.25s linear;
}

.experience__item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid rgba(0, 255, 153, 0.1);
  transition: all 0.3s ease;
}

.experience__item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(0, 255, 153, 0.2);
  border-color: rgba(0, 255, 153, 0.3);
}

/* point marker for each item */
.experience__item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: var(--bg-dark);
  border: 3px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.experience__item.active::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0,255,153,0.35);
  transform: scale(1.15);
}

.experience__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 20px;
}

.experience__title-group {
  flex: 1;
}

.experience__item h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.experience__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.experience__type {
  display: inline-block;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.experience__type:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.experience__role {
  display: inline-block;
  font-size: 0.85rem;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--accent) 0%, #00d684 100%);
  padding: 5px 14px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 255, 153, 0.3);
  transition: all 0.3s ease;
}

.experience__role:hover {
  box-shadow: 0 4px 12px rgba(0, 255, 153, 0.5);
  transform: translateY(-2px) scale(1.02);
}

.experience__date {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.experience__item .experience__description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: rgba(224, 224, 224, 0.9);
}

.experience__item .experience__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.experience__tech-label {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: block;
}

.experience__tech-tag {
  background: rgba(0, 255, 153, 0.1);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 153, 0.2);
  transition: all 0.3s ease;
}

.experience__tech-tag:hover {
  background: rgba(0, 255, 153, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .experience__timeline { 
    padding-left: 35px; 
  }
  
  .experience__line { 
    left: 8px;
    width: 5px;
  }
  
  .experience__item::before { 
    left: -16px;
    width: 8px;
    height: 10px;
    border-width: 2px;
    top: 20px;
  }
  
  .experience__item.active::before {
    transform: scale(1.2);
  }
  
  .experience__header {
    flex-direction: column;
    gap: 10px;
  }
  
  .experience__date {
    align-self: flex-start;
  }
  
  .experience__item h3 {
    font-size: 1.3rem;
  }
}

/* ==== EDUCATION ==== */
.education__item {
  background-color: var(--glass-bg);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.education__item h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 5px;
}

.education__item p {
  font-size: 1rem;
}

/* ==== SERVICES ==== */
.services__subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(224, 224, 224, 0.7);
  margin-bottom: 50px;
  margin-top: -10px;
}

.services__categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.category__card {
  position: relative;
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}

.category__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 2px solid rgba(0, 255, 153, 0.2);
  border-radius: 25px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.category__card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 153, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.category__card:hover .category__card-inner {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 255, 153, 0.4);
}

.category__card:hover .category__card-inner::before {
  opacity: 1;
  transform: rotate(45deg);
}

.category__card:active .category__card-inner {
  transform: translateY(-10px) rotateX(10deg) rotateY(-10deg) scale(0.98);
}

.category__icon {
  font-size: 5rem;
  color: var(--accent);
  transition: all 0.6s ease;
  filter: drop-shadow(0 0 20px rgba(0, 255, 153, 0.5));
  position: relative;
  z-index: 1;
}

.category__card:hover .category__icon {
  transform: scale(1.2) rotateY(360deg);
  filter: drop-shadow(0 0 30px rgba(0, 255, 153, 0.8));
}

.category__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
}

.category__count {
  font-size: 0.95rem;
  color: rgba(224, 224, 224, 0.6);
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* ==== SERVICE MODAL ==== */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-modal.active {
  display: flex;
  opacity: 1;
}

.service-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-modal__content {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 15, 20, 0.98), rgba(8, 8, 12, 0.98));
  border: 2px solid rgba(0, 255, 153, 0.3);
  border-radius: 30px;
  padding: 50px;
  max-width: 1100px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 255, 153, 0.4);
  animation: modalZoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

@keyframes modalZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.5) rotateY(-180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

.service-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  z-index: 10;
}

.service-modal__close:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: rotate(90deg) scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

.service-modal__title {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 0 0 15px rgba(0, 255, 153, 0.4);
  padding-right: 60px;
}

.service-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.modal-service__card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(0, 255, 153, 0.15);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.modal-service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 153, 0.1), transparent);
  transition: left 0.6s ease;
}

.modal-service__card:hover::before {
  left: 100%;
}

.modal-service__card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(0, 255, 153, 0.3);
}

.modal-service__icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 15px;
  display: block;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(0, 255, 153, 0.3));
}

.modal-service__card:hover .modal-service__icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(0, 255, 153, 0.6));
}

.modal-service__card h3 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.modal-service__card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(224, 224, 224, 0.85);
  margin-bottom: 15px;
}

.modal-service__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.modal-tech-tag {
  background: rgba(0, 255, 153, 0.1);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 153, 0.2);
  transition: all 0.3s ease;
}

.modal-tech-tag:hover {
  background: rgba(0, 255, 153, 0.2);
  transform: translateY(-2px);
}

.modal-service__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-service__features li {
  font-size: 0.9rem;
  color: rgba(224, 224, 224, 0.8);
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.modal-service__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Responsive for services */
@media (max-width: 768px) {
  .services__categories {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 10px;
  }
  
  .category__card {
    height: 220px;
  }
  
  .category__card-inner {
    padding: 25px 20px;
  }
  
  .category__icon {
    font-size: 3.5rem;
  }
  
  .category__title {
    font-size: 1.3rem;
  }
  
  .service-modal__content {
    padding: 30px 20px;
    max-height: 90vh;
  }
  
  .service-modal__title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-right: 50px;
  }
  
  .service-modal__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-modal__close {
    width: 40px;
    height: 40px;
    font-size: 2rem;
    top: 15px;
    right: 15px;
  }
}

/* ==== NAV TOGGLE (MOBILE MENU) ==== */
.nav__toggle {
  display: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  z-index: 9999999;
  position: relative;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Modal responsive */
  .modal__content {
    padding: 25px;
    max-height: 85vh;
  }

  .modal__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-right: 30px;
  }

  .modal__image {
    height: 200px;
    margin-bottom: 20px;
  }

  .modal__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .modal__close {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    top: 15px;
    right: 15px;
  }

  .modal__github {
    width: 100%;
    justify-content: center;
  }
}