@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  /* Color System */
  --bg-primary: #0a0a0c;
  --bg-secondary: #121215;
  --bg-tertiary: #1a1a1f;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-dark: #334155;
  
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(37, 99, 235, 0.3);
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Utilities */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.7;
}

p.lead {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Button & Call to Action Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-primary);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
}

.btn-text {
  padding: 0;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--accent-hover);
}

.btn-text svg {
  transition: transform 0.2s ease;
}

.btn-text:hover svg {
  transform: translateX(4px);
}

/* View Engine (SPA Container) */
main {
  margin-top: 80px;
  flex: 1;
}

.view {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.view.active-view {
  display: block;
}

.view.enter-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
}

.hero-content {
  max-width: 900px;
}

.hero-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  font-weight: 600;
  display: inline-block;
}

.hero-title {
  margin-bottom: var(--space-md);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.hero h1 span.accent-text {
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

.hero-desc {
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
}

/* Section Common Styles */
.section-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
}

.section-header-row h2 {
  margin-bottom: 0;
}

/* Featured Work / Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  padding: var(--space-md);
}

.project-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-card.featured-primary {
  grid-template-columns: 1.4fr 1fr;
  background-color: #0f1013;
  border-color: rgba(37, 99, 235, 0.15);
}

.project-card.featured-primary:hover {
  border-color: var(--accent);
}

.project-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumbnail {
  transform: scale(1.03);
}

.project-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 20px;
}

.project-details h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
}

.project-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Design Process Section */
.process-widget {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.process-steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
}

.process-step-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-smooth);
}

.process-step-btn.active {
  background-color: var(--bg-tertiary);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.process-step-btn.active .step-num {
  background-color: var(--accent);
  color: var(--text-primary);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.step-title-text {
  font-weight: 500;
  font-size: 1rem;
  font-family: var(--font-sans);
}

.process-details-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
}

.process-pane-content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

.process-pane-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.process-pane-content h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.process-pane-content p {
  color: var(--text-secondary);
}

.process-pane-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  display: block;
}

/* Product Notes Section (Editorial Grid) */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.note-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  min-height: 240px;
}

.note-card:hover {
  border-color: var(--border-focus);
}

.note-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.note-card h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
  font-family: var(--font-serif);
}

.note-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

/* AI Workflow Section */
.ai-workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.ai-tags-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.ai-flow-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
}

.ai-flow-card h4 {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.ai-flow-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* About Preview */
.about-preview-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1.2;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.about-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section / Form */
.contact-section-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-method-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-method-item p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--text-primary);
}

.contact-socials {
  display: flex;
  gap: var(--space-sm);
}

.contact-form {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Case Study Template (Full Details View) */
.case-study-hero {
  padding: var(--space-lg) 0 var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.case-study-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-sm);
}

.case-study-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
}

.case-study-meta-item h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.case-study-meta-item p {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0;
}

.case-study-content {
  max-width: 800px;
  margin: var(--space-lg) auto;
  font-size: 1.05rem;
  font-weight: 300;
}

.case-study-content h2 {
  font-size: 2rem;
  margin: var(--space-lg) 0 var(--space-sm) 0;
  font-family: var(--font-serif);
}

.case-study-content h3 {
  font-size: 1.4rem;
  margin: var(--space-md) 0 var(--space-xs) 0;
}

.case-study-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.case-study-content ul,
.case-study-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
  color: var(--text-secondary);
}

.case-study-content li {
  margin-bottom: var(--space-xs);
}

.case-study-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-md) 0;
  border: 1px solid var(--border-subtle);
}

.case-study-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Callout Box inside case studies */
.case-study-callout {
  background-color: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-md) 0;
}

.case-study-callout p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-primary);
}

/* Metric Display */
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.metric-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

.metric-number {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-family: var(--font-serif);
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* About Page Styles */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: flex-start;
}

/* Resume Styles */
.resume-section {
  margin-bottom: var(--space-lg);
}

.resume-section h3 {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
}

.resume-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.resume-date {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.resume-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
}

