/* -------------------------------------------------------------------------- */
/* LIQUID GLASS PORTFOLIO CSS DESIGN SYSTEM                                   */
/* -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --bg-primary: #0a0a0c;
  --bg-secondary: #111116;
  --accent-cyan: #0df;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-pink: #ec4899;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Glassmorphism / Liquid Glass Material Definitions */
  --glass-bg: rgba(22, 22, 28, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.55);
  --glass-blur: blur(25px) saturate(180%) brightness(95%);
  --webkit-glass-blur: -webkit-backdrop-filter: blur(25px) saturate(180%) brightness(95%);
  
  /* Fonts */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-display: 'Outfit', sans-serif;
  --font-family-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* LIQUID DYNAMIC BACKGROUND                                                 */
/* -------------------------------------------------------------------------- */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: var(--bg-primary);
  overflow: hidden;
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: url(#goo); /* Dynamic SVG gooey liquid blur matrix */
}

.bg-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(10, 10, 12, 0.2), rgba(10, 10, 12, 0.95) 85%);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* LIQUID GLASS PANEL MATERIAL CLASS                                          */
/* -------------------------------------------------------------------------- */
.liquid-glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: blur(25px) saturate(180%) brightness(95%);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 10px 40px var(--glass-shadow),
    inset 0 1px 1px var(--glass-highlight); /* Specular highlight sheen edge */
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------- */
/* LAYOUT WRAPPER                                                             */
/* -------------------------------------------------------------------------- */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  margin-top: 24px;
  position: sticky;
  top: 24px;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-liquid {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
  background-size: 300% 100%;
  color: var(--text-primary);
  animation: liquid-btn-flow 8s linear infinite;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-liquid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

@keyframes liquid-btn-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* -------------------------------------------------------------------------- */
/* SECTIONS                                                                   */
/* -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
  min-height: auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-family: var(--font-family-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  min-height: calc(85vh - 120px);
  padding: 60px 0;
}

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

.badge-container {
  margin-bottom: 20px;
}

.badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* -------------------------------------------------------------------------- */
/* PROJECTS SHOWCASE                                                          */
/* -------------------------------------------------------------------------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  margin-bottom: 40px;
  gap: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 350px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

#project-search {
  width: 100%;
  padding: 12px 16px 12px 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

#project-search:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Project Cards Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.3); /* Enhanced sheen on hover */
}

.project-card-header {
  padding: 24px 24px 12px 24px;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.project-card-title {
  font-family: var(--font-family-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.project-card-body {
  padding: 0 24px;
  flex-grow: 1;
}

.project-card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
}

.project-card-footer {
  padding: 16px 24px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-highlight {
  font-family: var(--font-family-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.autonomy-score-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
}

/* -------------------------------------------------------------------------- */
/* DETAILED MODAL LAYOUT & CASE STUDY                                         */
/* -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  animation: modal-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  animation: modal-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-slide-up {
  from { transform: translateY(40px) scale(0.96); }
  to { transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

/* Case Study Content */
.case-study-header {
  margin-bottom: 30px;
}

.case-study-title {
  font-family: var(--font-family-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.case-study-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 850px) {
  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.case-study-body h3 {
  font-family: var(--font-family-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 24px 0 12px 0;
  color: var(--text-primary);
}

.case-study-body h3:first-child {
  margin-top: 0;
}

.case-study-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.metrics-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 10px;
  text-align: center;
}

.metric-block-val {
  font-family: var(--font-family-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 4px;
}

.metric-block-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* AGENT execution REPLAY SIMULATOR                                           */
/* -------------------------------------------------------------------------- */
.simulator-panel {
  display: flex;
  flex-direction: column;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 8, 0.85);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.sim-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-title {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.5; }
}

.sim-controls {
  display: flex;
  gap: 8px;
}

.sim-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.sim-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.sim-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.sim-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Terminal Node Items */
.terminal-node {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px;
  animation: node-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes node-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.terminal-node.system {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border-left: 2px solid var(--text-muted);
}

.terminal-node.user {
  background: rgba(59, 130, 246, 0.03);
  color: var(--text-primary);
  border-left: 2px solid var(--accent-blue);
}

.terminal-node.agent {
  background: rgba(168, 85, 247, 0.03);
  color: var(--text-primary);
  border-left: 2px solid var(--accent-purple);
}

.terminal-node.tool {
  background: rgba(16, 185, 129, 0.03);
  color: var(--text-secondary);
  border-left: 2px solid var(--accent-green);
}

.node-header {
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.node-title {
  text-transform: uppercase;
}

.node-time {
  color: var(--text-muted);
}

.node-content {
  white-space: pre-wrap;
}

.node-content span.typed-cursor {
  font-weight: bold;
  color: var(--accent-cyan);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* -------------------------------------------------------------------------- */
/* TECHNICAL SKILLS VISUALIZER                                                */
/* -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-category-card {
  padding: 30px;
  border: 1px solid var(--glass-border);
}

.skill-category-title {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category-title i {
  color: var(--accent-cyan);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
}

.skill-name {
  color: var(--text-primary);
}

.skill-level {
  color: var(--text-secondary);
}

.skill-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-bar-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  width: 0%; /* Loaded dynamically with width setting */
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------- */
/* ABOUT SECTION                                                              */
/* -------------------------------------------------------------------------- */
.about-panel {
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
}

@media (max-width: 800px) {
  .about-panel {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

.about-photo-wrap {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 221, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-bio {
  flex-grow: 1;
}

.about-bio h3 {
  font-family: var(--font-family-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-bio p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/* CONTACT SECTION                                                            */
/* -------------------------------------------------------------------------- */
.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.contact-info-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card-title {
  font-family: var(--font-family-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-detail-item i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.contact-form-panel {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 500px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-family-sans);
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 221, 255, 0.15);
}

.form-input.input-error {
  border-color: var(--accent-pink) !important;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.15) !important;
}

/* Success Form Overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  z-index: 10;
  animation: node-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon {
  font-size: 3rem;
  color: var(--accent-green);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.3));
}

.success-title {
  font-family: var(--font-family-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-message {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

/* Footer layout */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 600px) {
  .app-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Mobile Responsiveness Optimizations (T020) */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    margin-top: 12px;
    top: 12px;
    border-radius: 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .header-action {
    display: none; /* Hide auxiliary button in header on mobile */
  }

  .hero-section {
    min-height: calc(70vh - 100px);
    text-align: center;
    padding: 40px 0;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.6rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 16px;
  }

  .search-box {
    max-width: 100%;
  }

  .filter-chips {
    justify-content: center;
    width: 100%;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .modal-container {
    padding: 24px 16px;
  }

  .case-study-title {
    font-size: 1.8rem;
  }
}

