* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #B0E4CC;
  overflow-x: hidden;

  background:
    radial-gradient(circle at 20% 20%, rgba(95,184,154,0.18), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(64,138,113,0.14), transparent 35%),
    linear-gradient(180deg, #06110f, #091413);

  background-size: 200% 200%;
  animation: bgMove 12s ease infinite;
}

@keyframes bgMove {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 0% 0%; }
}

/* stars */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(176,228,204,0.5) 1px, transparent 1px);
  background-size: 45px 45px;
  opacity: 0.12;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  bottom: 8%;
  left: 8%;
  background: radial-gradient(circle, rgba(95,184,154,0.22), transparent 70%);
  filter: blur(90px);
  z-index: -1;
}

/* ================= NAVBAR ================= */

#nav {
  display: flex;
  align-items: center;
  height: 70px;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}

#nav a,
.left,
.center,
.right a {
  color: #B0E4CC;
  text-decoration: none;
  font-weight: 600;
}

.left {
  margin-right: auto;
}

.center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

#nav button {
  background: linear-gradient(45deg, #408A71, #5FB89A);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  cursor: pointer;
  color: #06110f;
  font-weight: 600;
  transition: 0.3s ease;
}

#nav button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(95,184,154,0.7);
}

/* ================= HERO ================= */

.hero {
  min-height: 75vh;
  text-align: center;
  padding: 0 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transform: translateY(30px);
  animation: heroFade 1s ease forwards;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
}

.hero span {
  color: #5FB89A;
  text-shadow: 0 0 18px rgba(95,184,154,0.65);
}

.subtitle {
  margin-top: 12px;
  color: #8fd6ba;
  font-size: 19px;
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-btn {
  display: inline-block;
  margin-top: 70px;
  padding: 15px 40px;

  background: #e5e5e5;
  color: #111;
  text-decoration: none;

  font-family: monospace;
  font-size: 18px;
  letter-spacing: 3px;

  border-radius: 40px;
  cursor: pointer;
  animation: bounce 1.5s infinite;
  transition: 0.3s ease;
}

.scroll-btn:hover {
  background: #fff;
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ================= SECTION GENERAL ================= */

#about,
#skills,
#projects,
#contact {
  padding: 70px 20px;
  position: relative;
}

#about::before,
#skills::before,
#projects::before,
#contact::before {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 0 auto 40px;
  background: linear-gradient(90deg, transparent, #5FB89A, transparent);
  box-shadow: 0 0 18px rgba(95,184,154,0.7);
}

/* ================= ABOUT ================= */

#about {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-card {
  max-width: 850px;
  padding: 40px;
  text-align: center;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.about-card h2 {
  color: #5FB89A;
  font-size: 34px;
  margin-bottom: 18px;
}

.about-card p {
  color: #B0E4CC;
  font-size: 17px;
  line-height: 1.7;
}

/* ================= TERMINAL ================= */
/* ================= TERMINAL ================= */

.terminal {
  width: 760px;
  max-width: 92%;

  margin: 100px auto;

  background: rgba(7, 20, 18, 0.72);

  border: 1px solid rgba(95,184,154,0.15);
  border-radius: 20px;

  overflow: hidden;

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  box-shadow:
    0 0 30px rgba(0,0,0,0.5),
    0 0 80px rgba(95,184,154,0.08);

  position: relative;

  transition: 0.3s ease;
}

.terminal:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 40px rgba(0,0,0,0.55),
    0 0 100px rgba(95,184,154,0.12);
}

/* top neon line */

.terminal::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    #5FB89A,
    transparent
  );

  opacity: 0.8;
}

/* scanline effect */

.terminal::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.015) 4px
    );

  pointer-events: none;
}

/* terminal top bar */

.terminal-header {
  height: 52px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0 20px;

  background:
    linear-gradient(
      90deg,
      rgba(95,184,154,0.12),
      rgba(255,255,255,0.03)
    );

  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* mac dots */

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

/* typing area */

#typing {
  min-height: 320px;

  padding: 35px;

  color: #c8ffe8;

  font-family: "Courier New", monospace;
  font-size: 15px;

  line-height: 2;
  letter-spacing: 0.4px;

  white-space: pre-wrap;

  text-shadow: 0 0 8px rgba(95,184,154,0.15);
}

/* blinking cursor */

#typing::after {
  content: "|";

  color: #5FB89A;

  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* mobile */

