/* ==========================================================================
   BLUEPRINT THEME - GLOBALS
   ========================================================================== */
:root {
  --bg-color: #0a0a0a;
  --bg-grid-color: #1a1a1a;
  --accent-color: #FF4D00;
  /* Orange */
  --accent-dim: #CC3D00;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --grid-line: rgba(255, 77, 0, 0.1);
  --border-tech: 1px solid rgba(255, 77, 0, 0.3);

  --font-tech: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --spacing-unit: 20px;
}

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

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

/* ==========================================================================
   BACKGROUND & EFFECTS
   ========================================================================== */
.blueprint-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.scanline {
  width: 100%;
  height: 100px;
  z-index: 9999;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 77, 0, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.1;
  position: fixed;
  bottom: 100%;
  animation: scanline 10s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% {
    bottom: 100%;
  }

  100% {
    bottom: -100px;
  }
}

/* Custom Cursor */
/* Custom Cursor - Inherited from shared-styles.css */


/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.tech-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(5px);
  border-bottom: var(--border-tech);
}

.nav-brand {
  font-family: var(--font-tech);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s;
}

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

.nav-link::before {
  content: '[';
  margin-right: 5px;
  opacity: 0;
  color: var(--accent-color);
  transition: opacity 0.3s;
}

.nav-link::after {
  content: ']';
  margin-left: 5px;
  opacity: 0;
  color: var(--accent-color);
  transition: opacity 0.3s;
}

.nav-link:hover::before,
.nav-link:hover::after {
  opacity: 1;
}

/* Mobile Burger */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 2px;
  background-color: var(--accent-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 50px;
}

.hero-container {
  text-align: left;
  max-width: 1000px;
  width: 100%;
  z-index: 2;
  border-left: 2px solid var(--accent-color);
  padding-left: 40px;
  position: relative;
}

.hero-container::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--bg-color);
  border: 2px solid var(--accent-color);
}

.hero-container::after {
  content: '';
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: var(--bg-color);
  border: 2px solid var(--accent-color);
}

.hero-status {
  font-family: var(--font-tech);
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-tech);
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-typewriter {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  height: 30px;
  /* Prevent layout shift */
}

.hero-typewriter .prefix {
  color: var(--accent-color);
}

.hero-bio {
  font-family: var(--font-body);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 50px;
  border-top: var(--border-tech);
  padding-top: 20px;
}

/* Button Tech Style */
.btn-tech {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-family: var(--font-tech);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-tech:hover {
  background: rgba(255, 77, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.2);
}

.btn-tech::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 0, 0.2), transparent);
  transition: 0.5s;
}

.btn-tech:hover::before {
  left: 100%;
}

/* Tech Decorations */
.tech-decoration {
  position: absolute;
  width: 150px;
  height: 150px;
  pointer-events: none;
  opacity: 0.5;
}

.tech-decoration.top-left {
  top: 100px;
  left: 50px;
  border-top: 1px dashed var(--accent-color);
  border-left: 1px dashed var(--accent-color);
}

.tech-decoration.top-left::after {
  content: 'FIG. 01';
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  color: var(--accent-color);
}

.tech-decoration.bottom-right {
  bottom: 50px;
  right: 50px;
  border-bottom: 1px dashed var(--accent-color);
  border-right: 1px dashed var(--accent-color);
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}



/* Responsive */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    /* Add JS toggle later */
  }

  .burger {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-container {
    padding-left: 20px;
    border-left: 1px solid var(--accent-color);
  }
}

/* ==========================================================================
   SECTIONS & HEADERS
   ========================================================================== */
section {
  padding: 100px 50px;
  position: relative;
  border-bottom: var(--border-tech);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

section h2 {
  font-family: var(--font-tech);
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 50px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-right: 20px;
}

section h2::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50px;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

section h2::before {
  content: attr(data-index);
  font-size: 1rem;
  color: var(--accent-color);
  position: absolute;
  top: -20px;
  left: 0;
}

/* ==========================================================================
   SPECS (ABOUT) SECTION
   ========================================================================== */
.specs-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: start;
}

.specs-content p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 20px;
  border-left: 2px solid var(--accent-color);
  padding-left: 20px;
}

.specs-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-tech);
  font-size: 0.9rem;
}

.specs-data-table tr {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.specs-data-table td {
  padding: 15px 0;
}

.specs-data-table td:first-child {
  color: var(--accent-color);
  width: 40%;
  font-weight: 700;
}

.specs-image-wrapper {
  position: relative;
  padding: 10px;
  border: 1px solid var(--accent-color);
}

.specs-image-wrapper img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.5s;
}

.specs-image-wrapper:hover img {
  filter: grayscale(0%);
}

.corner-bracket {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-color);
  transition: all 0.3s;
}

.top-left {
  top: -2px;
  left: -2px;
  border-bottom: 0;
  border-right: 0;
}

.top-right {
  top: -2px;
  right: -2px;
  border-bottom: 0;
  border-left: 0;
}

.bottom-left {
  bottom: -2px;
  left: -2px;
  border-top: 0;
  border-right: 0;
}

.bottom-right {
  bottom: -2px;
  right: -2px;
  border-top: 0;
  border-left: 0;
}

/* ==========================================================================
   MISSION LOG (EXPERIENCE) SECTION
   ========================================================================== */
