* {
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --main-color: #7cf03d;
  --white-color: #fff;
  --disabled-color: #fff3;
}

html {
  font-size: 62.5%;
}

body {
  background-color: var(--second-bg-color);
  color: var(--white-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 3rem;
  color: var(--white-color);
  font-weight: 700;
}

nav a {
  font-size: 2rem;
  color: var(--white-color);
  font-weight: 500;
  margin-left: 3.5rem;
  transition: 0.5s;
}

nav a:hover,
nav a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 4rem;
}

.resume-box h2 {
  margin-top: 10rem;
  color: white;
  font-size: 5rem;
  font-weight: 700;
  margin-left: 8rem;
}

.resume-box p {
  font-size: 3rem;
  margin-left: 1.3rem;
  line-height: 1.4;
}

.resume-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
}

.resume-box .resume-btn {
  width: 100%;
  height: 7rem;
  background: var(--bg-color);
  border: 0.2rem solid var(--second-bg-color);
  margin-left: 1.3rem;
  margin-top: 2rem;
  font-size: 2.5rem;
  color: var(--white-color);
  font-weight: 500;
  margin-bottom: 2rem;
  border-radius: 0.8rem;
  cursor: pointer;
}

.resume-box .resume-btn.active {
  border-color: var(--main-color);
  color: var(--main-color);
}

.resume-box .heading {
  font-size: 3.5rem;
  text-align: left;
}

.resume-box h2 span {
  color: var(--main-color);
}

.resume-detail {
  display: none;
}

.resume-detail.active {
  display: block;
}

.resume-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
  height: 45rem;
  overflow: auto;
}

.resume-list .resume-item {
  margin-top: 7rem;
  background: var(--bg-color);
  margin-right: 3rem;
  border-radius: 0.8rem;
  padding: 3rem 2.5rem;
  height: calc((45rem - 2rem) / 2);
  margin-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -3rem;
}

.resume-item .year {
  color: var(--main-color);
  text-align: center;
}

.resume-item h3 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  margin-left: 3rem;
}

.resume-item .company {
  position: relative;
  margin-left: 4rem;
  margin-bottom: 2rem;
  text-align: center;
}

.resume-item .company::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem;
  background: var(--main-color);
  border-radius: 50%;
  margin-left: -2rem;
}

.resume-list::-webkit-scrollbar {
  width: 0.7rem;
}

.resume-list::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 1rem;
}

.resume-list:hover::-webkit-scrollbar-thumb {
  background: var(--main-color);
}


.resume-detail.skills .resume-list{
  grid-template-columns: repeat(auto-fit,minmax(15rem, 1fr) 45rem/4);
  height: auto;
  overflow: visible;
}

.resume-detail.skills .resume-item{
  position: relative;
  align-items: center;
  height: auto;

}


.resume-detail.skills .resume-item i{
  font-size: 3.5rem;
  text-align: left;
  align-items: flex-start;
  transition: .5s;
}

.resume-detail.skills .resume-item:hover i{
  color: var(--main-color);
}

.resume-detail.skills .resume-item span{
  font-size: 3rem;
  position: absolute;
  top: -3%;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  pointer-events: none;
  opacity: 0;
  transform: scale(.9);
  transition: .2s;
}

.resume-detail.skills .resume-item:hover span{
  top: -6%;
  opacity: 1;
  transform: scale(1);

}


.skill-bar{
  width: 100%;
  height: 0.6rem;
  background:#2f2f2f;
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 1rem;
}

.skill-progress{
  height: 100%;
  background: var(--main-color);
  width: 0;
  border-radius: 1rem;
  transition: width .5s ease;
}

.skill-percantage{
  margin-top: 4rem;
  color: var(--main-color);
}

.resume-detail.about .resume-list{
  height: auto;
  grid-template-columns: repeat(auto-fit,minmax(25rem,1fr));
}

.resume-detail.about .resume-item{
  height: auto;
  padding: 0 0 .5rem;
  background: transparent;
}

.resume-detail.about .resume-item p{
  color: var(--main-color);
  font-size: 4rem;
  margin-left: 4rem;
}

.resume-detail.about .resume-item p span{
color: var(--white-color);
font-size: 3rem;
margin-right: -5rem;
}


  

footer .container {
  background-color: var(--bg-color);
  margin-top: 10rem;
}

