*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Outfit", sans-serif;
  background-color: rgb(5, 5, 7);
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
  animation: 0.8s fade-in ease both;
}

/* Nav Section */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 48px;
  height: 60px;
  border-bottom: 1px solid #1c2631;
  background-color: rgb(5, 5, 7);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}
.logo {
  /* font-family: ; */
  font-size: 13px;
  font-weight: 500;
  color: #b6f542;
  word-spacing: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: ">";
  color: #3d5470;
  /* margin-right: 8px; */
  animation: blink 1.5s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-links {
  /* word-spacing: 1.5rem; */
  list-style: none;
  display: flex;
  gap: 8px;
}
.nav-links a {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: #3d5470;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.nav-links a:hover {
  color: #b6f542;
  border-color: #243040;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 48px 0;
  margin: 0 auto;
  max-width: 1200px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: #b6f542;
  background-color: rgba(182, 245, 66, 0.08);
  border: 1px solid rgba(182, 245, 66, 0.2);
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fade-up 0.5s ease both;
}
.hero-tag span {
  display: block;
  width: 6px;
  height: 6px;
  background-color: #b6f542;
  border-radius: 50%;
}
.hero-name {
  font-family: "Outfit", sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04rem;
  margin-bottom: 6px;
  color: #e0e0e0;
  animation: fade-up 0.5s ease both;
  animation-delay: 0.1s;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}
.hero-name-highlight {
  color: transparent;
  -webkit-text-stroke: #b6f542 1.5px;
}
.hero-role {
  font-size: 14px;
  color: #3d5470;
  margin-bottom: 24px;
  animation: fade-up 0.5s 0.16s ease both;
  animation-delay: 0.2s;
}
.hero-role em {
  color: #b6f542;
  font-style: normal;
}
.hero-desc {
  font-size: 15px;
  max-width: 420px;
  color: #8ba4bc;
  margin-bottom: 32px;
  animation: fade-up 0.5s ease both;
  animation-delay: 0.24s ease both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  animation: fade-up 0.5s 0.24s ease both;
}
.btn-lime {
  font-family: "JetBrains Mono", monospace;
  background-color: #b6f542;
  color: #000;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
  display: inline-flex;
  align-self: center;
  gap: 6px;
}
.btn-lime:hover {
  background-color: #d4ff70;
  transform: translateY(-2px);
}
.btn-outline {
  font-family: "JetBrains Mono", monospace;
  color: #c8ddef;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #3d5470;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  color: #b6f542;
  border-color: #b6f542;
}
/* Terminal Section */
.hero-terminal {
  background-color: #0f1419;
  border: 1px solid #243040;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fade-up 0.5s 0.28s ease both;
}
.terminal-bar {
  background-color: #141b22;
  border-bottom: 1px solid #1c2631;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.r {
  background-color: #ff5f56;
}
.t-dot.y {
  background-color: #febc2e;
}
.t-dot.g {
  background-color: #28c840;
}
.terminal-title {
  font-size: 10px;
  color: #3d5470;
  font-family: "JetBrains Mono", monospace;
  margin-left: auto;
}
.terminal-body {
  padding: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #e0e0e0;
  line-height: 2;
}
.t-line {
  display: flex;
  gap: 10px;
}
.t-prompt {
  color: #b6f542;
  flex-shrink: 0;
}
.t-cmd {
  color: #c8ddef;
}
.t-out {
  color: #3d5470;
  padding-left: 20px;
}
.t-key {
  color: #4da6ff;
}
.t-val {
  color: #d4ff70;
}
.t-val.orange {
  color: #ffb347;
}
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: #b6f542;
  animation: blink 1s step-end infinite;
}

/* Sections Section */
.section {
  padding: 80px 48px;
  max-width: 1200px;
  border-top: 1px solid #1c2631;
  margin: 0 auto;
  overflow: visible;
}
.section-eyebrow {
  font-family: "JetBrains Mono", monospace;
  color: #b6f542;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::after {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 1px;
  background-color: #b6f542;
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #eaf3fc;
  line-height: 1.1;
}

/* About Section*/
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-top: 48px;
}
.about-body {
  font-size: 15px;
  color: #8ba4bc;
  line-height: 1.8;
}
.about-body p + p {
  margin-top: 16px;
}
.about-body strong {
  color: #b6f542;
  font-weight: 600;
}
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #0f1419;
  border: 1px solid #243040;
  border-radius: 12px;
  padding: 18px 20px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.info-card:hover {
  border-color: #243040;
  transform: translateX(4px);
}
.info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-color: rgba(182, 245, 66, 0.07);
  font-size: 18px;
  border: 1px solid rgba(182, 245, 66, 0.15);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #3d5470;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.info-value {
  font-size: 14px;
  color: #c8ddef;
  font-weight: 600;
  margin-top: 2px;
}

