/* ==========================================================================
   VDARK 3D GENERALIST PORTFOLIO - STYLESHEET
   ========================================================================== */

/* --- Design Tokens / Variables --- */
:root {
  --color-bg: #07080b;
  --color-bg-alt: #0e1014;
  --color-card: rgba(18, 22, 30, 0.7);
  --color-card-hover: rgba(26, 32, 44, 0.85);
  --color-border: rgba(255, 255, 255, 0.05);
  --color-border-hover: rgba(168, 85, 247, 0.3);
  
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  
  --color-primary: #a855f7; /* Neon Purple */
  --color-primary-rgb: 168, 85, 247;
  --color-primary-glow: rgba(168, 85, 247, 0.25);
  
  --color-secondary: #06b6d4; /* Neon Cyan */
  --color-secondary-rgb: 6, 182, 212;
  --color-secondary-glow: rgba(6, 182, 212, 0.25);
  
  --color-accent: #fbbf24; /* Warm Gold */
  --color-accent-glow: rgba(251, 191, 36, 0.25);
  
  --color-success: #10b981;
  --color-danger: #ef4444;

  --glass-blur: blur(16px);
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-neon-primary: 0 0 15px rgba(168, 85, 247, 0.4);
  --shadow-neon-secondary: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* --- Resets & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Webkit Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  outline: none;
}

li {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Animated Matrix/Grid Canvas --- */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
}

/* --- UI Common Elements / Utility Classes --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-text) 50%, var(--color-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.section-title.text-left {
  text-align: left;
  display: block;
}

.section-title.text-left::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  font-weight: 400;
}

.glow-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--color-primary) 70%, var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.3));
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: var(--shadow-neon-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-secondary);
}

.btn-block {
  width: 100%;
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 8, 11, 0.7);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(7, 8, 11, 0.9);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
}

.navbar.scrolled .nav-container {
  padding: 0.8rem 2rem;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.logo-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  color: var(--color-secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-btn {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  color: var(--color-text);
}

.nav-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-neon-primary);
  transform: translateY(-1px);
}

.nav-btn::after {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-normal);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem 4rem 2rem;
  position: relative;
  text-align: center;
}

/* --- Dev Note Card --- */
.dev-note-card {
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 1.15rem 1.35rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
}

.dev-note-card p {
  color: var(--color-text-muted);
  margin: 0;
}

.dev-note-card a {
  color: var(--color-secondary);
  font-weight: 600;
}

.dev-note-card a:hover {
  color: var(--color-primary);
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  margin-bottom: 2rem;
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  gap: 0.5rem;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 10px var(--color-primary);
}

.pulse-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring-anim 2s infinite ease-out;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 6rem;
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

.hero-title .title-sub {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-tagline {
  max-width: 680px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero-pipeline-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  max-width: 800px;
}

.pipeline-tag {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text);
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}

.pipeline-separator {
  color: var(--color-secondary);
  font-weight: 700;
  opacity: 0.7;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel-anim 1.6s infinite ease-in-out;
}

@keyframes scroll-wheel-anim {
  0% { top: 6px; opacity: 1; }
  50% { top: 14px; opacity: 0.1; }
  100% { top: 6px; opacity: 1; }
}

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

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: stretch;
}

.about-card {
  background: var(--color-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.about-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  transform: translateY(-2px);
}

.card-glow-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.1), transparent 50%),
              radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.about-card h3 {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.about-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.about-card p:last-of-type {
  margin-bottom: 0;
}

/* Software Tool Showcase */
.software-showcase {
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}

.showcase-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-text);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.software-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.software-badge {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  gap: 0.6rem;
}

.software-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(0.2) contrast(1.1);
  transition: var(--transition-fast);
}

.software-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.software-badge:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: var(--shadow-neon-primary);
  transform: translateY(-2px);
}

.software-badge:hover img {
  filter: grayscale(0) contrast(1.2);
}

.software-badge:hover span {
  color: var(--color-text);
}