@media (max-width: 768px) {

  .terminal {
    width: 94%;
    margin: 70px auto;
  }

  #typing {
    min-height: 260px;

    padding: 22px;

    font-size: 12px;
    line-height: 1.8;
  }

}
/* ================= SKILLS ================= */

#skills {
  text-align: center;
}

#skills h2,
#projects h2,
#contact h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #5FB89A;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  max-width: 850px;
  margin: auto;
}

.skill-card {
  padding: 22px;
  font-weight: 600;

  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;

  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.skill-card i {
  color: #5FB89A;
  font-size: 20px;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 22px rgba(95,184,154,0.35);
}

/* ================= PROJECTS ================= */

#projects {
  text-align: center;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1050px;
  margin: auto;
}

.project-card {
  padding: 30px;

  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;

  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.project-card h3 {
  color: #B0E4CC;
  font-size: 22px;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 15px;
  color: #8fd6ba;
  line-height: 1.5;
}

.project-card a {
  display: inline-block;
  margin-top: 18px;
  color: #5FB89A;
  text-decoration: none;
  font-weight: 600;
}

.project-card:hover {
  transform: translateY(-9px) scale(1.02);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 28px rgba(95,184,154,0.38);
}

/* shine effect */

.skill-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.12),
    transparent
  );
  opacity: 0;
  transform: translateX(-100%);
  transition: 0.6s ease;
}

.skill-card:hover::before,
.project-card:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

/* ================= CONTACT ================= */

#contact {
  text-align: center;
}

#contact form {
  max-width: 650px;
  margin: auto;
  padding: 40px;

  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;

  box-shadow: 0 0 30px rgba(0,0,0,0.3);

  display: flex;
  flex-direction: column;
  gap: 20px;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 16px;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;

  background: rgba(255,255,255,0.04);
  color: #B0E4CC;
  font-size: 15px;

  outline: none;
  transition: 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
  border-color: #5FB89A;
  box-shadow: 0 0 12px rgba(95,184,154,0.25);
}

#contact textarea {
  min-height: 140px;
  resize: none;
}

#contact button {
  padding: 15px;
  border: none;
  border-radius: 40px;

  background: linear-gradient(45deg, #408A71, #5FB89A);

  color: #06110f;
  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
  transition: 0.3s ease;
}

#contact button:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(95,184,154,0.4);
}

/* ================= SOCIAL / FOOTER ================= */

#social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

#social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 22px;
  border-radius: 30px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(95,184,154,0.35);
  color: #B0E4CC;

  text-decoration: none;
  font-size: 15px;

  transition: 0.3s ease;
}

#social a:hover {
  transform: translateY(-4px);
  background: rgba(95,184,154,0.15);
  box-shadow: 0 0 20px rgba(95,184,154,0.35);
}

#social i {
  font-size: 20px;
  color: #5FB89A;
}

footer {
  text-align: center;
  padding: 20px;
  color: #7FBFA5;
  font-size: 14px;
}

/* ================= SCROLL REVEAL ================= */

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  #nav {
    height: auto;
    padding: 18px 16px;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .left,
  .center,
  .right {
    position: static;
    transform: none;
    margin: 0;
  }

  .right {
    gap: 12px;
  }

  .right a:first-child {
    display: none;
  }

  #nav button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    min-height: 65vh;
    padding: 40px 18px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.25;
  }

  .subtitle {
    font-size: 15px;
    line-height: 1.5;
  }

  .scroll-btn {
    margin-top: 45px;
    font-size: 13px;
    padding: 12px 26px;
  }

  #about,
  #skills,
  #projects,
  #contact {
    padding: 55px 15px;
  }

  .about-card,
  #contact form {
    padding: 25px;
  }

  .about-card h2,
  #skills h2,
  #projects h2,
  #contact h2 {
    font-size: 28px;
  }

  .about-card p {
    font-size: 15px;
  }

  .terminal {
    width: 92%;
    margin: 60px auto;
  }

  #typing {
    font-size: 12px;
    padding: 20px;
    min-height: 230px;
  }

  .skills-container,
  .projects-container {
    grid-template-columns: 1fr;
    max-width: 92%;
  }

  #social {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 14px;
  }

  .skill-card,
  .project-card {
    padding: 20px;
  }

  #typing {
    font-size: 11px;
  }
}