/* Workflow link styling */
.workflow-link-desktop {
    text-align: right;
}

.workflow-link-mobile {
    display: none;
}

.workflow-info {
    display: none;
}

.workflow-description {
    color: #F5F5F5;
    font-weight: 300;
    text-shadow:
        0 0 0.5px rgba(255, 179, 102, 0.4),
        0 0 1.5px rgba(255, 153, 102, 0.3),
        0 0 2.5px rgba(204, 136, 68, 0.2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.configure-link {
    color: #F5F5F5;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 300;
    padding: 8px 16px;
    border: 1px solid var(--brass);
    border-radius: 4px;
    background: rgba(26, 26, 26, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow:
        0 0 1px rgba(255, 179, 102, 0.6),
        0 0 3px rgba(255, 153, 102, 0.5),
        0 0 5px rgba(204, 136, 68, 0.3),
        0 1px 0 rgba(153, 102, 51, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.15);
    filter: brightness(1.01);
    display: inline-block;
}

.configure-link:hover {
    background: rgba(26, 26, 26, 0.7);
    border-color: var(--cathode-cyan);
    box-shadow: 0 0 8px rgba(77, 217, 217, 0.3);
}

/* Mobile adjustments for workflow link */
@media (max-width: 768px) {
    .workflow-link-desktop {
        display: none;
    }
    
    .workflow-link-mobile {
        display: block;
        text-align: center;
        margin-top: 40px;
        margin-bottom: 60px;
        padding: 20px 0;
    }
    
    .workflow-info {
        display: block;
    }
    
    .configure-link {
        font-size: 0.65rem;
        padding: 8px 16px;
    }
}

/* Analog Tech Portfolio - CSS Variables */
:root {
  /* Primary Warm Tones - Authentic Amber */
  --amber-glow: #FFB366;
  --amber-deep: #CC8844;
  --amber-core: #FFCC88;
  --amber-shadow: #996633;
  
  /* Cold Cathode Cyan */
  --cathode-cyan: #4DD9D9;
  --cathode-cyan-deep: #3BBFBF;
  
  /* Phosphor Greens */
  --phosphor-green: #7FBF5F;
  --phosphor-green-deep: #6B9F4F;
  --terminal-green: #4DFF88;
  --mint-glow: #7FD9A6;
  --amber-green: #99B366;
  
  /* Neutrals */
  --cream: #F2E6D9;
  --manila: #E6D4C4;
  --peach-sky: #F2C4A6;
  --peach-haze: #FFCCB3;
  
  /* Blacks & Grays */
  --black: #1A1A1A;
  --black-pure: #000000;
  --gray-dark: #404040;
  --gray-mid: #666666;
  --gray-light: #999999;
  --gray-mist: #CCCCCC;
  
  /* Metallics */
  --brass: #BF8F6B;
  --copper: #A67959;
  
  /* Glow Effects (use with filter: drop-shadow) */
  --glow-amber: drop-shadow(0 0 2px var(--amber-shadow))
                 drop-shadow(0 0 4px var(--amber-deep))
                 drop-shadow(0 0 8px rgba(255, 179, 102, 0.3));
  --glow-cyan: drop-shadow(0 0 6px var(--cathode-cyan))
                drop-shadow(0 0 12px var(--cathode-cyan-deep));
  --glow-phosphor: drop-shadow(0 0 8px var(--phosphor-green))
                    drop-shadow(0 0 16px var(--phosphor-green-deep));
  --glow-terminal: drop-shadow(0 0 10px var(--terminal-green));
  
  /* Typography */
  --font-mono: 'Courier New', 'Monaco', 'Menlo', monospace;
  --font-tech: 'Arial', 'Helvetica', sans-serif;
}

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

body {
  font-family: var(--font-tech);
  font-weight: 300;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
  color: #F5F5F5;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Portfolio Container */
.portfolio-container {
  position: relative;
  width: 100%;
  min-height: 300vh; /* Increased height for scrolling and parallax effect */
  padding: 20px;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
}

/* Animated Circuit Board Background */
.circuit-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Canvas-based circuit background - no additional CSS needed */

/* Content Wrapper */
.content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px; /* Increased gap for better spacing */
  min-height: calc(300vh - 40px); /* Match container height */
}

/* Header Section */
.portfolio-header {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 30px;
  box-shadow:
    inset 0 2px 8px var(--black),
    0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--amber-glow) 20%,
    var(--cathode-cyan) 50%,
    var(--phosphor-green) 80%,
    transparent 100%);
  filter: var(--glow-amber);
}

.nixie-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-title {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: bold;
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 2px rgba(255, 179, 102, 0.8),
    0 0 4px rgba(255, 153, 102, 0.6),
    0 0 6px rgba(204, 136, 68, 0.4),
    0 1px 0 rgba(153, 102, 51, 0.3),
    0 2px 3px rgba(0, 0, 0, 0.2);
  filter: brightness(1.01);
  letter-spacing: 0.1em;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
}


/* Intro Content */
.intro-content {
  margin-top: 30px;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(26, 26, 26, 0.5);
  border-radius: 8px;
  border: 1px solid var(--brass);
}

.section-title {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 1px rgba(255, 179, 102, 0.6),
    0 0 3px rgba(255, 153, 102, 0.5),
    0 0 5px rgba(204, 136, 68, 0.3),
    0 1px 0 rgba(153, 102, 51, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.15);
  filter: brightness(1.01);
  margin: 0;
}

.section-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
}

