@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #000;
  color: #fff;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden; /* prevent horizontal scroll from full-bleed canvas */
}

.main {
  visibility: visible;
}
.new_main {
  filter: blur(20px);
  pointer-events: none;
  user-select: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Sections */
section {
  padding: 100px 0;
}
.max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}

/* Section titles */
section .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 60px;
  padding-bottom: 18px;
  font-family: "Ubuntu", sans-serif;
}
section .title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 180px;
  height: 3px;
  background: #111;
  transform: translateX(-50%);
}
section .title::after {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: crimson;
  padding: 0 6px;
  background: #fff;
}

/* Dark sections */
.Projects,
.contact {
  background: #111;
  color: #fff;
}
.Projects .title::before,
.contact .title::before {
  background: #fff;
}

/* Shared containers */
.about .about-content,
.skills .skills-content,
.contact .contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* ======================= Navbar ======================= */
.navbar {
  position: fixed;
  width: 100%;
  z-index: 999;
  padding: 30px 0;
  transition: 0.3s;
  font-family: "Ubuntu", sans-serif;
}
.navbar.sticky {
  padding: 15px 0;
  background: crimson;
}
.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo a {
  color: #fff;
  font-size: 35px;
  font-weight: 700;
}
.navbar .logo a span {
  color: crimson;
  transition: 0.3s;
}
.navbar.sticky .logo a span {
  color: #fff;
}

.navbar .menu li {
  list-style: none;
  display: inline-block;
}
.navbar .menu li a {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-left: 25px;
  transition: color 0.3s ease;
}
.navbar .menu li a:hover {
  color: crimson;
}
.navbar.sticky .menu li a:hover {
  color: #fff;
}

/* Burger */
.menu-btn {
  color: #fff;
  font-size: 23px;
  cursor: pointer;
  display: none;
}

/* Scroll up btn */
.scroll-up-btn {
  position: fixed;
  height: 45px;
  width: 42px;
  right: 30px;
  bottom: 10px;
  background: crimson;
  color: #fff;
  text-align: center;
  line-height: 45px;
  border-radius: 6px;
  font-size: 30px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.scroll-up-btn.show {
  bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}
.scroll-up-btn:hover {
  filter: brightness(90%);
}

/* ======================= Home / Particles ======================= */
/* Remove section padding from the hero so the canvas can truly fill the screen */
section.home,
#particles-js {
  padding: 0 !important;
}

/* Full-viewport particles container */
#particles-js {
  position: relative;
  width: 100%;
  min-height: 100vh; /* desktop fallback */
  height: 100vh;
  min-height: 100svh; /* mobile safe viewport */
  height: 100svh;
  background: #000;
  background-size: cover;
  background-attachment: fixed;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden; /* avoid tiny scrollbars from the canvas */
  font-family: "Ubuntu", sans-serif;
}

/* Force the particles canvas to fill its parent exactly and not block clicks */
#particles-js > canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* Hero text overlay */
.home .max-width {
  margin-top: 15%;
  position: absolute;
  width: 100%;
  z-index: 1; /* above the canvas */
}
.home .home-content .text-1 {
  font-size: 27px;
}
.home .home-content .text-2 {
  font-size: 75px;
  font-weight: 700;
}
.home .home-content .text-3 {
  font-size: 40px;
  margin: 5px 0;
}
.home .home-content .text-3 span {
  color: crimson;
  font-weight: 600;
}
.home .home-content a {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 22px;
  padding: 12px 28px;
  margin-top: 20px;
  font-weight: 500;
  border-radius: 10px;
  border: 2px solid crimson;
  transition: 0.25s;
  position: relative; /* ensure clickable over canvas */
  z-index: 2;
}
.home .home-content a:hover {
  color: crimson;
  background: none;
}

/* ======================= About ======================= */
.about .title::after {
  content: "Who I Am";
  background: #000;
}
.about .title::before {
  background: #fff;
}

