:root {
  --raisin-black: hsla(231, 10%, 14%, 1);
  --roman-silver: hsla(229, 10%, 57%, 1);
  --eerie-black: hsla(228, 9%, 10%, 1);
  --black: hsla(0, 0%, 0%, 1);
  --white: hsla(0, 0%, 100%, 1);
  --white_a10: hsla(0, 0%, 100%, 0.1);
  --white_a5: hsla(0, 0%, 100%, 0.05);

  --ff-syne: 'Syne', sans-serif;

  --fs-1: 4.8rem;
  --fs-2: 4.5rem;
  --fs-3: 4rem;
  --fs-4: 2.4rem;
  --fs-5: 2rem;
  --fs-6: 1.8rem;
  --fs-7: 1.4rem;
  --fs-8: 1.2rem;

  --fw-800: 800;
  --fw-700: 700;

  --section-padding: 40px;

  --radius-pill: 100px;
  --radius-circle: 50%;
  --blob-radius: 52% 48% 59% 41% / 53% 40% 60% 47%;

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
  --cubic-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --cubic-ease-out: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);
}

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

li { list-style: none; }

a,
img,
span,
data,
button,
ion-icon { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

img { height: auto; }

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

ion-icon { pointer-events: none; }

html {
  font-family: var(--ff-syne);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--eerie-black);
  color: var(--roman-silver);
  font-size: 1.6rem;
  line-height: 1.75;
}

body.loaded { overflow: overlay; }

body.nav-active { overflow: hidden; }

::-webkit-scrollbar { width: 5px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
  background-color: var(--white);
  border-radius: 20px;
}

.container { padding-inline: 12px; }

.section { padding-block: var(--section-padding); }

.h1 {
  font-size: var(--fs-3);
  font-weight: var(--fw-800);
}

.h1,
.h2,
.h4 {
  color: var(--white);
  line-height: 1;
}

.h2 { font-size: var(--fs-2); }

.h3 {
  color: var(--white);
  font-size: var(--fs-4);
  line-height: 1.5;
}

.h4 { font-size: var(--fs-5); }

.h2,
.h3,
.h4 { font-weight: var(--fw-700); }

.w-100 { width: 100%; }

.has-before {
  position: relative;
  z-index: 1;
}

.has-before::before {
  position: absolute;
  content: "";
  z-index: -1;
}

.btn {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: max-content;
  min-width: max-content;
  padding: 20px 32px;
}

.btn::before {
  width: 70px;
  height: 70px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border: 2px solid var(--white_a5);
  border-radius: var(--radius-circle);
  transition: var(--cubic-bounce);
}

.btn:is(:hover, :focus-visible)::before { left: calc(100% - 70px); }

.section-subtitle {
  text-transform: uppercase;
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
  margin-block-end: 20px;
  letter-spacing: 2px;
}

.section-title { margin-block-end: 45px; }

.text-lg {
  font-family: var(--ff-syne);
  font-size: var(--fs-1);
}

.layer-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--white_a5);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--eerie-black);
  z-index: 10;
  display: grid;
  place-items: center;
  transition: var(--transition-2);
  transition-delay: 0.5s;
}

.preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

.preloader .circle {
  width: 60px;
  height: 60px;
  border: 2px solid var(--raisin-black);
  border-top-color: var(--white);
  border-radius: var(--radius-circle);
  animation: rotate360 1s linear infinite;
  transition: var(--transition-2);
}

@keyframes rotate360 {
  0% { transform: rotate(0); }
  100% { transform: rotate(1turn); }
}

.preloader.loaded .circle { opacity: 0; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--eerie-black);
  padding-block: 24px;
  z-index: 4;
  transition: var(--transition-1);
}

.header.active {
  background-color: var(--raisin-black);
  padding-block: 16px;
}

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

.nav-toggle-btn {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: var(--radius-circle);
  display: grid;
  place-content: center;
  gap: 8px;
  transition: var(--transition-1);
}

.nav-toggle-btn:is(:hover, :focus-visible) { gap: 10px; }

.nav-toggle-btn.active { gap: 8px; }

.nav-toggle-btn .line {
  width: 25px;
  height: 2px;
  background-color: var(--black);
  transition: var(--transition-1);
}

.nav-toggle-btn.active .line-1 { transform: rotate(45deg) translate(4px, 4px); }

.nav-toggle-btn.active .line-2 { transform: rotate(-45deg) translate(3px, -2px); }

.navbar {
  position: absolute;
  top: 100%;
  right: -370px;
  max-width: 370px;
  width: 100%;
  background-color: var(--white);
  height: 100vh;
  text-align: center;
  padding: 56px 40px;
  visibility: hidden;
  transition: 0.25s var(--cubic-in);
  z-index: 1;
}

.navbar.active {
  transform: translateX(-370px);
  visibility: visible;
  transition-timing-function: var(--cubic-out);
}

