/* ==========================================================
   GENERAL STYLES
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}
:root {
  --bg-color: #080808;
  --second-bg-color: #131313;
  --text-color: #f0f0f0;
  --main-color: #00ffee;
  --highlight-color: #ffcc00;
  --secondary-color: #ff6f61; /* Un color de acento adicional */
  --hover-color: #00ccaa; /* Color para efectos hover */
}

html {
  font-size: 60%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}

/* Animación fade in up universal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.18, 1),
    transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay] {
  transition-delay: var(--delay, 0s);
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4rem 8% 4rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  transition: 0.3s ease;
}
.logo span {
  text-shadow: 0 0 25px var(--main-color);
}
.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}
#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}

section {
  min-height: 100vh;
  padding: 10rem 12% 10rem;
}

.navbar {
  display: flex;
  align-items: center;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 8rem;
}
.lang-btn {
  background: transparent;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  border-radius: 1rem;
  padding: 0.5rem 1.2rem;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--main-color);
  color: #000;
}

/* ==========================================================
   HOME SECTION
   ========================================================== */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}
.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  margin-top: 3rem;
}
span {
  color: var(--main-color);
}
.logo span {
  color: var(--main-color);
}
.home-content h3 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 3.5rem;
}
.home-content h1 {
  font-size: 7rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}
.home-img {
  border-radius: 0;
}
.home-img img {
  position: relative;
  top: 3rem;
  width: 32vw;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
  max-width: 340px;
  height: 340px;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}
.home-content p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
}

/* ==========================================================
   SOCIAL ICONS
   ========================================================== */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease-in-out;
}
.social-icons a:hover {
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: black;
  border: 2px solid transparent;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}
.btn-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.btn-group a:nth-of-type(2) {
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: black;
}

/* ==========================================================
   TEXT TYPING ANIMATION
   ========================================================== */
.text-animation {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--main-color);
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
}
#typing-text {
  border-right: 2px solid var(--main-color);
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
  font-size: inherit;
  min-width: 1px;
  height: 1.3em;
  animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

/* ==========================================================
   EDUCATION SECTION
   ========================================================== */
.heading {
  font-size: 8rem;
  text-align: center;
  margin: 5rem 0;
}
.education {
  padding: 100px 15px;
  background-color: var(--second-bg-color);
}
.education h2 {
  margin-bottom: 5rem;
}
.timeline-items {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.timeline-items::before {
  content: "";
  position: absolute;
  width: 3px;
  height: calc(100% - 60px);
  background-color: var(--main-color);
  left: 50%;
  transform: translateX(-50%);
}
.timeline-item {
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(var(--i) * 0.2s);
  margin-bottom: 20px;
}
.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}
.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}
.timeline-item:nth-child(odd) .timeline-content ul {
  padding-right: 0;
  margin-right: 0;
  list-style-position: outside;
  text-align: right;
  padding-inline-start: 1.2em;
}

.timeline-item:nth-child(odd) .timeline-content ul li {
  text-align: right;
  margin-bottom: 0.6rem;
}

.timeline-dot {
  height: 20px;
  width: 20px;
  background-color: var(--main-color);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--main-color);
}
.timeline-date {
  font-size: 30px;
  font-weight: 800;
  color: #f0f0f0;
  margin: 6px 0 15px;
}
.timeline-content {
  background-color: var(--bg-color);
  border: 3px solid var(--main-color);
  padding: 30px 40px;
  border-radius: 3rem;
  box-shadow: 0 0 20px var(--main-color);
  transition: 0.3s ease-in-out;
}
.timeline-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.timeline-content p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.7;
}
.timeline-content ul {
  margin-top: 10px;
  margin-left: 20px;
  padding-left: 20px;
  color: #ccc;
  font-size: 15px;
  line-height: 1.6;
  list-style-type: disc;
}
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}
::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}

/* ==========================================================
   SERVICES SECTION
   ========================================================== */
.services {
  background: var(--bg-color);
  color: black;
}
.services h2 {
  color: white;
  font-size: 8rem;
  text-align: center;
  margin: 3rem 0;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2.5rem;
}
.service-box {
  background-color: var(--main-color);
  height: 300px;
  border-radius: 3rem;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
}
.service-box .service-info {
  display: flex;
  flex-direction: column;
  text-align: justify;
  height: 100px;
  max-height: none;
  align-items: baseline;
  padding: 2.5rem;
  overflow: visible;
}
.service-info h4 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 2;
  text-align: center;
}
.service-info {
  font-size: 1.6rem;
  font-weight: 600;
  max-height: 100px;
  line-height: 1.7;
  margin: auto;
}