.resume-org {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.resume-details {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.skill-category h4 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-size: 1rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.skill-list li {
  font-size: 0.85rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Product Note Page Detail */
.note-page-content {
  max-width: 700px;
  margin: var(--space-lg) auto;
}

.note-page-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.note-page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.note-page-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  gap: var(--space-sm);
  text-transform: uppercase;
}

/* Footer styling */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  background-color: var(--bg-secondary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Media Queries (Responsive) */
@media (max-width: 968px) {
  section {
    padding: var(--space-lg) 0;
  }
  
  .project-card,
  .project-card.featured-primary {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }
  
  .process-widget {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-sm);
  }
  
  .notes-grid {
    grid-template-columns: 1fr;
  }
  
  .ai-workflow-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-preview-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-portrait-frame {
    aspect-ratio: 16/10;
  }
  
  .contact-section-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .case-study-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .resume-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu hidden by default */
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .navbar.mobile-active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    gap: var(--space-sm);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  
  .hero-ctas {
    flex-direction: column;
  }
}

/* ==========================================
   CONNEQT CASE STUDY CUSTOM THEME & COMPONENTS
   ========================================== */

/* Accent Override for Conneqt Project */
.conneqt-theme {
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.15);
}

/* SVG Network Graph Styling */
.network-graph-container {
  width: 100%;
  max-width: 600px;
  margin: var(--space-md) auto;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
}

.network-graph-container svg {
  width: 100%;
  height: 100%;
}

.network-node {
  animation: pulseNode 3s infinite ease-in-out;
}

.network-node:nth-child(2n) {
  animation-delay: 1.5s;
}

@keyframes pulseNode {
  0%, 100% {
    r: 6px;
    filter: drop-shadow(0 0 2px var(--accent));
  }
  50% {
    r: 9px;
    filter: drop-shadow(0 0 8px var(--accent));
  }
}

/* Research Slots */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.research-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: var(--transition-smooth);
}

.research-card:hover {
  border-color: var(--accent);
}

.research-placeholder-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border-radius: 4px;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.research-data-placeholder {
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  background-color: rgba(255,255,255,0.01);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Insights Vertical Chain Cards */
.insights-chain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.insight-chain-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  transition: var(--transition-smooth);
}

.insight-chain-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.insight-chain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-md);
  width: 30px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 0 0 2px 2px;
}

.insight-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.insight-step:not(:last-child)::after {
  content: '↓';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 2;
}

.insight-step:not(:last-child) {
  margin-bottom: var(--space-xs);
}

.insight-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.insight-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* User Journey Nodes */
.journey-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: var(--space-lg) 0;
  position: relative;
  padding: 0 var(--space-sm);
}

.journey-flow::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: linear-gradient(to right, var(--accent) 0%, var(--bg-tertiary) 100%);
  z-index: 1;
}

.journey-node {
  position: relative;
  z-index: 2;
  width: 22%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journey-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  transition: var(--transition-smooth);
}

.journey-node:hover .journey-circle {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.journey-node.active .journey-circle {
  border-color: var(--accent);
  background-color: var(--bg-primary);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.journey-node-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.journey-node-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Wireframe sketches gallery */
.wireframe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.wireframe-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.wireframe-card:hover {
  border-color: var(--border-focus);
}

.wireframe-img-wrapper {
  position: relative;
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.wireframe-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.wireframe-card:hover .wireframe-img-wrapper img {
  transform: scale(1.02);
}

.wireframe-caption {
  padding: var(--space-md);
}

.wireframe-caption h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: normal;
}

.wireframe-caption p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Mockup Placeholders */
.concept-screens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.concept-screen-placeholder {
  aspect-ratio: 9/16;
  background-color: var(--bg-secondary);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.concept-screen-placeholder:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background-color: rgba(16, 185, 129, 0.01);
}

.concept-screen-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.concept-screen-placeholder:hover .concept-screen-icon {
  color: var(--accent);
  border-color: var(--accent);
}

.concept-screen-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.concept-screen-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.4;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .research-grid,
  .insights-chain-grid,
  .wireframe-grid,
  .concept-screens-grid {
    grid-template-columns: 1fr;
  }
  
  .journey-flow {
    flex-direction: column;
    gap: var(--space-md);
    padding-left: var(--space-sm);
  }
  
  .journey-flow::after {
    top: 0;
    left: 25px;
    width: 2px;
    height: 85%;
    background: linear-gradient(to bottom, var(--accent) 0%, var(--bg-tertiary) 100%);
  }
  
  .journey-node {
    width: 100%;
    flex-direction: row;
    text-align: left;
    gap: var(--space-sm);
  }
  
  .journey-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* Hushh Wallet Mockups Showcase */
.hushh-mockups-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.hushh-phone-mockup {
  background-color: #f1f5f9; /* Light frame background as in the screens */
  border: 8px solid #0f172a; /* Dark smartphone outer border */
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.1);
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hushh-phone-mockup:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.25), 0 8px 16px rgba(0,0,0,0.15);
}

.hushh-phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Smartphone Notch Simulator */
.hushh-phone-mockup::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background-color: #0f172a;
  border-radius: 10px;
  z-index: 10;
}

@media (max-width: 1024px) {
  .hushh-mockups-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hushh-mockups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Nav Highlight Link */
.nav-links a.nav-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: var(--text-primary) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a.nav-highlight:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #2563eb 100%);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.55);
}

.nav-links a.nav-highlight::after {
  display: none !important;
}

/* Highlighted GitHub Button on Tech Projects Page */
.btn-github {
  background: linear-gradient(135deg, var(--accent) 0%, #1e40af 100%);
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-smooth);
}

.btn-github:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
}