/* Content Sections */
.content-section {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 30px;
  box-shadow:
    inset 0 2px 8px var(--black),
    0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--brass);
  min-height: 400px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Intro Panel */
.intro-panel {
  background: rgba(26, 26, 26, 0.5);
  border-radius: 8px;
  border: 1px solid var(--copper);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.intro-text {
  font-family: var(--font-mono);
  line-height: 1.6;
}

.intro-line {
  margin-bottom: 20px;
}

.prompt {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
}

.command {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
  margin-left: 10px;
}

.output-text {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
  margin-top: 15px;
}

.output-text p {
  margin-bottom: 10px;
}

.highlight {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
}

/* Projects Grid */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid var(--copper);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.image-thumbnail {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--copper);
  transition: all 0.3s ease;
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.1);
  transition: all 0.3s ease;
}

/* Only apply hover effects on devices that support hover (non-touch devices) */
@media (hover: hover) {
    .project-card:hover .image-thumbnail {
        border-color: var(--cathode-cyan);
        box-shadow: 0 0 8px rgba(77, 217, 217, 0.3);
    }
}

/* Mobile hover class works on all devices */
.project-card.mobile-hover .image-thumbnail {
    border-color: var(--cathode-cyan);
    box-shadow: 0 0 8px rgba(77, 217, 217, 0.3);
}

/* Only apply hover effects on devices that support hover (non-touch devices) */
@media (hover: hover) {
    .project-card:hover .project-thumbnail {
        filter: brightness(1.0) contrast(1.2);
    }
}

/* Mobile hover class works on all devices */
.project-card.mobile-hover .project-thumbnail {
    filter: brightness(1.0) contrast(1.2);
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--amber-glow) 0%,
    var(--cathode-cyan) 50%,
    var(--phosphor-green) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Only apply hover effects on devices that support hover (non-touch devices) */
@media (hover: hover) {
    .project-card:hover::before {
        transform: scaleX(1);
    }
}

/* Mobile hover class works on all devices */
.project-card.mobile-hover::before {
    transform: scaleX(1);
}

/* Only apply hover effects on devices that support hover (non-touch devices) */
@media (hover: hover) {
    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        border-color: var(--cathode-cyan);
    }
}

/* Mobile hover class works on all devices */
.project-card.mobile-hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--cathode-cyan);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.project-title {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 1px rgba(255, 179, 102, 0.6),
    0 0 3px rgba(255, 153, 102, 0.5),
    0 0 5px rgba(204, 136, 68, 0.3),
    0 1px 0 rgba(153, 102, 51, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.15);
  filter: brightness(1.01);
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.project-status {
  background: var(--phosphor-green);
  color: var(--black-pure);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  filter: var(--glow-phosphor);
}

.project-description {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
  margin-bottom: 15px;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
    background: var(--cathode-cyan);
    color: var(--black-pure);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    filter: var(--glow-cyan);
}

.project-links {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-link {
    background: var(--amber-glow);
    color: var(--black-pure);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    filter: var(--glow-gray);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--amber-deep);
    transform: translateY(-1px);
}

.project-card {
    cursor: pointer;
}


/* Skills Matrix */
.skills-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid var(--copper);
  border-radius: 8px;
  padding: 20px;
}

