
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@500;700&family=Orbitron:wght@700;800;900&family=Rajdhani:wght@500;600;700&family=Syncopate:wght@700;800&display=swap');
:root {
  --bg: #07080a;
  --bg-subtle: #0c0e14;
  --surface: #121620;
  --surface-hover: #18202e;
  --border: #1e2636;
  --border-strong: #2e384e;
  --border-red: #ff2a2a;
  --border-red-glow: rgba(255, 42, 42, 0.4);
  --text: #f4f6f9;
  --text-muted: #a0aab8;
  --text-dim: #5c6475;
  --accent: #ff2a2a;
  --accent-hover: #d61c1c;
  --accent-dim: rgba(255, 42, 42, 0.12);
  --accent-glow: rgba(255, 42, 42, 0.25);
  --font-logo: "Syncopate", sans-serif;           
  --font-heading: "Orbitron", sans-serif;         
  --font-tag: "Fira Code", monospace;             
  --font-body: "Rajdhani", system-ui, sans-serif; 
  --max-width: 1240px;
  --radius: 0px;       
  --radius-sm: 0px;    
  --padding-container: clamp(1.25rem, 5vw, 2.5rem);
  --transition: all 0.2s ease-in-out;
}
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important; 
}
body, h1, h2, h3, h4, p, figure, ul, ol {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg);
}
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-tag);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 1000;
}
.skip-link:focus {
  top: 0.75rem;
}
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--padding-container);
}
main {
  flex: 1;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  transform: translateY(-100%); 
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.visible {
  transform: translateY(0);
}
.site-header.header-hidden {
  transform: translateY(-100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  position: relative;
}
.logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(7, 8, 10, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  padding: 0.4rem 0.75rem;
  line-height: 1;
  transition: var(--transition);
}
.logo:hover {
  border-color: var(--accent);
  box-shadow: none;
}
.logo-badge {
  background: var(--accent);
  color: #fff;
  padding: 0.22rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.logo-rkt {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 0.72rem;
  gap: 0.25rem;
}
.logo .sys-tag {
  color: var(--accent);
  font-weight: 800;
}
.nav-wrapper {
  position: relative;
  display: inline-block;
}
.menu-toggle {
  background: rgba(18, 22, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-tag);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  width: 140px; 
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.toggle-icon {
  color: var(--accent);
  font-weight: 800;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  width: 140px; 
  background: var(--bg-subtle);
  border: 1px solid var(--border-red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), 0 0 12px var(--accent-glow);
  padding: 0;
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.dropdown-menu.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}
.dropdown-menu a {
  position: relative;
  font-family: var(--font-tag);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}
.dropdown-menu a:last-child {
  border-bottom: none;
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--surface);
  color: var(--accent);
  padding-left: 0.8rem;
}
.dropdown-menu a.active::after {
  content: "<";
  position: absolute;
  right: -15px; 
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-tag);
}
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh; 
  min-height: 600px;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--border-red);
}
.hero-collage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}
.hero-panel {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}
.hero-panel-left {
  left: 0;
  width: 33.33%;
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
  z-index: 1;
}
.hero-panel-left video {
  transform: scaleX(-1);
}
.hero-panel-middle {
  left: 25%;
  width: 50%;
  clip-path: polygon(16.67% 0, 83.33% 0, 100% 100%, 0% 100%);
  z-index: 2;
}
.hero-panel-right {
  left: 66.67%;
  width: 33.33%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%);
  z-index: 1;
}
.hero-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.08);
}
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #06070a;
  color: var(--text-dim);
  font-family: var(--font-tag);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 1rem;
  text-align: center;
  border: 1px dashed var(--border-strong);
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-block: 2.5rem 1.5rem;
  background: linear-gradient(
    to top, 
    rgba(7, 8, 10, 0.82) 0%, 
    rgba(7, 8, 10, 0.45) 45%, 
    rgba(7, 8, 10, 0.12) 75%, 
    transparent 100%
  );
  z-index: 10;
  opacity: 0; 
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-overlay.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-overlay .hero-main-title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-subtitle-tag {
  font-family: var(--font-tag);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.about-photo-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}
