/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  z-index: 10;
}

.btn-primary {
  background: var(--color-cyan-primary);
  color: var(--color-navy-deep);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan), var(--shadow-md);
  background: #26d0ff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white-pure);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}

/* Glassmorphism Cards with Tech upgrades */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Spotlight mouse follow glow backdrop */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 194, 255, 0.09), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover::before {
  opacity: 1;
}

/* Scanner line sweep effect */
.glass-card::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--grad-scanner);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.glass-card:hover::after {
  opacity: 1;
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { top: -100px; }
  100% { top: 100%; }
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 194, 255, 0.15);
  border-color: rgba(0, 194, 255, 0.25);
}

/* Console metadata fields */
.tech-meta {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--color-gray-medium);
  text-align: left;
  position: relative;
  z-index: 3;
}

.tech-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.tech-meta-val {
  color: var(--color-cyan-primary);
  font-weight: 500;
}

.tech-meta-val.active {
  color: var(--color-green-signal);
  text-shadow: 0 0 8px rgba(0, 229, 160, 0.4);
}

/* Logos & Icons */
.navbar-logo {
  width: 180px;
  height: auto;
  max-height: 76px;
  object-fit: contain;
}

.hero-logo-img {
  width: 500px;
  height: auto;
  max-height: 211px;
  margin-bottom: 2.5rem;
  object-fit: contain;
}

.footer-logo {
  width: 140px;
  height: auto;
  max-height: 59px;
  opacity: 0.85;
  object-fit: contain;
}

/* Navbar Style */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-subtle);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.nav-link {
  font-size: var(--text-sm);
  color: var(--color-white-soft);
  opacity: 0.8;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cyan-primary);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--color-white-pure);
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white-pure);
  transition: all 0.3s ease;
}

/* Active hamburger icon style */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Agent Hobby Modal Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #0c101c;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 50 h30 l15 15 v20 l10 10 h40' stroke='rgba(0, 194, 255, 0.04)' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='95' cy='95' r='2.5' fill='rgba(0, 194, 255, 0.15)'/%3E%3Cpath d='M120 20 H90 L75 35 V60 L45 90 H10' stroke='rgba(123, 47, 255, 0.03)' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='10' cy='90' r='2.5' fill='rgba(123, 47, 255, 0.1)'/%3E%3Ccircle cx='120' cy='20' r='2.5' fill='rgba(123, 47, 255, 0.1)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 650px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 194, 255, 0.15);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--color-white-soft);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  opacity: 1;
  color: var(--color-cyan-primary);
  transform: scale(1.1);
}

.modal-left {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.modal-large-photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-white-pure);
  border: 3px solid var(--color-cyan-primary);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.2);
}

.modal-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Modal SVG background positioning & stroke keyframes */
.modal-circuit-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.pulse-path-1 {
  stroke-dasharray: 40, 300;
  stroke-dashoffset: 0;
  animation: current-flow-1 6s linear infinite;
  opacity: 0.8;
}

.pulse-path-2 {
  stroke-dasharray: 40, 300;
  stroke-dashoffset: 0;
  animation: current-flow-2 8s linear infinite;
  opacity: 0.8;
}

@keyframes current-flow-1 {
  0% { stroke-dashoffset: 340; }
  100% { stroke-dashoffset: -340; }
}

@keyframes current-flow-2 {
  0% { stroke-dashoffset: 340; }
  100% { stroke-dashoffset: -340; }
}

.modal-title-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-white-pure);
}

.modal-subtitle-love {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-cyan-primary);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.25rem;
}

.modal-love-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

/* Modal Mobile adjust */
@media (max-width: 600px) {
  .modal-container {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-large-photo {
    max-width: 140px;
  }
  
  .modal-title-name {
    font-size: var(--text-2xl);
    text-align: center;
  }
  
  .modal-subtitle-love {
    text-align: center;
  }
  
  .modal-love-items {
    grid-template-columns: 1fr;
    padding-left: 1rem;
  }
}