.category-title {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 1px rgba(255, 179, 102, 0.6),
    0 0 3px rgba(255, 153, 102, 0.5),
    0 0 5px rgba(204, 136, 68, 0.3),
    0 1px 0 rgba(153, 102, 51, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.15);
  filter: brightness(1.01);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.skill-item {
  margin-bottom: 15px;
}

.skill-name {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 5px;
}

.skill-bar {
  background: rgba(0, 0, 0, 0.5);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--copper);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--cathode-cyan) 0%, 
    var(--phosphor-green) 100%);
  border-radius: 4px;
  filter: var(--glow-cyan);
  transition: width 1s ease-out;
  animation: skill-load 2s ease-out forwards;
}

@keyframes skill-load {
  from { width: 0%; }
}

.skill-progress[data-level="90"] { width: 90%; }
.skill-progress[data-level="85"] { width: 85%; }
.skill-progress[data-level="95"] { width: 95%; }
.skill-progress[data-level="80"] { width: 80%; }
.skill-progress[data-level="75"] { width: 75%; }
.skill-progress[data-level="70"] { width: 70%; }

/* Contact Panel */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

.contact-display {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid var(--copper);
  border-radius: 8px;
  padding: 20px;
}

.contact-title {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 1px rgba(255, 179, 102, 0.6),
    0 0 3px rgba(255, 153, 102, 0.5),
    0 0 5px rgba(204, 136, 68, 0.3),
    0 1px 0 rgba(153, 102, 51, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.15);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-family: var(--font-mono);
}

.contact-label {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
  font-weight: bold;
}

.contact-value {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
}

a.contact-link {
  color: var(--cathode-cyan) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow:
    0 0 0.5px rgba(102, 255, 255, 0.6),
    0 0 1.5px rgba(102, 255, 255, 0.4),
    0 0 2.5px rgba(102, 255, 255, 0.2);
}

a.contact-link:hover {
  color: var(--copper) !important;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.8),
    0 0 1.5px rgba(255, 153, 102, 0.6),
    0 0 2.5px rgba(204, 136, 68, 0.4);
  filter: var(--glow-copper);
}

/* Oscilloscope */
.oscilloscope {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid var(--copper);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#oscilloscope-canvas {
  border: 1px solid var(--phosphor-green);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  filter: var(--glow-phosphor);
}