footer .row {
  display: flex;
  justify-content: space-between;
  padding: 4rem 10rem;
  gap: 3rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li{
  font-size: 1.6rem;
}

.footer-col h4 {
  color: var(--white-color);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4:hover{
  color: var(--main-color);
}

.footer-col h4::before {
  content: "";
  width: 7rem;
  height: 0.2rem;
  position: absolute;
  background: var(--main-color);
  bottom: -1rem;
}

.footer-col ul li {
  padding: 1rem 0;
}

.footer-col ul li a {
  color: var(--white-color);
  text-decoration: none;
  font-size: 2rem;
  opacity: 0.7;
  transition: 0.5s;
}

.footer-col ul li a:hover {
  color: var(--main-color);
  opacity: 1.5;
}

.footer-col input {
  border: none;
  width: 25rem;
  height: 4.5rem;
  display: block;
  padding-left: 2rem;
  margin: 1.4rem 0;
  font-size: 2rem;
}

.footer-col .inputsubmit {
  padding: 0 2rem;
  background-color: var(--main-color);
  border: none;
  color: black;
  font-size: 2rem;
}

.col p {
  color: var(--white-color);
  font-size: 1.6rem;
  
}

.footer .col a {
  color: var(--white-color);
}

.row hr {
  color: var(--white-color);
}

.row .social-icons {
  border-radius: 50%;
  margin-top: -1.4rem;
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

.row .social-icons i {
  display: inline-flex;
  padding: 0.8rem;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 1.7rem;
  color: var(--main-color);
  margin: 0 0.8rem;
  transition: 0.5s;
  left: 7rem;
}

.row .social-icons i:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-line {
  border: none;
  border-top: 0.1rem solid var(--white-color);
  margin: 3rem 0;
}

.row .col p a {
  color: var(--white-color);
  margin-left: 3.9rem;
  font-size: 1.7rem;
  margin-right: 2rem;
}

.row .col p a:hover {
  color: var(--main-color);
}

.row .col {
  display: flex;
  gap: 3rem;
}

/* ================= RESPONSIVE GLOBAL ================= */

@media (max-width: 1024px) {
  html {
    font-size: 58%;
  }
}

/* ================= MOBILE NAVBAR & HEADER ================= */

@media (max-width: 900px) {

  /* Header scrolls with page */
  header {
    position: relative;
    padding: 2rem 5%;
  }

  /* Menu icon visible */
  #menu-icon {
    display: block;
    cursor: pointer;
    color: var(--white-color);
  }

  /* Navbar vertical and hidden by default */
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column; /* vertical menu */
    text-align: center;
    gap: 1rem;
    padding: 2rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
  }

  /* Show menu when active */
  nav.active {
    max-height: 500px; /* enough for all links */
  }

  /* Navbar links styling */
  nav a {
    margin: 0;
    font-size: 2.2rem;
    padding: 1rem 0;
    border-top: 0.1rem solid var(--main-color);
    transition: 0.3s;
  }

  nav a:first-child {
    border-top: none;
  }

  nav a:hover,
  nav a.active {
    color: var(--main-color);
  }
   /* FOOTER */
  footer .row {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 4rem;
  }
  /* --- Base container adjustments for mobile --- */
@media screen and (max-width: 768px) {
  .resume-container {
    flex-direction: column;
    padding: 20px;
  }

  .resume-box {
    width: 100%;
    margin-bottom: 20px;
  }

  .resume-box h2.heading,
  .resume-box h2 {
    font-size: 3rem;
  }

  .resume-box .desc {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  /* Buttons stack vertically */
  .resume-box .resume-btn {
    width: 100%;
    margin-bottom: 10px;
    font-size: 2.S4rem;
    padding: 10px 0;
  }

  /* Resume list items stack */
  .resume-detail .resume-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .resume-detail .resume-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-detail .resume-item p.year,
  .resume-detail .resume-item h3,
  .resume-detail .resume-item .company {
    font-size: 2rem;
  }

  /* Skill bars adjust for smaller screens */
  .resume-detail.skills .skill-bar {
    width: 100%;
  }

  .resume-detail.skills .skill-percantage {
    font-size: 2rem;
  }

  /* About Me list items stack */
  .resume-detail.about .resume-list {
    flex-direction: column;
    gap: 8px;
  }

  .resume-detail.about .resume-item p,
  .resume-detail.about .resume-item span {
    font-size: 0.85rem;
  }
}

/* Optional: extra small phones */
@media screen and (max-width: 480px) {
  .resume-box h2.heading,
  .resume-box h2 {
    font-size: 1.3rem;
  }

  .resume-box .desc {
    font-size: 0.85rem;
  }

  .resume-box .resume-btn {
    font-size: 0.85rem;
    padding: 8px 0;
  }
}


  .footer-col h4{
    font-size: 4rem;
  }

  .footer-col ul li {
    font-size: 3rem;
  }

  .footer-col ul li a {
    font-size: 3rem;
  }

  .footer-col input {
    width: 80%;
    font-size: 3rem;
  }
  .row .col {
    justify-content: center;
    text-align: center;
  }

  .row .col p {
    justify-content: center;
    text-align: center;
    font-size: 3rem;
  }

  .row .col p a {
    font-size: 3rem;
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons i {
    font-size: 3rem;
    margin: 0 1rem;
  }
}




/* Language select styling */
.lang-select {
  appearance: none;          /* remove default arrow */
  -webkit-appearance: none;  /* Safari/Chrome */
  -moz-appearance: none;     /* Firefox */
  background-color: var(--bg-color);
  color: var(--white-color);
  font-size: 2.5rem;
  padding: 0.8rem 2.5rem 0.8rem 1rem; /* extra right space for arrow */
  border: 0.2rem solid var(--main-color);
  border-radius: 0.6rem;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover & focus effects */
.lang-select:hover,
.lang-select:focus {
  background-color: var(--second-bg-color);
  border-color: var(--main-color);
  color: var(--main-color);
}

/* Custom arrow using pseudo-element */
.lang-select-wrapper {
  position: relative;
  display: inline-block;
}

.lang-select-wrapper::after {
  content: "\25BC"; /* downward arrow */
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--main-color);
  font-size: 2.5rem;
}

/* Optional: small screens adjustment */
@media (max-width: 900px) {
  .lang-select {
  appearance: none;          /* remove default arrow */
  -webkit-appearance: none;  /* Safari/Chrome */
  -moz-appearance: none;     /* Firefox */
  background-color: var(--bg-color);
  color: var(--white-color);
  font-size: 2.5rem;
  padding: 0.8rem 2.5rem 0.8rem 1rem; /* extra right space for arrow */
  border: 0.2rem solid var(--main-color);
  border-radius: 0.6rem;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover & focus effects */
.lang-select:hover,
.lang-select:focus {
  background-color: var(--second-bg-color);
  border-color: var(--main-color);
  color: var(--main-color);
}

/* Custom arrow using pseudo-element */
.lang-select-wrapper {
  position: relative;
  display: inline-block;
}

.lang-select-wrapper::after {
  content: "\25BC"; /* downward arrow */
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--main-color);
  font-size: 2.5rem;

  }
}

 