/* ==========================================================
   CERTIFICATES SECTION
   ========================================================== */
.certificates {
  padding: 10rem 5%;
  background: var(--second-bg-color);
  text-align: center;
}

.certificates .heading {
  font-size: 6rem;
  text-align: center;
  margin: 5rem 0;
  padding-bottom: 2rem;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.certificate-card {
  background-color: var(--bg-color);
  border: 3px solid var(--main-color);
  border-radius: 2rem;
  box-shadow: 0 0 15px var(--main-color);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}

.certificate-card img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px var(--main-color);
}

.certificate-card h3 {
  color: var(--main-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.certificate-card p {
  color: #ccc;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.btn-cert {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--main-color);
  color: black;
  font-weight: bold;
  border-radius: 1rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-cert:hover {
  background-color: #00fff7;
  transform: scale(1.05);
}

.certificate-info {
  text-align: left;
  padding: 0 1rem;
}

.certificate-info p {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: #bbb;
}

.certificate-info p strong {
  color: var(--main-color);
  font-weight: 600;
}

/* ==========================================================
   PORTFOLIO SECTION
   ========================================================== */
.portfolio {
  padding: 10rem 5%;
  background: var(--bg-color); /* Change background to differentiate */
  text-align: center;
}

.portfolio .heading {
  font-size: 6rem;
  text-align: center;
  margin: 5rem 0;
  color: white;
  padding-bottom: 2rem;
}

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
}

.portfolio-box {
  background-color: var(--bg-color);
  border: 3px solid var(--main-color);
  border-radius: 2rem;
  box-shadow: 0 0 10px var(--main-color);
  padding: 2rem;
  width: 350px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(20px);
}

.portfolio-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}

.portfolio-box h3 {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 2rem;
  text-shadow: 0 0 10px var(--main-color);
}

.portfolio-preview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.portfolio-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
}

.portfolio-item h4 {
  font-size: 1.6rem;
  color: #ccc;
  margin: 0;
}

.portfolio-item h4 a {
  color: inherit; /* Inherit text color */
  text-decoration: none; /* Remove underline */
  transition: color 0.3s ease;
}

.portfolio-item h4 a:hover {
  color: var(--main-color); /* Highlight on hover */
}

/* ==========================================================
   TESTIMONIALS SECTION
   ========================================================== */
.testimonials {
  background: var(--second-bg-color);
}
.testimonials-box {
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.testimonials .heading {
  margin-bottom: 5rem;
}
.testimonials-box img {
  width: 15rem;
  border-radius: 50%;
  border: 3px solid var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
}
.wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.testimonial-item {
  min-height: 550px;
  max-width: 450px;
  background: rgba(0, 0, 0, 0.7);
  border: 3px solid rgba(238, 238, 238, 0.2);
  border-radius: 2rem;
  margin: 0 2rem;
  padding: 30px 60px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  color: white;
  transition: 0.4s ease-in-out;
}
.testimonial-item:hover {
  border: 3px solid var(--main-color);
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 50px var(--main-color);
}
.testimonial-item h2 {
  font-size: 2.8rem;
}
.testimonial-item p {
  font-size: 1.3rem;
}
#star {
  color: gold;
  font-size: 2rem;
}

/* ==========================================================
   CONTACT SECTION
   ========================================================== */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal Content */
.contact-modal-content {
  background: var(--bg-color);
  padding: 3rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 25px var(--main-color);
  position: relative;
  color: var(--text-color);
}

/* Close Button */
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--main-color);
  color: black;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease-in-out;
}

.close-modal:hover {
  background: var(--highlight-color);
  color: white;
}

/* Input Styles (reuse existing styles) */
.contact-modal-content input,
.contact-modal-content textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--second-bg-color);
  border-radius: 1rem;
  border: 2px solid var(--main-color);
  margin: 1rem 0;
  resize: none;
}

.contact-modal-content .btn {
  margin-top: 2rem;
  width: 100%;
}