/* Skills list */
.skills-card {
  display: flex;
  flex-direction: column;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.skill-level {
  color: var(--color-secondary);
  font-family: var(--font-title);
  font-weight: 700;
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.skills-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* --- Interactive Pipeline Section --- */
.pipeline-explorer {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: stretch;
}

.pipeline-steps-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pipeline-step-btn {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.pipeline-step-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  transform: scaleY(0);
  transition: transform var(--transition-normal);
}

.pipeline-step-btn .step-num {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-muted);
  transition: var(--transition-normal);
  opacity: 0.5;
}

.pipeline-step-btn .step-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: var(--transition-normal);
}

.pipeline-step-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(168, 85, 247, 0.2);
}

.pipeline-step-btn.active {
  background: rgba(168, 85, 247, 0.05);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 20px -5px rgba(168, 85, 247, 0.15);
}

.pipeline-step-btn.active::before {
  transform: scaleY(1);
}

.pipeline-step-btn.active .step-num {
  color: var(--color-primary);
  opacity: 1;
}

.pipeline-step-btn.active .step-title {
  color: var(--color-text);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.pipeline-details-panel {
  background: var(--color-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.pipeline-details-panel.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.pipeline-content-area {
  position: relative;
  z-index: 1;
}

.pipeline-step-headline {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.pipeline-step-desc {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.pipeline-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.meta-software-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-software-badges .badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.4rem;
}

.meta-software-badges .badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.meta-list {
  padding-left: 1.25rem;
}

.meta-list li {
  list-style: disc;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

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

.pipeline-visual-area {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hologram Visualizer effect */
.hologram-container {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hologram-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(6, 182, 212, 0.2);
  border-radius: 50%;
  animation: rotate-circle 40s linear infinite;
}

@keyframes rotate-circle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hologram-circle::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-secondary);
}

.hologram-mesh-icon {
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-secondary);
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4));
  z-index: 1;
}

.hologram-svg {
  width: 100%;
  height: 100%;
}

.hologram-scanline {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  box-shadow: 0 0 8px var(--color-secondary);
  animation: scanline-anim 3s ease-in-out infinite;
  z-index: 2;
  opacity: 0.8;
}

@keyframes scanline-anim {
  0% { top: 15%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 85%; opacity: 0; }
}

/* --- Portfolio Grid Section --- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: var(--color-text);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-neon-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  transition: var(--transition-slow);
}

.grid-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  font-family: var(--font-title);
  color: var(--color-text-muted);
  font-size: 1.15rem;
}

.project-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
  display: block;
}

.project-card.hidden {
  display: none;
}

.project-card-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b0d10;
  position: relative;
}

.project-card-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.05), transparent 80%);
  pointer-events: none;
}

/* 3D badge on cards with Sketchfab models */
.card-3d-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(7, 8, 11, 0.95) 0%, rgba(7, 8, 11, 0.7) 60%, transparent 100%);
  padding: 1.75rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card-category {
  font-size: 0.75rem;
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}

.project-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.2);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card:hover .project-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* --- 3D Models Showcase Section --- */
.models3d-section {
  position: relative;
  z-index: 1;
}

.models3d-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.model3d-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.model3d-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 60px -20px rgba(168, 85, 247, 0.25);
  transform: translateY(-4px);
}

/* Floating badge in top-left */
.model3d-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

/* Sketchfab iframe wrapper — 16:10 aspect ratio */
.model3d-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 62.5%; /* 16:10 */
  background: #060709;
  overflow: hidden;
}

.model3d-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Info panel below the embed */
.model3d-info {
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
}

.model3d-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.model3d-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
}

