:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #161a23;
  --surface-2: #1c212c;
  --border: #2a3140;

  --text: #e9ecf2;
  --text-muted: #9aa4b7;

  --accent: #f5a524;
  --accent-soft: rgba(245, 165, 36, 0.12);
  --accent-2: #4c8bf5;

  --mono: "Roboto Mono", monospace;
  --display: "Russo One", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--mono);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: 46px;
}
h2 {
  font-size: 32px;
}
h4 {
  font-size: 19px;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

strong {
  color: var(--text);
}

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

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

.container {
  width: 1140px;
  max-width: 92%;
  margin: 0 auto;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background-color: var(--bg-alt);
}

/* ---------- Header / Nav ---------- */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 1140px;
  max-width: 92%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

#site-nav ul {
  display: flex;
  gap: 26px;
}

#site-nav a {
  color: var(--text-muted);
  font-size: 14px;
}

#site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 14px;
}

#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

#nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-accent {
  background: var(--accent);
  color: #14110a;
}

.btn-accent:hover {
  background: #ffb948;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.link-arrow {
  color: var(--accent);
  font-size: 14px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 160px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-sub {
  font-size: 16px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 3px;
}

.hero-panel {
  position: relative;
  display: flex;
  justify-content: center;
}

.terminal-shadow {
  background: var(--accent-soft);
  padding: 16px 0 0 16px;
  width: 100%;
  max-width: 420px;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

#dot-1 {
  background: #fc6058;
}
#dot-2 {
  background: #fec02f;
}
#dot-3 {
  background: #2aca3e;
}

.term-title {
  color: var(--text-muted);
  font-size: 12px;
}

.terminal-body {
  padding: 18px;
  font-size: 13px;
}

.terminal-body p {
  margin: 0 0 8px;
  color: var(--text);
}

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

.out {
  color: var(--text-muted);
  margin-bottom: 16px !important;
  padding-left: 14px;
}

.out.accent {
  color: var(--accent-2);
}

.cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

#profile_pic {
  display: none;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.social-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}

.social-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.social-list li:last-child {
  border-bottom: none;
}

.social-list span {
  color: var(--text-muted);
}

/* ---------- Skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 46px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}

.skill-primary {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
}

.skill-note {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: -10px;
  margin-bottom: 16px;
}

.skill-card li {
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.skill-card li:last-child {
  border-bottom: none;
}

/* ---------- Experience / Impact ---------- */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 46px;
}

.impact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px;
  position: relative;
}

.impact-index {
  font-family: var(--display);
  color: var(--accent);
  font-size: 13px;
  display: block;
  margin-bottom: 14px;
}

.impact-card p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ---------- Projects ---------- */

.post-wrapper,
.post-wrapper2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, 340px);
  gap: 24px;
  justify-content: center;
  margin-bottom: 60px;
}

.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.post:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.thumbnail-wrap {
  position: relative;
}

.thumbnail {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: grayscale(20%);
}

.view-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--accent);
  color: #14110a;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 700;
  cursor: pointer;
}

.post-preview {
  padding: 18px;
}

.post-title {
  color: var(--text);
  margin: 0 0 8px;
}

.post-intro {
  color: var(--text-muted);
  font-size: 14px;
}

.post-tech {
  color: var(--accent-2);
  font-size: 13px;
  margin-bottom: 10px;
}

.post-preview a {
  font-size: 13px;
  margin-right: 12px;
}

/* ---------- Contact ---------- */

.contact-sub {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

#contact-form {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px;
}

#contact-form label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 16px;
}

#contact-form label:first-child {
  margin-top: 0;
}

.input-field {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-alt);
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: var(--mono);
  color: var(--text);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.input-field {
  min-height: 110px;
  resize: vertical;
}

#submit-btn {
  margin-top: 22px;
  width: 100%;
  padding: 12px;
  color: #14110a;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

#submit-btn:hover {
  background: #ffb948;
}

/* ---------- Footer ---------- */

#site-footer {
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  font-size: 13px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* ---------- Preview modal ---------- */

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.preview-dialog {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  z-index: 10000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
}
.preview-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel-prev,
.carousel-next {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 4px;
}
.carousel-track {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.carousel-slide {
  width: 100%;
  display: none;
  text-align: center;
}
.carousel-slide img,
.carousel-slide video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 4px;
}
.modal-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 6px;
}
.modal-thumb {
  width: 64px;
  height: 44px;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.modal-thumb.active {
  outline: 2px solid var(--accent);
  opacity: 1;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 900px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 140px 0 60px;
  }

  h1 {
    font-size: 34px;
  }

  #nav-toggle {
    display: flex;
  }

  #site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 5%;
    gap: 18px;
    display: none;
  }

  #site-nav.open {
    display: flex;
  }

  #site-nav ul {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }
}