.toast {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  min-width: 220px;
  max-width: 90vw;
  background: #181f23;
  color: #fff;
  padding: 1.5rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 30px var(--main-color);
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.4s, transform 0.4s;
  transform: translateY(40px);
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.toast.success {
  border-left: 6px solid #00ffee;
}
.toast.error {
  border-left: 6px solid #ff4d4f;
}
.toast .toast-spinner {
  border: 3px solid #00ffee;
  border-top: 3px solid #222;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================
   MY GUIDE SECTION
   ========================================================== */
.docs {
  padding: 10rem 5%;
  background: var(--second-bg-color);
  text-align: center;
}

.docs .heading {
  font-size: 6rem;
  text-align: center;
  margin: 5rem 0;
  color: white;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px var(--main-color), 0 0 20px var(--main-color);
  }
  100% {
    text-shadow: 0 0 10px var(--main-color), 0 0 20px var(--main-color);
  }
}

.docs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--bg-color);
  border: 3px solid var(--main-color);
  border-radius: 2rem;
  box-shadow: 0 0 20px var(--main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.docs-container:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px var(--main-color);
}

.docs-text {
  flex: 1;
}

.docs-text h3 {
  font-size: 3rem;
  color: var(--main-color);
  margin-bottom: 2rem;
  text-align: center;
}

.docs-text p {
  font-size: 1.6rem;
  color: #e0e0e0; /* Cambia de #ccc a un gris más claro */
  line-height: 1.8;
  margin-bottom: 2rem;
}

.docs-text ul {
  margin: 2rem 0;
  padding-left: 1.5rem;
  color: #e0e0e0; /* Cambia de #ccc a un gris más claro */
  font-size: 1.4rem;
  line-height: 2;
}

.docs-text ul li {
  margin-bottom: 1rem;
  list-style: none;
  position: relative;
  padding-left: 1rem;
}

.docs-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--main-color);
}

.docs-text .btn-docs {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background-color: var(--main-color);
  color: black;
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.docs-text .btn-docs:hover {
  background-color: #00fff7;
  transform: scale(1.05);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px #00fff7, 0 0 20px #00fff7;
  }
  100% {
    box-shadow: 0 0 20px #00fff7, 0 0 40px #00fff7;
  }
}

.docs-image {
  flex: 1;
  text-align: center;
}

.docs-image img {
  max-width: 100%;
  border-radius: 1rem;
  border: 3px solid var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.update-tag {
  color: #888;
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: var(--bg-color);
}
.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: var(--main-color);
}
.footer .social a {
  font-size: 25px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}
.footer .social a:hover {
  transform: scale(1.2) translateY(-10px);
  background-color: var(--main-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
}
.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}
.footer ul li {
  display: inline-block;
  padding: 0 15px;
}
.footer .copyright {
  margin-top: 10px;
  text-align: center;
  font-size: 16px;
  color: white;
}

/* ==========================================================
   SCROLL TO TOP BUTTON
   ========================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--main-color);
  color: black;
  border-radius: 50%;
  width: 8rem;
  height: 8rem;
  display: none; /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  cursor: pointer;
  box-shadow: 0 0 15px var(--main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--main-color);
}

/* ==========================================================
   MEDIA QUERIES
   ========================================================== */

