* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #D567DA;
    --main-color: #fff;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--main-color);
    padding-bottom: 6rem;
    overflow-y: auto;
}

section {
    min-height: 200;
    padding: 5rem 9% 6rem;
    margin: 0;
}

.experience {
   min-height: 200;
   display: flex;
   justify-content: center;
   padding: 5rem 1rem 1rem 0.5rem;
   margin: 0;

   .experience-content h3 {
       font-size: 5.6rem;
       font-weight: 700;
       line-height: 1.3;
       text-align: center;
   }
}

.skills {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: -11rem;
}

.skill-content {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.skill-rectangle {
    background-color: var(--second-bg-color);
    color: var(--text-color);
    padding: 20px;
    font-size: 18px;
    margin: 6px;
    text-align: center;
    border-radius: 8px;
    flex: 1;
    transition: background-color 0.3s ease;
}

.skill-rectangle:hover {
    background-color: var(--text-color);
    color: var(--second-bg-color);
}

.about-content {
  display: flex;
  align-items: center;
  flex-direction: center;
  text-align: left;
  margin-top: 10rem;
  justify-content: center;
}

.about-content h1 {
    font-size: 2rem;
    font-weight: 500;
}

.about-content h3 {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.about-content {
  display: flex;
  align-items: center;
  text-align: left;
  margin-top: 10rem;
  justify-content: center;
}

.about-content {
  display: flex;
  align-items: center;
  text-align: left;
  margin-top: 10rem;
  justify-content: center;
}

.about-me-photo {
  max-width: 200px;
  height: auto;
  margin-right: 30px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.about-me-photo img {
  width: 100%;
  height: auto;
  border: 5px solid white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  transform: scale(1.1) translateX(-10px) translateY(15px);
}

.about-me-photo:hover img {
  transform: scale(1.0) translateX(-10px) translateY(15px);
}

.about-me-text {
  flex: 1 1 auto;
  max-width: 850px;
  margin-left: 40px;
  margin-bottom: 50px;
}

@media (max-width: 600px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
  }

  .about-me-photo {
    max-width: 150px;
    margin-bottom: 75px;
  }

  .about-me-text {
    margin-left: 0;
  }
}

.project-section {
    z-index: 10;
	padding: 4rem 20% 1rem;
}

.project-content h1 {
    font-size: 2rem;
    font-weight: 500;
}

.project-content h3 {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.project-content a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: green;
    padding: 5px 30px;
    font-size: 18px;
    margin-top: 20px;
    border-radius: 6px;
}

.project-content a:hover {
    background: darkgreen;
}

.project-content li {
    list-style: none;
    margin: 0px 25px;
    display: inline-block;
    align-items: center;
    font-size: 25px;
    padding: 30px 30px;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 100%;
    transition: .5s;
}

.project-content li:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);
    transition: .5s;
}


.home {
    display: flex;
    justify-content: center;
}

.home-content h1,
.media-content h1,
.contact-content h1 {
    font-size: 2rem;
    font-weight: 500;
}

.home-content h3,
.media-content h3,
.contact-content h3 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.home-content a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: green;
    padding: 5px 30px;
    font-size: 18px;
    margin-top: 20px;
    border-radius: 6px;
}

.home-content li,
.media-content li {
    list-style: none;
    margin: 0px 25px;
    display: inline-block;
    align-items: center;
    font-size: 25px;
    padding: 30px 30px;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 100%;
    transition: .5s;
}

.home-content li:hover,
.media-content li:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);
    transition: .5s;
}

.contact {
    display: flex;
    justify-content: center;
}

.media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-content a {
    color: #ffffff;
}

.contact {
    display: flex;
    justify-content: center;
}

.centered-and-cropped {
    object-fit: cover
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--second-bg-color);
  color: var(--main-color);
  text-align: center;
  z-index: 2;
  transition: padding 0.3s ease-in-out;
  box-sizing: border-box;
}

.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: #ffffff;
}

.footer .social a {
  font-size: 15px;
  color: #fff;
  border: 2px solid #ccc;
  width: 40px;
  height: 40px;
  line-height: 38px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 8px;
  opacity: 0.75;
}

.footer .social a:hover {
  opacity: 0.9;
}

.footer ul {
  margin-top: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
  margin-bottom: 0; 
  text-align: center;
}

.footer ul a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
  font-size: 12px;
}

.footer ul li a:hover {
  opacity: 1;
}

.footer .list {
  margin-bottom: 15px;
}

