/* /css/base.css - Ambient Pixels v2.3 - April 7, 2025 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
}

h1, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    margin: 2rem 0 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
    padding: 0.6rem 1.2rem;
    margin: 0;
    font: inherit;
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Very small screens optimization */
@media (max-width: 350px) {
    body {
        font-size: 0.9rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 0.9rem;
    }
    
    button, input, select, textarea {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .card, .neon-card {
        padding: 0.75rem;
    }
    
    .nav-toggle {
        padding: 0.5rem;
    }
    
    .nav-links li {
        padding: 0.5rem 0.75rem;
    }
    
    .pulse-bar {
        padding: 0.25rem;
    }
    
    .pulse-trait {
        padding: 0 0.25rem;
    }
    
    .pulse-value {
        font-size: 0.75rem;
    }
    
    .sticky-toggle-wrapper {
        padding: 0.25rem 0.5rem;
    }
}

ul, ol {
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Space for fixed header */
}
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    position: relative;
}

p a:not(.btn):not(.card-image-link):not(.no-underline) {
    color: #87ceeb; /* Cyan for dark theme */
    position: relative;
    transition: color 0.3s ease;
}

/* Apply hover effect only to text links and menu items */
p a:not(.btn):not(.card-image-link):not(.no-underline):hover::after,
.nav-links a:not(.btn):not(.card-image-link):hover::after,
.layout-nav-links a:not(.btn):not(.card-image-link):hover::after,
.text-link:not(.btn):not(.card-image-link):hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* Update hover styles to match the same specificity */
p a:not(.btn):not(.card-image-link):not(.no-underline):hover,
.nav-links a:not(.btn):not(.card-image-link):hover,
.layout-nav-links a:not(.btn):not(.card-image-link):hover,
.text-link:not(.btn):not(.card-image-link):hover {
    color: var(--link-hover-color, #5ae4ff);
    text-decoration: none;
}

/* Light theme specific */
body[data-theme="light"] p a:not(.btn):not(.card-image-link):not(.no-underline):hover,
body[data-theme="light"] .nav-links a:not(.btn):not(.card-image-link):hover,
body[data-theme="light"] .layout-nav-links a:not(.btn):not(.card-image-link):hover,
body[data-theme="light"] .text-link:not(.btn):not(.card-image-link):hover {
    color: var(--link-hover-color, #0d6efd);
}

body[data-theme="light"] a {
    color: #3b82f6; /* Blue for light theme */
}

body[data-theme="light"] a::after {
    background: #3b82f6;
}

body[data-theme="light"] a:hover {
    color: #1e40af; /* Darker blue on hover */
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

ul, ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

/* components.css - Ambient Pixels v2.3 - April 5, 2025 */
.toggle-btn {
  background: none;
  border: 1px solid #4682B4;
  padding: 8px 16px;
  cursor: pointer;
  color: inherit;
  transition: background 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(70, 130, 180, 0.1);
}

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

/* Ensure content sections are always visible and properly spaced */
.content-section {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
  scroll-margin-top: 80px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#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;
}

/* Grid System */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px;
  margin: 0 auto;
  padding: 20px;
}

.grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr; /* 1 column on small screens */
  }
}

/* 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;
}

/* 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’s Bug Vault Styles */
.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);
  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 li {
  margin-bottom: 1rem;
  border-left: 3px solid #5ae4ff;
  padding-left: 1rem;
}

.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 Styles */
.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);
  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: none;
  font-size: 1.25rem;
  color: #888;
  cursor: pointer;
}

.form-status {
  margin-top: 1rem;
  font-weight: 500;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.toggle-btn.icon-only {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.toggle-btn[aria-expanded="false"] i {
  transform: rotate(-90deg);
}
/* .subtitle {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #c8f0ff;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  opacity: 0.85;
} */

body[data-theme="light"] .subtitle {
  color: #1a2a44;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
