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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
  background: #0a0a0a;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, transparent 98%, rgba(0, 255, 255, 0.03) 100%),
    linear-gradient(0deg, transparent 98%, rgba(0, 255, 255, 0.03) 100%);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, transparent 49%, rgba(0, 255, 255, 0.02) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(0, 255, 255, 0.02) 50%, transparent 51%);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: 1;
  animation: techLines 20s linear infinite;
}

@keyframes techLines {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(50px) translateY(50px); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: rgba(10, 10, 10, 1);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  box-shadow: 0 2px 20px rgba(0, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-image {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 0 10px #00ffff) drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 30px #00ffff);
  animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  from {
    filter: drop-shadow(0 0 10px #00ffff) drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 30px #00ffff);
  }
  to {
    filter: drop-shadow(0 0 15px #00ffff) drop-shadow(0 0 25px #00ffff) drop-shadow(0 0 35px #00ffff) drop-shadow(0 0 45px #00ffff);
  }
}

.nav-logo h2 {
  color: #00ffff;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
  animation: textNeonGlow 2s ease-in-out infinite alternate;
}

@keyframes textNeonGlow {
  from {
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
  }
  to {
    text-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff, 0 0 35px #00ffff, 0 0 45px #00ffff;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00ffff;
  box-shadow: 0 0 5px #00ffff;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: white;
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 800px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pillar {
  background: rgba(0, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.pillar:hover {
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  transform: translateY(-5px);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  background: #00ffff;
  color: #0a0a0a;
  box-shadow: 0 0 30px #00ffff, 0 10px 25px rgba(0, 255, 255, 0.4);
  text-shadow: none;
}

/* Section Styles */
section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.nexa-meaning {
  background: rgba(0, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  margin-bottom: 2rem;
  text-align: center;
}

.nexa-meaning h3 {
  color: #00ffff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.acronym-definition {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffffff;
}

.highlight-letter {
  color: #00ffff;
  font-size: 1.5em;
  text-shadow: 0 0 15px #00ffff;
  font-weight: bold;
}

.spanish-translation {
  font-size: 1.1rem;
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 0;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

/* Team Section */
.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #e2e8f0;
}

.team-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.team-member {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member:hover .member-photo {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
  border-color: rgba(0, 255, 255, 0.8);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  margin: 5% auto;
  padding: 2rem;
  border: 2px solid #00ffff;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close {
  color: #00ffff;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #00ffff;
}

.modal-member-info {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.modal-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  overflow: hidden;
  flex-shrink: 0;
}

.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details h3 {
  color: #00ffff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.modal-details h4 {
  color: #94a3b8;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.modal-details p {
  color: #e2e8f0;
  line-height: 1.7;
  font-size: 1rem;
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-member h3 {
  color: #00ffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  font-size: 1.1rem;
}

.team-member h4 {
  color: #94a3b8;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Projects Section */
.projects {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.projects-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #e2e8f0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(26, 26, 46, 0.8);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  color: #00ffff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.project-card > p {
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.project-features {
  list-style: none;
}

.project-features li {
  color: #e2e8f0;
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  position: relative;
}

.project-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 5px #00ffff;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toggle-form-btn {
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  margin-bottom: 20px;
}

.toggle-form-btn:hover {
  background: #00ffff;
  color: #0a0a0a;
  box-shadow: 0 0 30px #00ffff;
}

.contact-form {
  width: 100%;
  transition: all 0.3s ease;
}

.contact-info h3 {
  color: #00ffff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.contact-info p {
  color: #e2e8f0;
  margin-bottom: 2rem;
}



.contact-form {
  background: rgba(26, 26, 46, 0.8);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(10, 10, 10, 0.8);
  color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.submit-btn {
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.submit-btn:hover {
  background: #00ffff;
  color: #0a0a0a;
  box-shadow: 0 0 20px #00ffff;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: white;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo h3 {
  color: #00ffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px #00ffff;
}

.footer-logo p {
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(10, 10, 10, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 255, 255, 0.2);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .team-row {
    gap: 2rem;
  }
  
  .team-member h3 {
    font-size: 1rem;
  }
  
  .team-member h4 {
    font-size: 0.8rem;
  }
  
  .modal-member-info {
    flex-direction: column;
    text-align: center;
  }
  
  .modal-photo {
    align-self: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .pillar,
  .team-member,
  .project-card {
    padding: 1.5rem;
  }
}
