:root {
  --color-primary: #00FF00;
  --color-primary-dark: #00CC00;
  --color-bg-primary: #242424;
  --color-bg-secondary: #1a1a1a;
  --color-white: #ffffff;
  --color-text: #676767;
  --color-border: #373737;

  --ff-body: "Poppins", sans-serif;
  --fs-sm: 1.4rem;
  --fs-md: 1.6rem;
  --fs-lg: 2rem;
  --fs-xl: 2.4rem;
  --fs-xxl: 3.2rem;
  --fs-biggest: clamp(3rem, 8vw, 5rem);
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --zindex-menu: 1000;
  --zindex-fixed: 1010;

  --width-container: 98rem;
  --height-header: 10rem;
  --height-header--scroll: 8rem;

  --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  --box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
  color: var(--color-white);
  font-weight: var(--fw-bold);
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
ul,
p {
  margin: 0;
  padding: 0;
}

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: var(--color-text);
}

main {
  overflow: hidden;
}

body {
  background-color: var(--color-bg-primary);
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  color: var(--color-text);
  margin-top: var(--height-header);
  line-height: 1.2;
}

.container {
  width: 90%;
  max-width: var(--width-container);
  margin: auto;
}

/* Sections */
.section {
  min-height: 100vh;
  padding: 1rem 0;
}

.section__header {
  margin: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding: 20px;
}

.section__title {
  font-size: var(--fs-xl);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  position: relative;
}

.section__subtitle::after {
  position: absolute;
  content: "";
  width: 50%;
  height: 0.5rem;
  background-color: var(--color-primary);
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.d-grid {
  display: grid;
  gap: 3rem;
}

/* Button */
.btn {
  display: inline-block;
  border-radius: 2px;
  padding: 1.5rem 4rem;
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  transition: var(--transition);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  transition: transform 0.3s ease;
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* Header */
.header {
  background-color: var(--color-bg-primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  height: var(--height-header);
  z-index: var(--zindex-menu);
  transition: var(--transition);
}

.header--scroll {
  height: var(--height-header--scroll);
  box-shadow: var(--box-shadow);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav__brand {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.nav__brand i {
  color: var(--color-white);
}

.nav__list {
  display: flex;
  column-gap: 4rem;
}

.nav__link {
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__toggle {
  display: none;
  font-size: var(--fs-xl);
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition);
}

.nav__toggle:hover {
  color: var(--color-primary);
}

@media screen and (max-width: 968px) {
  .nav__list {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 4rem;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg-primary);
    display: none;
    justify-content: center;
    transition: var(--transition);
  }

  .nav__menu--open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__brand,
  .nav__toggle {
    z-index: var(--zindex-fixed);
  }
}

/* Hero */
.hero__wrapper {
  min-height: calc(100vh - var(--height-header));
  padding: 5rem 0;
}

.hero__content {
  text-align: center;
}

.hero__title {
  font-size: var(--fs-biggest);
  margin-bottom: 5rem;
  position: relative;
}

.hero__title::after {
  position: absolute;
  content: "";
  background-color: var(--color-primary);
  width: 10rem;
  height: 0.5rem;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: 12px 12px 16px rgba(0, 255, 0, 0.8);
}


.hero__info {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5rem;
}

.hero__info-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--color-text);
}

@media screen and (max-width: 968px) {
  .hero__img {
    width: 280px;
    justify-self: center;
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--color-bg-primary);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.about__wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  justify-content: center;
  align-items: center;
}

.about__content {
  max-width: 70rem;
  text-align: center;
}

.about__title {
  font-size: var(--fs-xl);
  margin-bottom: 2rem;
  color: var(--color-white);
}

.about__description {
  font-size: var(--fs-md);
  color: var(--color-text);
  line-height: 1.6;
}
/* Education  Section */

.education {
  background-color: var(--color-bg-secondary);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 5rem 0;
}

.about__skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about__skill {
  background-color: var(--color-bg-primary);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  text-align: center;
  color: var(--color-white);
  transition: transform 0.3s ease;
}

.about__skill:hover {
  transform: translateY(-10px);
}

.about__skill-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-top: 1rem;
}

.about__skill-description {
  font-size: var(--fs-sm);
  color: var(--color-text);
  margin-top: 1rem;
}

.about__skill i {
  font-size: 3rem;
  color: var(--color-primary);
}

.social__wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.social__list {
  display: flex;
  gap: 1rem;
}

.social__link {
  font-size: 3rem;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.social__link:hover {
  color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  .about__skills {
    grid-template-columns: 1fr;
  }
}

/* Skill */
.skills {
  padding: 5rem 0;
}

.skills__wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.skills__content {
  background-color: var(--color-bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.skills__subtitle {
  font-size: var(--fs-lg);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.skills__list {
  list-style-type: none;
  padding: 0;
}

.skills__item {
  font-size: var(--fs-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  color: var(--color-white);
}

.skills__item i {
  margin-right: 1rem;
  font-size: 2rem;
  color: var(--color-primary);
}

.skills__item:hover {
  color: var(--color-primary);
  transition: color 0.3s ease;
}

@media screen and (max-width: 768px) {
  .skills__wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 560px) {
  .skills__wrapper {
    grid-template-columns: 1fr;
  }
}

/* Project */
.project {
  padding: 5rem 0;
  background-color: var(--color-bg-secondary);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.project__subtitle {
  font-size: var(--fs-lg);
  margin-bottom: 1rem;
  color: var(--color-white);
}
.project__content {
  width: 100%;
  max-width: 30rem;
  justify-self: center;
}

.project__img {
  margin-bottom: 2rem;
}

.project__title {
  color: var(--color-white);
  font-size: var(--fs-lg);
  margin-bottom: 1rem;
}

.project__description {
  margin-bottom: 2rem;
}

.project__link {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  color: var(--color-white);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  transition: var(--transition);
}
.project__list {
  list-style-type: circle;
  padding: 0;
}

.project__link:hover {
  color: var(--color-primary);
  column-gap: 1rem;
}

/* Footer */
.footer {
  background-color: var(--color-bg-secondary);
  padding: 1rem 0;
}

.copyright {
  font-size: var(--fs-sm);
  text-align: center;
  padding-top: 1rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 1rem;
  border-radius: 0.5rem;
  background-color: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-text);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary);
}

/* Small */
@media screen and (min-width: 560px) {
  .service__wrapper {
    grid-template-columns: repeat(2, 250px);
    justify-content: center;
  }

  .project__wrapper {
    grid-template-columns: repeat(2, 250px);
    justify-content: center;
  }
}

/* Medium */
@media screen and (min-width: 768px) {
  .hero__wrapper {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .hero__content {
    text-align: initial;
  }

  .hero__title::after {
    transform: none;
    left: 0;
  }

  .hero__info {
    justify-content: initial;
  }

  .hero__img {
    justify-self: flex-end;
    border-radius: 50%;           
    object-fit: cover;       
    display: block;
  }
}

/* Large */
@media screen and (min-width: 968px) {
  .about__wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__content {
    margin: 0;
  }

  .about__content,
  .skills__title {
    text-align: initial;
  }
  .project__wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .service__wrapper{
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .contact__content {
    margin: 0;
    text-align: initial;
  }
}