/* variables */
:root {
  --bg: #1f1f1f;
  --depth: #282a2e;
  --contrast: #31363d;
  --green: #43db83;
  --dkgreen: #2c453b;
  --white: #f5f5f7;
}

@font-face {
  font-family: "Aspekta";
  font-feature-settings: "ss02" 1, "ss08" 1, "ss09" 1, "ss10" 1;
  src: url("../fonts/AspektaVF.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
}

 
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111; /* Change to your brand color */
  z-index: 9999;
  transform: translateY(-100%);
  pointer-events: none;
}

html {
  height: 100%;
  font-family: "Aspekta";
  font-feature-settings: "ss02" 1, "ss08" 1, "ss09" 1, "ss10" 1;
  padding: 0;
}

/* local styles */
h1 {
  font-size: 48px;
  line-height: 60px;
  font-weight: 500;
  text-align: center;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.p1 {
  font-size: 16px;
  line-height: normal;
  font-weight: 350;
  margin: 0;
  padding: 0;
  opacity: 0.5;
}

.p2 {
  font-size: 13px;
  font-weight: 300;
  margin: 0;
  padding: 0;
}

.btn {
  font-size: 18px;
  padding: 14px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.btn a {
  text-decoration: none;
  color: inherit;
}

.btn.primary {
  background-color: var(--green);
  color: var(--contrast);
}

.btn.primary:hover {
  background-color: var(--dkgreen);
  color: var(--green);
}

.btn.secondary {
  background-color: var(--contrast);
  color: var(--white);
}

.btn.secondary:hover {
  background-color: var(--depth);
  color: var(--green);
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

body {
  background-color: var(--bg);
  color: var(--white);
  display: flex;
  user-select: none;
  padding: 60px;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
}

html, body {
  height: auto;
  min-height: 100vh;
  overflow: auto !important;
  scroll-behavior: auto !important;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 240px;
  max-width: 1440px;
  align-content: center;
  justify-content: center;
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
}

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  text-decoration: none;
  gap: 40px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: var(--white);
  opacity: 0.5;
  font-size: 18px;
  transition: all 0.25s ease-in-out;
}

.nav-links li a:hover {
  opacity: 1;
}

/*     hamburger menu      */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 12px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transition: 0.3s ease-in-out;
}

/* Mobile overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 0%;
  background: var(--bg);
  overflow: hidden;
  transition: width 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: left;
  flex-direction: column;
  z-index: 15;
}

.menu-overlay.open {
  width: 100%;
}

.menu-overlay.open ul {
  padding-left: 40px;
}

.menu-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.menu-overlay a {
  color: var(--white);
  font-size: 32px;
  text-decoration: none;
}

.menu-overlay li {
  margin: 24px 0;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-overlay.open li {
  opacity: 1;
  transform: translateY(0);
}

/* add stagger effect */
.menu-overlay.open li:nth-child(1) {
  transition-delay: 0.1s;
}
.menu-overlay.open li:nth-child(2) {
  transition-delay: 0.15s;
}
.menu-overlay.open li:nth-child(3) {
  transition-delay: 0.2s;
}
.menu-overlay.open li:nth-child(4) {
  transition-delay: 0.25s;
}

.menu-overlay a {
  color: var(--white);
  font-size: 32px;
  text-decoration: none;
}

.menu-overlay.closing li {
  opacity: 0;
  transform: translateY(-20px);
}

/* Stagger closing — reversed */
.menu-overlay.closing li:nth-child(1) {
  transition-delay: 0.1s;
}
.menu-overlay.closing li:nth-child(2) {
  transition-delay: 0.15s;
}
.menu-overlay.closing li:nth-child(3) {
  transition-delay: 0.2s;
}
.menu-overlay.closing li:nth-child(4) {
  transition-delay: 0.25s;
}

/* Hamburger X animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(0deg) translate(0px, 4px);
  transition: all 0.5s ease;
}

.hamburger.open span:nth-child(2) {
  transform: rotate(0deg) translate(0px, -4px);
  transition: all 0.5s ease;
}

.logo {
  cursor: pointer;
  z-index: 99;
}

.navbar .active {
  color: var(--green);
  opacity: 1;
  transition: all 0.25s ease-in-out;
}

.section-heading {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
}

.h2-title {
  min-width: 240px;
  max-width: 360px;
  opacity: 0.5;
}

.contextual-assistance {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 900px;
  min-width: 640px;
  margin: 0;
}

.image-frame {
  position: relative;
  aspect-ratio: 8 / 5;
  background-color: var(--contrast);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 18px;
  user-select: none;
  cursor: pointer;
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.25s ease-in-out;
}

.image-frame:hover img {
  transform: scale(1.05);
  filter: blur(5px);
}

.overlay {
  position: absolute;
  background: rgba(31, 31, 31, 0.8); /* dark transparent overlay */
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-frame:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.h2-subtitle {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
  max-width: 900px;
  min-width: 640px;
  margin: 0;
}

.h2-sub {
  display: flex;
  gap: 12px;
  margin: 0;
}

.process {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: var(--depth);
  border-radius: 6px;
  gap: 20px;
}

.process h2 {
  line-height: 1;
}

.processes {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.strategy-icon {
  display: flex;
  gap: 14px;
  margin: 0;
  align-items: center;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  background-color: var(--depth);
  border-radius: 6px;
}

.services-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services-body h2 {
  margin: 0;
  line-height: 1;
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pill p {
  padding: 6px;
  color: var(--green);
  background: var(--dkgreen);
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.cta-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.interactable-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.button-section {
  display: inline-flex;
  gap: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.socials-footer {
  display: inline-flex;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-between;
  max-width: 480px;
}

.socials-footer a {
  text-decoration: none;
  list-style: none;
  margin: 0;
  color: #f5f5f7;
  opacity: 0.5;
  transition: all 0.25s ease-in-out;
}

.socials-footer a:hover {
  opacity: 1;
}

/* about start */

.self-image {
  width: 100%;
  aspect-ratio: 3 / 1;
  background-color: #282a2e;
  border-radius: 8px;
}

.about-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.education-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-career {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.divider {
  border: var(--contrast);
}

.download-cv {
  display: flex;
  gap: 32px;
  align-items: center;
  align-self: center;
}

/*about end */

/* contact start */
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.row {
  display: flex;
  gap: 12px;
}

.row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subject {
  display: flex;
  flex-direction: column;
}

.message {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
  font-size: 13px;
  opacity: 0.5;
}

input,
textarea {
  background-color: var(--contrast);
  border: none;
  border-radius: 6px;
  padding: 12px;
  color: var(--white);
  font-size: 16px;
  resize: none;
  font-size: 18px;
  font-family: "Aspekta";
}

input:focus,
textarea:focus {
  outline: none;
  background-color: var(--depth);
  border-color: var(--green);
  border-width: 1px;
  box-shadow: 0 0 0 1px var(--green);
}

textarea {
  min-height: 200px;
  font-size: 18px;
  font-family: "Aspekta";
}

/* contact end */

/* portfolio start */

.portfolio-wrapper {
  display: flex;
  flex-direction: column;
  gap: 112px;
}

.projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 240px;
}

.visual-identities {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.visuals-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.ui-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.case-studies {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.banner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.banners {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.thank-you-message {
  display: grid;
  place-items: center;
  height: 75vh;
  align-items: center;
  align-content: center;
  gap: 32px;
  overflow: hidden;
}



/* mobile */

@media (max-width: 1000px) {
  h1 {
    font-size: 40px;
    line-height: 50px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  h2 {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    padding: 0;
  }

  .p1 {
    font-size: 16px;
    line-height: normal;
    font-weight: 400;
    margin: 0;
    padding: 0;
  }

  .p2 {
    font-size: 12px;
    font-weight: 300;
    margin: 0;
    padding: 0;
  }

  .btn {
    font-family: "Aspekta";
    font-feature-settings: "ss02" 1, "ss08" 1, "ss09" 1, "ss10" 1;
    font-size: 16px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
  }

  .btn a {
    text-decoration: none;
    color: inherit;
  }

  .btn.primary {
    background-color: var(--green);
    color: var(--contrast);
  }

  .btn.primary:hover {
    background-color: var(--dkgreen);
    color: var(--green);
  }

  .btn.secondary {
    background-color: var(--contrast);
    color: var(--white);
  }

  .btn.secondary:hover {
    background-color: var(--depth);
    color: var(--green);
  }

  body {
    padding: 32px;
  }

  .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 172px;
    align-content: center;
    justify-content: center;
  }

  .navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .section-heading {
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
  }

  .h2-title {
    width: 100%;
    min-width: 200px;
    max-width: 260px;
    opacity: 0.5;
  }

  .contextual-assistance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    min-width: auto;
    margin: 0;
  }

  .image-frame {
    position: relative;
    aspect-ratio: 8 / 5;
    background-color: var(--contrast);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 16px;
    user-select: none;
    cursor: pointer;
    overflow: hidden;
  }

  .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.25s ease-in-out;
  }

  .image-frame:hover img {
    transform: scale(1.05);
    filter: blur(10px);
  }

  .overlay {
    position: absolute;
    background: rgba(31, 31, 31, 0.5);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }

  .h2-subtitle {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    min-width: auto;
    max-width: 900px;
    margin: 0;
  }

  .h2-sub {
    display: flex;
    gap: 12px;
    margin: 0;
  }

  .process {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: var(--depth);
    border-radius: 6px;
    gap: 16px;
    max-width: auto;
  }

  .processes {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    gap: 20px;
  }

  .visual-identities {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (min-width: 641px) {
  .menu-overlay {
    display: none; /* hide overlay on tablet/desktop */
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 28px;
    line-height: 38px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  h2 {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    padding: 0;
  }

  .p1 {
    font-size: 16px;
    line-height: normal;
    font-weight: 400;
    margin: 0;
    padding: 0;
  }

  .p2 {
    font-size: 12px;
    font-weight: 300;
    margin: 0;
    padding: 0;
  }

  .hamburger {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 2px;
  }

  .nav-links {
    display: none; /* hide horizontal links on mobile */
  }

  .btn {
    font-family: inherit;
    font-size: 16px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
  }

  .btn a {
    text-decoration: none;
    color: inherit;
  }

  .btn.primary {
    background-color: var(--green);
    color: var(--contrast);
  }

  .btn.primary:hover {
    background-color: var(--dkgreen);
    color: var(--green);
  }

  .btn.secondary {
    background-color: var(--contrast);
    color: var(--white);
  }

  .btn.secondary:hover {
    background-color: var(--depth);
    color: var(--green);
  }

  body {
    font-family: "Aspekta";
    font-feature-settings: "ss02" 1, "ss08" 1, "ss09" 1, "ss10" 1;
    background-color: var(--bg);
    color: var(--white);
    display: flex;
    user-select: none;
    padding: 16px;
    justify-content: center;
  }

  .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 144px;
    align-content: center;
    justify-content: center;
  }

  .navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .section-heading {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .visuals-wrapper {
    gap: 16px;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
  }

  .image-frame {
    position: relative;
    aspect-ratio: 8 / 5;
    background-color: var(--contrast);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 16px;
    user-select: none;
    cursor: pointer;
    overflow: hidden;
  }

  .visual-identities {
    gap: 8px;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .ui-wrapper {
    gap: 16px;
    align-items: center;
  }

  .banner-wrapper {
    gap: 16px;
    align-items: center;
  }

  .banners {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .case-studies {
    width: 100%;
    display: grid;
    gap: 8px;
  }

  .h2-title {
    min-width: 240px;
    max-width: 360px;
    opacity: 0.5;
  }

  .contextual-assistance {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
  }
  .self-image {
    width: 100%;
    aspect-ratio: 1.25 / 1;
    background-color: #282a2e;
    border-radius: 8px;
  }
  .download-cv {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    align-self: center;
    justify-content: center;
  }

  .row {
    flex-direction: column;
  }
}
