@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend:wght@100..900&display=swap");

:root {
  /* Colors */
  --brand-gradient: linear-gradient(
    90deg,
    rgba(198, 165, 194, 1) 0%,
    rgba(135, 169, 181, 1) 100%
  );
  --primary: #c6a5c2;
  --secondary: #87a9b5;
  --surface: #0c0c0c;
  --on-surface: #e6e0e9;
  --on-surface-varient: #cac4d0;
  --on-surface-inverse: #0c0c0c;
  --surface-container: #181818;
  --surface-opacity-70: rgb(12,12,12, 0.7);

  /* Headings */
  --h1: clamp(32px, 5vw, 42px);
  --h2: clamp(28px, 4.5vw, 36px);
  --h3: clamp(22px, 4vw, 28px);
  --h4: clamp(18px, 3.5vw, 22px);

  /* Body Text */
  --body-large: clamp(16px, 3vw, 18px);
  --body-small: clamp(14px, 2.8vw, 16px);

  /* Labels and CTAs */
  --label: clamp(14px, 2.5vw, 18px);
  --cta: clamp(14px, 2.5vw, 18px);

  /* Line Heights */
  --lh-tight: 120%;
  --lh-normal: 140%;
  --lh-loose: 160%;

  /* Letter Spacing */
  --ls-none: 0;
  --ls-wide: 1.5px;
  --ls-extra-wide: 2px;

  /* Spacings */
  --space-xxl: clamp(2.5rem, 4vw, 3.875rem); /* 40px to 62px */
  --space-xl: clamp(2rem, 3.5vw, 2.625rem); /* 32px to 42px */
  --space-lg: clamp(1.5rem, 2.5vw, 2rem); /* 24px to 32px */
  --space-md: clamp(1rem, 2vw, 1.5rem); /* 16px to 24px */
  --space-sm: clamp(0.75rem, 1.5vw, 1.125rem); /* 12px to 18px */
  --space-xs: clamp(0.5rem, 1vw, 1rem); /* 8px to 16px */
}

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html,
body {
  height: 100%;
  background-color: var(--surface);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  /* list-style: none; */
  list-style-position: inside;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
i {
  color: var(--on-surface);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Lexend", serif;
  font-weight: 500;
}

/* Global Typography Styles */
h1 {
  font-size: var(--h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-none);
}

h2 {
  font-size: var(--h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-none);
}

h3 {
  font-size: var(--h3);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-none);
}

h4 {
  font-size: var(--h4);
  line-height: var(--lh-loose);
  letter-spacing: var(--ls-none);
  font-weight: 500;
}

p,
li {
  font-size: var(--body-large);
  line-height: var(--lh-loose);
  letter-spacing: var(--ls-none);
  color: var(--on-surface-varient);
}

p.small {
  font-size: var(--body-small);
  line-height: var(--lh-loose);
  letter-spacing: var(--ls-none);
}

.label {
  font-size: var(--label);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-extra-wide);
  text-transform: uppercase;
}

.cta-text {
  font-size: var(--cta);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: 500;
}

.cta-regular-text {
  font-size: var(--cta);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-none);
  font-weight: 500;
}

.container {
  max-width: 1292px;
  margin-inline: auto;
}

.brand-gradient-border {
  border-width: 2px;
  border-style: solid;
  background: linear-gradient(90deg, var(--surface), var(--surface))
    linear-gradient(
      90deg,
      rgba(198, 165, 194, 1) 0%,
      rgba(135, 169, 181, 1) 100%
    )
    border-box;

  border-radius: 999px;
}

.brand-gradient-text {
  background: linear-gradient(
    90deg,
    rgba(198, 165, 194, 1) 0%,
    rgba(135, 169, 181, 1) 100%
  );
  -webkit-background-clip: text;
  color: transparent;
}

