.nav-underline {
  position: relative;
}

.nav-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: rgb(238 241 236);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
  will-change: transform;
  opacity: 0;
}
.nav-underline:hover::after {
  transform: scaleX(1);
  opacity: 1;
}
/* Mouse focus: no outline */
/* Disable focus styles everywhere */
*:focus,
*:focus-visible {
  outline: none;
}

/* Show focus only on form fields (keyboard Tab) */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid rgb(63, 119, 174);
}


.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.img-zoom:hover img {
  transform: scale(1.05);
}

.btn-glow:hover {
  box-shadow: 0 0 15px rgba(0, 51, 102, 0.4);
}

.tech-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 35px -12px rgba(0, 51, 102, 0.25);
}

.table-row-hover:hover {
  background-color: rgb(240 245 252);
  transition: background 0.15s;
}

.spec-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgb(233 238 242);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.btn-glow {
  transition: all 0.2s;
}

.btn-glow:hover {
  background-color: rgb(0 34 68);
  box-shadow: 0 10px 25px -8px rgb(0 51 102);
}

input[type="file"]::file-selector-button {
  background-color: rgb(0 51 102);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  margin-right: 1rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

input[type="file"]::file-selector-button:hover {
  background-color: rgb(0 34 68);
}

/* Select styling for modern look */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='rgb(107%20114%20128)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}