.model3d-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.model3d-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* Tool icon row */
.model3d-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.model3d-tools img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.model3d-tools img:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 800px) {
  .models3d-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contact Section --- */
.contact-section .section-container {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.contact-card-centered {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.contact-card-centered:hover {
  border-color: rgba(168, 85, 247, 0.25);
}

.contact-card-centered .section-title {
  display: block;
  margin-bottom: 1rem;
}

.contact-card-centered .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-details-centered {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.social-links-centered {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.info-link, .info-value {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.info-link:hover {
  color: var(--color-secondary);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition-normal);
}

.social-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--color-secondary);
  box-shadow: var(--shadow-neon-secondary);
  transform: translateY(-2px);
}


/* --- Footer --- */
.main-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
  padding: 3rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 8, 11, 0.95);
  backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox controls */
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition-normal);
  z-index: 1010;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition-normal);
  z-index: 1010;
}

.lightbox-nav:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
  color: #fff;
  box-shadow: var(--shadow-neon-secondary);
}

.lightbox-prev {
  left: 2.5rem;
}

.lightbox-next {
  right: 2.5rem;
}

/* Lightbox Content Layout */
.lightbox-content-wrapper {
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  background: rgba(18, 22, 30, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-content-wrapper {
  transform: scale(1);
}

.lightbox-image-container {
  position: relative;
  background-color: #050608;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem;
}

/* Diagonal layout grid pattern background to reference model scale */
.lightbox-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
  pointer-events: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition-normal), transform 0.4s ease;
  transform: scale(0.97);
}

.lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-loader {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(6, 182, 212, 0.1);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  z-index: 0;
  display: none;
}

.lightbox-loader.active {
  display: block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Lightbox specs info panel */
.lightbox-details-panel {
  background: #0d0f14;
  border-left: 1px solid var(--color-border);
  padding: 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lightbox-details-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.lightbox-category {
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.lightbox-title {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.lightbox-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.lightbox-tech-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.specs-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-text);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.spec-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.spec-value {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

/* --- Toast Notification Notification --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1100;
}

.toast {
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: var(--glass-blur);
  border-left: 4px solid var(--color-primary);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
  transform: translateX(0);
}

.toast-success {
  border-left-color: var(--color-success);
}

.toast-error {
  border-left-color: var(--color-danger);
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE LAYOUTS
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-explorer {
    grid-template-columns: 1fr;
  }
  .pipeline-steps-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Hide scrollbar for standard visual flow */
  }
  .pipeline-steps-nav::-webkit-scrollbar {
    display: none;
  }
  .pipeline-step-btn {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
  }
  .pipeline-step-btn::before {
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
  }
  .pipeline-step-btn.active::before {
    transform: scaleX(1);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .lightbox-content-wrapper {
    grid-template-columns: 1.1fr 0.9fr;
    height: 75vh;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 4rem 1.5rem;
  }
  .nav-container {
    padding: 1rem 1.5rem;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: rgba(7, 8, 11, 0.95);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    border-bottom: 0px solid var(--color-border);
    transition: height var(--transition-normal), padding var(--transition-normal), border-bottom var(--transition-normal);
  }
  .nav-menu.active {
    height: calc(100vh - 60px);
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    overflow-y: auto;
  }
  .nav-link {
    font-size: 1.15rem;
  }
  .nav-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }
  /* Hamburger toggle animation */
  .mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-title .title-sub {
    font-size: 1.75rem;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .about-card {
    padding: 2rem;
  }
  .pipeline-details-panel {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2.5rem;
  }
  .pipeline-visual-area {
    order: -1;
  }
  .hologram-container {
    width: 180px;
    height: 180px;
  }
  .hologram-mesh-icon {
    width: 110px;
    height: 110px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .lightbox-content-wrapper {
    grid-template-columns: 1fr;
    height: 85vh;
  }
  .lightbox-image-container {
    height: 50%;
  }
  .lightbox-details-panel {
    height: 50%;
    padding: 2rem;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .lightbox-close {
    top: 1rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev {
    left: 1rem;
  }
  .lightbox-next {
    right: 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-title .title-sub {
    font-size: 1.35rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .skills-footer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
  .pipeline-step-btn {
    padding: 0.8rem 1.2rem;
  }
  .pipeline-step-btn .step-title {
    font-size: 0.95rem;
  }
  .toast-container {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }
  .toast {
    min-width: auto;
    width: 100%;
  }
}