.mission-log {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.mission-entry {
  position: relative;
  margin-bottom: 60px;
}

.mission-entry::before {
  content: '';
  position: absolute;
  left: -39px;
  /* -30px padding - 9px center */
  top: 0;
  width: 16px;
  height: 16px;
  background-color: var(--bg-color);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  transition: background-color 0.3s;
}

.mission-entry:hover::before {
  background-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-color);
}

.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.mission-title {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  color: var(--accent-color);
}

.mission-date {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 10px;
  border-radius: 0;
}

.mission-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.mission-desc {
  color: #aaa;
  font-size: 0.95rem;
  max-width: 800px;
}

/* ==========================================================================
   SCHEMATICS (PROJECTS) - FILTERING & SEARCH [ORIGINAL BOXY DESIGN]
   ========================================================================== */
.project-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

/* Original Filter Group */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.15s ease;
}

.filter-btn:hover {
  background: rgba(255, 77, 0, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 77, 0, 0.2);
  /* Original neon shadow */
}

.filter-btn.active {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
}

/* Original Search Bar Styled like filter buttons */
.project-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  display: flex;
  align-items: center;
}

.project-search-wrapper .search-icon {
  position: absolute;
  left: 15px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

#project-search {
  width: 100%;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 10px 15px 10px 40px;
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 1px;
  outline: none;
  transition: all 0.3s ease;
}

#project-search::placeholder {
  color: var(--text-muted);
  text-transform: uppercase;
}

#project-search:focus {
  background: rgba(40, 40, 40, 0.8);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 77, 0, 0.2);
}

#project-search:focus+.search-icon {
  color: var(--accent-color);
}

/* Legacy CSS classes removed - Filtering happens via instant inline-styles */

/* Card materialize scan-line sweep */
@keyframes scanSweep {
  0% {
    left: -100%;
    opacity: 1;
  }

  60% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

.card-materialize::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 77, 0, 0.06) 20%,
      rgba(255, 77, 0, 0.2) 50%,
      rgba(255, 77, 0, 0.06) 80%,
      transparent) !important;
  z-index: 2 !important;
  pointer-events: none !important;
  animation: scanSweep 0.6s ease-out forwards !important;
  opacity: 1 !important;
  background-size: auto !important;
  background-image: none !important;
}

/* ==========================================================================
   SCHEMATICS (PROJECTS) - BOXY GRID [ORIGINAL]
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.bento-card {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 25px;
  position: relative;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.bento-card:hover {
  border-color: var(--accent-color);
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 0 30px rgba(255, 77, 0, 0.15), inset 0 0 60px rgba(255, 77, 0, 0.03);
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 0;
  filter: grayscale(100%);
}

.bento-card:hover .card-image {
  opacity: 0.4;
  transform: scale(1.05);
  filter: grayscale(0%);
}

.bento-card>* {
  position: relative;
  z-index: 1;
}

.bento-full {
  grid-column: span 2;
}

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

.project-id {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-tech);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-tech);
  color: var(--accent-color);
  border: 1px solid rgba(255, 77, 0, 0.3);
  padding: 2px 8px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 77, 0, 0.15);
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.3);
  border-color: var(--accent-color);
}

.project-desc {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Cursor-tracking glow */
.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 77, 0, 0.12),
      transparent 60%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

/* Hover "Blueprint" Effect */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}

.bento-card:hover::after {
  opacity: 0.2;
}

/* ==========================================================================
   DATA (ACHIEVEMENTS)
   ========================================================================== */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  text-align: center;
  border-bottom: 2px solid var(--accent-color);
}

.stat-value {
  font-family: var(--font-tech);
  font-size: 3rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.awards-list {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 77, 0, 0.05);
  border-left: 3px solid var(--accent-color);
}

.award-icon {
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* ==========================================================================
   RELAY (CONTACT)
   ========================================================================== */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-terminal {
  width: 100%;
  background: #000;
  border: 1px solid #333;
  padding: 20px;
  font-family: var(--font-tech);
  text-align: left;
  margin-top: 30px;
}

.terminal-line {
  margin-bottom: 10px;
  color: #aaa;
}

.terminal-highlight {
  color: var(--accent-color);
}

.contact-link {
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  text-align: center;
  padding: 40px;
  border-top: var(--border-tech);
  font-family: var(--font-tech);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media screen and (max-width: 768px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .specs-image-wrapper {
    order: -1;
    margin-bottom: 30px;
  }

  .bento-full {
    grid-column: span 1;
  }

  .awards-list {
    grid-template-columns: 1fr;
  }

  .mission-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================================================
   SCROLLING DATA (CLASSES)
   ========================================================================== */
.scrolling-data {
  display: block;
  width: 100%;
  max-width: 600px;
  /* Constrain width to force scroll */
  white-space: nowrap;
  overflow-x: auto;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--accent-color);
  font-family: var(--font-tech);
  color: var(--accent-color);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--bg-color);
  font-size: 0.9rem;
}

.scrolling-data::-webkit-scrollbar {
  height: 6px;
}

.scrolling-data::-webkit-scrollbar-track {
  background: var(--bg-color);
}

.scrolling-data::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 0;
}

/* Resume Button Container */
.resume-container {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   CLASSES GRID (Replacing scrolling-data)
   ========================================================================== */
.classes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 500px;
}

.class-tag {
  display: inline-block;
  background: rgba(255, 77, 0, 0.1);
  border: 1px solid rgba(255, 77, 0, 0.3);
  color: var(--accent-color);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.class-tag:hover {
  background: rgba(255, 77, 0, 0.2);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.2);
}