/* ===== CSS VARIABLES ===== */
:root {
  --green: #008000;
}

/* ===== SCRAMBLE TEXT (home section) ===== */
.container {
  position: relative;
  top: 25%;
  height: 50px;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  font-family: "Roboto Mono", monospace;
  padding: 50px 0px 100px 0px;
}

.text {
  font-weight: 600;
  font-size: 34px;
  color: green;
}

@media only screen and (max-width: 550px) {
  .text {
    font-size: 20px !important;
  }
}

.dud {
  color: green;
}

/* ===== GLOBAL RESET ===== */
* {
  font-family: "Aldrich", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

*::selection {
  background: var(--green);
  color: #333;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

html::-webkit-scrollbar {
  width: 1.4rem;
}

html::-webkit-scrollbar-track {
  background: #222;
}

html::-webkit-scrollbar-thumb {
  background: var(--green);
}

/* ===== BODY ===== */
body {
  background: #100;
  overflow-x: hidden;
  padding-left: 35rem;
}

section {
  min-height: 100vh;
  padding: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.7rem 3rem;
  background: #333;
  color: #fff;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 2rem;
  border-radius: 5rem;
}

.btn i {
  padding: 0 0.5rem;
  font-size: 1.8rem;
}

.btn:hover {
  background: var(--green);
}

/* ===== SECTION HEADINGS ===== */
.heading {
  text-align: center;
  margin: 0 6rem;
  font-size: 4rem;
  padding: 1rem;
  border-bottom: 0.1rem solid #fff4;
  color: #fff;
}

.heading span {
  color: var(--green);
}

/* ===== HEADER / SIDEBAR ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 100%;
  width: 35rem;
  background: #212121;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  text-align: center;
}

header .user img {
  height: 17rem;
  width: 17rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 0.7rem solid var(--green);
}

header .user .name {
  font-size: 3.5rem;
  color: #fff;
}

header .user .post {
  font-size: 2rem;
  color: #eee;
}

header .navbar {
  width: 100%;
}

header .navbar ul {
  list-style: none;
  padding: 1rem 3rem;
}

header .navbar ul li a {
  display: block;
  padding: 1rem;
  margin: 1.5rem 0;
  background: #333;
  color: #008000;
  font-size: 2rem;
  border-radius: 5rem;
}

header .navbar ul li a:hover {
  background: black;
}

/* ===== MOBILE MENU BUTTON ===== */
#menu {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 2.5rem;
  padding: 1rem 1.5rem;
  z-index: 1000;
  display: none;
}

/* ===== HOME ===== */
.home {
  display: flex;
  justify-content: center;
  flex-flow: column;
  padding: 0 15rem;
}

.home h3 {
  font-size: 2.5rem;
  color: #fff;
}

.home h1 {
  font-size: 5rem;
  color: #fff;
}

.home h1 span {
  color: var(--green);
}

.home p {
  font-size: 2rem;
  color: #eee;
  padding: 1rem 0;
}

/* ===== ABOUT ===== */
.about .row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.about .row .info {
  flex: 1 1 48rem;
  padding: 2rem 1rem;
  padding-left: 6rem;
}

.about .row .info h3 {
  font-size: 2rem;
  color: var(--green);
  padding: 1rem 0;
  font-weight: normal;
}

.about .row .info h3 span {
  color: #eee;
  padding: 0 0.5rem;
}

/* Bio paragraph added in About */
.about .row .info .about-bio {
  font-size: 1.7rem;
  color: #ccc;
  line-height: 1.7;
  margin: 1.8rem 0 1rem;
  text-transform: none;
  font-family: "Roboto Mono", monospace;
  font-weight: 400;
}

.about .row .info .about-bio strong {
  color: var(--green);
  font-weight: 600;
}

.about .row .counter {
  flex: 1 1 48rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.about .row .counter .box {
  width: 20rem;
  background: #222;
  text-align: center;
  padding: 2rem;
  margin: 2rem;
}

.about .row .counter .box span {
  font-size: 4rem;
  color: var(--green);
}

.about .row .counter .box h3 {
  font-size: 2rem;
  color: #fff;
}

/* ===== EDUCATION ===== */
.education .box-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 0;
  padding-left: 3rem;
}

.education .box-container .box {
  width: 27rem;
  margin: 4rem 1rem;
  padding-left: 4rem;
  border-left: 0.2rem solid #fff;
  position: relative;
}

.education .box-container .box span {
  font-size: 1.3rem;
  background: #222;
  color: #fff;
  border-radius: 5rem;
  padding: 0.5rem 2.5rem;
}

.education .box-container .box h3 {
  font-size: 2rem;
  color: #fff;
  padding-top: 1.5rem;
}

.education .box-container .box p {
  font-size: 1.4rem;
  color: #eee;
  padding: 1rem 0;
}

.education .box-container .box i {
  position: absolute;
  top: -1.5rem;
  left: -2.5rem;
  height: 5rem;
  width: 5rem;
  border-radius: 50%;
  line-height: 5rem;
  text-align: center;
  font-size: 2rem;
  color: #fff;
  background: var(--green);
}

/* ===== SKILLS ===== */
.skills .box-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 0;
}

