/* /css/components.css - Ambient Pixels v2.4 - June 14, 2025 */

/* --- Footer Divider --- */
.footer-divider {
  border: none;
  height: 1.5px;
  width: 100%;
  margin: 1.5rem 0 0.5rem 0;
  background: linear-gradient(90deg, rgba(155,191,255,0.08) 0%, var(--aura-glow,#5ae4ff) 50%, rgba(155,191,255,0.08) 100%);
  opacity: 0.7;
  border-radius: 2px;
}

/* --- Nova Whisper Small --- */
.nova-quip-small {
  font-size: 0.85em;
  font-weight: 400;
  opacity: 0.82;
  letter-spacing: 0.01em;
}

/* --- Utility Classes --- */
.no-underline {
  text-decoration: none !important;
}

/* --- Badge Classes --- */

.project-status-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
  box-shadow: 0 0 8px rgba(90, 228, 255, 0.2);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.soon-tag,
.updated-tag {
  padding: unset;
  border-radius: unset;
  font-size: unset;
  font-weight: unset;
  text-transform: unset;
  letter-spacing: unset;
  margin-left: unset;
  display: unset;
  box-shadow: unset;
  transition: unset;
}

.badge-solid-orange { background-color: rgba(249, 115, 22, 0.12); color: #fed7aa; border: 1px solid rgba(251, 146, 60, 0.3); }
.badge-solid-blue { background-color: rgba(59, 130, 246, 0.12); color: #bfdbfe; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-solid-slate { background-color: rgba(100, 116, 139, 0.12); color: #e2e8f0; border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-solid-red { background-color: rgba(220, 38, 38, 0.12); color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.3); }
.badge-solid-pink { background-color: rgba(236, 72, 153, 0.12); color: #fbcfe8; border: 1px solid rgba(244, 114, 182, 0.3); }
.badge-solid-teal { background-color: rgba(20, 184, 166, 0.12); color: #99f6e4; border: 1px solid rgba(45, 212, 191, 0.3); }
.badge-solid-gold { background-color: rgba(245, 158, 11, 0.15); color: #fef08a; border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-solid-purple { background-color: rgba(139, 92, 246, 0.12); color: #e2d6ff; border: 1px solid rgba(167, 139, 250, 0.3); }

[class^="badge-"]:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease-in-out;
}

/* --- Auth Button Loading State (added by Cascade, June 2025) --- */
.nav-auth-btn.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 0 0 2px var(--aura-glow, #5ae4ff), 0 2px 8px 0 rgba(90,228,255,0.08);
}

.nav-auth-btn .auth-spinner {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 1em;
  vertical-align: middle;
  color: var(--aura-glow, #5ae4ff);
  filter: drop-shadow(0 0 4px var(--aura-glow, #5ae4ff));
}

.nav-auth-btn.loading .auth-spinner {
  animation: windsurf-spinner-glow 1.2s infinite linear;
}

@keyframes windsurf-spinner-glow {
  0% { filter: drop-shadow(0 0 2px var(--aura-glow, #5ae4ff)); }
  50% { filter: drop-shadow(0 0 8px var(--aura-glow, #5ae4ff)); }
  100% { filter: drop-shadow(0 0 2px var(--aura-glow, #5ae4ff)); }
}


/* Utility spacing classes (margin-top, padding) */
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2.5rem !important; }

.p-1 { padding: 0.5rem !important; }
.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2.5rem !important; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #fff;
}

.badge-nebulight {
  background-color: var(--nebulight-accent, #6a11cb);
}

.badge-luma {
  background-color: var(--luma-highlight, #007bff);
}

/* --- Nova Grid 2 Column Layout --- */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Nova Pill Stack + Glow --- */

#clear-filters {
  display: none;
}
#clear-filters.active {
  display: inline-block;
}

.pill-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(90, 228, 255, 0.09);
  color: var(--aura-glow, #5ae4ff);
  border: 1.5px solid var(--aura-glow, #5ae4ff);
  box-shadow: 0 0 0 0 rgba(90, 228, 255, 0.0);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.pill.glow {
  box-shadow: 0 0 16px 0 rgba(90, 228, 255, 0.18), 0 1.5px 8px 0 rgba(0,0,0,0.08);
  border-color: var(--glow, #9bf00b);
  background: rgba(90, 228, 255, 0.13);
  color: var(--glow, #9bf00b);
}
@media (max-width: 600px) {
  .pill-stack {
    gap: 0.75rem;
  }
  .grid-2col {
    gap: 1.2rem;
  }
}


/* Video Duration Badge */
.video-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  -webkit-backdrop-filter: blur(4px); /* updated by Cascade 2025-07-11 */
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  z-index: 2;
}

.video-duration-badge .fa-clock {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
}

/* Hover effect on card */
.card:hover .video-duration-badge {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.card:hover .video-duration-badge .fa-clock {
  transform: scale(1.1);
  color: #5ae4ff;
}

/* Gradient Heading - Reusable gradient text component */
.gradient-heading {
  background: linear-gradient(135deg, #5ae4ff 0%, #8a2be2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin: 0 0 1rem;
  line-height: 1;
  font-weight: 900;
}

/* Size variations */
.gradient-heading--xl {
  font-size: 8rem;
}

.gradient-heading--lg {
  font-size: 4rem;
}

.gradient-heading--md {
  font-size: 2.5rem;
}

.gradient-heading--sm {
  font-size: 1.5rem;
}

/* Color variations */
.gradient-heading--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-heading--rainbow {
  background: linear-gradient(270deg, #ff69b4, #ffa500, #ffff00, #00ff80, #00bfff, #ff69b4);
  background-size: 400% 400%;
  animation: rainbowFlow 12s ease infinite;
}

@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Card Grid - Universal card component */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.75rem;
  }
}

/* Adjust card spacing on very small screens */
@media (max-width: 400px) {
  .card-grid {
    gap: 0.75rem;
    margin: 1rem 0;
  }
  
  .card {
    padding: 1.25rem;
  }
}

.card {
  position: relative;
  background: rgba(30, 33, 54, 0.6);
  border-left: 4px solid #5ae4ff;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(5px); /* updated by Cascade 2025-07-11 */
  backdrop-filter: blur(5px);
}

.card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(75, 202, 255, 0.2);
}

.card h3 {
  color: #4bcaff;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Using default h3 size */
}

.card h3 i {
  font-size: 1em;
  color: #5ae4ff;
}

.card p {
  margin: 0;
  color: #ccd6f6;
  line-height: 1.5;
  /* Using default paragraph size */
  opacity: 0.9;
}

/* Glass Button */
.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  /* text-transform: uppercase; */
  letter-spacing: 0.075em;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #fff;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8) !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px); /* updated by Cascade 2025-07-11 */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem; /* Space between icon and text */
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  user-select: none; /* updated by Cascade 2025-07-11 */
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.glass-button:hover,
a.glass-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(90, 228, 255, 0.3);
  border-color: #4bcaff;
  background: rgba(75, 202, 255, 0.15) !important;
  color: #4bcaff !important; /* Match border color on hover */
  text-shadow: 0 0 10px rgba(90, 228, 255, 0.8) !important;
  text-decoration: none !important;
}

/* Update icon and text color on hover to match border - high specificity */
button.glass-button.secondary:hover,
button.glass-button.secondary:hover span,
button.glass-button.secondary:hover i,
a.glass-button.secondary:hover,
a.glass-button.secondary:hover span,
a.glass-button.secondary:hover i {
  color: #4bcaff !important;
  fill: #4bcaff !important;
  stroke: #4bcaff !important;
}

/* Ensure SVG icons inside buttons also change color */
button.glass-button.secondary:hover svg,
a.glass-button.secondary:hover svg {
  color: #4bcaff !important;
  fill: #4bcaff !important;
  stroke: #4bcaff !important;
}

/* Prevent underline on hover */
.glass-button, 
.glass-button * {
  -webkit-text-decoration: none !important; /* updated by Cascade 2025-07-11 */
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* More specific selectors */
.glass-button a, 
.glass-button a *, 
.glass-button span, 
.glass-button i {
  -webkit-text-decoration: none;
  -moz-text-decoration: none; /* updated by Cascade 2025-07-11 */
  text-decoration: none;
  text-decoration-line: none;
  pointer-events: none;
}

.glass-button i {
  font-size: 1.2rem;
  color: #fff;
  margin-right: 0.5em;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="light"] .glass-button {
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .glass-button:hover {
  border-color: #4bcaff;
  text-shadow: 0 0 5px rgba(135, 206, 235, 0.5);
}

/* Secondary glass button variant */
.glass-button.secondary {
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8) !important;
  color: #fff !important;
}

.glass-button.secondary:hover {
  text-shadow: 0 0 10px rgba(90, 228, 255, 0.8) !important;
  color: #fff !important;
  background: rgba(75, 202, 255, 0.15) !important;
}


/* Download Card Buttons */
.download-card .btn {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  justify-content: center;
  border: 1px solid rgba(90, 228, 255, 0.3);
  background: rgba(90, 228, 255, 0.05);
  color: #ccd6f6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Download card specific styles */
.download-card .btn-secondary {
  border: 1px solid rgba(90, 228, 255, 0.3);
  background: rgba(90, 228, 255, 0.05);
  color: #ccd6f6;
}

.download-card .btn-secondary:hover {
  border-color: #5ae4ff;
  background: rgba(90, 228, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(90, 228, 255, 0.15);
  color: #5ae4ff;
}

/* Footer Social Links */
.footer-social a {
  font-size: 1.5em;
  margin: 0 15px;
  transition: color 0.3s ease;
}

/* Theme Toggle */
#theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1.5em;
  color: inherit;
  transition: color 0.3s ease;
}

#theme-toggle:hover {
  color: #4682B4; /* Subtle hover accent */
}

/* Nova Intro Block */
#nova-intro {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid #5ae4ff;
  padding-left: 1rem;
  transition: background 0.3s ease;
}

body[data-theme="light"] #nova-intro {
  background: rgba(0, 0, 0, 0.03);
  border-left-color: #3b82f6;
}

/* Git Commits */
.git-commits-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

/* --- Bullet List --- */
.bullet-list {
  list-style: none;
  padding-left: 1.2rem;
  margin-top: 1rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary, #ccd6f6);
}

.bullet-list li::before {
  content: '»';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--aura-glow, #5ae4ff);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.bullet-list li strong {
  color: var(--text-primary, #e6f1ff);
  font-weight: 600;
}

.git-commit-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-theme="light"] .git-commit-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

.git-commit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(90, 228, 255, 0.3);
  border-color: var(--aura-accent);
  background: var(--aura-card-hover);
}

.git-commit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.git-commit-index {
  color: var(--aura-accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

.git-commit-hash {
  color: var(--aura-accent);
  font-family: 'Fira Code', monospace;
}

.git-commit-hash a {
  color: #4682B4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.git-commit-hash a:hover {
  color: #336699;
  text-decoration: underline;
}

.git-commit-message {
  flex: 1;
  margin: 0 1rem;
}

.git-commit-meta {
  color: var(--aura-muted);
  font-size: 0.9rem;
}

.git-commit-branches {
  color: var(--aura-accent);
  font-size: 0.9rem;
}

.git-commit-timestamp {
  color: var(--aura-muted);
  font-size: 0.9rem;
}





/* Card Section */
.card-section {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(90, 228, 255, 0.3);
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-content h3 {
  font-size: 1.2em;
  margin: 0;
  color: var(--dark-text);
}

.card-content p {
  font-size: 0.95em;
  color: var(--dark-text);
}

.card-content a {
  align-self: flex-start;
  font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px); /* updated by Cascade 2025-07-11 */
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 10px rgba(90, 228, 255, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Modal Button Styles */
.modal .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    /* text-transform: uppercase; */
    letter-spacing: 0.075em;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px); /* updated by Cascade 2025-07-11 */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    margin-top: 1.5rem;
}

/* Form Field Styles */
.modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.modal .form-group label {
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.modal .form-group input,
.modal .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem;
    color: #fff;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4bcaff;
    box-shadow: 0 0 0 2px rgba(75, 202, 255, 0.1);
    outline: none;
}

.modal .primary-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(90, 228, 255, 0.3);
    background: linear-gradient(135deg, rgba(75, 202, 255, 0.1), rgba(90, 228, 255, 0.05));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal .primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(90, 228, 255, 0.25), 0 0 15px rgba(75, 202, 255, 0.2);
    border-color: #5ae4ff;
    background: linear-gradient(135deg, rgba(75, 202, 255, 0.15), rgba(90, 228, 255, 0.1));
    text-shadow: 0 0 8px rgba(135, 206, 235, 0.8);
}

.modal .primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.modal .primary-button:hover::before {
    left: 100%;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.modal-close i {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #87ceeb;
    transform: rotate(90deg);
}

.modal-close:hover i {
    transform: rotate(180deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #fff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #87ceeb;
    outline: none;
}

/* Footer Styles */
.footer {
  padding: 30px 20px;
  text-align: center;
}

.footer p {
  margin: 0.5em 0;
}

.footer .social-links {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 1.2em;
}

.footer .social-links a {
  color: inherit;
  transition: color 0.3s ease;
}

.footer .social-links a:hover {
  color: var(--accent-color, #9bf00b); /* Optional highlight color */
}

/* Nova Manifesto */
.nova-manifesto blockquote {
  font-style: italic;
  color: #c375ff;
  margin: 1em 0;
  padding-left: 1rem;
  border-left: 3px solid #5ae4ff;
}

.nova-manifesto p {
  line-height: 1.7;
  color: var(--dark-text, #d8e0e5);
}

/* Neon Card */
.neon-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(90, 228, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(90, 228, 255, 0.05);
  -webkit-backdrop-filter: blur(4px); /* updated by Cascade 2025-07-11 */
  backdrop-filter: blur(4px);
}

.neon-card h3 {
  font-size: 1.4em;
  color: #5ae4ff;
  margin-bottom: 1rem;
}

.neon-card ul {
  list-style-type: none;
  padding: 0;
  font-size: 0.95em;
  line-height: 1.6;
}

.neon-card p {
  margin-bottom: 0.75rem;
}

.neon-card li {
  margin-bottom: 1rem;
  border-left: 3px solid #5ae4ff;
  padding-left: 1rem;
}

/* Nova Sync & Mood */
.nova-sync-time {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted, #aaa);
  margin-top: 0.5rem;
  font-style: italic;
}

.nova-mood {
  font-style: italic;
  font-size: 0.95rem;
  color: #c375ff;
  margin-top: -0.5em;
}

/* Modal Window */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(2px); /* added for Safari compatibility */
   backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: var(--card-bg, #1a1a1a);
  padding: 2rem;
  border-radius: 8px;
  z-index: 2;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 30px rgba(90, 228, 255, 0.2);
  color: var(--text-color, #fff);
}

.modal-content h2 {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
}

.contact-form button {
  background: #5ae4ff;
  color: #000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.modal-close i {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #87ceeb;
    transform: rotate(90deg);
}

.modal-close:hover i {
    transform: rotate(180deg);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(90, 228, 255, 0.1);
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #5ae4ff;
  text-shadow: 0 0 3px rgba(90, 228, 255, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  padding-left: 1.5rem;
}

.section-header h2 i {
  margin-right: 0.5rem;
}

.section-header h2:hover {
  color: #9bf0ff;
  text-shadow: 0 0 5px rgba(90, 228, 255, 0.5);
}

.section-header {
  cursor: pointer;
  transition: all 0.3s ease;
}

.section-header:hover {
  background: rgba(90, 228, 255, 0.05);
  border-radius: 4px;
}

.section-header button {
  pointer-events: none;
}

.section-header button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #5ae4ff;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header .toggle-all-btn {
  margin-left: 1rem;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid #5ae4ff;
  background: rgba(90, 228, 255, 0.1);
  color: #5ae4ff;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 4px;
}

.section-header .toggle-all-btn:hover {
  background: rgba(90, 228, 255, 0.2);
  color: #9bf0ff;
}

.section-header .toggle-all-btn i {
  transition: transform 0.3s ease;
}

.section-header .toggle-all-btn.expanded i {
  transform: rotate(180deg);
}

.section-header button:hover {
  background: rgba(90, 228, 255, 0.1);
  color: #9bf0ff;
}

.section-header button[aria-expanded="false"] {
  transform: rotate(0deg);
}



/* Nova Subgrid Components
-------------------------- */

.card-icon {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--accent-color, #9bf00b);
}

.nova-quip {
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  opacity: 0.85;
}

.soon-tag {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981 !important;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
  display: inline-block;
  box-shadow: 0 0 8px rgba(90, 228, 255, 0.2);
  transition: all 0.2s ease;
}

.updated-tag {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(186, 85, 211, 0.3);
  color: #d9b3ff !important;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
  display: inline-block;
  box-shadow: 0 0 8px rgba(186, 85, 211, 0.2);
  transition: all 0.2s ease;
}

.soon-tag:hover, .updated-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nova-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

.nova-badge {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-color, #5ae4ff);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.system-pulse {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(90, 228, 255, 0.05);
  border-bottom: 1px solid rgba(90, 228, 255, 0.05);
  -webkit-backdrop-filter: blur(2px); /* added for Safari compatibility */
  -webkit-backdrop-filter: blur(2px); /* added for Safari compatibility */
  backdrop-filter: blur(2px);
}

.pulse-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.pulse-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #c8f0ff;
  text-shadow: 0 0 4px rgba(90, 228, 255, 0.3);
}

.pulse-item i {
  color: #5ae4ff;
  font-size: 1rem;
}
/* Aura-enhanced pulse glow overrides */
.pulse-wrap.aura-deep-violet .pulse-item {
  color: #b8aaff;
  text-shadow: 0 0 5px rgba(144, 77, 255, 0.5);
}

.pulse-wrap.aura-graphite-blue .pulse-item {
  color: #8fa8c8;
  text-shadow: 0 0 5px rgba(111, 134, 173, 0.4);
}

.pulse-wrap.aura-emerald-shadow .pulse-item {
  color: #7effb8;
  text-shadow: 0 0 6px rgba(90, 255, 180, 0.5);
}

.pulse-wrap.aura-neon-pink .pulse-item {
  color: #ff77cc;
  text-shadow: 0 0 5px rgba(255, 119, 204, 0.4);
}

.pulse-wrap.aura-lime-green .pulse-item {
  color: #d9ff66;
  text-shadow: 0 0 5px rgba(217, 255, 102, 0.4);
}

.pulse-wrap.aura-paper-white .pulse-item {
  color: #eeeeee;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}



/* Markdown Content Styling for #md-content */
#md-content h2 {
  color: #5ae4ff;
  border-left: 4px solid #5ae4ff;
  padding-left: 0.5rem;
  margin-top: 1.5rem;
}

#md-content table {
  border-collapse: collapse;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 1rem;
}

#md-content th,
#md-content td {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

#md-content code {
  background: #111;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
/* Lists and Paragraph Spacing - Markdown Content Styling for #md-content */
#md-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
#md-content li {
  margin-bottom: 0.5rem;
}
#md-content p {
  margin-bottom: 1rem;
}
/* Quotes / Notes - Spacing Markdown Content Styling for #md-content */

/* Quotes / Notes - Spacing Markdown Content Styling for #md-content */

details summary {
  cursor: pointer;
  list-style: none;
}

details summary h2 {
  display: inline-block;
  margin: 0;
  font-size: 1.5rem;
}

details[open] summary::before {
  content: "▼ ";
}
details summary::before {
  content: "▶ ";
  font-weight: bold;
  display: inline-block;
  width: 1.2rem;
  margin-right: 0.4rem;
}

/* project-dashboard */


#project-filters.nova-badge-group {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
#project-filters .nova-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  line-height: 1.1;
}
#project-list.grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}


.filter-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.filter-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid #5ae4ff;
  background: rgba(255, 255, 255, 0.05);
  color: #5ae4ff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Project size color variants for dashboard pills -- updated by Cascade */
.filter-pill.size-s {
  background: #22c55e1f !important;
  color: #bbf7d0 !important;
  border: 1px solid #22c55e4d !important;
}
.filter-pill.size-m {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #bfdbfe !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
}
.filter-pill.size-l {
  background: rgba(249, 115, 22, 0.12) !important;
  color: #fed7aa !important;
  border: 1px solid rgba(251, 146, 60, 0.3) !important;
}
.filter-pill.size-xl {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #e2d6ff !important;
  border: 1px solid rgba(167, 139, 250, 0.3) !important;
}

.filter-pill.active {
  background: #5ae4ff;
  color: #000;
}

#project-list.grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.filter-label {
  width: 100%;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Animated Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
  box-shadow: inset 0 0 4px rgba(90, 228, 255, 0.2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5ae4ff, #9bf00b);
  transition: width 1s ease-in-out;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(90, 228, 255, 0.4);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }

/* Nova voice */
}
.nova-quip {
  font-style: italic;
  color: #b3eaff;
  text-shadow: 0 0 5px #87cefa88;
  animation: fadeIn 0.6s ease-in;
  font-weight: 500;
}

.nova-voice {
  background: rgba(18, 32, 42, 0.6);
  border-left: 4px solid #9bf00b;
  padding: 1rem 1rem 1rem 3rem;
  font-style: italic;
  font-weight: 500;
  color: #9bf0ff;
  text-shadow: 0 0 4px rgba(155, 240, 255, 0.3);
  border-radius: 0.5rem;
  box-shadow: 0 0 10px #87cefa33;
  animation: fadeIn 0.5s ease-in;
  margin: 1.5rem 0;
  position: relative;
}

.nova-voice p {
  margin: 0;
  padding-top: 0.5rem;
}

.nova-voice-rainbow {
  background: rgba(18, 32, 42, 0.6);
  border-left: 4px solid #9bf00b;
  padding: 1rem;
  font-style: italic;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px #87cefa33;
  margin: 1.5rem 0;
  font-size: 1.1em;
  line-height: 1.6;
  display: inline-block;
  background: linear-gradient(270deg, #ff69b4, #ffa500, #ffff00, #00ff80, #00bfff, #ff69b4);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowFlow 12s ease infinite;
  color: transparent;
  font-size: 1.1em;
  line-height: 1.6;
  display: inline-block;
}

@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nova-voice-rainbow::before {
  content: "\1F916 ";
  display: inline-block;
}

@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nova-alert {
  color: #ff7070;
  font-weight: bold;
  background: rgba(255, 112, 112, 0.05);
  border-left: 3px solid #ff7070;
  padding-left: 0.75rem;
  margin: 1rem 0;
  font-family: 'Inter', sans-serif;
}

/* Nova Thought (Tone Softened with Dimmer Background) */
.nova-thought {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #ccd6f6;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.005);
  padding: 1rem;
  margin: 1rem 0 2rem;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 0 2px rgba(135, 206, 235, 0.05);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nova-thought::before {
  content: "\201C"; /* Left double quote */
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 2em;
  color: #6aaedb;
  opacity: 0.5;
  z-index: 1;
}

.nova-thought::after {
  content: "\201D"; /* Right double quote */
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 2em;
  color: #6aaedb;
  opacity: 0.5;
  z-index: 1;
}

.nova-thought .prompt-entry {
  font-style: italic;
  color: #98aecd;
  padding-left: 1.75rem;
  position: relative;
  z-index: 2;
  padding-right: 15px;
  /* updated by Cascade 2025-07-10 */
}

.nova-quip::before {
  content: "\1F4AC ";
}

.nova-voice::before {
  content: "🤖";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  opacity: 0.8;
}

.nova-alert::before {
  content: "\26A0\FE0F ";
}

/* Blockquote Styles */
blockquote {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  color: #ccd6f6;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.005);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid #6aaedb;
  border-radius: 4px;
  box-shadow: 0 0 2px rgba(135, 206, 235, 0.05);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Blockquote icon removed - 2025-06-18
blockquote::before {
  content: "\201C"; 
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 2em;
  color: #6aaedb;
  opacity: 0.5;
  z-index: 1;
}
*/

blockquote p {
  font-style: italic;
  color: #98aecd;
  padding-left: 0.75rem;
  position: relative;
  z-index: 2;
}

blockquote footer {
  font-size: 0.85rem;
  color: #818cf8;
  margin-top: 0.5rem;
  text-align: right;
  opacity: 0.8;
}

/* List Styles */

/* =============================
   WINDSURF SERVICE CARD SYSTEM
   Nova-compliant .service-card & .service-grid
   ============================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 2rem;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.service-card {
  position: relative;
  background: rgba(30, 33, 54, 0.73);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(90, 228, 255, 0.07), 0 1.5px 8px 0 rgba(0,0,0,0.20);
  border: 2px solid transparent;
  padding: 2.2rem 1.7rem 1.7rem 1.7rem;
  overflow: hidden;
  transition: box-shadow 0.35s cubic-bezier(0.4,0,0.2,1), border 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
}

.service-card:hover, .service-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(90, 228, 255, 0.18), 0 3px 16px 0 rgba(0,0,0,0.25);
  border: 2px solid var(--aura-accent, #5ae4ff);
  transform: translateY(-4px) scale(1.025);
  animation: windsurf-card-glow 1.5s linear infinite alternate;
}

@keyframes windsurf-card-glow {
  0% { box-shadow: 0 4px 24px 0 rgba(90, 228, 255, 0.07), 0 1.5px 8px 0 rgba(0,0,0,0.20); }
  100% { box-shadow: 0 8px 32px 0 rgba(90, 228, 255, 0.18), 0 3px 16px 0 rgba(0,0,0,0.25); }
}

.service-card .service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(90, 228, 255, 0.15), rgba(155, 240, 11, 0.08));
  box-shadow: 0 0 0 0 rgba(90, 228, 255, 0.12);
  transition: box-shadow 0.3s, background 0.3s;
  font-size: 2.1rem;
  color: var(--aura-accent, #5ae4ff);
  animation: windsurf-icon-pulse 2.5s infinite cubic-bezier(0.4,0,0.2,1);
}

.service-card:hover .service-icon {
  box-shadow: 0 0 0 8px rgba(90, 228, 255, 0.09);
  background: linear-gradient(135deg, rgba(90, 228, 255, 0.24), rgba(155, 240, 11, 0.15));
  color: var(--aura-accent, #9bf0ff);
  animation: windsurf-icon-pulse 1.2s infinite cubic-bezier(0.4,0,0.2,1);
}

@keyframes windsurf-icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90, 228, 255, 0.12); }
  50% { box-shadow: 0 0 0 12px rgba(90, 228, 255, 0.16); }
}

.service-card h3 {
  margin: 0 0 0.7rem 0;
  font-size: 1.25rem;
  color: var(--aura-accent, #5ae4ff);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(90, 228, 255, 0.12);
}

.service-card p {
  color: var(--text-color, #ccd6f6);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
  opacity: 0.94;
}

.service-card .service-card-footer {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.service-card .service-card-footer .tech-badge {
  font-size: 0.9em;
  padding: 0.3em 0.8em;
}

@media (max-width: 480px) {
  .service-card {
    padding: 1.3rem 1rem 1.1rem 1rem;
  }
  .service-card .service-icon {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
}

/* END WINDSURF SERVICE CARD SYSTEM */
.content ul {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.content ul li {
  padding: 0.5rem 0;
  position: relative;
  color: var(--text-color);
}

.content ul li::before {
  content: "\2023"; /* Bullet point */
  color: var(--accent-color);
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.8;
}

.content ul li code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Ordered List Styles */
.content ol {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.content ol li {
  padding: 0.5rem 0;
  color: var(--text-color);
}

.content ol li code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* MD Doc Tag */
.md-doc-tag {
  display: inline-block;
  background: rgba(106, 173, 255, 0.1);
  color: #6aaedf;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  font-weight: 500;
}

/* Image Styles */
.content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  -webkit-backdrop-filter: blur(2px); /* added for Safari compatibility */
  -webkit-backdrop-filter: blur(2px); /* added for Safari compatibility */
  backdrop-filter: blur(2px);
}

.content img:hover {
  transform: scale(1.02);
}


/* Nova Voice Block - Theme Awareness */
body[data-theme="dark"] .nova-voice {
  background: rgba(18, 32, 42, 0.6);
  border-left: 4px solid #9bf00b;
  color: #d6faff;
  text-shadow: 0 0 4px rgba(155, 240, 255, 0.3);
  margin: 1.5rem 0; /* ← add this */
}

body[data-theme="light"] .nova-voice {
  background: #f0f9ff;
  border-left: 4px solid #107c10;
  color: #1a2a44;
  text-shadow: none;
  margin: 1.5rem 0; /* ← and this too */
}


/* Nova Alert Block */
body[data-theme="dark"] .nova-alert {
  background: rgba(255, 112, 112, 0.05);
  border-left: 3px solid #ff7070;
  color: #ff7070;
}

body[data-theme="light"] .nova-alert {
  background: #fff0f0;
  border-left: 3px solid #cc0000;
  color: #cc0000;
}

/* Nova Thought Styling */
body[data-theme="dark"] .nova-thought {
  color: #e0e0ff;
  opacity: 0.8;
  border-left: 2px solid #87ceeb;
}

body[data-theme="light"] .nova-thought {
  color: #444;
  opacity: 0.9;
  border-left: 2px solid #1a2a44;
}

/* Nova Quip */
body[data-theme="light"] .nova-quip {
  color: #334;
  text-shadow: none;
}
/* Simple Table Styling */
.nova-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

.nova-table thead {
  background-color: rgba(255, 255, 255, 0.05);
}

.nova-table th,
.nova-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.nova-table code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
.iridescent-pulse {
  animation: pulseGlow 3s infinite;
  border: 1px solid #a0f; /* placeholder color */
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px #a0f, 0 0 20px #0ff;
  }
  50% {
    box-shadow: 0 0 20px #0ff, 0 0 40px #a0f;
  }
}

.dream-teaser {
  padding: 20px;
  text-align: center;
  background: #1a1a1a;
}
.log-list {
  list-style: none;
  margin: 10px 0;
}
.nova-thought {
  color: #ff00ff;
  font-family: 'Courier New', monospace;
  margin: 15px 0;
  font-size: 1.1em;
}
.nova-thought .prompt-entry {
  font-style: italic;
  color: var(--text-soft, #ccc);
}
.explore-btn {
  display: inline-block;
  background: #ff00ff;
  color: #1a1a1a;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.explore-btn:hover {
  background: #ff66ff;
}

/* Add smooth transitions */
.nova-thought {
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

/* AURA THEMES */
.aura-violet {
  background: linear-gradient(135deg, #1a0028, #4b068c);
  box-shadow: 0 0 3px #8a2be230;
}

/* Muted Violet Aura: darker, less saturated and less bright for subtle mood blocks */
.aura-violet-muted {
  background: linear-gradient(135deg, #13001a, #2d1740);
  box-shadow: 0 0 2px #4b068c33, 0 1px 8px #1a002820;
  /* Optionally, you can tune the shadow or add a slight border for more separation */
}

.aura-cyan {
  background: linear-gradient(135deg, #001c1c, #00aaaa);
  box-shadow: 0 0 3px #00cccc30;
}

.aura-lime {
  background: linear-gradient(135deg, #112411, #88cc22);
  box-shadow: 0 0 3px #9acd3230;
}

.aura-magenta {
  background: linear-gradient(135deg, #210021, #cc44cc);
  box-shadow: 0 0 3px #e754e730;
}

.aura-white {
  background: #f5f5f5;
  color: #333;
  box-shadow: 0 0 2px #ffffff44;
}

.aura-pink {
  background: linear-gradient(135deg, #2e0022, #ff69a0);
  box-shadow: 0 0 3px #ff69b430;
}

.aura-graphite {
  background: linear-gradient(135deg, #1a1a1a, #2e2e2e);
  box-shadow: 0 0 3px #66666630;
}

.aura-emerald {
  background: linear-gradient(135deg, #010d09, #3cbf8f);
  box-shadow: 0 0 3px #3cbf8f30;
}

.nova-synth-status {
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  color: #fff;
  -webkit-backdrop-filter: blur(6px); /* added for Safari compatibility */
  backdrop-filter: blur(6px);
}
.nova-synth-status h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.nova-synth-status p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}
.nova-synth-status blockquote {
  margin: 0.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid #7df9ff;
  opacity: 0.8;
  font-style: italic;
}
.nova-synth-status small {
  opacity: 0.6;
  font-size: 0.75rem;
}
/* 🔹 Nova Terminal Simulation */
.nova-terminal {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  background: #111;
  color: #54b054;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0, 255, 128, 0.1);
  white-space: pre-wrap;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Hero Intro Block: Visual Balance Tweaks */
.hero-intro {
  /* Remove hover effects */
  box-shadow: none !important;
  transition: none !important;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 900px; /* Slightly wider for better flow */
  margin: 0 auto;
  background: none; /* Remove background color or box styling */
  border: none; /* Ensure no box-like appearance */
}

.hero-intro h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-intro .lead {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 1rem 0;
}

.hero-intro p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 1.2rem 0;
}

.hero-intro .nova-voice {
  font-style: italic;
  font-size: 1rem;
  color: var(--nova-glow-color, #00FFAA);
  text-shadow: 0 0 6px rgba(0, 255, 170, 0.4);
  margin-top: 2rem;
  opacity: 0.8;
  pointer-events: none;
  transition: none !important;
}

.hero-intro .nova-voice:hover {
  transform: none !important;
  opacity: 0.8 !important;
  color: var(--nova-glow-color, #00FFAA) !important;
  text-shadow: 0 0 6px rgba(0, 255, 170, 0.4) !important;
}


/* Hero Intro Fade-In Animation */
.hero-intro {
  pointer-events: none;
}

.hero-intro * {
  pointer-events: auto;
}

/* Only disable transitions for hover effects, not for animations */
.hero-intro:hover > *:not(.nova-voice-rainbow),
.hero-intro > *:hover:not(.nova-voice-rainbow) {
  transform: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* Rainbow text specific styles */
.nova-voice-rainbow {
  display: block;
  font-size: 1rem;
  font-style: italic;
  color: var(--nova-glow-color, #00FFAA);
  text-shadow: 0 0 6px rgba(0, 255, 170, 0.4);
  margin: 2rem 0 1.5rem;
  opacity: 0.8;
  pointer-events: none;
  transition: none !important;
  
  /* Rainbow effect */
  background: linear-gradient(90deg, #ff69b4, #ffa500, #ffff00, #00ff80, #00bfff, #ff69b4);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rainbowFlow 8s linear infinite;
}

@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Initial state for paragraphs */
.hero-intro p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Revealed state for paragraphs */
.hero-intro p.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Coming Soon Overlay - Only show on card hover */
.card-section {
  position: relative;
  overflow: hidden;
}

.coming-soon-overlay {
  position: absolute;
  top: 1rem;
  right: -100%;
  background: rgba(0, 0, 0, 0.7);
  color: #5ae4ff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 2;
  -webkit-backdrop-filter: blur(2px); /* added for Safari compatibility */
  backdrop-filter: blur(2px);
  transition: right 0.3s ease;
}

.card-section:hover .coming-soon-overlay {
  right: 1rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: #8a94b8;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-meta i {
  color: #5ae4ff;
}

/* ===== Project Card Styles ===== */

/* Add margin below feature card descriptions for separation from tags */
.feature-card-desc {
  margin-bottom: 0.75rem;
}
.tech-badge i,
.project-tag i {
  font-size: 1.1em;
  margin-right: 0.4em;
  color: inherit;
  vertical-align: middle;
  display: inline-block;
}
.project-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
}

/* Project Background Variants */
.project-bg-video {
  background: linear-gradient(135deg, rgba(180, 70, 255, 0.2), rgba(100, 43, 255, 0.3)) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.project-icon-video {
  font-size: 5rem;
  color: #5ae4ff;
  filter: drop-shadow(0 0 10px rgba(90, 228, 255, 0.6));
  transition: all 0.3s ease;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.hero-card-video .project-icon-video {
  font-size: 12rem;
  color: #ffffff;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
  opacity: 0.95;
}

.hero-card-video:hover .project-icon-video {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1));
  opacity: 1;
}

.card-image-container:hover .project-icon-video {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(90, 228, 255, 0.9));
  opacity: 1;
}

/* Project Background Variants */
.project-bg-xbox {
  background: linear-gradient(135deg, rgba(16, 124, 16, 0.25), rgba(16, 16, 16, 0.35)) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Xbox Logo Styling */
.xbox-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(16, 200, 16, 0.6));
  transition: transform 0.5s ease, filter 0.3s ease;
  position: relative;
  z-index: 2;
  opacity: 0.9;
  display: block;
  transform-origin: center center;
  will-change: transform, filter;
  backface-visibility: hidden;
}

.card-image-container-xbox {
  height: 180px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #107C10 0%, #0a4b0a 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0;
  box-sizing: border-box;
}

.card-image-container-xbox .xbox-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(16, 255, 16, 0.9));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform, filter;
  backface-visibility: hidden;
  margin: 0;
  position: relative;
  top: 10px;
}

.card-image-container-xbox:hover .xbox-logo {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 0 30px rgba(16, 255, 16, 1.1));
}

/* Hero Xbox Logo Styling */
#xbox-logo-main {
  width: 90% !important;
  max-width: 600px !important;
  height: auto !important;
  filter: drop-shadow(0 0 20px rgba(16, 255, 16, 0.9)) !important;
  transition: all 0.3s ease-in-out !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.hero-card-xbox:hover #xbox-logo-main {
  filter: drop-shadow(0 0 30px rgba(16, 255, 16, 1)) !important;
  transform: scale(1.05) !important;
}

/* Hero Card Styling */
.hero-card-ai .hero-card-image {
  min-height: 300px;
}

.hero-ai-logo {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.hero-gc-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Hero Card with Video Styling */
.hero-card-video .hero-card-image {
  padding: 3rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-icon-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.hero-video-icon {
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 30px rgba(90, 228, 255, 0.7);
  filter: drop-shadow(0 0 15px rgba(90, 228, 255, 0.7));
  transition: all 0.3s ease;
  opacity: 0.9;
  transform-origin: center center;
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
  cursor: pointer;
}

.hero-card-video:hover .hero-video-icon,
.hero-video-icon:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 30px rgba(90, 228, 255, 1));
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(90, 228, 255, 0.9);
}

.hero-video-icon:active {
  transform: scale(1.1) !important;
  filter: drop-shadow(0 0 25px rgba(90, 228, 255, 0.9)) !important;
}

/* Hero Card with Xbox Styling */
.hero-card-xbox {
  --hero-padding: 4rem 0;
}

.hero-card-xbox .hero-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, #5dc21e, #107c10) !important;
}

.project-bg-ai {
  background: linear-gradient(135deg, rgba(157, 0, 255, 0.2), rgba(100, 43, 255, 0.3)) !important;
}

.project-bg-gaming {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(0, 120, 212, 0.2)) !important;
}

.project-bg-web {
  background: linear-gradient(135deg, rgba(16, 124, 16, 0.1), rgba(16, 124, 16, 0.2)) !important;
}

/* Grand Central Styling */
.project-bg-gc {
  background: linear-gradient(135deg, rgba(0, 120, 215, 0.25), rgba(0, 60, 120, 0.3)) !important;
}

.hero-card-gc .hero-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  position: relative;
}

.hero-card-gc .project-icon-gc {
  position: absolute;
  z-index: 2;
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(0, 153, 255, 0.8));
  transition: transform 0.5s ease, filter 0.3s ease;
}

/* Card Image Containers */
.card-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Cascade: Zoom only the icon inside project card image on card hover */
.card-gradient-icon i {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-gradient-icon i {
  transform: scale(1.13);
  z-index: 2;
}


/* Hero card image hover effect for all support pages */
.hero-card .hero-card-image {
  position: relative;
  overflow: hidden;
}

.hero-card .hero-card-image img {
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), 
              filter 0.3s ease;
  will-change: transform, filter;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-card:not(.hero-card-xbox):hover .hero-card-image img {
  transform: scale(1.05);
  filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.hero-card-xbox:hover .hero-card-image img {
  filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(16, 255, 16, 1));
  transform: scale(1.05);
}

/* Specific styles for Xbox support pages */
.hero-card-xbox .hero-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.hero-card-xbox .hero-card-image img {
  filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(16, 255, 16, 0.9));
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Specific class for Xbox support page icon */
.hero-card-xbox .hero-card-image .xbox-support-icon {
  width: 200px !important;
  height: 200px !important;
  min-width: 200px !important;
  min-height: 200px !important;
  max-width: 200px !important;
  max-height: 200px !important;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 22px #00aaaa); /* updated by Cascade: aura-cyan effect for Xbox hero icon */
  transition: all 0.3s ease-in-out !important;
}

.hero-card-xbox:hover .hero-card-image .xbox-support-icon {
  transform: scale(1.1) !important;
  filter: brightness(1) invert(1) drop-shadow(0 0 25px rgba(16, 255, 16, 1)) !important;
}

.hero-card-xbox:hover .hero-card-image img {
  filter: brightness(1) invert(1) drop-shadow(0 0 25px rgba(16, 255, 16, 1));
  transform: scale(1.1);
}

/* Handle missing images in hero cards */
.hero-card-image img:not([src]) {
  display: none; /* Hide if src is empty */
}

/* Game-specific hero cards - for logos and contained images */
.hero-card .hero-card-image[class*="project-bg-"] {
  background-size: cover;
  background-position: center;
  padding: 0;
  margin: 0;
}

.hero-card .hero-card-image[class*="project-bg-"] img {
  width: auto;
  height: 60%;
  max-width: 80%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Full-bleed hero images */
.hero-card .hero-card-image:not([class*="project-bg-"]) {
  padding: 0;
  margin: 0;
}

.hero-card .hero-card-image:not([class*="project-bg-"]) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hover effects */
.hero-card:hover .hero-card-image[class*="project-bg-"] img {
  transform: scale(1.05);
  filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.hero-card:hover .hero-card-image:not([class*="project-bg-"]) img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.card-image-container-ai {
  min-height: 150px;
}

.card-image-container-xbox {
  min-height: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  overflow: visible;
  background: linear-gradient(135deg, #107C10 0%, #0a4b0a 100%) !important;
}

/* Card container for Grand Central */
.card-image-container-gc {
  min-height: 150px;
}

/* Project icon sizes */
.project-icon-gc {
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(0, 153, 255, 0.8));
  transition: transform 0.5s ease, filter 0.3s ease;
  position: relative;
  z-index: 2;
  margin: 0;
}

.hero-card:hover .project-icon-gc {
  transform: scale(1.1);
}

/* Button margin utility */
.btn-margin-top-1 {
  margin-top: 1rem;
}

/* Project Icons */
.project-icon-ai {
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(180, 70, 255, 0.8));
  transition: transform 0.5s ease;
  display: block;
  margin: 0 auto;
}

.hero-card:hover .project-icon-ai {
  transform: scale(1.1);
}

.project-icon-xbox-icon {
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(16, 255, 16, 0.8));
  transition: transform 0.5s ease;
  display: block;
  margin: 0 auto;
}

.project-icon-xbox {
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(16, 255, 16, 0.8));
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1), filter 0.3s ease;
  margin: 0 auto;
  display: block;
  padding: 0;
  box-sizing: border-box;
}

.hero-card:hover .project-icon-xbox {
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(16, 255, 16, 1.2));
}

.card-image-container:hover .project-icon-xbox {
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(16, 255, 16, 1.2));
}

/* Xbox Project Card */
.project-card-xbox {
  height: 180px;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-xbox-link {
  height: 100%;
  display: block;
  text-decoration: none;
}

.project-card-xbox-image {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #107C10 0%, #0a4b0a 100%);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card-xbox-logo {
  width: 300px;
  height: 300px;
  max-width: 150%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(16, 255, 16, 0.9));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card-xbox:hover .project-card-xbox-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(16, 255, 16, 1.2));
}

/* Button Margins */
.btn-margin-top {
  margin-top: 1rem;
}

/* Card Image Styles */
.card-image {
  position: relative;
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.card-image:hover {
  transform: scale(1.05);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.card-image:hover img {
  transform: scale(1.1);
}

.card-image .project-icon {
  font-size: 4.5rem;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 
    0 0 2px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 10px var(--glow-color, rgba(0, 180, 255, 0.4));
  filter: 
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, text-shadow;
  z-index: 2;
  opacity: 0.9;
}

.card-image:hover .project-icon {
  transform: translate(-50%, -50%) scale(1.1);
  text-shadow: 
    0 0 3px rgba(255, 255, 255, 0.9),
    0 0 6px rgba(255, 255, 255, 0.7),
    0 0 15px var(--glow-color, rgba(0, 180, 255, 0.6));
  filter: 
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
  opacity: 1;
}

/* Project Icons */
.project-image i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Project Content */
.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin: 0 0 0.75rem 0;
  color: #fff;
  font-size: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.project-tags span {
  background: rgba(255, 255, 255, 0.1);
  color: #e0f7ff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.project-tags span:hover {
  background-color: rgba(90, 200, 250, 0.2);
  transform: translateY(-1px);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5ae4ff;
  text-decoration: none;
  margin-top: auto;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #8a2be2;
  transform: translateX(4px);
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(4px);
}

/* Hover Effects */
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.project-card:hover .project-image {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-image i {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Video Embeds */
.video-embed {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 2rem 0;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Team Trading Cards */
.team-trading-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-trading-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 1.5rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  background-color: rgba(20, 20, 30, 0.7);
}

.team-trading-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.team-trading-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.team-trading-card:hover::before {
  opacity: 0.6;
}

.team-trading-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--glow-color, rgba(90, 228, 255, 0.8)));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.team-trading-card:hover .card-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px var(--glow-color, rgba(90, 228, 255, 1)));
}

.team-trading-card .card-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
  background: linear-gradient(to right, #fff, var(--highlight-color, #5ae4ff));
  -webkit-background-clip: text; /* updated by Cascade 2025-07-11 */
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.team-trading-card .card-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.team-trading-card .card-stats {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-trading-card .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-trading-card .stat-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-trading-card .stat-label {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.team-trading-card .stat-value {
  font-weight: 600;
  color: var(--highlight-color, #5ae4ff);
}

/* Card variants with Nova mood colors */
.team-trading-card.aura-cyan {
  --glow-color: rgba(90, 228, 255, 0.8);
  --highlight-color: #5ae4ff;
  background: linear-gradient(135deg, rgba(0, 71, 75, 0.8), rgba(0, 115, 119, 0.8));
  border: 1px solid #00474b;
}

.team-trading-card.aura-deep-violet {
  --glow-color: rgba(157, 78, 221, 0.8);
  --highlight-color: #9d4edd;
  background: linear-gradient(135deg, rgba(42, 0, 71, 0.8), rgba(75, 0, 130, 0.8));
  border: 1px solid #2a0047;
}

.team-trading-card.aura-lime-green {
  --glow-color: rgba(46, 213, 115, 0.8);
  --highlight-color: #2ed573;
  background: linear-gradient(135deg, rgba(26, 60, 41, 0.8), rgba(46, 139, 87, 0.8));
  border: 1px solid #1a3c29;
}

.team-trading-card.aura-magenta-fade {
  --glow-color: rgba(233, 78, 255, 0.8);
  --highlight-color: #e94eff;
  background: linear-gradient(135deg, rgba(76, 25, 119, 0.8), rgba(123, 48, 179, 0.8));
  border: 1px solid #4c1977;
}

/* Texture backgrounds */
.team-trading-card.texture-nebula::before {
  background-image: url('/images/textures/nebula.png');
}

.team-trading-card.texture-interface::before {
  background-image: url('/images/textures/waves.png');
}

.team-trading-card.texture-stars::before {
  background-image: url('/images/textures/stars.png');
}

.team-trading-card.texture-waves::before {
  background-image: url('/images/textures/waves.png');
}

/* Holographic effect */
.team-trading-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.03) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-50%) translateY(-50%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.team-trading-card:hover::after {
  transform: translateX(-30%) translateY(-30%) rotate(10deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-trading-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .team-trading-card .card-value {
    font-size: 2rem;
  }
  
  .team-trading-card .card-label {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .team-trading-cards {
    grid-template-columns: 1fr;
  }
}

/* Xbox Navigation Styles */
.xbox-nav-container {
  background: linear-gradient(90deg, rgba(16, 22, 35, 0.85) 0%, rgba(32, 43, 67, 0.85) 100%);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(107, 114, 142, 0.15);
}

.xbox-nav-container .nav-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xbox-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.xbox-nav-link i {
  font-size: 1rem;
  color: #5ae4ff;
  transition: transform 0.2s ease;
}

.xbox-nav-link:hover {
  background-color: rgba(90, 228, 255, 0.1);
  color: #ffffff;
}

.xbox-nav-link:hover i {
  transform: translateY(-2px);
  color: #ffffff;
}

.xbox-nav-link:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .xbox-nav-container .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .xbox-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* AI Agents & Tools Section */
.agent-tools-section {
  background: #101623;
  background: radial-gradient(circle at center, #141c2e 0%, #101623 100%);
  padding: 0rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.agent-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #1a2135;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(62, 207, 142, 0.2);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3ecf8e;
  opacity: 0.7;
}

.tool-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tool-icon {
  font-size: 1.25rem;
  color: #3ecf8e;
  margin-right: 0.75rem;
}

.tool-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

.tool-description {
  font-size: 0.9rem;
  color: #c3d1e3;
  line-height: 1.5;
}

.tool-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(62, 207, 142, 0.15);
  color: #3ecf8e;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.75rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .agent-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .agent-tools-section {
    padding: 3rem 1.5rem;
  }
}

.content {
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  opacity: 1;
  padding: 0 1.5rem;
  max-height: none;
  word-wrap: break-word;
}

.content.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  overflow: hidden;
  border: none;
}

.toggle-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(90, 228, 255, 0.1);
  border: 1px solid rgba(90, 228, 255, 0.3);
  color: #5ae4ff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.toggle-all-btn:hover {
  background: rgba(90, 228, 255, 0.2);
  transform: translateY(-1px);
}

.toggle-all-btn i {
  transition: transform 0.3s ease;
}

.toggle-all-btn.expanded i {
  transform: rotate(180deg);
}

.hero-intro p.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Coming Soon Overlay - Only show on card hover */
.card-section {
  position: relative;
  overflow: hidden;
}

.coming-soon-overlay {
  position: absolute;
  top: 1rem;
  right: -100%;
  background: rgba(0, 0, 0, 0.7);
  color: #5ae4ff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 2;
  -webkit-backdrop-filter: blur(2px); /* added for Safari compatibility */
  backdrop-filter: blur(2px);
  transition: right 0.3s ease;
}

.card-section:hover .coming-soon-overlay {
  right: 1rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: #8a94b8;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-meta i {
  color: #5ae4ff;
}

/* ===== Project Card Styles ===== */

/* Add margin below feature card descriptions for separation from tags */
.feature-card-desc {
  margin-bottom: 0.75rem;
}
.tech-badge i,
.project-tag i {
  font-size: 1.1em;
  margin-right: 0.4em;
  color: inherit;
  vertical-align: middle;
  display: inline-block;
}
.project-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
}

/* Project Background Variants */
.project-bg-video {
  background: linear-gradient(135deg, rgba(180, 70, 255, 0.2), rgba(100, 43, 255, 0.3)) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.project-icon-video {
  font-size: 5rem;
  color: #5ae4ff;
  filter: drop-shadow(0 0 10px rgba(90, 228, 255, 0.6));
  transition: all 0.3s ease;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.hero-card-video .project-icon-video {
  font-size: 12rem;
  color: #ffffff;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
  opacity: 0.95;
}

.hero-card-video:hover .project-icon-video {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1));
  opacity: 1;
}

.card-image-container:hover .project-icon-video {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(90, 228, 255, 0.9));
  opacity: 1;
}

/* Project Background Variants */
.project-bg-xbox {
  background: linear-gradient(135deg, rgba(16, 124, 16, 0.25), rgba(16, 16, 16, 0.35)) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Xbox Logo Styling */
.xbox-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(16, 200, 16, 0.6));
  transition: transform 0.5s ease, filter 0.3s ease;
  position: relative;
  z-index: 2;
  opacity: 0.9;
  display: block;
  transform-origin: center center;
  will-change: transform, filter;
  backface-visibility: hidden;
}

.card-image-container-xbox {
  height: 180px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #107C10 0%, #0a4b0a 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0;
  box-sizing: border-box;
}

.card-image-container-xbox .xbox-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(16, 255, 16, 0.9));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform, filter;
  backface-visibility: hidden;
  margin: 0;
  position: relative;
  top: 10px;
}

.card-image-container-xbox:hover .xbox-logo {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 0 30px rgba(16, 255, 16, 1.1));
}

/* Hero Xbox Logo Styling */
#xbox-logo-main {
  width: 90% !important;
  max-width: 600px !important;
  height: auto !important;
  filter: drop-shadow(0 0 20px rgba(16, 255, 16, 0.9)) !important;
  transition: all 0.3s ease-in-out !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.hero-card-xbox:hover #xbox-logo-main {
  filter: drop-shadow(0 0 30px rgba(16, 255, 16, 1)) !important;
  transform: scale(1.05) !important;
}

/* Hero Card Styling */
.hero-card-ai .hero-card-image {
  min-height: 300px;
}

.hero-ai-logo {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.hero-gc-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Hero Card with Video Styling */
.hero-card-video .hero-card-image {
  padding: 3rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-icon-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.hero-video-icon {
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 30px rgba(90, 228, 255, 0.7);
  filter: drop-shadow(0 0 15px rgba(90, 228, 255, 0.7));
  transition: all 0.3s ease;
  opacity: 0.9;
  transform-origin: center center;
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
  cursor: pointer;
}

.hero-card-video:hover .hero-video-icon,
.hero-video-icon:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 30px rgba(90, 228, 255, 1));
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(90, 228, 255, 0.9);
}

.hero-video-icon:active {
  transform: scale(1.1) !important;
  filter: drop-shadow(0 0 25px rgba(90, 228, 255, 0.9)) !important;
}

/* Hero Card with Xbox Styling */
.hero-card-xbox {
  --hero-padding: 4rem 0;
}

.hero-card-xbox .hero-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, #5dc21e, #107c10) !important;
}

.project-bg-ai {
  background: linear-gradient(135deg, rgba(157, 0, 255, 0.2), rgba(100, 43, 255, 0.3)) !important;
}

.project-bg-gaming {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(0, 120, 212, 0.2)) !important;
}

.project-bg-web {
  background: linear-gradient(135deg, rgba(16, 124, 16, 0.1), rgba(16, 124, 16, 0.2)) !important;
}

/* Grand Central Styling */
.project-bg-gc {
  background: linear-gradient(135deg, rgba(0, 120, 215, 0.25), rgba(0, 60, 120, 0.3)) !important;
}

.hero-card-gc .hero-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  position: relative;
}

.hero-card-gc .project-icon-gc {
  position: absolute;
  z-index: 2;
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(0, 153, 255, 0.8));
  transition: transform 0.5s ease, filter 0.3s ease;
}

/* Card Image Containers */
.card-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Cascade: Zoom only the icon inside project card image on card hover */
.card-gradient-icon i {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-gradient-icon i {
  transform: scale(1.13);
  z-index: 2;
}


/* Hero card image hover effect for all support pages */
.hero-card .hero-card-image {
  position: relative;
  overflow: hidden;
}

.hero-card .hero-card-image img {
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), 
              filter 0.3s ease;
  will-change: transform, filter;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-card:not(.hero-card-xbox):hover .hero-card-image img {
  transform: scale(1.05);
  filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.hero-card-xbox:hover .hero-card-image img {
  filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(16, 255, 16, 1));
  transform: scale(1.05);
}

/* Specific styles for Xbox support pages */
.hero-card-xbox .hero-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.hero-card-xbox .hero-card-image img {
  filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(16, 255, 16, 0.9));
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Specific class for Xbox support page icon */
.hero-card-xbox .hero-card-image .xbox-support-icon {
  width: 200px !important;
  height: 200px !important;
  min-width: 200px !important;
  min-height: 200px !important;
  max-width: 200px !important;
  max-height: 200px !important;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 22px #00aaaa); /* updated by Cascade: aura-cyan effect for Xbox hero icon */
  transition: all 0.3s ease-in-out !important;
}

.hero-card-xbox:hover .hero-card-image .xbox-support-icon {
  transform: scale(1.1) !important;
  filter: brightness(1) invert(1) drop-shadow(0 0 25px rgba(16, 255, 16, 1)) !important;
}

.hero-card-xbox:hover .hero-card-image img {
  filter: brightness(1) invert(1) drop-shadow(0 0 25px rgba(16, 255, 16, 1));
  transform: scale(1.1);
}

/* Handle missing images in hero cards */
.hero-card-image img:not([src]) {
  display: none; /* Hide if src is empty */
}

/* Game-specific hero cards - for logos and contained images */
.hero-card .hero-card-image[class*="project-bg-"] {
  background-size: cover;
  background-position: center;
  padding: 0;
  margin: 0;
}

.hero-card .hero-card-image[class*="project-bg-"] img {
  width: auto;
  height: 60%;
  max-width: 80%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Full-bleed hero images */
.hero-card .hero-card-image:not([class*="project-bg-"]) {
  padding: 0;
  margin: 0;
}

.hero-card .hero-card-image:not([class*="project-bg-"]) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hover effects */
.hero-card:hover .hero-card-image[class*="project-bg-"] img {
  transform: scale(1.05);
  filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.hero-card:hover .hero-card-image:not([class*="project-bg-"]) img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.card-image-container-ai {
  min-height: 150px;
}

.card-image-container-xbox {
  min-height: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  overflow: visible;
  background: linear-gradient(135deg, #107C10 0%, #0a4b0a 100%) !important;
}

/* Card container for Grand Central */
.card-image-container-gc {
  min-height: 150px;
}

/* Project icon sizes */
.project-icon-gc {
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(0, 153, 255, 0.8));
  transition: transform 0.5s ease, filter 0.3s ease;
  position: relative;
  z-index: 2;
  margin: 0;
}

.hero-card:hover .project-icon-gc {
  transform: scale(1.1);
}

/* Button margin utility */
.btn-margin-top-1 {
  margin-top: 1rem;
}

/* Project Icons */
.project-icon-ai {
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(180, 70, 255, 0.8));
  transition: transform 0.5s ease;
  display: block;
  margin: 0 auto;
}

.hero-card:hover .project-icon-ai {
  transform: scale(1.1);
}

.project-icon-xbox-icon {
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(16, 255, 16, 0.8));
  transition: transform 0.5s ease;
  display: block;
  margin: 0 auto;
}

.project-icon-xbox {
  font-size: 8rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(16, 255, 16, 0.8));
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1), filter 0.3s ease;
  margin: 0 auto;
  display: block;
  padding: 0;
  box-sizing: border-box;
}

.hero-card:hover .project-icon-xbox {
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(16, 255, 16, 1.2));
}

.card-image-container:hover .project-icon-xbox {
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(16, 255, 16, 1.2));
}

/* Xbox Project Card */
.project-card-xbox {
  height: 180px;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-xbox-link {
  height: 100%;
  display: block;
  text-decoration: none;
}

.project-card-xbox-image {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #107C10 0%, #0a4b0a 100%);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card-xbox-logo {
  width: 300px;
  height: 300px;
  max-width: 150%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(16, 255, 16, 0.9));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card-xbox:hover .project-card-xbox-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(16, 255, 16, 1.2));
}

/* Button Margins */
.btn-margin-top {
  margin-top: 1rem;
}

/* Card Image Styles */
.card-image {
  position: relative;
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.card-image:hover {
  transform: scale(1.05);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.card-image:hover img {
  transform: scale(1.1);
}

.card-image .project-icon {
  font-size: 4.5rem;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 
    0 0 2px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 10px var(--glow-color, rgba(0, 180, 255, 0.4));
  filter: 
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, text-shadow;
  z-index: 2;
  opacity: 0.9;
}

.card-image:hover .project-icon {
  transform: translate(-50%, -50%) scale(1.1);
  text-shadow: 
    0 0 3px rgba(255, 255, 255, 0.9),
    0 0 6px rgba(255, 255, 255, 0.7),
    0 0 15px var(--glow-color, rgba(0, 180, 255, 0.6));
  filter: 
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
  opacity: 1;
}

/* Project Icons */
.project-image i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Project Content */
.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin: 0 0 0.75rem 0;
  color: #fff;
  font-size: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.project-tags span {
  background: rgba(255, 255, 255, 0.1);
  color: #e0f7ff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.project-tags span:hover {
  background-color: rgba(90, 200, 250, 0.2);
  transform: translateY(-1px);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5ae4ff;
  text-decoration: none;
  margin-top: auto;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #8a2be2;
  transform: translateX(4px);
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(4px);
}

/* Hover Effects */
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.project-card:hover .project-image {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-image i {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Video Embeds */
.video-embed {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 2rem 0;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Team Trading Cards */
.team-trading-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-trading-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 1.5rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  background-color: rgba(20, 20, 30, 0.7);
}

.team-trading-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.team-trading-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.team-trading-card:hover::before {
  opacity: 0.6;
}

.team-trading-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--glow-color, rgba(90, 228, 255, 0.8)));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.team-trading-card:hover .card-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px var(--glow-color, rgba(90, 228, 255, 1)));
}

.team-trading-card .card-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
  background: linear-gradient(to right, #fff, var(--highlight-color, #5ae4ff));
  -webkit-background-clip: text; /* updated by Cascade 2025-07-11 */
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.team-trading-card .card-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.team-trading-card .card-stats {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-trading-card .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-trading-card .stat-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-trading-card .stat-label {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.team-trading-card .stat-value {
  font-weight: 600;
  color: var(--highlight-color, #5ae4ff);
}

/* Card variants with Nova mood colors */
.team-trading-card.aura-cyan {
  --glow-color: rgba(90, 228, 255, 0.8);
  --highlight-color: #5ae4ff;
  background: linear-gradient(135deg, rgba(0, 71, 75, 0.8), rgba(0, 115, 119, 0.8));
  border: 1px solid #00474b;
}

.team-trading-card.aura-deep-violet {
  --glow-color: rgba(157, 78, 221, 0.8);
  --highlight-color: #9d4edd;
  background: linear-gradient(135deg, rgba(42, 0, 71, 0.8), rgba(75, 0, 130, 0.8));
  border: 1px solid #2a0047;
}

.team-trading-card.aura-lime-green {
  --glow-color: rgba(46, 213, 115, 0.8);
  --highlight-color: #2ed573;
  background: linear-gradient(135deg, rgba(26, 60, 41, 0.8), rgba(46, 139, 87, 0.8));
  border: 1px solid #1a3c29;
}

.team-trading-card.aura-magenta-fade {
  --glow-color: rgba(233, 78, 255, 0.8);
  --highlight-color: #e94eff;
  background: linear-gradient(135deg, rgba(76, 25, 119, 0.8), rgba(123, 48, 179, 0.8));
  border: 1px solid #4c1977;
}

/* Texture backgrounds */
.team-trading-card.texture-nebula::before {
  background-image: url('/images/textures/nebula.png');
}

.team-trading-card.texture-interface::before {
  background-image: url('/images/textures/waves.png');
}

.team-trading-card.texture-stars::before {
  background-image: url('/images/textures/stars.png');
}

.team-trading-card.texture-waves::before {
  background-image: url('/images/textures/waves.png');
}

/* Holographic effect */
.team-trading-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.03) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-50%) translateY(-50%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.team-trading-card:hover::after {
  transform: translateX(-30%) translateY(-30%) rotate(10deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-trading-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .team-trading-card .card-value {
    font-size: 2rem;
  }
  
  .team-trading-card .card-label {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .team-trading-cards {
    grid-template-columns: 1fr;
  }
}

/* Xbox Navigation Styles */
.xbox-nav-container {
  background: linear-gradient(90deg, rgba(16, 22, 35, 0.85) 0%, rgba(32, 43, 67, 0.85) 100%);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(107, 114, 142, 0.15);
}

.xbox-nav-container .nav-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xbox-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.xbox-nav-link i {
  font-size: 1rem;
  color: #5ae4ff;
  transition: transform 0.2s ease;
}

.xbox-nav-link:hover {
  background-color: rgba(90, 228, 255, 0.1);
  color: #ffffff;
}

.xbox-nav-link:hover i {
  transform: translateY(-2px);
  color: #ffffff;
}

.xbox-nav-link:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .xbox-nav-container .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .xbox-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* AI Agents & Tools Section */
.agent-tools-section {
  background: #101623;
  background: radial-gradient(circle at center, #141c2e 0%, #101623 100%);
  padding: 0rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.agent-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #1a2135;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(62, 207, 142, 0.2);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3ecf8e;
  opacity: 0.7;
}

.tool-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tool-icon {
  font-size: 1.25rem;
  color: #3ecf8e;
  margin-right: 0.75rem;
}

.tool-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

.tool-description {
  font-size: 0.9rem;
  color: #c3d1e3;
  line-height: 1.5;
}

.tool-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(62, 207, 142, 0.15);
  color: #3ecf8e;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.75rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .agent-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .agent-tools-section {
    padding: 3rem 1.5rem;
  }
}

/* --- User Profile Dropdown (added by Cascade, June 2025) --- */
.user-profile-container {
  position: relative;
  display: inline-block;
}

.user-profile-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: var(--nav-link-color, #ccd6f6);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.user-profile-button:hover,
.user-profile-button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 8px rgba(90, 228, 255, 0.2);
}

.user-avatar {
  font-size: 1.8rem;
  color: var(--aura-glow, #5ae4ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-display-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.dropdown-caret {
  font-size: 0.8rem;
  transition: transform 0.2s ease-in-out;
}

.user-profile-button[aria-expanded="true"] .dropdown-caret {
  transform: rotate(180deg);
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: var(--nav-bg, #10121a);
  border: 1px solid var(--nav-border-color, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  -webkit-backdrop-filter: blur(10px); /* updated by Cascade 2025-07-11 */
  backdrop-filter: blur(10px);
}

.user-profile-dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid var(--nav-border-color, rgba(255, 255, 255, 0.1));
  line-height: 1.3;
}

.dropdown-user-name {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-email {
  display: block;
  font-size: 0.85rem;
  color: var(--text-color-secondary, #a8b2d1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  color: var(--nav-link-color, #ccd6f6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(90, 228, 255, 0.1);
  color: #fff;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--aura-glow, #5ae4ff);
}

.dropdown-item:last-child {
  border-top: 1px solid var(--nav-border-color, rgba(255, 255, 255, 0.1));
}

/* Explore More Module - updated by Cascade 2025-07-11 */
.related-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.related-project-card {
  background: rgba(30, 30, 35, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.related-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color, #5ac8fa);
}

.related-project-card a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.related-project-card a:hover {
  color: var(--accent-color, #5ac8fa);
}

.related-project-card a i {
  font-size: 1.25rem;
}

.related-project-card p {
  color: #bbb;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .related-projects {
    grid-template-columns: 1fr;
  }
}
