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

* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.spacer {
  margin-bottom: 32px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #004a99;
}

html {
  scroll-behavior: smooth;
}

body {
  animation: fadeIn 0.6s ease-in-out;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background 0.25s ease, color 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section-title {
  text-align: center;
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--title-light);
  margin-bottom: 8px;
}

.section-title span {
  color: var(--primary-hover);
}

.dark-mode .section-title {
  color: var(--title-dark);
}
.section-title span {
  color: var(--primary-hover);
}

.section-divider {
  width: 164px;
  height: 4px;

  margin: 0 auto 32px;

  border-radius: 999px;

  background: var(--section-divider-light);
  transition: background 0.25s ease;
}

.section-divider.sm {
  width: 56px;
  height: 3px;
}

.section-divider.lg {
  width: 120px;
  height: 5px;
}

.main-header {
  width: 100%;
  display: flex;
  position: fixed;
  top: 0;
  z-index: 20;
  height: 8vh;

  background: var(--header-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;

  transition: background 0.25s ease, box-shadow 0.25s ease;

  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.logo {
  text-decoration: none;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.6em;
  transition: color 0.25s ease;
}

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

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

.navigation a {
  position: relative;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 1.15em;
  padding: 6px 24px;
  transition: color 0.25s ease;
}

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

.navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-hover);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.navigation a:hover::after {
  width: 70%;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: start;
}

#checkbox {
  display: none;
}

.toggle {
  display: none;
  position: relative;
  width: 22px;
  height: 22px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 16px;

  gap: 5px;
  transition: transform 0.35s ease;
}

.bars {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: transform 0.35s ease, width 0.35s ease,
    background-color 0.35s ease;
}

#bar2 {
  transition: transform 0.35s ease, width 0.35s ease,
    background-color 0.35s ease;
}

#bar1,
#bar3 {
  width: 65%;
}

#checkbox:checked + .toggle .bars {
  position: absolute;
  background-color: #ff3b3b;
}

#checkbox:checked + .toggle #bar2 {
  transform: scaleX(0);
}

#checkbox:checked + .toggle #bar1 {
  width: 100%;
  transform: rotate(45deg);
}

#checkbox:checked + .toggle #bar3 {
  width: 100%;
  transform: rotate(-45deg);
}

#checkbox:checked + .toggle {
  transform: rotate(180deg);
}

.main-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;

  background: var(--section-light);
  background-size: 400% 400%;
  animation: gradientFlow 16s ease infinite;

  color: #ffffff;
  padding: 100px 10%;
  width: 100%;
  min-height: 100vh;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.content-row-holder {
  flex: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.text-content {
  flex: 2;
}

.main-section h2 {
  font-size: 1.2em;
  font-weight: 500;
}

.main-section h2 .software-engineer {
  display: inline-block;
  margin-top: 12px;
  font-size: 2.5em;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-hover), #4da3ce);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.my-name {
  display: inline-block;
  font-family: monospace;
  font-size: 2em;
  font-weight: 600;

  width: 22ch;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--accent);

  animation: typing 5s steps(22) infinite, blink 0.8s step-end infinite;
}

.title {
  font-size: 20px;
  color: #ccc;
}

@keyframes typing {
  0% {
    width: 0;
  }
  50% {
    width: 22ch;
  }
  100% {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.main-section h3 {
  margin-top: 16px;
  font-size: 1.5em;
  font-weight: 500;
  text-align: left;
  margin-bottom: 32px;
}

.image-content img {
  max-width: 520px;
  width: 100%;
  transition: transform 0.25s ease;
}

.image-content img:hover {
  transform: scale(1.05) rotate(2deg);
}

.social-icons {
  display: inline-flex;

  gap: 22px;
}

.social-icons a {
  text-decoration: none;
  color: #c7c7c7;
  font-size: 2em;
}

.social-icons a i {
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease,
    color 0.3s ease;
}

.social-icons:hover a i {
  filter: blur(2px);
  opacity: 0.35;
}

.social-icons a:hover i {
  filter: none;
  opacity: 1;
  color: var(--primary-hover);
  transform: scale(1.125);
}

@media (max-width: 1024px) {
  .main-section h3 {
    font-size: 1.15em;
    text-align: justify;
    font-weight: normal;
  }
  .image-content img {
    width: 420px;
  }
  .main-section h2 {
    font-size: 1em;
  }
  .navigation a {
    font-size: 1.35em;
    padding: 2px 8px;
  }
}

@media (max-width: 900px) {
  .content-row-holder {
    flex-direction: column;
    text-align: center;
  }

  .text-content {
    width: 100%;
  }

  .image-content img {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .spacer {
    margin-bottom: 0;
  }
  .section-divider {
    width: 64px;
    height: 3px;
    margin-bottom: 40px;
  }
  .main-header {
    padding: 10px 6%;
  }
  .toggle {
    display: flex;
  }

  .navigation {
    position: absolute;

    top: 8vh;
    left: 0;
    width: 100vw;
    background: var(--header-light);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: start;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    padding: 8px 6%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.165);
  }

  .navigation.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navigation a {
    font-size: 1em;
    padding: 12px 0;
  }

  .dark-mode .navigation {
    background: var(--header-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .content-row-holder {
    flex-direction: column;
    text-align: left;
    padding-top: 32px;
  }

  .image-content img {
    display: none;
  }
}

@media (max-width: 480px) {
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
  }

  .spacer {
    margin-bottom: 0px;
  }
  .logo {
    font-size: 1.2rem;
  }

  .main-section h2 .software-engineer {
    font-size: 1.25em;
  }
  .my-name {
    font-size: 1em;
  }
  .main-section h3 {
    font-size: 0.825em;
    text-align: justify;
    font-weight: normal;
  }

  .main-btn {
    padding: 0.5em 2em;
    font-size: 1em;
  }
  .social-icons {
    text-align: center;
  }
  .social-icons a {
    font-size: 1.25em;
  }

  .image-content img {
    display: none;
  }
  .section-divider {
    width: 52px;
  }
}

.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

.dark-mode .main-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--header-dark);
}

.dark-mode .logo {
  color: #ffffff;
}

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

.dark-mode .navigation a {
  color: #dddddd;
}

.dark-mode .navigation a:hover {
  color: var(--accent);
}

.dark-mode .navigation a::after {
  background-color: var(--accent);
}

.dark-mode .main-section {
  background: var(--section-dark);
  background-size: 400% 400%;
  animation: gradientFlow 25s ease infinite;
}

.dark-mode .social-icons a {
  color: #cccccc;
}

.dark-mode .main-header button {
  color: white;
  transition: color 0.25s ease, transform 0.25s ease;
}

.dark-mode .social-icons a:hover {
  color: var(--accent);
}

.dark-mode .section-divider {
  background: var(--section-divider-dark);
}
.dark-mode .bars {
  background-color: #fff;
}