/* Enhanced Ambient Effects */
.ambient-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-particle {
  position: absolute;
  border-radius: 50%;
  animation: circuit-float var(--duration, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

/* Different particle types with circuit-themed colors */
.floating-particle:nth-child(1) {
  width: 3px;
  height: 3px;
  background: var(--terminal-green);
  filter: var(--glow-terminal);
  animation: circuit-float-1 10s linear infinite, particle-pulse-1 3s ease-in-out infinite;
}

.floating-particle:nth-child(2) {
  width: 4px;
  height: 4px;
  background: var(--cathode-cyan);
  filter: var(--glow-cyan);
  animation: circuit-float-2 14s linear infinite, particle-pulse-2 4s ease-in-out infinite;
}

.floating-particle:nth-child(3) {
  width: 2px;
  height: 2px;
  background: var(--phosphor-green);
  filter: var(--glow-phosphor);
  animation: circuit-float-3 8s linear infinite, particle-pulse-3 2s ease-in-out infinite;
}

/* Circuit-themed particle animations */
@keyframes circuit-float-1 {
  0% {
    transform: translateX(-10px) translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  20% {
    transform: translateX(20px) translateY(80vh) rotate(45deg);
  }
  40% {
    transform: translateX(-15px) translateY(60vh) rotate(90deg);
  }
  60% {
    transform: translateX(25px) translateY(40vh) rotate(135deg);
  }
  80% {
    transform: translateX(-20px) translateY(20vh) rotate(180deg);
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(10px) translateY(-10px) rotate(225deg);
    opacity: 0;
  }
}

@keyframes circuit-float-2 {
  0% {
    transform: translateX(100vw) translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.7;
  }
  25% {
    transform: translateX(80vw) translateY(75vh) rotate(-30deg);
  }
  50% {
    transform: translateX(60vw) translateY(50vh) rotate(-60deg);
  }
  75% {
    transform: translateX(40vw) translateY(25vh) rotate(-90deg);
  }
  92% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(20vw) translateY(-10px) rotate(-120deg);
    opacity: 0;
  }
}

@keyframes circuit-float-3 {
  0% {
    transform: translateX(50vw) translateY(100vh) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
    transform: translateX(45vw) translateY(85vh) rotate(60deg) scale(1);
  }
  30% {
    transform: translateX(55vw) translateY(70vh) rotate(120deg) scale(0.8);
  }
  45% {
    transform: translateX(40vw) translateY(55vh) rotate(180deg) scale(1.2);
  }
  60% {
    transform: translateX(60vw) translateY(40vh) rotate(240deg) scale(0.7);
  }
  75% {
    transform: translateX(35vw) translateY(25vh) rotate(300deg) scale(1);
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(50vw) translateY(-10px) rotate(360deg) scale(0.3);
    opacity: 0;
  }
}

@keyframes particle-pulse-1 {
  0%, 100% {
    filter: var(--glow-terminal);
    transform: scale(1);
  }
  50% {
    filter: var(--glow-terminal) brightness(1.5);
    transform: scale(1.3);
  }
}

@keyframes particle-pulse-2 {
  0%, 100% {
    filter: var(--glow-cyan);
    transform: scale(1);
  }
  33% {
    filter: var(--glow-cyan) brightness(1.3);
    transform: scale(1.1);
  }
  66% {
    filter: var(--glow-cyan) brightness(0.8);
    transform: scale(0.9);
  }
}

@keyframes particle-pulse-3 {
  0%, 100% {
    filter: var(--glow-phosphor);
    transform: scale(1);
  }
  25% {
    filter: var(--glow-phosphor) brightness(1.4);
    transform: scale(1.2);
  }
  75% {
    filter: var(--glow-phosphor) brightness(0.7);
    transform: scale(0.8);
  }
}

/* Legacy float animation for compatibility */
@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-wrapper {
    gap: 30px;
  }
  
  .portfolio-header {
    min-height: 50vh;
    padding: 20px;
  }
  
  .portfolio-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .nixie-display {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .projects-grid {
    gap: 15px;
  }
  
  .project-content {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .image-thumbnail {
    width: 100%;
    height: 200px;
    align-self: center;
    max-width: 300px;
  }
  
  /* Use full-size images on mobile to avoid pixelation */
  .project-thumbnail {
    content: url(attr(data-fullsize));
  }
  
  .project-info {
    min-width: auto;
  }
  
  .project-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .skills-matrix {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .portfolio-container {
    padding: 10px;
  }
  
  .content-section {
    padding: 20px;
  }
  
  .portfolio-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.2rem;
  }

/* Project Detail Modal */
#project-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.project-detail-modal {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
  border: 2px solid var(--copper);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 
    0 0 20px rgba(77, 217, 217, 0.3),
    0 0 40px rgba(77, 217, 217, 0.2),
    inset 0 1px 0 rgba(255, 179, 102, 0.1);
  animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.project-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px;
  border-bottom: 1px solid var(--copper);
  background: linear-gradient(90deg,
    rgba(77, 217, 217, 0.05) 0%,
    rgba(255, 179, 102, 0.05) 100%);
  position: sticky;
  top: 0;
  z-index: 1002;
  backdrop-filter: blur(10px);
}

.project-detail-title {
  color: #F5F5F5;
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 300;
  margin: 0;
  text-shadow:
    0 0 1px rgba(255, 179, 102, 0.6),
    0 0 3px rgba(255, 153, 102, 0.5),
    0 0 5px rgba(204, 136, 68, 0.3),
    0 1px 0 rgba(153, 102, 51, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.15);
  filter: brightness(1.01);
}

.close-project-detail {
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid var(--cathode-cyan);
  color: var(--cathode-cyan);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: var(--font-mono);
  font-weight: bold;
  filter: var(--glow-cyan);
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  backdrop-filter: blur(5px);
}

.close-project-detail:hover {
  background: var(--cathode-cyan);
  color: var(--black-pure);
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(77, 217, 217, 0.5);
}

.project-detail-content {
  padding: 30px;
}

.project-detail-subtitle {
  color: var(--amber-glow);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  filter: var(--glow-amber);
}

.project-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid var(--gray-dark);
  border-radius: 8px;
}

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

.meta-label {
  color: var(--cathode-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: bold;
  filter: var(--glow-cyan);
}

.meta-value {
  color: #F5F5F5;
  font-weight: 300;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
}

.project-detail-section {
  margin-bottom: 30px;
}

.project-detail-section h3 {
  color: var(--phosphor-green);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--phosphor-green);
  filter: var(--glow-phosphor);
}

.project-detail-description {
  color: #F5F5F5;
  font-weight: 300;
  line-height: 1.6;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
  margin-bottom: 0;
}

.project-detail-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-detail-highlights li {
  color: #F5F5F5;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
}

.project-detail-highlights li::before {
  content: "▶";
  color: var(--amber-glow);
  position: absolute;
  left: 0;
  filter: var(--glow-amber);
}

.project-detail-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-detail-skills .tech-tag {
  background: var(--cathode-cyan);
  color: var(--black-pure);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  filter: var(--glow-cyan);
  font-family: var(--font-mono);
}

.project-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.project-link-detail {
  background: var(--amber-glow);
  color: var(--black-pure);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  filter: var(--glow-amber);
  font-family: var(--font-mono);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-link-detail:hover {
  background: var(--amber-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 179, 102, 0.3);
  border-color: var(--amber-core);
}

/* Modal Responsive Design */
@media (max-width: 768px) {
  #project-detail-overlay {
    padding: 10px;
  }
  
  .project-detail-modal {
    max-height: 95vh;
  }
  
  .project-detail-header {
    padding: 20px 20px 15px;
  }
  
  .project-detail-title {
    font-size: 1.4rem;
  }
  
  .project-detail-content {
    padding: 20px;
  }
  
  .project-detail-meta {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
  
  .project-detail-links {
    flex-direction: column;
  }
  
  .project-link-detail {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .project-detail-header {
    padding: 15px 15px 10px;
  }
  
  .project-detail-title {
    font-size: 1.2rem;
  }
  
  .project-detail-content {
    padding: 15px;
  }
  
  .close-project-detail {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

/* Image thumbnail styles for project cards */
.image-thumbnail {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid var(--copper);
  background: var(--gray-dark);
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Only apply hover effects on devices that support hover (non-touch devices) */
@media (hover: hover) {
    .project-card:hover .project-thumbnail {
        transform: scale(1.05);
    }
}

/* Mobile hover class works on all devices */
.project-card.mobile-hover .project-thumbnail {
    transform: scale(1.05);
}

/* Loading state for modal */
.project-detail-modal.loading {
  opacity: 0.7;
}

.project-detail-modal.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--cathode-cyan);
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
}
/* Project Detail Gallery Styles */
.project-detail-gallery {
  margin-bottom: 20px;
}

.gallery-hero-section {
  margin-bottom: 25px;
}

.gallery-hero-image {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--copper);
  transition: all 0.3s ease;
}

.gallery-hero-image:hover {
  border-color: var(--cathode-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(77, 217, 217, 0.3);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-hero-image:hover .hero-image {
  transform: scale(1.02);
}

.gallery-grid-section {
  margin-top: 25px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--copper);
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
}

.gallery-grid-item:hover {
  border-color: var(--amber-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 179, 102, 0.2);
}

.grid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid-item:hover .grid-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

.gallery-hero-image:hover .image-overlay,
.gallery-grid-item:hover .image-overlay {
  opacity: 1;
}

.image-rank-badge {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  font-family: var(--font-mono);
}

.hero-badge {
  background: var(--phosphor-green);
  color: var(--black-pure);
  filter: var(--glow-phosphor);
}

.featured-badge {
  background: var(--amber-glow);
  color: var(--black-pure);
  filter: var(--glow-amber);
}

.standard-badge {
  background: var(--cathode-cyan);
  color: var(--black-pure);
  filter: var(--glow-cyan);
}

.image-description {
  color: #F5F5F5;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.fullscreen-hint {
  color: var(--amber-glow);
  font-size: 0.8rem;
  font-weight: bold;
  font-family: var(--font-mono);
  text-align: center;
  margin-top: 5px;
  filter: var(--glow-amber);
}

.no-images {
  color: var(--gray-light);
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
  background: rgba(26, 26, 26, 0.3);
  border: 1px dashed var(--gray-dark);
  border-radius: 8px;
}

/* Fullscreen Image Overlay */
.fullscreen-image-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  z-index: 999999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.fullscreen-image-overlay.active {
  opacity: 1;
}

.fullscreen-image-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close-fullscreen {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: 2px solid var(--cathode-cyan);
  color: var(--cathode-cyan);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: var(--font-mono);
  font-weight: bold;
  filter: var(--glow-cyan);
  z-index: 2001;
}

.close-fullscreen:hover {
  background: var(--cathode-cyan);
  color: var(--black-pure);
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(77, 217, 217, 0.5);
}

.fullscreen-image {
  max-width: 100%;
  max-height: calc(95vh - 80px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(77, 217, 217, 0.3);
  border: 2px solid var(--copper);
}

.fullscreen-description {
  color: #F5F5F5;
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
  margin-top: 15px;
  max-width: 600px;
  line-height: 1.4;
  text-shadow:
    0 0 0.5px rgba(255, 179, 102, 0.4),
    0 0 1.5px rgba(255, 153, 102, 0.3),
    0 0 2.5px rgba(204, 136, 68, 0.2);
}

/* Gallery Responsive Design */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .gallery-hero-image {
    max-width: 100%;
  }
  
  .image-overlay {
    padding: 10px;
  }
  
  .image-description {
    font-size: 0.8rem;
  }
  
  .close-fullscreen {
    top: -40px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .fullscreen-description {
    font-size: 0.9rem;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .fullscreen-image-overlay {
    padding: 10px;
  }
  
  .fullscreen-image {
    max-height: calc(95vh - 60px);
  }
  
  .close-fullscreen {
    top: -35px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

/* 80s Retrofuturism Scrollbar Styling */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--black);
  border-radius: 6px;
  border: 1px solid var(--gray-dark);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,
    var(--cathode-cyan) 0%,
    var(--phosphor-green) 50%,
    var(--amber-glow) 100%);
  border-radius: 6px;
  border: 1px solid var(--copper);
  box-shadow:
    0 0 4px rgba(77, 217, 217, 0.3),
    0 0 8px rgba(127, 191, 95, 0.2),
    inset 0 1px 0 rgba(255, 179, 102, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg,
    var(--cathode-cyan-deep) 0%,
    var(--phosphor-green-deep) 50%,
    var(--amber-deep) 100%);
  box-shadow:
    0 0 8px rgba(77, 217, 217, 0.5),
    0 0 12px rgba(127, 191, 95, 0.4),
    0 0 16px rgba(255, 179, 102, 0.3),
    inset 0 1px 0 rgba(255, 179, 102, 0.3);
  transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg,
    var(--terminal-green) 0%,
    var(--amber-core) 50%,
    var(--cathode-cyan) 100%);
  box-shadow:
    0 0 12px rgba(77, 255, 136, 0.6),
    0 0 16px rgba(255, 204, 136, 0.5),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-corner {
  background: var(--black);
  border: 1px solid var(--gray-dark);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--cathode-cyan) var(--black);
}

/* Enhanced scrollbar for modal content */
.project-detail-modal::-webkit-scrollbar {
  width: 10px;
}

.project-detail-modal::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.8);
  border-radius: 5px;
  border: 1px solid var(--copper);
}

.project-detail-modal::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,
    var(--amber-glow) 0%,
    var(--cathode-cyan) 100%);
  border-radius: 5px;
  border: 1px solid var(--brass);
  box-shadow:
    0 0 6px rgba(255, 179, 102, 0.4),
    0 0 10px rgba(77, 217, 217, 0.3);
}

.project-detail-modal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg,
    var(--amber-core) 0%,
    var(--cathode-cyan-deep) 100%);
  box-shadow:
    0 0 10px rgba(255, 179, 102, 0.6),
    0 0 14px rgba(77, 217, 217, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Circuit trace animation for scrollbar thumb */
@keyframes scrollbar-pulse {
  0%, 100% {
    box-shadow:
      0 0 4px rgba(77, 217, 217, 0.3),
      0 0 8px rgba(127, 191, 95, 0.2),
      inset 0 1px 0 rgba(255, 179, 102, 0.2);
  }
  50% {
    box-shadow:
      0 0 8px rgba(77, 217, 217, 0.5),
      0 0 12px rgba(127, 191, 95, 0.4),
      0 0 16px rgba(255, 179, 102, 0.3),
      inset 0 1px 0 rgba(255, 179, 102, 0.3);
  }
}

/* Subtle pulse animation on hover */
::-webkit-scrollbar-thumb:hover {
  animation: scrollbar-pulse 2s ease-in-out infinite;
}

/* Custom scrollbar for specific sections */
.content-section::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,
    var(--phosphor-green) 0%,
    var(--terminal-green) 100%);
  filter: var(--glow-phosphor);
}

.intro-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,
    var(--amber-glow) 0%,
    var(--amber-core) 100%);
  filter: var(--glow-amber);
}