/* Utility classes */
.d-flex {
  display: flex;
}
.flex-dierction-column {
  flex-direction: column;
}
.flex-dierction-row {
  flex-direction: row;
}
/* Spacings */
.gap-xxl {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}
.gap-xl {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.gap-lg {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.gap-md {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.gap-sm {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.gap-xs {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.useful-link-wrapper a {
  text-decoration: underline;
}

/* --------------------- */
/* Landing Page Styling */
/* ------------------- */

.header .container,
.container,
.hi-fi-design-section .top {
  padding-inline: 1.2rem;
}

.header {
  background-color: var(--surface);
  width: 100%;
  padding-block: 1.75rem;
}

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

.header .container .logo h4 {
  font-weight: 400;
}

.header .container .nav-links ul {
  display: flex;
  gap: 1.5rem;
}

.header .container .nav-links ul li a {
  color: var(--on-surface-varient);
}

.header .container .nav-links ul li a:hover {
  color: var(--on-surface);
}

.nav-links ul,
.mobile-nav-links ul {
  list-style: none;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  height: 100vh;
  width: 50vw;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-opacity-70);
  backdrop-filter: blur(55px);
}
.mobile-nav-menu.active {
  transform: translateX(0%);
}

#menu-icon {
  font-size: 1.2rem;
}
#close-icon {
  font-size: 1.6rem;
}

.header .mobile-nav-menu .mobile-nav-links {
  display: flex;
  justify-content: center;
  text-align: center;
  padding-top: 3rem;
}
.header .mobile-nav-menu .mobile-nav-links ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-links {
  display: none;
}

/* Hero Section */
.hero-section {
  padding-block: 7rem;
}

/* Project section */
.projects-section,
.contact-section,
.case-study-section,
.case-study-context {
  padding-block: var(--space-xxl);
}

.projects-section .project-cards {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: var(--space-xl);
}
.projects-section .project-cards .project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card img {
  border-radius: 8px;
  width: auto;
}

.project-card .card-texts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card .card-texts .top .project-name {
  color: var(--on-surface-varient);
  margin-bottom: 2px;
}

.project-card .card-texts .bottom {
  display: block;
}

.call-to-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.2rem;
  background-color: var(--surface-container);
  border-radius: 999px;
  width: fit-content;
  border-radius: 999px;
  transition: all 100ms ease-out;
}

.call-to-action p {
  /* color: var(--primary); */
  font-weight: 500;
}

.call-to-action i {
  font-size: 20px;
}

.call-to-action:hover {
  background: var(--brand-gradient);
  color: var(--on-surface-inverse);
}

.call-to-action:hover i,
.call-to-action:hover p {
  color: var(--on-surface-inverse);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-section .left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-section .left .section-heading .section-title,
.contact-section .right .social-icons-title {
  margin-bottom: 0.8rem;
}

.contact-section .left .contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-section .left .contact-options h4 a {
  text-decoration: underline;
  font-weight: 700;
}

.contact-section .right .social-media-buttons {
  display: flex;
  gap: 0.6rem;
}

.contact-section .right .social-media-buttons .social-icon {
  padding: 0.8rem;
  border-radius: 999px;
  /* border: 2px solid var(--primary); */
  background: var(--surface-container);
}

.contact-section .right .social-media-buttons .social-icon:hover {
  background-color: #212121;
}
.contact-section .right .social-media-buttons .social-icon > i {
  font-size: 1.2rem;
  color: var(--primary);
}

.footer {
  padding-block: 2rem;
}

/* Case Study Styling */
.case-study-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.case-study-context {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: fit-content;
}

.case-study-context .tags {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.tag {
  display: block;
  background-color: var(--surface-container);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.research-source div a {
  text-decoration: underline;
}

.hi-fi-design-section .top {
  max-width: 1292px;
  margin-inline: auto;
  width: 100%;
}

.scroller {
  height: 100%;
}

.scroller .scroller-inner {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  height: fit-content;
}

/* .scroller[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 6%,
    white 20%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 6%, white 20%, transparent);
} */

.scroller[data-animated="true"] {
  overflow: hidden;

  /* Minimal mask effect */
  -webkit-mask: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 8%,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0.5) 92%,
    rgba(0, 0, 0, 0) 100%
  );
  mask: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 8%,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0.5) 92%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Responsive mask for smaller screens */
@media (max-width: 768px) {
  .scroller[data-animated="true"] {
    -webkit-mask: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 5%,
      rgba(0, 0, 0, 1) 12%,
      rgba(0, 0, 0, 1) 88%,
      rgba(0, 0, 0, 0.4) 95%,
      rgba(0, 0, 0, 0) 100%
    );
    mask: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 5%,
      rgba(0, 0, 0, 1) 12%,
      rgba(0, 0, 0, 1) 88%,
      rgba(0, 0, 0, 0.4) 95%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

.scroller[data-animated="true"] .scroller-inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 60s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

.iframe-wrapper {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 16px;
  overflow: hidden;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.thanks-note {
  padding: 4rem;
  width: 100%;
  text-align: center;
  background-color: var(--surface-container);
}

.back-to-top-link {
  display: none;
  font-size: 1.4rem;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--surface-container);
  padding: 1.2rem;
  border-radius: 999px;
  color: var(--primary);
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%,  
              100%, 0.075),
              /* shadow ring 👇 */
              0 0 0 1px hsla(0, 0%, 0%, 0.05),
              /* multiple soft shadows 👇 */
              0 0.3px 0.4px hsla(0, 0%, 0%, 0.02),
              0 0.9px 1.5px hsla(0, 0%, 0%, 0.045),
              0 3.5px 6px hsla(0, 0%, 0%, 0.09);
}
.back-to-top-link:hover{
  background-color: #212121;
}
.back-to-top-link:focus{
  background-color: #2b2b2b;
}

.back-to-top-link.show-link {
  display: block;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .mobile-nav-menu {
    display: none;
  }
  .hamburger-menu {
    display: none;
  }

  .header .container,
  .container,
  .hi-fi-design-section .top {
    padding-inline: 2.4rem;
  }

  .hero-section {
    padding-block: 8rem;
  }
  .back-to-top-link{
    right: 1.6rem;
    bottom: 1.6rem;
    padding: 1.4rem;
  }
}

@media (min-width: 1024px) {
  .header .container .nav-links ul {
    display: flex;
    gap: 1.5rem;
  }

  .hero-section {
    padding-block: 9rem;
  }

  .projects-section .project-cards {
    grid-template-columns: 1fr 1fr;
  }

  .project-card .card-texts .top .project-name {
    color: var(--on-surface-varient);
    margin-bottom: 4px;
  }

  .project-card .card-texts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .contact-section {
    grid-template-columns: 1fr 1fr;
  }

  .case-study-context {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .thanks-note {
    padding: 6rem;
  }

  .back-to-top-link{
    right: 2.6rem;
    bottom: 2.6rem;
    padding: 1.6rem;
  }
}