@media (max-width: 1600px) {
  #menu-icon {
    display: block;
    z-index: 200;
    cursor: pointer;
    transition: color 0.2s;
  }
  .navbar {
    position: absolute;
    top: 100%;
    right: 2%;
    width: 350px;
    max-width: 90vw;
    padding: 2.5rem 2rem 2.5rem 2rem;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    border: 2px solid var(--main-color);
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 0 30px var(--main-color);
    z-index: 150;
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.18, 1);
    transform: translateX(100%);
  }
  .navbar.active {
    display: flex;
    transform: translateX(0);
  }
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 1.2rem 0;
    padding: 1rem 0 1rem 0.5rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0, 255, 238, 0.12);
    border-radius: 0.5rem;
    text-align: left;
    transition: background 0.2s, color 0.2s;
  }
  .navbar a:last-child {
    border-bottom: none;
  }
  .navbar a:hover,
  .navbar a.active {
    background: rgba(0, 255, 238, 0.08);
    color: var(--main-color);
  }
  .lang-switcher {
    margin: 2rem 0 0 0;
    justify-content: flex-start;
    gap: 1.2rem;
  }
  .lang-btn {
    font-size: 1.5rem;
    padding: 0.7rem 2.2rem;
    border-radius: 1.5rem;
    border-width: 2px;
    margin: 0;
  }
}
@media (max-width: 1500px) {
  .service-box {
    height: 330px;
  }
}
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
  .services {
    padding-bottom: 7rem;
  }
  .services-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 5rem;
  }
}
@media (max-width: 1109px) {
  .service-box {
    height: 390px;
  }
  .service-info h4 {
    padding-top: 10px;
    font-size: 2.5rem;
  }
}
@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .timeline-items::before {
    left: 7px;
  }
  .timeline-item:nth-child(odd) {
    padding-right: 30px;
    text-align: left;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-right: 30px;
    padding-left: 37px;
  }
  .timeline-content ul {
    margin-left: 5px;
  }
  .timeline-item:nth-child(odd) .timeline-content ul li {
    text-align: left;
  }
  .timeline-dot {
    left: 7px;
  }
  .service-info h4 {
    padding-top: 30px;
  }
  .footer {
    padding: 2rem 3%;
  }
}
@media (max-width: 895px) {
  .navbar {
    right: 0;
    width: 95vw;
    max-width: 99vw;
    padding: 2rem 1rem 2rem 1rem;
  }
  .navbar a {
    font-size: 1.7rem;
    margin: 1rem 0;
    padding: 1rem 0 1rem 0.5rem;
  }
  .lang-switcher {
    margin: 2rem 0 0 0;
    gap: 1rem;
  }
  .lang-btn {
    font-size: 1.3rem;
    padding: 0.6rem 1.5rem;
  }
  .home {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 4rem;
    margin: 3rem 2rem;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }
  .home-content h1 {
    font-size: 8rem;
    margin-top: 3rem;
  }
  .home-content p {
    max-width: 600px;
    margin: 0 auto;
  }
  .home-img img {
    width: 60vw;
  }
  .services h2 {
    margin-bottom: 3rem;
  }
  .service-box {
    height: 240px;
  }
  .service-info h4 {
    padding-top: 10px;
  }
  .services-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    margin-top: 1rem;
  }
  .certificates-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  .certificate-card img {
    max-width: 90%;
    margin: 0 auto;
  }

  .portfolio-container {
    flex-direction: column;
    align-items: center;
  }

  .portfolio-box {
    width: 100%;
    max-width: 400px;
  }

  .docs-container {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem; /* Aumenta el espacio entre los elementos */
  }

  .docs-text {
    text-align: center;
  }

  .docs-text h3 {
    text-align: center;
    margin-bottom: 2rem; /* Agrega espacio debajo del texto */
  }

  .docs-text p,
  .docs-text ul {
    font-size: 1.2rem;
  }

  .docs-image img {
    max-width: 90%;
    margin: 0 auto; /* Centra la imagen */
  }
}
@media (max-width: 729px) {
  .service-box {
    height: 250px;
  }
  .service-info h4 {
    padding-top: 0px;
  }
}
@media (max-width: 649px) {
  .service-box {
    height: 260px;
  }
}
@media (max-width: 590px) {
  .service-box {
    height: 330px;
  }
  .service-info h4 {
    padding-top: 10px;
  }
}
@media (max-width: 576px) {
  .portfolio-box {
    width: 100%;
    padding: 1.5rem;
  }
  .portfolio-item img {
    width: 50px;
    height: 50px;
  }
}
@media (max-width: 495px) {
  .service-box {
    height: 370px;
  }
  .service-info h4 {
    padding-top: 10px;
    font-weight: 700px;
    font-size: 19px;
  }
  .heading {
    font-size: 55px;
  }
}
@media (max-width: 430px) {
  .service-box {
    height: 320px;
  }
  .service-info h4 {
    padding-top: 5px;
    font-size: 15px;
  }
  .service-info p {
    font-size: 12px;
  }
  .heading {
    font-size: 55px;
  }
  .certificates .heading {
    font-size: 40px;
    padding-bottom: 1rem;
    margin: 2rem 0;
  }
}
@media (max-width: 379px) {
  .service-box {
    height: 330px;
  }
  .heading {
    font-size: 55px;
  }
  .timeline-content p,
  li {
    font-size: 12px;
  }
  .timeline-content h3 {
    font-size: 18px;
  }
  .heading {
    font-size: 50px;
  }
}

/* ==========================================================
   CUSTOM ADDITIONS — VAIBHAV PORTFOLIO
   ========================================================== */