.navbar-link {
  color: var(--raisin-black);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  padding-block: 10px;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible) { text-shadow: 1px 0 0 var(--eerie-black); }

.overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100vh;
  display: none;
}

.overlay.active { display: block; }

.hero { padding-block-start: 270px; }

.hero-title {
  text-transform: uppercase;
  word-break: break-all;
}

.hero-subtitle {
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: var(--fw-700);
  color: var(--white);
  letter-spacing: 3px;
  line-height: 1.2em;
  margin-block: 10px 30px;
}

.hero-banner {
  border-radius: var(--blob-radius);
  overflow: hidden;
  animation: blobAnim 30s linear infinite;
}

@keyframes blobAnim {
  0%, 100% { border-radius: var(--blob-radius); }
  10% { border-radius: 33% 67% 50% 50% / 43% 39% 61% 57%; }
  20% { border-radius: 51% 49% 31% 69% / 65% 39% 61% 35%; }
  30% { border-radius: 51% 49% 56% 44% / 45% 39% 61% 55%; }
  40% { border-radius: 66% 34% 33% 67% / 48% 71% 39% 52%; }
  50% { border-radius: 46% 54% 33% 67% / 48% 30% 70% 52%; }
  60% { border-radius: 46% 54% 56% 44% / 48% 30% 70% 52%; }
  70% { border-radius: 46% 54% 56% 44% / 65% 53% 47% 35%; }
  80% { border-radius: 67% 33% 56% 44% / 37% 53% 47% 63%; }
  90% { border-radius: 46% 54% 32% 68% / 37% 53% 47% 63%; }
}

.hero-content .section-text {
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1.7;
  margin-block: 30px 20px;
}

.hero .btn { margin-inline: auto; }

.tabs {
  text-align: center;
  margin-bottom: 40px;
}

.tab {
  display: inline-block;
  background-color: grey;
  color: white;
  border: 1px solid grey;
  border-radius: 5px 5px 0 0;
  padding: 0.5em 1em;
  cursor: pointer;
}

.tab.selected {
  background-color: black;
  color: white;
  border: 1px solid black;
}

.tab:hover {
  background-color: white;
  color: black;
}

.portfolio-project-title {
  text-align: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.looker-description,
.looker-description p {
  font-size: 1.4rem;
  line-height: 1.2;
  color: #e0e0e0;
  margin-bottom: 18px;
}

.looker-description h4 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.looker-description ul li {
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.experiences-list {
  display: flex;
  flex-direction: column;
  gap: 38px;
  margin-top: 38px;
}

.experience-card {
  display: flex;
  background: #23242b;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
  gap: 28px;
  align-items: flex-start;
  padding: 18px 30px 18px 18px;
}

.experience-img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 13px 0 0 13px;
  background: #292a31;
  flex-shrink: 0;
  margin-top: 10px;
}

.experience-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 1.07em;
  color: #f3f3f3;
}

.experience-details h3 {
  margin: 0;
  font-size: 1.9em;
  font-weight: 700;
  color: #f3f3f3;
  letter-spacing: 0.2px;
  font-family: 'Syne', Arial, sans-serif;
}

.experience-details p {
  font-weight: 600;
  margin: 9px 0 5px 0;
}

.experience-details ul {
  margin: 0;
  padding-left: 20px;
  color: #e4e4e4;
  font-weight: 400;
}

.experience-details strong {
  margin-bottom: 3px;
  display: block;
  font-size: 1.1em;
}

section.portfolio { padding-bottom: 70px; }

section.experiences { padding-top: 70px; }

@media (min-width: 575px) {
  .container {
    max-width: 570px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  img { max-width: 100%; }
}

@media (min-width: 768px) {
  :root {
    --fs-2: 6rem;
    --fs-3: 5.5rem;
  }

  .container { max-width: 720px; }

  .title-wrapper {
    display: flex;
    gap: 10%;
  }

  .title-wrapper .section-title { margin-block-end: 0; }

  .title-wrapper .section-text { margin-block-start: 40px; }

  .hero .container { position: relative; }

  .hero-banner {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 55%;
    z-index: -1;
  }

  .hero-content {
    width: 50%;
    margin-inline-start: auto;
    padding-block: 10%;
  }

  .hero-title,
  .hero-subtitle { text-shadow: 2px 2px 0 var(--eerie-black); }

  .portfolio-row {
    flex-direction: column;
    gap: 30px;
  }

  .portfolio-left,
  .portfolio-right { max-width: 100%; }
}

@media (min-width: 992px) {
  :root { --fs-3: 7rem; }

  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  :root { --section-padding: 140px; }

  .container { max-width: 1140px; }

  .navbar {
    top: 0;
    display: grid;
    place-content: center;
  }

  .nav-toggle-btn {
    position: relative;
    z-index: 2;
  }

  .overlay { top: 0; }

  .hero-content { width: 55%; }

  .hero-title { word-break: normal; }

  .hero .section-text { margin-block-end: 52px; }
}
