/* Base styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: #232f3e; /* AWS primary dark blue */
  color: #ffffff;
  overflow-y: auto;
  line-height: 1.6;
}

main {
  min-height: 100vh;
}

.fullscreen-section {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: rgba(35, 47, 62, 0.95); /* Slightly transparent AWS dark blue */
  backdrop-filter: blur(10px);
  overflow-y: auto;
  padding: 4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-content {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2 {
  color: #ffffff;
  margin-bottom: 3rem;
  text-align: center;
  width: 100%;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* About Me section */
.about-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  max-width: 1000px;
  width: 100%;
  padding: 2rem;
  background: rgba(47, 60, 77, 0.7); /* Lighter AWS blue with transparency */
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 153, 0, 0.2); /* AWS Orange border */
}

.profile-photo {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 1rem;
  border: 4px solid rgba(255, 153, 0, 0.3); /* AWS Orange */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.02);
  border-color: #ff9900; /* Solid AWS Orange on hover */
}

.about-text {
  width: calc(100% - 280px);
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.about-text h3 {
  color: #ff9900; /* AWS Orange */
  margin-bottom: 1rem;
}

.about-text p {
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #d5dbdb; /* Light gray for better contrast */
}

/* Buttons */
.linkedin-button,
.github-button,
.new-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  margin: 0.5rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.linkedin-button {
  background-color: #0077b5;
}

.linkedin-button:hover {
  background-color: #005885;
  transform: translateY(-2px);
}

.github-button {
  background-color: #24292e;
}

.github-button:hover {
  background-color: #1a1e22;
  transform: translateY(-2px);
}

.new-button {
  background-color: #ff9900; /* AWS Orange */
  color: #232f3e; /* AWS dark blue for contrast */
}

.new-button:hover {
  background-color: #ec7211; /* Darker AWS Orange */
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: #161e2d; /* Darker AWS blue for footer */
  color: #d5dbdb;
  text-align: center;
  padding: 2rem;
  width: 100%;
  font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
  }

  .about-text {
    width: 100%;
  }

  .about-text h2 {
    font-size: 1.75rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .linkedin-button,
  .github-button,
  .new-button {
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Tech stack grid layout */
.graph-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.graph-wrapper {
  background: rgba(47, 60, 77, 0.8); /* Lighter AWS blue with transparency */
  border-radius: 0.75rem;
  padding: 1.5rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 153, 0, 0.2); /* AWS Orange border */
}

.graph-wrapper h3 {
  color: #ff9900; /* AWS Orange */
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  padding: 0;
  text-align: center;
  font-weight: 600;
}

.graph {
  flex: 1;
  width: 100%;
  background: rgba(35, 47, 62, 0.5);
}

.node text {
  fill: #f8fafc;
  font-size: 12px; 
  font-weight: 500; 
  letter-spacing: 0.01em;
}

.nodes g:hover text {
  fill: #ff9900; /* AWS Orange */
  font-size: 14px; 
  font-weight: 600; 
  transition: all 0.2s ease;
}

.nodes g text:first-of-type {
  font-size: 14px; 
  font-weight: 600;
}

.nodes g:hover text:first-of-type {
  font-size: 16px;
}

.node circle {
  stroke: #ff9900; /* AWS Orange */
  stroke-width: 1.5px;
}

.link {
  stroke: rgba(255, 153, 0, 0.3); /* AWS Orange with transparency */
  stroke-width: 1px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .graph-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .graph-wrapper {
    min-height: 350px;
  }
  
  .node text {
    font-size: 11px;
  }
  
  .nodes g:hover text {
    font-size: 13px;
  }
  
  .nodes g text:first-of-type {
    font-size: 13px;
  }
  
  .nodes g:hover text:first-of-type {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .graph-wrapper {
    min-height: 300px;
    padding: 1rem;
  }

  .graph-wrapper h3 {
    font-size: 1.125rem;
  }
  
  .node text {
    font-size: 14px;
  }
  
  .nodes g:hover text {
    font-size: 16px;
  }
  
  .nodes g text:first-of-type {
    font-size: 16px;
  }
  
  .nodes g:hover text:first-of-type {
    font-size: 14px;
  }
}

/* Services hexagon styles */
.hexagon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 2rem;
}

.hexagon {
  position: relative;
  width: 280px;
  height: 162px;
  background: rgba(47, 60, 77, 0.8); /* Lighter AWS blue with transparency */
  margin: 40px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 153, 0, 0.2); /* AWS Orange border */
}

.hexagon:before,
.hexagon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  transition: all 0.3s ease;
}

.hexagon:before {
  bottom: 100%;
  border-bottom: 81px solid rgba(47, 60, 77, 0.8); /* Lighter AWS blue with transparency */
}

.hexagon:after {
  top: 100%;
  width: 0;
  border-top: 81px solid rgba(47, 60, 77, 0.8); /* Lighter AWS blue with transparency */
}

.hexagon:hover {
  transform: scale(1.05);
  background: rgba(47, 60, 77, 0.9);
  border-color: #ff9900; /* AWS Orange */
}

