@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&family=Roboto:wght@100;300;400&display=swap");

:root {
  --primary-color: #f9532d;
  --primary-dark: #1f252e;
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
}
/* Genral */
.container {
  padding: 0 8.4rem;
}

.img-w {
  width: 100%;
}
/* Nav */
header {
  position: relative;
  box-shadow: 0 4px 17px rgba(0, 0, 0, 0.1);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  opacity: 0;
  animation: leftSideAni 1s ease forwards;
}

.logo a {
  color: #244d61;
  text-decoration: none;
}

ul {
  display: flex;
  gap: 0.6rem;
  list-style-type: none;
  background-color: transparent;
  overflow: hidden;
}

li a {
  display: inline-block;
  padding: 0.3rem 1rem;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.7px;
  border-radius: 36px;
  line-height: 2;
  transition: 0.3s;
  opacity: 0;
  animation: navani 0.3s ease forwards;
  animation-delay: calc(0.15s * var(--navAni));
}

li a.active,
li a:hover {
  color: var(--primary-color);
}

#click {
  display: none;
}

.menu {
  display: none;
}

/* Nav End */

/* Section 1 */
.mode i {
  font-size: 1.4rem;
  cursor: pointer;
  /* color: var(--primary-color); */
  color: #244d61;
  opacity: 0;
  animation: rightSideAni 1.5s ease forwards;
}

.main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(277px, 1fr));
  row-gap: 2rem;
  align-items: center;
}
.main .hero-h3 {
  font-size: 1.5rem;
  opacity: 0;
  animation: topSideAni 1s ease forwards;
}
.main .hero-h1 {
  font-size: 4rem;
  font-weight: 600;
  opacity: 0;
  animation: leftSideAni 0.5s ease forwards;
  animation-delay: 0.5s;
}

.main .hero-p {
  line-height: 1.7;
  font-size: 1.15rem;
  opacity: 0;
  animation: topSideAni 1.5s ease forwards;
}
.main .hero-typed {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0;
  animation: topSideAni 1s ease forwards;
  animation-delay: 0.4s;
  margin-bottom: 5px;
}
.main .hero-typed span {
  color: orange;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.7rem;
}

.social a {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #244d61;
  font-size: 1.5rem;
  border: 1.6px solid #244d61;
  border-radius: 50%;
  padding: 0.39rem;
  text-align: center;
  opacity: 0;
  animation: SocialAni 1s ease forwards;
  animation-delay: calc(0.2s * var(--socialAni));
}

.social a:hover {
  color: #fff;
  background-color: #244d61;
  box-shadow: 0 0 20px #244d61;
  transition: all 0.3s ease-in-out;
}
.images img {
  position: relative;
  z-index: 99;
}

.images::before {
  content: "";
  position: absolute;
  width: 100%;
  height: calc(100% - 130px);
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 6px;
}

.images::before {
  clip-path: polygon(
    20% 0%,
    0% 20%,
    30% 50%,
    0% 80%,
    20% 100%,
    50% 70%,
    80% 100%,
    100% 80%,
    70% 50%,
    100% 20%,
    80% 0%,
    50% 30%
  );

  background: linear-gradient(145deg, #e2e8ec, #ffffff);
  box-shadow: 5px 5px 15px #d1d9e6, -5px -5px 15px #ffffff;
}

.images {
  width: 80%;
  margin-left: auto;
  position: relative;
  z-index: -1;
}
.images {
  opacity: 0;
  animation: imageAni 0.4s ease forwards;
  animation-delay: 0.5s;
}

/* Section 1 End */

/* about start */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.about-container {
  background-color: #dddddd4b;
  color: #000000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10rem 2rem;
}

.profile-container {
  max-width: 1200px;
  width: 100%;
}

.hero-section {
  display: flex;
  flex-direction: row;
  margin-bottom: 3rem;
}

.info-section {
  flex: 1;
  padding-right: 2rem;
}

.skills-section {
  flex: 1;
}

.title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.title span {
  color: #e91e63;
}

.description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000000;
  margin-bottom: 2rem;
  max-width: 600px;
}

.stats {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #e91e63;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-item {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(20px);
  animation: slideIn 0.5s forwards;
}