.about .about-content {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
}
.about .about-content .left {
  display: flex;
  justify-content: center;
}
.about .about-content .left img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid rgba(220, 20, 60, 0.25);
  background: #fff;
}
.about .about-content .right .text {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}
.about .about-content .right .text .js-name {
  color: #ff3c60;
}
.about .about-content .right .text .typing-2 {
  color: crimson;
}
.about .about-content .right p {
  color: #333;
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  line-height: 1.6;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.about .about-content .right .about-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 600;
  border: 1px solid #eee;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.about-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  background: crimson;
  color: #fff;
}

/* ======================= Skills ======================= */
.skills .title::after {
  content: "What I Know";
  background: #000;
}
.skills .title::before {
  background: #fff;
}

.skills-content .columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 40px;
  width: 100%;
}
.skills-content .column {
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  padding: 34px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.skills-content .column:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.skill-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}
.skill-header i {
  font-size: 44px;
  color: crimson;
  margin-bottom: 10px;
  display: inline-block;
  background: linear-gradient(45deg, crimson, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.skill-header h3 {
  font-size: 24px;
  color: #2d3436;
  display: inline-block;
  padding-bottom: 8px;
  position: relative;
}
.skill-header h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: crimson;
  border-radius: 2px;
}

/* Grid of skill items */
.skill-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}
.skill-item {
  text-align: center;
  padding: 18px;
  background: #fff;
  border-radius: 12px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.skill-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
}
.skill-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(220, 20, 60, 0.08));
  transform: rotate(45deg);
  transition: 0.35s;
  opacity: 0;
}
.skill-item:hover::before {
  opacity: 1;
  top: -20%;
  left: -20%;
}
.skill-item i {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
  transition: transform 0.2s;
}
.skill-item:hover i {
  transform: scale(1.08);
}
.skill-item span {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
}

