* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "JetBrains Mono", monospace;
}

body{
  background: #020617;
  color: #E5E7EB;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.6;
}

main {
  padding-top: 70px;
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1E293B;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #22C55E;
  font-weight: 600;
  font-size: 22px;
}

.nav-container nav a {
  color: #94A3B8;
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-container nav a:hover {
  color: #38BDF8;
}

.sidenav {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.sidenav span {
  width: 22px;
  height: 2px;
  background: #E5E7EB;
}

@media (max-width: 768px) {

  .sidenav {
    display: flex;
  }

  .nav-container {
    justify-content: space-between;
  }

  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #020617;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 40px;
    transition: left 0.3s ease;
  }

  nav.active {
    left: 0;
  }

  nav a {
    font-size: 18px;
  }
}

.texth1{
  text-align: center;
  color: #3dac78;
}

.texth1p{
  text-align: center;
  color: #3dac78;
  font-size: 45px;
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.card{
  width: 325px;
  background-color: #1E293B;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
  margin: 20px;
  will-change: transform, opacity;
  opacity: 0.85;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.card:hover {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0px 10px 24px rgba(0,0,0,0.35);
}

.card img {
  width: 100%;
  height: auto;
}

.card-content{
  padding: 16px;
}

.card-content h3{
  font-size: 28px;
  margin-bottom: 8px;
}

.card-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.3;
}

.texth2p{
  text-align: center;
  color: #94A3B8;
}

.textp{
  color: aliceblue;
}

.code-window {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #0F172A;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow-x: auto;
  position: relative;
}

.tech-img {
  position: absolute;
  top: 55px;
  right: 16px;
  width: 180px;
  height: auto;
  opacity: 0;
  transform: translateY(-14px) scale(0.95);
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.tech-img.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: floatTech 4s ease-in-out infinite;
}

@keyframes floatTech {
  0%   { transform: translateY(0) scale(1);}
  50%  { transform: translateY(-9px) scale(1);}
  100% { transform: translateY(0) scale(1);}
}

.type1 {
  padding: 30px 16px;
}

@media (min-width: 769px) {
  .type1 {
    min-height: 10vh;
    display: grid;
    place-items: center;
  }
}

.window-bar {
  background: #1E293B;
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 14px;
}

.window-bar .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #9ca3af;
  pointer-events: none;
}

@media (max-width: 480px) {
  .window-bar .title {
    font-size: 12px;
  }
}

.dot {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 50%;
}

.red { background: #ef4444; }
.yellow { background: #facc15; }
.green { background: #22c55e; }

.title {
  margin-left: auto;
  margin-right: auto;
  color: #94A3B8;
  font-size: 14px;
}

.code {
  padding: 24px;
  color: #E5E7EB;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  padding-right: 220px;
  transition: padding 0.35s ease;
}

@media (max-width: 768px) {
  .code {
    font-size: 13px;
    padding: 16px;
    padding-right: 24px;
  }

  .window-bar {
    padding: 8px 12px;
  }
}

.run-btn {
  margin-left: auto;
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.run-btn:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .run-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}

.comment {
  color: #64748B;
}

.keyword {
  color: #38BDF8;
}

.string {
  color: #22C55E;
}

.variable {
  color: #EAB308;
}

.function {
  color: #A855F7;
}

.contact-wrapper {
  max-width: 900px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(145deg, #0F172A, #020617);
  border: 1px solid #1E293B;
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: #22C55E;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.25);
}

.contact-card.active {
  border-color: #22C55E;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.35);
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  font-size: 22px;
  color: #38BDF8;
}

.contact-left h3 {
  margin: 0;
  font-size: 16px;
  color: #E5E7EB;
}

.contact-left p {
  margin: 3px 0 0;
  font-size: 14px;
  color: #94A3B8;
}

.contact-btn {
  width: 42px;
  height: 42px;
  background: #22C55E;
  color: #022C22;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-card:hover .contact-btn {
  transform: scale(1.1);
  background: #4ADE80;
}

@media (max-width: 600px) {
  .contact-wrapper {
    padding: 0 10px;
  }
}

.footer {
  background: linear-gradient(
    to top,
    #020617,
    #020617 65%,
    rgba(56, 189, 248, 0.12)
  );

  border-top: 1px solid #1E293B;
  margin-top: 15px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94A3B8;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  margin-left: 20px;
  font-size: 18px;
  color: #94A3B8;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: #38BDF8;
  transform: translateY(-2px);
}

.run-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.run-window {
  width: 90%;
  max-width: 700px;
  background: #020617;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  animation: popRun 0.35s ease;
}

@keyframes popRun {
  from {
    transform: scale(0.94) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.close-run {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 14px;
  cursor: pointer;
}

.close-run:hover {
  color: #EF4444;
}

.run-output {
  padding: 22px;
  margin-top: -30px;
  font-size: 14px;
  line-height: 1.6;
  color: #E5E7EB;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0F172A;
  white-space: pre-wrap;
  max-height: 360px;
  overflow-y: auto;   
  font-family: "JetBrains Mono", monospace;    
}

.run-output::-webkit-scrollbar {
  width: 10px;
}

.run-output::-webkit-scrollbar-track {
  background: #0F172A;
  border-radius: 10px;
}

.run-output::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1E293B, #334155);
  border-radius: 10px;
  border: 2px solid #0F172A;
}

.run-output::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #334155, #475569);
}

body.lock-scroll {
  overflow: hidden;
}

.cursor {
  display: inline-block;
  width: 8px;
  background: #22C55E;
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}