.about-photo-card img {
  display: block;
}
.about-photo-card:hover {
  border-color: var(--accent) !important;
  box-shadow: none !important;
}
.timeline-center-wrapper {
  position: relative;
  max-width: 1050px;
  margin: 3.5rem auto 0 auto;
  padding-block: 1rem;
}
.timeline-center-wrapper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2rem;
  bottom: 2rem;
  width: 4px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateX(-50%);
  z-index: 1;
}
.timeline-center-item {
  position: relative;
  width: 50%;
  margin-bottom: 3.5rem;
}
.timeline-center-item:last-child {
  margin-bottom: 0;
}
.timeline-center-item.left {
  left: 0;
  padding-right: 3rem;
}
.timeline-center-item.right {
  left: 50%;
  padding-left: 3rem;
}
.timeline-node {
  position: absolute;
  top: 2rem;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 6px var(--accent);
  z-index: 5;
}
.timeline-center-item.left .timeline-node {
  right: -7px;
}
.timeline-center-item.right .timeline-node {
  left: -7px;
}
.timeline-connector {
  position: absolute;
  top: calc(2rem + 6px);
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  z-index: 4;
}
.timeline-center-item.left .timeline-connector {
  right: 0;
  width: 3rem;
}
.timeline-center-item.right .timeline-connector {
  left: 0;
  width: 3rem;
}
.timeline-graphical-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 1.25rem;
  transition: var(--transition);
  cursor: pointer;
}
.timeline-graphical-card:hover {
  border-color: var(--accent);
  box-shadow: none;
}
.timeline-photo-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  position: relative;
}
.timeline-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.timeline-date-badge {
  font-family: var(--font-tag);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.timeline-meta {
  font-family: var(--font-tag);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
@media (max-width: 768px) {
  .timeline-center-wrapper::before {
    left: 20px;
  }
  .timeline-center-item {
    width: 100% !important;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
  }
  .timeline-center-item.left .timeline-node,
  .timeline-center-item.right .timeline-node {
    left: 13px !important;
  }
  .timeline-center-item.left .timeline-connector,
  .timeline-center-item.right .timeline-connector {
    left: 20px !important;
    width: 2rem !important;
  }
}
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 8, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1010;
  background: var(--surface);
  border: 1px solid var(--border-red);
  box-shadow: 0 0 40px rgba(255, 42, 42, 0.3), 0 20px 50px rgba(0, 0, 0, 0.95);
  padding: 1.5rem;
}
.lightbox-content img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain; 
  border: 1px solid var(--border-strong);
}
.lightbox-caption {
  font-family: var(--font-tag);
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lightbox-close-btn {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  background: var(--accent);
  color: #ffffff;
  border: none;
  font-family: var(--font-tag);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: var(--transition);
}
.lightbox-close-btn:hover {
  background: var(--accent-hover);
}
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding-block: 2.25rem;
  margin-top: 5rem;
  font-family: var(--font-tag);
  font-size: 0.825rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-dim);
}
.footer-inner nav a {
  color: var(--text-muted);
}
.footer-inner nav a:hover {
  color: var(--accent);
}
.section-header {
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}
.section-tag {
  font-family: var(--font-tag);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.section-tag::before {
  content: "//";
  color: var(--accent);
  font-weight: 700;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-tag);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.6);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--accent-glow);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px rgba(255, 42, 42, 0.2);
}
.telemetry-badge {
  font-family: var(--font-tag);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-red);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.12em;
  display: inline-block;
}
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: var(--transition);
}
.tech-card:hover {
  border-color: var(--accent);
  box-shadow: none;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--accent);
}
.project-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-modal-content {
  position: relative;
  width: 90vw;
  max-width: 900px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
  padding: 2rem;
  z-index: 1010;
}
.modal-small-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  color: var(--accent);
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
  z-index: 1020;
}
.modal-small-close:hover {
  color: #ff5555;
}
.project-media-collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-block: 1.5rem;
}
.project-media-item {
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
}
.project-media-item img,
.project-media-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}