.hexagon:hover:before {
  border-bottom-color: rgba(47, 60, 77, 0.9);
}

.hexagon:hover:after {
  border-top-color: rgba(47, 60, 77, 0.9);
}

.hexagon-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transition: all 0.3s ease;
}

.hexagon-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #ff9900; /* AWS Orange */
  font-weight: 600;
}

.hexagon-content p {
  font-size: 0.95rem;
  color: #d5dbdb; /* Light gray for better contrast */
  line-height: 1.5;
}

/* Project Portfolio styles */
.experience-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
}

.experience-block {
  background: rgba(47, 60, 77, 0.8); /* Lighter AWS blue with transparency */
  border: 1px solid rgba(255, 153, 0, 0.2); /* AWS Orange border */
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.experience-block:hover {
  transform: translateY(-5px);
  border-color: #ff9900; /* AWS Orange */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.experience-block h3 {
  font-size: 1.2rem;
  color: #ff9900; /* AWS Orange */
  margin-bottom: 1rem;
  font-weight: 600;
}

.experience-block p {
  font-size: 0.95rem;
  color: #d5dbdb; /* Light gray for better contrast */
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Node visualization styles */
.node text {
  fill: #f8fafc;
  font-size: 0.75rem;
  font-weight: 400;
  pointer-events: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.nodes g:hover text {
  opacity: 1;
  font-size: 0.875rem;
  font-weight: 500;
  fill: #ff9900; /* AWS Orange */
}

.node circle {
  stroke: #ff9900; /* AWS Orange */
  stroke-width: 1.5px;
}

.link {
  stroke: rgba(255, 153, 0, 0.3); /* AWS Orange with transparency */
  stroke-width: 1.5px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .graph-wrapper {
    width: calc(100% - 2rem);
    height: 450px;
  }

  .hexagon-container {
    padding: 1rem;
  }

  .experience-blocks {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .graph-wrapper {
    height: 400px;
    padding: 1rem;
  }

  .hexagon {
    width: 240px;
    height: 139px;
    margin: 30px 10px;
  }

  .hexagon:before,
  .hexagon:after {
    border-left-width: 120px;
    border-right-width: 120px;
  }

  .hexagon:before {
    border-bottom-width: 70px;
  }

  .hexagon:after {
    border-top-width: 70px;
  }

  .hexagon-content {
    padding: 1rem;
  }

  .hexagon-content h3 {
    font-size: 1.1rem;
  }

  .hexagon-content p {
    font-size: 0.875rem;
  }

  .experience-block {
    padding: 1.25rem;
  }
}

/* Contact section container */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

/* Button styles */
.linkedin-button,
.github-button,
.new-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  margin: 0.5rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  min-width: 200px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .container {
      flex-direction: column;
      padding: 1rem 0.5rem;
  }

  .linkedin-button,
  .github-button,
  .new-button {
      width: calc(100% - 1rem);
      margin: 0.5rem;
      padding: 0.75rem 1rem;
      font-size: 0.9rem;
      min-width: 0;
  }
}

/* Ensure container doesn't overflow */
#contact {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}

/* Estilo específico para el botón de descarga */
.download-button {
  position: relative;
  background: #ff9900; /* AWS Orange */
  color: #232f3e; /* AWS dark blue for contrast */
  animation: glowing 2s infinite;
  background-size: 200% auto;
  transition: all 0.3s ease;
}

/* Efecto de resplandor */
@keyframes glowing {
  0% {
      box-shadow: 0 0 5px rgba(255, 153, 0, 0.5),
                  0 0 10px rgba(255, 153, 0, 0.3),
                  0 0 15px rgba(255, 153, 0, 0.2);
  }
  50% {
      box-shadow: 0 0 10px rgba(255, 153, 0, 0.8),
                  0 0 20px rgba(255, 153, 0, 0.5),
                  0 0 30px rgba(255, 153, 0, 0.3);
  }
  100% {
      box-shadow: 0 0 5px rgba(255, 153, 0, 0.5),
                  0 0 10px rgba(255, 153, 0, 0.3),
                  0 0 15px rgba(255, 153, 0, 0.2);
  }
}

/* Hover effect */
.download-button:hover {
  transform: translateY(-2px);
  background: #ec7211; /* Darker AWS Orange */
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.8),
              0 0 40px rgba(255, 153, 0, 0.4);
}

/* Ajuste responsive */
@media screen and (max-width: 768px) {
  .download-button {
      animation: glowing 3s infinite;
  }
}

/* Testimonials gallery styles */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
}

.testimonial-item {
  position: relative;
  background: rgba(47, 60, 77, 0.8); /* Lighter AWS blue with transparency */
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 153, 0, 0.2); /* AWS Orange border */
  transition: all 0.3s ease;
  aspect-ratio: 16/9;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  border-color: #ff9900; /* AWS Orange */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.75rem;
}

/* Modal styles for image zoom */
.testimonial-item:focus {
  outline: none;
  border-color: #ff9900; /* AWS Orange */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .testimonials-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .testimonial-item {
    padding: 0.5rem;
  }
}