/* Sub-section label above each row */
.skills-label {
  text-align: center;
  font-size: 1.6rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Image-based skill tiles (existing) */
.skills .box-container .box {
  height: 20rem;
  width: 20rem;
  border-radius: 1rem;
  margin: 2rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #222;
}

.skills .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.skills .box-container .box:hover img {
  transform: scale(1.2);
}

/* Skill name overlay on image tiles */
.skills .box-container .box .skill-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.6rem;
  text-align: center;
  padding: 0.8rem 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-transform: capitalize;
}

.skills .box-container .box:hover .skill-name {
  opacity: 1;
}

/* Text-card tiles for new skills (no logo image needed) */
.skills .box-container .box.text-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: #1e2a1e;
  border: 0.2rem solid var(--green);
}

.skills .box-container .box.text-card i {
  font-size: 3.5rem;
  color: var(--green);
}

.skills .box-container .box.text-card .skill-name {
  position: static;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  opacity: 1;
  padding: 0;
}

.skills .box-container .box.text-card:hover {
  background: #2a3d2a;
  border-color: #00b800;
}

/* ===== CONTACT ===== */
.contact .row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.contact .row .content {
  flex: 1 1 30rem;
  padding: 4rem;
  padding-bottom: 0;
}

.contact .row form {
  flex: 1 1 45rem;
  padding: 2rem;
  margin: 2rem;
  margin-bottom: 4rem;
}

.contact .row form .box {
  padding: 1.5rem;
  margin: 1rem 0;
  background: #3333;
  color: #fff;
  text-transform: none;
  font-size: 1.7rem;
  width: 100%;
  border-radius: 0.4rem;
}

.contact .row form .box::placeholder {
  text-transform: capitalize;
}

/* Highlight on focus */
.contact .row form .box:focus {
  border: 0.15rem solid var(--green);
  background: #2a2a2a;
}

/* Browser validation error highlight */
.contact .row form .box:invalid:not(:placeholder-shown) {
  border: 0.15rem solid #c0392b;
}

.contact .row form .message {
  height: 15rem;
  resize: none;
}

.contact .row .content .title {
  text-transform: uppercase;
  color: #fff;
  font-size: 3rem;
  padding-bottom: 2rem;
}

.contact .row .content .info h3 {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: #eee;
  padding: 1rem 0;
  font-weight: normal;
}

.contact .row .content .info h3 i {
  padding-right: 1rem;
  color: var(--green);
}

/* ===== BACK-TO-TOP ===== */
.top {
  position: fixed;
  bottom: 7.5rem;
  right: 2rem;
  z-index: 100;
  display: none;
  background: var(--green);
  color: #fff;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  line-height: 4rem;
  text-align: center;
  font-size: 1.8rem;
}

.top:hover {
  background: #00a800;
  color: #fff;
}

/* ===== MISC ===== */
a {
  color: green;
}

a:hover {
  color: #eaf6f6;
}

h3 {
  color: #008000;
}

.copyright {
  height: 1.7em;
  text-align: center;
  color: green;
  overflow: hidden;
  background-color: #222;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }

  .home {
    padding: 1rem 4rem;
  }
}

@media (max-width: 991px) {
  header {
    left: -120%;
  }

  #menu {
    display: block;
  }

  header.toggle {
    left: 0%;
  }

  body {
    padding: 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
}

@media (max-width: 400px) {
  header {
    width: 100vw;
  }

  .heading {
    margin: 0 3rem;
  }

  .about .row .counter .box {
    width: 100%;
  }

  .education .box-container .box {
    width: 100%;
  }

  .skills .box-container .box {
    width: calc(100% - 4rem);
  }

  .contact .row form {
    margin: 3rem 0;
  }
}