/* Skills Section*/
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.flip-card {
  height: 170px;
  perspective: 800px;
  cursor: pointer;
  position: relative;
}
.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}
.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid #1c2631;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}
.flip-front {
  background-color: #0f1419;
}
.flip-back {
  background-color: #141b22;
  transform: rotateY(180deg);
}
.sk-name {
  font-size: 13px;
  font-weight: 600;
  color: #c8ddef;
  text-align: center;
}
.sk-cat {
  font-size: 11px;
  color: #3d5470;
  text-align: center;
}
.sk-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}
.sk-badge.solid {
  background: rgba(182, 245, 66, 0.1);
  color: #b6f542;
}
.sk-badge.learning {
  background: rgba(255, 122, 61, 0.1);
  color: #ff7a3d;
}
.sk-badge.tool {
  background: rgba(77, 166, 255, 0.1);
  color: #4da6ff;
}
.sk-note {
  font-size: 11px;
  color: #3d5470;
  text-align: center;
  line-height: 1.6;
}
/* Projects Section */
.projects-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.proj-card {
  background-color: #0f1419;
  border: 1px solid #1c2631;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    border-color 0.25s,
    transform 0.25s;
}
.proj-card:hover {
  border-color: #243040;
  transform: translateY(-3px);
}
.proj-card.span2 {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}
.proj-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #3d5470;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.proj-title {
  font-size: 20px;
  font-weight: 700;
  color: #eaf3fc;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.proj-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #8ba4bc;
  flex: 1;
  margin-bottom: 20px;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.ptag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid #243040;
  color: #3d5470;
}
.proj-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
}
.proj-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #3d5470;
  text-decoration: none;
  transition: color 0.2s;
}
.proj-link:hover {
  color: #b6f542;
}
.proj-visual {
  flex-shrink: 0;
  width: 240px;
  background-color: #141b22;
  border: 1px solid #1c2631;
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wip-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #ff7a3d;
  background: rgba(255, 122, 61, 0.1);
  border: 1px solid rgba(255, 122, 61, 0.25);
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}
.contact-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #8ba4bc;
  margin-bottom: 28px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background-color: #0f1419;
  border: 1px solid #1c2631;
  border-radius: 8px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.c-link:hover {
  border-color: #b6f542;
  transform: translateX(4px);
}
.c-icon {
  color: #b6f542;
  width: 36px;
  height: 36px;
  background: rgba(182, 245, 66, 0.07);
  border: 1px solid rgba(182, 245, 66, 0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.c-label {
  font-size: 10px;
  font-family: "Outfit", sans-serif;
  color: #3d5470;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.c-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #c8ddef;
  margin-top: 2px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3d5470;
  display: block;
  margin-bottom: 6px;
}
.form-input,
.form-textarea {
  width: 100%;
  background-color: #0f1419;
  border: 1px solid #1c2631;
  border-radius: 8px;
  color: #c8ddef;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  border-color: #b6f542;
}
.form-textarea {
  resize: vertical;
}

/* Footer Section*/
footer {
  border-top: 1px solid #1c2631;
  padding: 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #3d5470;
}
.hi {
  color: #b6f542;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVENESS */

/* Tablet Screen (768px to 1024px) */
@media (max-width: 1024px) {
  nav {
    padding: 0px 32px;
  }

  #hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 32px 0;
  }

  .hero-terminal {
    min-height: 300px;
  }

  .section {
    padding: 60px 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projects-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .proj-card.span2 {
    flex-direction: column;
    gap: 20px;
  }

  .proj-visual {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer {
    padding: 20px 32px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Phone Screen (up to 768px) */
@media (max-width: 768px) {
  nav {
    padding: 0px 16px;
    height: auto;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
  }

  .logo {
    font-size: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-links a {
    font-size: 10px;
    padding: 4px 8px;
  }

  #hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 16px 0;
    min-height: auto;
  }

  .hero-tag {
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 16px;
  }

  .hero-name {
    font-size: clamp(36px, 8vw, 50px);
    margin-bottom: 4px;
  }

  .hero-role {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .btn-lime,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 11px;
  }

  .hero-terminal {
    min-height: 250px;
    font-size: 12px;
  }

  .terminal-body {
    padding: 12px;
    font-size: 11px;
    line-height: 1.8;
  }

  .t-out {
    padding-left: 10px;
  }

  .section {
    padding: 40px 16px;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .about-body {
    font-size: 14px;
  }

  .about-body p + p {
    margin-top: 12px;
  }

  .info-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .info-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .info-label {
    font-size: 10px;
  }

  .info-value {
    font-size: 13px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
  }

  .flip-card {
    height: 140px;
  }

  .flip-front,
  .flip-back {
    padding: 12px;
    gap: 6px;
  }

  .sk-name {
    font-size: 12px;
  }

  .sk-cat {
    font-size: 10px;
  }

  .sk-badge {
    font-size: 9px;
    padding: 2px 8px;
  }

  .sk-note {
    font-size: 10px;
  }

  .projects-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .proj-card {
    padding: 20px;
  }

  .proj-card.span2 {
    flex-direction: column;
    gap: 16px;
  }

  .proj-number {
    font-size: 9px;
    margin-bottom: 12px;
  }

  .proj-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .proj-desc {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .proj-tags {
    gap: 4px;
    margin-bottom: 16px;
  }

  .ptag {
    font-size: 9px;
    padding: 2px 8px;
  }

  .proj-links {
    gap: 12px;
  }

  .proj-link {
    font-size: 10px;
  }

  .proj-visual {
    width: 100%;
    height: 200px;
  }

  .wip-badge {
    top: 12px;
    right: 12px;
    font-size: 8px;
    padding: 2px 6px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .contact-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .contact-links {
    gap: 8px;
  }

  .c-link {
    padding: 12px 14px;
  }

  .c-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .c-label {
    font-size: 9px;
  }

  .c-val {
    font-size: 12px;
  }

  .form {
    gap: 12px;
  }

  .form-label {
    font-size: 9px;
    margin-bottom: 4px;
  }

  .form-input,
  .form-textarea {
    font-size: 13px;
    padding: 10px 12px;
  }

  footer {
    padding: 16px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 10px;
  }
}
