/* Core Global Layout Styles */
body {
  padding-top: 80px; /* Offset for sticky nav */
  background-color: var(--bg-primary);
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4.5rem);
}

/* Subtle border gridline separators (Blueprint Style) */
.section-separator {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin: 0;
}

/* Header Navigation (Mirroring Rina's nav exactly) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 24px;
  height: 24px;
  display: block;
}



nav ul {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
}

nav a {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  transition: var(--transition-fast);
  padding: 8px 0;
  position: relative;
}

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

/* Rina-style clean underline for active link */
nav li.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
}

/* Resume Nav Button */
.nav-btn-resume {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 14px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background-color: #000000 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  margin-left: 6px;
}

.nav-btn-resume:hover {
  background-color: #27272a !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.nav-btn-resume::after {
  display: none !important;
}

/* Hero Section (Clean Minimal Bold Typography) */
#hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
  display: block;
}

.hero-title {
  font-size: var(--text-display);
  font-weight: var(--weight-extrabold);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.hero-desc {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
}

/* Case Study Grid Section */
#work {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  display: block;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: clamp(2.5rem, 5vw, 4.5rem);
  column-gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* High-end Rina-style Project Cards */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.2rem);
  min-height: 520px;
  position: relative;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  cursor: pointer;
}

.project-card.proj-indigo { background-color: var(--proj-indigo-bg); }
.project-card.proj-blue { background-color: var(--proj-blue-bg); }
.project-card.proj-rose { background-color: var(--proj-rose-bg); }
.project-card.proj-amber { background-color: var(--proj-amber-bg); }

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.project-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.project-desc {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 92%;
}

/* Card Visual Mockups */
.project-visual {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 220px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Modern Vector Technical Architecture Drawings (SVG Layout styling) */
.tech-drawing {
  width: 95%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.05));
  transition: transform 0.6s var(--ease-out-expo);
}

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

/* About / Experience Section */
#about {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .about-columns {
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.about-bio p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.competencies-list {
  display: flex;
  flex-direction: column;
}

.competency-items-wrapper {
  margin-top: 12px;
}

.competency-item {
  border-bottom: 1px solid var(--border-color);
  padding-top: 16px;
  padding-bottom: 18px;
}

.competency-item:first-child {
  padding-top: 2px;
}

.comp-title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-title::before {
  content: '//';
  color: var(--accent-color);
}

.comp-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Footer Section */
footer {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

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

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-sys-status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
}

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

.footer-links {
  display: flex;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-links a {
  transition: var(--transition-fast);
}

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

/* Scroll Fade In Animation Styling */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* About Page Hero & Text Rotator */
.about-hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 1040px;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.text-rotator {
  display: inline-block;
  font-weight: var(--weight-extrabold);
  min-width: 30ch;
  white-space: nowrap;
}

.text-rotator, #role-article {
  transition: opacity 0.35s ease, color 0.35s ease;
}

.text-rotator.fade-out, #role-article.fade-out {
  opacity: 0;
}

/* Role Specific Colors (High-contrast, desaturated slate/pastel versions of card colors) */
.text-rotator.role-indigo {
  color: #4d629d; /* Slate Indigo - matching #ebf0fe */
}

.text-rotator.role-blue {
  color: #3f6d94; /* Icy Slate Blue - matching #e8f2fc */
}

.text-rotator.role-rose {
  color: #b14c62; /* Dusty Rose Pink - matching #fcecef */
}

.text-rotator.role-amber {
  color: #97642a; /* Warm Sand Ochre - matching #faf0e4 */
}

/* The Pattern Section styling */
.pattern-section {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
}

.pattern-intro {
  margin-bottom: var(--space-md);
}

.pattern-headline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.pattern-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.pattern-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.pattern-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  align-items: center;
}

@media (min-width: 768px) {
  .pattern-row {
    grid-template-columns: 100px 1.2fr 40px 1.2fr;
    gap: var(--space-md);
  }
}

.pattern-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.pattern-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pattern-col strong {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.pattern-col p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}

.pattern-arrow {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.pattern-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background-color: #f3f4f6;
  padding: 2px 6px;
  border-radius: 2px;
  width: fit-content;
  margin-bottom: 2px;
}

.pattern-badge.badge-ai {
  color: var(--accent-color);
  background-color: var(--proj-indigo-bg);
}

/* TODO indicators styling */
.todo {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: #ef4444;
  background-color: #fef2f2;
/* Minimalist Password Gate Styles */
.work-gate-minimal {
  padding: 40px 0 100px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.auth-minimal-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-lock-icon-wrapper {
  margin-bottom: 22px; /* Exact 22px padding between lock and text box */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.auth-lock-icon-top {
  color: var(--text-primary);
  display: block;
}

.auth-input-container {
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-container:focus-within {
  border-color: var(--text-primary);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.auth-input-clean {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  padding: 8px 8px 8px 0;
  line-height: 1.4;
}

.auth-input-clean::placeholder {
  color: #718096;
  font-weight: var(--weight-regular);
}

.auth-btn-clean {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--text-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.auth-btn-clean:hover {
  background: #2d3748;
  transform: translateX(1px);
}

.auth-error-clean {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #dc2626;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.auth-access-hint {
  margin-top: 16px;
  text-align: left;
}

.auth-access-hint a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.auth-access-hint a:hover {
  opacity: 0.7;
}

/* Modal Overlay for direct Case Study URLs */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-clean {
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Shake Animation for Wrong Password */
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.auth-input-container.shake, .auth-modal-clean.shake {
  animation: authShake 0.4s ease-in-out;
}