.footer.is-scrolling {
  padding: 1rem 9%;
}

.footer.is-scrolling .list {
  display: none;
}

.footer.is-scrolling .social {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form h2 {
  margin-top: 0;
  font-size: 24px;
  color: #333;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #000000;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.contact-form textarea {
  height: 120px;
}

.contact-form button[type="submit"] {
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 10px;
}

.contact-form button[type="submit"]:hover {
  background-color: #555;
}

.github-api-section {
    z-index: 10;
}

.github-api-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
}

.github-api-section h3 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
}

header {
  color: #FFF;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  transition: padding 0.3s, opacity 0.3s;

  &.is-scrolling {
    padding-top: 16px;
    padding-bottom: 16px;
    opacity: 0;
  }

  .container {
    padding-top: 32px;
    padding-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    h2 {
      color: inherit;
      text-transform: uppercase;
      font-size: 32px;
      font-weight: 900;

      span {
        font-weight: 600;
      }
    }

    nav {
      display: grid;
      grid-gap: 16px;
      grid-template-columns: repeat(5, auto);

      @media (max-width: 767px) {
        display: none;
      }

      a {
        color: inherit;
        font-size: 20px;
        text-decoration: none;
      }
    }
  }
}

.container {
	width: 100%;
	max-width: ;
	margin: 0 auto;
	padding-left: 128px;
	padding-right: 128px;

	@media (max-width: 1024px) {
		padding-left: 64px;
		padding-right: 64px;
	}

	@media (max-width: 767px) {
		padding-left: 32px;
		padding-right: 32px;
	}
}

.logo {
    font-size: 2.5rem;
    font-weight: 600;
    cursor: default;
    color: var(--main-color);
}

.hamburger {
	position: relative;
	display: block;
	width: 35px;
	cursor: pointer;
	
	appearance: none;
	background: none;
	outline: none;
	border: none;
}

.hamburger .bar, .hamburger:after, .hamburger:before {
	content: '';
	display: block;
	width: 100%;
	height: 5px;
	background-color: #FFF;
	margin: 6px 0px;
	transition: 0.4s;
}

.hamburger.is-active:before {
	transform: rotate(-45deg) translate(-8px, 6px);
}

.hamburger.is-active:after {
	transform: rotate(45deg) translate(-9px, -8px);
}

.hamburger.is-active .bar {
	opacity: 0;
}

.mobile-nav {
	position: fixed;
	top: 0;
	left: 100%;
	width: 100%;
	min-height: 100vh;
	display: block;
	z-index: 98;
	background-color: #0E141D;
	padding-top: 120px;
	transition: 0.4s;
}

.mobile-nav.is-active {
	left: 0;
}

.mobile-nav a {
	display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px; 
	width: 100%;
  border-radius: 12px; 
	max-width: 200px;
	margin: 0 auto 16px;
	text-align: center;
	padding: 12px 16px;

	color: #FFF;
	text-decoration: none;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav a {
    font-size: 1.7rem;
    color: var(--main-color);
    margin-right: 4rem;
    transition: .3s;
}

.desktop-nav a:last-child {
    margin-right: 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    font-weight: bold;
    color: var(--text-color);
}  

.mobile-nav a:active,
.mobile-nav a:hover {
  font-weight: bold;
	background-color: var(--text-color);
}

@media (min-width: 768px) {
	.mobile-nav {
		display: none;
	}

	.hamburger {
		display: none;
	}
}

@media (max-width: 767px) {
    .desktop-nav {
      display: none;
    }

    .mobile-nav {
        display: block;
    }

    .mobile-nav a{
        display: block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .skills {
        flex-direction: column;
        margin-bottom: 0; /* Remove margin on mobile */
    }

    .skill-content {
        flex-direction: column;
    }

    .skill-rectangle {
        margin: 5px 0; /* Adjust vertical spacing between skill rectangles on mobile */
    }
}

section {
	h2 {
		text-align: center;
		margin-bottom: 32px;
		text-transform: uppercase;

		color: #313131;
		font-size: 36px;
	}
}

.button {
	appearance: none;
	border: none;
	outline: none;
	background: none;

	display: inline-block;
	color: #FFF;
	font-size: 20px;
	background-color: #FF9FDB;
	padding: 12px 16px;
	border-radius: 8px;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 700;
	cursor: pointer;

	@media (max-width: 767px) {
		font-size: 18px;
	}
}

.last-section {
  margin-bottom: 25rem;
}

.fade-background {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)), url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?ixlib=rb-4.0.3');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

