:root {
  --bg-color: #111;
  --text-color: #eee;
  --accent-color: #ff9d00;
  /* Orange from reference */
  --secondary-accent: #00ff41;
  /* Terminal Green */
  --border-color: #333;
  --font-main: 'Departure Mono', monospace;
  --scanline-color: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  color: var(--accent-color);
}

/* Header */
.site-header {
  border-bottom: 2px solid var(--border-color);
  padding: 20px 0;
  margin-bottom: 40px;
  background-color: rgba(17, 17, 17, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: -1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

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

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

nav a:hover::before,
nav a:hover::after {
  opacity: 1;
}

/* Footer */
footer {
  border-top: 2px solid var(--border-color);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-accent {
  color: var(--accent-color);
}

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

/* Scanline Effect */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.2));
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
}

/* Hero Section */
#hero {
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60vh;
  border-left: 1px solid var(--border-color);
  padding-left: 40px;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 100px;
  width: 9px;
  height: 9px;
  background-color: var(--accent-color);
}

#hero h1 {
  font-size: 4rem;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.hero-sub {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-sub::before {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background-color: var(--accent-color);
}

.mission-statement {
  margin-top: 40px;
  max-width: 600px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.mission-label {
  display: block;
  font-size: 0.7rem;
  color: var(--secondary-accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* NEW: Hero Button Container */
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* NEW: Standout Hero Buttons */
.hero-btn {
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
  transition: all 0.3s;
  background: rgba(255, 157, 0, 0.05);
  /* Subtle tint of accent color */
  box-shadow: 0 0 5px rgba(255, 157, 0, 0.2);
}

.hero-btn:hover {
  background-color: var(--accent-color);
  color: #000;
  box-shadow: 0 0 20px var(--accent-color);
  transform: translateY(-2px);
}

/* Projects Section */
#projects {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  display: inline-block;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.project-card {
  border: 1px solid var(--border-color);
  padding: 20px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  background: rgba(255, 255, 255, 0.02);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-color);
}

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

.project-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.flight-badge {
  font-size: 0.6rem;
  border: 1px solid var(--secondary-accent);
  color: var(--secondary-accent);
  padding: 2px 5px;
  text-transform: uppercase;
}

.project-desc {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 20px;
}

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

.tech-tag {
  font-size: 0.7rem;
  background: #222;
  padding: 3px 8px;
  border: 1px solid #444;
}

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

.btn-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 2px;
}

.btn-link:hover {
  background-color: var(--accent-color);
  color: #000;
}

/* Skills Section */
#skills {
  padding: 80px 0;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px;
}

.skill-category h3 {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: var(--secondary-accent);
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.skill-name {
  width: 120px;
}

.skill-bar-container {
  flex-grow: 1;
  height: 10px;
  background: #222;
  margin-left: 15px;
  position: relative;
  border: 1px solid #444;
}

.skill-bar {
  height: 100%;
  background-color: var(--accent-color);
  width: 0;
  /* Animated later */
  position: relative;
}

.skill-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #fff;
}

.skill-status {
  margin-left: 15px;
  font-size: 0.8rem;
  color: var(--secondary-accent);
  width: 50px;
  width: 50px;
  text-align: right;
}

/* Contact Section */
#contact {
  padding: 80px 0;
  text-align: center;
  margin-bottom: 80px;
}

.contact-box {
  border: 1px dashed var(--accent-color);
  padding: 40px;
  display: inline-block;
  background: rgba(255, 157, 0, 0.05);
  max-width: 800px;
  width: 100%;
}

/* NEW: Contact Grid Layout */
.uplink-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--accent-color);
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  min-width: 200px;
  /* Ensure uniform size */
}

.contact-btn:hover {
  background-color: #fff;
  box-shadow: 0 0 20px var(--accent-color);
  transform: translateY(-2px);
}

/* Glitch Effect */
@keyframes glitch {
  0% {
    transform: translate(0)
  }

  20% {
    transform: translate(-2px, 2px)
  }

  40% {
    transform: translate(-2px, -2px)
  }

  60% {
    transform: translate(2px, 2px)
  }

  80% {
    transform: translate(2px, -2px)
  }

  100% {
    transform: translate(0)
  }
}

.glitch:hover {
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
  color: var(--accent-color);
}

html {
  scroll-behavior: smooth;
}

/* Experience Section */
#experience {
  padding: 80px 0;
}

.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 1px solid var(--border-color);
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 5px;
  width: 10px;
  height: 10px;
  background-color: var(--bg-color);
  border: 1px solid var(--accent-color);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--secondary-accent);
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.timeline-company {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 10px;
  border-bottom: 1px dashed #333;
  display: inline-block;
  padding-bottom: 2px;
}

.timeline-desc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-desc li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
  color: #ccc;
  font-size: 0.9rem;
}

.timeline-desc li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Mobile Responsiveness for Buttons */
@media (max-width: 768px) {

  .hero-btn,
  .contact-btn {
    width: 100%;
    text-align: center;
  }

  .uplink-grid,
  .hero-actions {
    flex-direction: column;
  }
}


@media (max-width: 768px) {

  /* --- Global Layout --- */
  .container {
    padding: 0 15px;
  }

  /* --- Header & Navigation --- */
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 20px;
  }

  nav a {
    font-size: 0.8rem;
    display: inline-block;
  }

  /* --- Hero Section --- */
  #hero {
    padding: 60px 0;
    min-height: auto;
    text-align: center;
    align-items: center;
    border-left: none;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  .hero-sub {
    flex-direction: column;
    font-size: 1rem;
    gap: 5px;
  }

  #hero::before,
  .hero-sub::before {
    display: none;
  }

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

  /* --- Timeline (History/Academy) --- */
  .timeline {
    padding-left: 15px;
    margin-left: 5px;
  }

  .timeline-item::before {
    left: -21px;
  }

  /* --- Skills Section --- */
  .skills-container {
    gap: 30px;
  }

  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .skill-name {
    width: 100%;
  }

  .skill-bar-container {
    width: 100%;
    margin-left: 0;
    margin-bottom: 5px;
  }

  .skill-status {
    width: 100%;
    text-align: left;
    font-size: 0.7rem;
  }

  /* --- Projects Grid --- */
  .project-grid {
    grid-template-columns: 1fr;
  }

  /* --- Contact --- */
  .contact-box {
    padding: 20px;
  }

  .uplink-grid,
  .hero-actions {
    flex-direction: column;
  }

  .hero-btn,
  .contact-btn {
    width: 100%;
    text-align: center;
  }
}