.skill-item:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-item:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-item:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-item:nth-child(4) {
  animation-delay: 0.4s;
}
.skill-item:nth-child(5) {
  animation-delay: 0.5s;
}
.skill-item:nth-child(6) {
  animation-delay: 0.6s;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  transition: width 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.html-css {
  background: linear-gradient(90deg, #ffa807, #cf9008);
}
.js {
  background: linear-gradient(90deg, #ffe607, #ddc704);
}

.react {
  background: linear-gradient(90deg, #61dafb, #00c8ff);
}

.next {
  background: linear-gradient(90deg, #30282b, #0000008e);
}

.typescript {
  background: linear-gradient(90deg, #5a0ae4, #1627c0);
}

.express {
  background: linear-gradient(90deg, #7e57c2, #b39ddb);
}

.tabs-section {
  margin-top: 4rem;
}

.tabs-nav {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(58, 58, 58, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tab-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  color: #242424;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn:hover {
  color: #6b6b6b;
}

.tab-btn.active {
  color: #000000;
  font-weight: 500;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ecd712;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Languages Tab */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.language-item {
  color: #000000;
  display: flex;
  align-items: center;
  background-color: rgba(216, 216, 216, 0.6);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.language-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.language-icon {
  width: 40px;
  height: 40px;
  /* background-color: #e91e63; */
  background-color: #ecd712;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.language-info h4 {
  margin-bottom: 0.5rem;
}

.language-level {
  font-size: 0.85rem;
  color: #999;
}

/* Technologies Tab */
.tech-categories {
  margin-bottom: 2rem;
}

.tech-category {
  margin-bottom: 2rem;
}

.tech-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

.tech-category h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #e91e63;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.tech-item {
  /* background-color: rgba(30, 30, 30, 0.6); */
  background-color: rgba(216, 216, 216, 0.6);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  /* transition: transform 0.3s; */
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.tech-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.tech-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  fill: #e91e63;
}

.tech-name {
  font-size: 0.9rem;
}

/* Experience Tab */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #e91e63;
  border: 3px solid #121212;
}

.timeline-date {
  font-size: 0.9rem;
  color: #e91e63;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-company {
  font-size: 1rem;
  color: #999;
  margin-bottom: 1rem;
}

.timeline-description {
  color: #b3b3b3;
  line-height: 1.6;
}

/* Education Tab */
.education-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.education-item {
  /* background-color: rgba(30, 30, 30, 0.6); */
  background-color: rgba(216, 216, 216, 0.6);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

.education-item:hover {
  transform: translateY(-5px);
}

.education-date {
  font-size: 0.9rem;
  color: #ffa500;
  margin-bottom: 0.5rem;
}

.education-degree {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.education-school {
  font-size: 1rem;
  color: #999;
  margin-bottom: 1rem;
}

.education-description {
  color: #696969;
  line-height: 1.6;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
  }
  .main .hero-h1 {
    font-size: 2.2rem;
    font-weight: 600;
    opacity: 0;
    animation: leftSideAni 0.5s ease forwards;
    animation-delay: 0.5s;
  }
  .main .hero-p {
    line-height: 1.7;
    font-size: 0.9rem;
    opacity: 0;
    text-align: justify;
    animation: topSideAni 1.5s ease forwards;
  }
  .main .hero-typed {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    animation: topSideAni 1s ease forwards;
    animation-delay: 0.4s;
    margin-bottom: 5px;
  }

  .info-section {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .stats {
    max-width: 100%;
  }
  .tabs-nav {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
  }
  .description {
    font-size: 1rem;
    line-height: 1.8;
    color: #b3b3b3;
    margin-bottom: 2rem;
    max-width: 600px;
  }
}

/* about end */

/* Dark Mode */

.dark-mode {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.mode input {
  display: none;
}

:is(.dark-mode) {
  .mode i {
    color: var(--primary-color);
    /* color: #fff; */
  }
  .social a {
    color: var(--primary-color);
    border: 1.6px solid var(--primary-color);
  }

  .social a:hover {
    color: var(--primary-dark);
    background-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
  }

  .logo a {
    color: #fff;
  }

  .about-container {
    background-color: #0000004b;
    color: #ffff;
  }
  .description {
    color: #b3b3b3;
  }

  .language-item {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: rgba(109, 109, 109, 0.6);
    /* background-color: #000000; */
  }

  .language-icon {
    background-color: #e91e63;
  }

  .tab-btn {
    color: #999;
  }

  .tab-btn:hover {
    color: #fff;
  }

  .tab-btn.active {
    color: #fff;
  }

  .tab-btn.active::after {
    background-color: #e91e63;
  }

  .tabs-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .images::before {
    background: linear-gradient(145deg, #1f252e, #2e3239);
    box-shadow: 10px 10px 19px #1c1e22, -10px -10px 19px #1b1f27;
  }

  .tech-category h3::before {
    background-color: #e91e63;
  }

  .tech-item {
    background-color: rgba(109, 109, 109, 0.6);
    /* background-color: rgba(30, 30, 30, 0.6); */
  }

  .tech-icon {
    fill: #e91e63;
  }

  .education-item {
    background-color: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .education-date {
    color: #e91e63;
  }

  .education-school {
    color: #999;
  }

  .education-description {
    color: #b3b3b3;
  }
}

.dark-mode header {
  box-shadow: 0 4px 17px rgb(80 80 80 / 31%);
  background: var(--primary-dark);
}

/* Animation */
@keyframes leftSideAni {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes navani {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes rightSideAni {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes topSideAni {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes SocialAni {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* @keyframes ImgAni {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-9px);
    }
    100% {
        transform: translateX(0);
    }
} */
@keyframes imageAni {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media screen and (max-width: 1024px) {
  .container {
    padding: 0 4.4rem;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 1.6rem;
  }
}

@media screen and (max-width: 600px) {
  header {
    height: auto;
  }

  ul {
    background: #fff;
    width: 100%;
    height: 100vh;
    position: absolute;
    display: flex;
    flex-direction: column;
    text-align: center;
    top: 3.4rem;
    left: -100%;
    z-index: 111111;
  }

  .menu {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #244d61;
  }

  #click:checked ~ ul {
    left: 0%;
    transition: all 0.3s ease;
  }

  .dark-mode .menu {
    color: var(--primary-color);
  }

  .dark-mode ul {
    background: var(--primary-dark);
  }

  .mode {
    position: absolute;
    right: 4rem;
  }

  .images {
    width: 100%;
    margin: auto;
  }

  .main {
    margin-top: 2rem;
  }
}
