/* Futuristic HUD/Neon styles for K/EN-ITH portfolio */

/* Base */
:root {
  --primary: #0ea5e9;
  --glow: #00eaff;
  --dark: #0b1020;
  --border: rgba(14, 165, 233, 0.35);
}

html, body {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: rgba(14, 165, 233, 0.35);
}

/* Nav link hover */
.nav-link {
  position: relative;
  color: #cbd5e1;
  transition: color .2s ease;
}
.nav-link:hover { color: #0ea5e9; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transform: scaleX(.5);
  transition: all .25s ease;
}
.nav-link:hover::after { opacity: 1; transform: scaleX(1); }

/* Buttons */
.btn-primary, .btn-secondary, .icon-btn {
  transition: all .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, rgba(14,165,233,.15), rgba(14,165,233,.05));
  border: 1px solid rgba(14,165,233,.55);
  color: #e6f9ff;
  padding: .75rem 1rem;
  border-radius: .6rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn-primary:hover {
  box-shadow: 0 0 16px rgba(14,165,233,.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(14,165,233,.35);
  color: #c7eaff;
  padding: .7rem 1rem;
  border-radius: .6rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: 'Orbitron', sans-serif;
}
.btn-secondary:hover {
  border-color: rgba(14,165,233,.75);
  color: white;
  box-shadow: inset 0 0 12px rgba(14,165,233,.25);
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: .6rem;
  border: 1px solid rgba(14,165,233,.35);
  color: #c7eaff;
}
.icon-btn:hover {
  border-color: rgba(14,165,233,.75);
  color: white;
  box-shadow: 0 0 12px rgba(14,165,233,.35);
}

/* Input styles */
.input-group {
  display: grid;
  gap: .4rem;
  font-size: .85rem;
  color: #9fb8c7;
}
.input-group span {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #86b9d0;
}
.field {
  background: rgba(11, 16, 32, 0.7);
  border: 1px solid rgba(14,165,233,.35);
  border-radius: .6rem;
  color: #e6f9ff;
  padding: .75rem .9rem;
  outline: none;
  transition: all .2s ease;
}
.field:focus {
  border-color: rgba(14,165,233,.85);
  box-shadow: 0 0 12px rgba(14,165,233,.35);
}

/* HUD dividers */
.hud-divider {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .18em;
  color: #bde9ff;
  border-left: 3px solid var(--primary);
  padding-left: .8rem;
  text-transform: uppercase;
}

/* Skill chips */
.chip {
  border: 1px solid rgba(14,165,233,.45);
  color: #cdefff;
  background: rgba(14,165,233,.08);
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .06em;
  transition: all .2s ease;
}
.chip:hover {
  box-shadow: 0 0 10px rgba(14,165,233,.35);
  transform: translateY(-1px);
}

#loadingScreen.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.k-logo {
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Holo-card specifics (scoped to shadow parts) are in component JS; adding general pulse) */

/* Profile Image Hover Effect */
img[src="images/profile.png"] {
  transition: filter 0.3s ease-in-out, transform 0.3s ease;
  cursor: pointer;
}

img[src="images/profile.png"]:hover {
  filter: blur(4px) brightness(0.8);
  transform: scale(1.05);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 101; /* Higher than header */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 16, 32, 0.85); /* bg-slate-950 with opacity */
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  max-width: 90vw;
  max-height: 90vh;
  border: 2px solid var(--border);
  border-radius: 0.75rem; /* 12px */
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.5);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal.show .modal-content {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}


/* Close button styles */
.close-button {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 102;
}

.close-button:hover {
  color: var(--primary);
  transform: scale(1.1);
}