/* CV Download Button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent !important;
  border: 2px solid var(--main-color) !important;
  color: var(--main-color) !important;
  padding: 1rem 2.8rem;
  border-radius: 4rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--main-color) !important;
  color: #000 !important;
  box-shadow: 0 0 20px var(--main-color);
}

/* Cert card icon */
.cert-icon {
  font-size: 4.5rem;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

/* Cert badge label */
.cert-badge {
  display: inline-block;
  background: rgba(0, 255, 238, 0.12);
  color: var(--main-color);
  border: 1px solid var(--main-color);
  border-radius: 2rem;
  font-size: 1.2rem;
  padding: 0.3rem 1.2rem;
  margin: 0.8rem 0 1.2rem;
  letter-spacing: 0.5px;
}

/* Hero image — square with rounded corners, proper crop */
.home-img img {
  position: relative;
  top: 3rem;
  width: 30vw;
  max-width: 320px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: 0 0 35px var(--main-color);
  transition: 0.4s ease-in-out;
}
.home-img img:hover {
  box-shadow: 0 0 55px var(--main-color);
  transform: scale(1.02);
}

/* ==========================================================
   CERT PREVIEW CARDS — Visual cert thumbnails
   ========================================================== */
.cert-preview {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.cert-preview-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
}
.cert-logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.85;
  text-transform: uppercase;
}
.cert-title-big {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}
.cert-sub {
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.75;
  max-width: 220px;
}

/* OffSec dark orange theme */
.offsec-bg {
  background: linear-gradient(135deg, #1a0a00 0%, #3d1800 50%, #1a0a00 100%);
  color: #e05a20;
  border: 1px solid #e05a2055;
}
.offsec-bg .cert-logo-text { color: #e05a20; }
.offsec-bg .cert-title-big { color: #ff6a28; text-shadow: 0 0 20px #e05a2088; }
.offsec-bg .cert-sub { color: #cc8060; }

/* eLearnSecurity red/purple theme */
.ewptx-bg {
  background: linear-gradient(135deg, #1a0015 0%, #3d0830 50%, #1a0015 100%);
  color: #d04080;
  border: 1px solid #d0408055;
}
.ewptx-bg .cert-logo-text { color: #d04080; }
.ewptx-bg .cert-title-big { color: #ff5090; text-shadow: 0 0 20px #d0408088; }
.ewptx-bg .cert-sub { color: #aa6080; }

/* Altered Security dark red theme */
.crtp-bg {
  background: linear-gradient(135deg, #0d0000 0%, #2a0800 50%, #0d0000 100%);
  color: #c44020;
  border: 1px solid #c4402055;
}
.crtp-bg .cert-logo-text { color: #c44020; }
.crtp-bg .cert-title-big { color: #e05030; text-shadow: 0 0 20px #c4402088; }
.crtp-bg .cert-sub { color: #aa5040; }

/* JLPT red/white Japanese theme */
.jlpt-bg {
  background: linear-gradient(135deg, #0d0000 0%, #1a0000 50%, #0d0000 100%);
  color: #cc2222;
  border: 1px solid #cc222255;
}
.jlpt-bg .cert-logo-text { color: #cc4444; }
.jlpt-bg .cert-title-big { color: #ff3333; text-shadow: 0 0 20px #cc222288; font-size: 4rem; }
.jlpt-bg .cert-sub { color: #aa4444; }

/* AWS blue/orange theme */
.aws-bg {
  background: linear-gradient(135deg, #00132a 0%, #003c8f 50%, #00132a 100%);
  color: #ff9900;
  border: 1px solid #ff990055;
}
.aws-bg .cert-logo-text { color: #ffb34d; }
.aws-bg .cert-title-big { color: #ffcc80; text-shadow: 0 0 20px #ff990088; }
.aws-bg .cert-sub { color: #ffe0b2; }

/* ==========================================================
   HERO PHOTO — exact rectangle, no oval
   ========================================================== */
.home-img {
  flex-shrink: 0;
}
.home-img img {
  position: relative;
  top: 2rem;
  display: block;
  width: 330px !important;
  height: 420px !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  box-shadow: 0 0 35px var(--main-color);
  transition: 0.4s ease-in-out;
}
.home-img img:hover {
  box-shadow: 0 0 55px var(--main-color);
  transform: scale(1.02);
}