/* Colored icon gradients */
.fa-java {
  background: linear-gradient(45deg, #007396, #00b4d8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fa-python {
  background: linear-gradient(45deg, #3776ab, #4b8bbe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fa-php {
  background: linear-gradient(45deg, #777bb4, #8892bf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fa-database {
  background: linear-gradient(45deg, #4479a1, #5d8aa8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fa-chart-line {
  background: linear-gradient(45deg, #276dc3, #1a73e8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fa-html5 {
  background: linear-gradient(45deg, #e34f26, #f06529);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fa-css3-alt {
  background: linear-gradient(45deg, #1572b6, #2965f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fa-js-square {
  background: linear-gradient(45deg, #f7df1e, #d4bb00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ======================= Projects ======================= */
.Projects .title::after {
  content: "What I Did";
  background: #111;
}

/* equal height items */
.Projects .carousel .owl-stage {
  display: flex;
}
.Projects .carousel .owl-item {
  display: flex;
}

:root {
  --card-height: 480px;
}

.Projects .carousel .card {
  background: #222;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  width: 100%;
  height: var(--card-height);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.Projects .carousel .card:hover {
  background: crimson;
}
.Projects .carousel .card .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}
.Projects .carousel .card .text {
  font-size: 24px;
  font-weight: 600;
  margin: 8px 0 6px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.repo-meta {
  text-align: center;
  opacity: 0.9;
  min-height: 20px;
}
.live-link {
  display: inline-block;
  text-decoration: underline;
  text-align: center;
  margin-top: 6px;
}
.repo-desc {
  text-align: center;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

/* Banner cover */
.Projects .carousel .card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.Projects .carousel .card .thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border: none !important;
}
.Projects .carousel .card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0) 60%
  );
}
.Projects .carousel .card:hover .thumb img {
  transform: scale(1.02);
  transition: transform 0.35s ease;
}
/* hide legacy circle img */
.Projects .carousel .card > a .box > img {
  display: none !important;
}

/* Chips */
.tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: center;
  padding: 8px 6px;
  max-height: 40px;
  min-height: 40px;
  overflow: hidden;
}
.tags.scrollbox {
  min-height: 96px;
  max-height: 96px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  scrollbar-gutter: stable both-edges;
}
.tag {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.tag-fw {
  border-color: rgba(220, 20, 60, 0.6);
}
.Projects .carousel .card:hover .tag {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Tag scrollbars */
.tags.scrollbox::-webkit-scrollbar {
  width: 6px;
}
.tags.scrollbox::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}
.tags.scrollbox {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* Owl dots */
.owl-dots {
  text-align: center;
  margin-top: 20px;
}
.owl-dot {
  height: 13px;
  width: 13px;
  margin: 0 5px;
  outline: none !important;
  border-radius: 50%;
  border: 2px solid crimson !important;
  transition: 0.3s;
}
.owl-dot.active {
  width: 35px;
  border-radius: 14px;
}
.owl-dot.active,
.owl-dot:hover {
  background: crimson !important;
}

/* ======================= Contact ======================= */
.contact .title::after {
  background: #111;
  content: "Get In Touch";
}

/* Grid layout: info + form */
.contact .contact-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Panels */
.contact .contact-content .column {
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
}

/* Left info */
.contact .contact-content .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.contact .contact-content .left p {
  color: #d8d8d8;
  margin-bottom: 18px;
  line-height: 1.55;
}
.contact .contact-content .left .icons {
  margin-top: 6px;
}
.contact .contact-content .row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 14px;
}
.contact .contact-content .row i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(220, 20, 60, 0.14);
  color: crimson;
  font-size: 16px;
}
.contact .contact-content .info .head {
  font-weight: 600;
  margin-bottom: 2px;
}
.contact .contact-content .info .sub-title {
  color: #cfcfcf;
  font-size: 14.5px;
  word-break: break-word;
}

/* Form */
.contact .right form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact .right form .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Inputs / Textarea */
.contact .right form .field,
.contact .right form .fields .field {
  margin: 0;
  width: 100%;
  height: auto;
}
.contact input,
.contact textarea {
  width: 100%;
  background: #0f0f10;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact input::placeholder,
.contact textarea::placeholder {
  color: #9b9b9b;
}
.contact input:focus,
.contact textarea:focus {
  border-color: crimson;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.25);
  background: #101214;
}
.contact textarea {
  min-height: 140px;
  resize: none;
  line-height: 1.45;
}

/* Button */
.right form .button-area {
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.right form .button-area button {
  background: crimson;
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  transition: transform 0.12s, box-shadow 0.2s;
}
.right form .button-area button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(220, 20, 60, 0.35);
}
.right form .button-area button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Keyboard focus for links/buttons */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(220, 20, 60, 0.65);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ======================= Popups ======================= */
.popup,
.error {
  width: 400px;
  height: 400px;
  border-radius: 30px;
  position: fixed;
  top: 0;
  left: 50%;
  border-style: solid;
  transform: translate(-50%, -50%) scale(0.1);
  text-align: center;
  padding: 0 30px 30px;
  visibility: hidden;
  transition: transform 0.4s, top 0.4ms;
  z-index: 1000;
}
.popup {
  background: crimson;
  border-color: #fff;
}
.new_pop {
  top: 50%;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.popup img {
  border: solid #fff;
  border-radius: 50px;
  width: 100px;
  height: 100px;
  margin-top: -50px;
}
.popup h2 {
  font-size: 30px;
  margin-top: 10%;
}
.popup p {
  margin-top: 15%;
}
.popup button {
  color: #fff;
  display: block;
  width: 160px !important;
  margin: 20% auto 0;
  height: 45px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  background: #1f1d1d;
  border: 2px solid #222;
  transition: 0.3s;
}
.popup button:hover {
  color: #252223;
  background: none;
}

.error {
  background: #1f1d1d;
  border-color: #fff;
}
.new_error {
  top: 50%;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.error img {
  border: solid #fff;
  border-radius: 50px;
  width: 100px;
  height: 100px;
  margin-top: -50px;
}
.error h2 {
  color: crimson;
  font-size: 30px;
  margin-top: 10%;
}
.error p {
  color: crimson;
  margin-top: 15%;
}
.error button {
  color: #000;
  width: 160px !important;
  margin: 20% auto 0;
  height: 45px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  background: crimson;
  border: 2px solid crimson;
  transition: 0.3s;
}
.error button:hover {
  color: crimson;
  background: none;
}

/* ======================= Footer ======================= */
footer {
  background: #fff;
  padding: 15px 23px;
  color: #000;
  text-align: center;
}
footer span a {
  color: crimson;
}
footer span a:hover {
  text-decoration: underline;
}
footer .social-icons {
  margin-top: 8px;
}
footer .social-icons a {
  display: inline-block;
  font-size: 22px;
  color: #111;
}
footer .social-icons a:hover {
  color: crimson;
}

/* ======================= Responsive ======================= */
@media (max-width: 1104px) {
  .about .about-content .left img {
    width: 300px;
    height: 300px;
  }
}
@media (max-width: 991px) {
  .max-width {
    padding: 0 50px;
  }
}
@media (max-width: 947px) {
  .menu-btn {
    display: block;
    z-index: 999;
  }
  .menu-btn i.active:before {
    content: "\f00d";
  }
  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: -100%;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 80px;
    transition: 0.3s;
  }
  .navbar .menu.active {
    left: 0;
  }
  .navbar .menu li {
    display: block;
  }
  .navbar .menu li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }

  .home .home-content .text-2 {
    font-size: 70px;
  }
  .home .home-content .text-3 {
    font-size: 35px;
  }
  .home .home-content a {
    font-size: 21px;
    padding: 10px 26px;
  }

  .max-width {
    max-width: 930px;
  }

  .about .about-content {
    grid-template-columns: 1fr;
  }
  .about .about-content .left {
    margin: 0 auto 28px;
  }
  .about .about-content .right p {
    padding: 16px;
  }

  .skills-content .columns {
    grid-template-columns: 1fr;
  }
}

/* Phone-friendly hero & typography */
@media (max-width: 600px) {
  section.home {
    padding: 0 !important;
  }

  .home .max-width {
    margin-top: 0;
    top: 22svh;
    left: 0;
    right: 0;
    padding: 0 18px;
  }

  .home .home-content .text-1 {
    font-size: clamp(14px, 4.2vw, 20px);
  }
  .home .home-content .text-2 {
    font-size: clamp(32px, 10vw, 54px);
    line-height: 1.15;
    word-break: break-word;
  }
  .home .home-content .text-3 {
    font-size: clamp(18px, 5.2vw, 26px);
    line-height: 1.25;
  }
  .home .home-content a {
    font-size: clamp(14px, 4vw, 18px);
    padding: 10px 16px;
    border-radius: 8px;
  }

  .max-width {
    padding: 0 18px;
  }
}

/* Small tablets */
@media (min-width: 601px) and (max-width: 820px) {
  .home .max-width {
    top: 24svh;
    padding: 0 28px;
  }
  .home .home-content .text-2 {
    font-size: clamp(40px, 8.5vw, 64px);
  }
  .home .home-content .text-3 {
    font-size: clamp(20px, 4.8vw, 28px);
  }
}

@media (max-width: 690px) {
  .max-width {
    padding: 0 23px;
  }
  .home .home-content a {
    font-size: 20px;
  }
}

@media (max-width: 620px) {
  :root {
    --card-height: 520px;
  }
  .tags.scrollbox {
    min-height: 110px;
    max-height: 110px;
  }
  .contact .contact-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact .right form .fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .right form .button-area button {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .error,
  .popup {
    width: 300px;
    height: 330px;
  }
  .popup button,
  .error button {
    margin-top: 10%;
  }
  .home .home-content .text-2 {
    font-size: 50px;
  }
  .home .home-content .text-3 {
    font-size: 27px;
  }
  .about .about-content .right .text {
    font-size: 22px;
  }
  .scroll-up-btn {
    right: 15px;
    bottom: 15px;
    height: 38px;
    width: 35px;
    font-size: 23px;
    line-height: 38px;
  }
}

/* Fallback when no flex gap support */
@supports not (gap: 10px) {
  .tags .tag {
    margin: 6px 7px;
  }
}
