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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

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

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  z-index: 1000;
}

.logo {
  font-size: 3rem;
  font-weight: 800;
  color: #b74b4b;
  transition: 0.4s;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.1);
}

nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  border-bottom: 3px solid #b74b4b;
}

/* === SECTIONS === */
section {
  min-height: 100vh;
  padding: 6rem 9% 5rem;
}

/* === HOME SECTION === */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  flex-wrap: wrap;
}

.home-img img {
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px #b74b4b;
  cursor: pointer;
  transition: 0.3s;
}

.home-img img:hover {
  transform: scale(1.05);
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
}

.home-content h3 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

span {
  color: #b74b4b;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

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

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  z-index: 1000;
}

.logo {
  font-size: 3rem;
  font-weight: 800;
  color: #b74b4b;
  transition: 0.4s;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.1);
}

nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  border-bottom: 3px solid #b74b4b;
}

/* === SECTIONS === */
section {
  min-height: 100vh;
  padding: 6rem 9% 5rem;
}

/* === HOME SECTION === */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  flex-wrap: wrap;
}

.home-img img {
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px #b74b4b;
  cursor: pointer;
  transition: 0.3s;
}

.home-img img:hover {
  transform: scale(1.05);
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
}

.home-content h3 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

span {
  color: #b74b4b;
}

.typing-text {
  font-size: 3.4rem;
  font-weight: 600;
  min-height: 4rem;
  margin-bottom: 2rem;
}

.typing-text span {
  position: relative;
}

.typing-text span::before {
  content: "Programistą";
  color: #b74b4b;
  animation: words 6s infinite;
}

.typing-text span::after {
  content: '';
  position: absolute;
  background-color: #000;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid #b74b4b;
  right: -8px;
  animation: cursor 0.6s infinite;
}

@keyframes cursor {
  to {
    border-left: 3px solid transparent;
  }
}

@keyframes words {
  0%, 33% { content: "Programistą"; }
  34%, 66% { content: "Developerem"; }
  67%, 100% { content: "Freelancerem"; }
}

.home-content p {
  font-size: 1.6rem;
  max-width: 600px;
}

/* === SOCIAL ICONS === */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s;
  color: #b74b4b;
}

.social-icons a:hover {
  background-color: #b74b4b;
  color: #000;
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px #b74b4b;
}

/* === BUTTON === */
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  border-radius: 4rem;
  background-color: #000;
  color: #b74b4b;
  border: 2px solid #b74b4b;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.3rem;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: #b74b4b;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 25px #b74b4b;
}

/* === PORTFOLIO === */
.portfolio {
  background-color: #111;
  text-align: center;
}

.portfolio h1 {
  font-size: 4rem;
  margin-bottom: 4rem;
  color: #fff;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.project {
  padding: 2rem;
  background-color: #1a1a1a;
  border-radius: 1.2rem;
  transition: 0.3s;
}

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

.project h3 {
  font-size: 2rem;
  color: #b74b4b;
  margin-bottom: 1rem;
}

.project p {
  font-size: 1.4rem;
  color: #ccc;
}

/* === CONTACT === */
.contact {
  background-color: #000;
  text-align: center;
}

.contact h1 {
  font-size: 4rem;
  margin-bottom: 4rem;
}

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

form input,
form textarea {
  padding: 1.2rem;
  font-size: 1.6rem;
  background-color: #111;
  color: #fff;
  border: 2px solid #b74b4b;
  border-radius: 0.8rem;
  resize: vertical;
}

form button {
  background-color: #b74b4b;
  color: #000;
  padding: 1rem;
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background-color: #fff;
  color: #b74b4b;
}

/* === MEDIA QUERIES === */
@media (max-width: 995px) {
  header {
    padding: 1rem 5%;
  }

  nav a {
    margin-left: 2rem;
  }

  .home {
    flex-direction: column;
    text-align: center;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-content h3 {
    font-size: 2.8rem;
  }

  .typing-text {
    font-size: 2.5rem;
  }
}
.typing-text span {
  position: relative;
}


.home-content p {
  font-size: 1.6rem;
  max-width: 600px;
}

/* === SOCIAL ICONS === */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s;
  color: #b74b4b;
}

.social-icons a:hover {
  background-color: #b74b4b;
  color: #000;
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px #b74b4b;
}

/* === BUTTON === */
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  border-radius: 4rem;
  background-color: #000;
  color: #b74b4b;
  border: 2px solid #b74b4b;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.3rem;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: #b74b4b;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 25px #b74b4b;
}

/* === PORTFOLIO === */
.portfolio {
  background-color: #111;
  text-align: center;
}

.portfolio h1 {
  font-size: 4rem;
  margin-bottom: 4rem;
  color: #fff;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.project {
  padding: 2rem;
  background-color: #1a1a1a;
  border-radius: 1.2rem;
  transition: 0.3s;
}

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

.project h3 {
  font-size: 2rem;
  color: #b74b4b;
  margin-bottom: 1rem;
}

.project p {
  font-size: 1.4rem;
  color: #ccc;
}

/* === CONTACT === */
.contact {
  background-color: #000;
  text-align: center;
}

.contact h1 {
  font-size: 4rem;
  margin-bottom: 4rem;
}

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

form input,
form textarea {
  padding: 1.2rem;
  font-size: 1.6rem;
  background-color: #111;
  color: #fff;
  border: 2px solid #b74b4b;
  border-radius: 0.8rem;
  resize: vertical;
}

form button {
  background-color: #b74b4b;
  color: #000;
  padding: 1rem;
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background-color: #fff;
  color: #b74b4b;
}

/* === MEDIA QUERIES === */
@media (max-width: 995px) {
  header {
    padding: 1rem 5%;
  }

  nav a {
    margin-left: 2rem;
  }

  .home {
    flex-direction: column;
    text-align: center;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-content h3 {
    font-size: 2.8rem;
  }

  .typing-text {
    font-size: 2.5rem;
  }
}
