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

html,
body {
  overflow-x: hidden;
}


body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #111;
  color: #ffffff;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('Images/dbmBI.png') center/cover no-repeat fixed;
}


body * {
  animation-fill-mode: forwards !important;
  backface-visibility: hidden;
}

header {
  width: 100%;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

header h1 {
  font-size: 1.8rem;
  animation: fadeInUp 1s ease forwards;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
  background: #000;
}


nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: #00c6ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, transform 0.3s;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

nav a:hover {
  color: #ffffff;
}


/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Botón principal */
.dropbtn {
  background: none;
  border: none;
  color: #00c6ff;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s;
  animation: fadeInUp 1s ease forwards;
}

.dropbtn:hover {
  color: #ffffff;
}

.dropdown-content {
  display: none;
  opacity: 0;
  pointer-events: none; 
  transition: opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.85); 
  padding: 0.5rem 0;
  border-radius: 6px;
  min-width: 160px;
  position: absolute;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  z-index: 99;
}

.show-dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.dropdown-content.show {
  visibility: visible;
  opacity: 1;
  display: block;
}


footer {
  text-align: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.5s;
  will-change: opacity, transform;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}


.projects {
  margin-top: -80px;
  padding: 30px 5px;
  text-align: center;
  /* background-color: #111; */
  color: #fff;
}

.projects h2 {
  font-size: 2em;
  margin-top: -150px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.project-card {
  /* margin-top: 10px; */
  background-color: transparent;
  border-radius: 12px;
  padding: 30px;
  width: 200px;
  text-align: left;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #00c6ff;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: black;
  margin: auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.info-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #888;
  font-family: 'Segoe UI', sans-serif;
  text-align: left;
  padding: 30px;
  width: 80%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  z-index: 10001;
}


.info-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #00c6ff;
  text-align: center;
}


.close-info {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  font-weight: bold;
  color: #ff3b3b;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.close-info:hover {
  color: #ffffff;
}

/* Modal General */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-inner {
  position: relative;
  margin: 10% auto;
  width: 90%;
  max-width: 500px;
}

/* Modal Content */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border: 2px solid #ddd;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  font-family: 'Arial', sans-serif;
}

/* Form Headers */
.modal-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.modal-content h3 {
  font-size: 18px;
  margin-top: 20px;
  color: #555;
}

/* Inputs */
.modal-content input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 15px;
}

/* Submit Button */
.modal-content button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #333;
}

.close-referral {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 30px;
  font-weight: bold;
  color: #e60000;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.close-referral:hover {
  color: #ff0000;
}

.dropdown-content {
  display: none;
  position: absolute;
  padding: 0.5rem 0;
  z-index: 99;
  border-radius: 6px;
  min-width: 160px;
}

.dropdown-content a {
  color: #00c6ff;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
}


.dropdown-content.hidden {
  display: none;
}

.dropdown-content:not(.hidden) {
  display: block;
}


@media (min-width: 300px) and (max-width: 600px) {

  nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    flex-direction: column;
  }

  nav a {
    flex: 1 1 auto;
    text-align: center;
  }


  .projects {
    margin: 20px;
    padding: 20px 5px;
  }

  .projects h2 {
    font-size: 1.3rem;
    margin-top: -80px;
  }

  .project-grid {
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    transform: scale(0.85);
  }

  .project-card {
    width: 150px;
    font-size: 0.8rem;
    padding: 20px;
  }

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

  nav a,
  .dropbtn {
    font-size: 0.8rem;
  }
}


@media (min-width: 601px) and (max-width: 850px) {

  nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

  nav a {
    flex: 1 1 auto;
    text-align: center;
  }



  .projects {
    margin: 10px 10px;
    padding: 10px 10px;
  }

  .projects h2 {
    font-size: 1.6rem;
    margin-top: -100px;
  }

  .project-grid {
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
    transform: scale(0.85);
  }

  .project-card {
    width: 185px;
    font-size: 0.9rem;
    padding: 25px;
  }

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