/* Base & Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Use Helvetica Neue with fallbacks */
  body {
    font-family: "Helvetica Neue", Inter, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background: #fff;
    color: #333;
  }
  
  /* Fixed Background (Stuck to the left) */
  .fixed-background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100px; /* Adjust width as needed */
    height: 100%;
    background: url('../images/background.svg') no-repeat left center;
    z-index: -1;
  }

  .btn {
    border-radius: 24px;
  }
  .divider {
    width: 100%;
    border-top: 1px solid #FFE1E1; /* change the color as needed */
    margin: 40px 0;           /* adds space above and below the divider */
  }
  /* Container */
  .container {
    width: 83%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
  }
  
  /* Header for Home Page */
  .header.home-header,
  .header.inner-header {
    background-image: url('../images/header-bkg.svg');
    background-repeat: repeat-x;
  }
  .nav-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0px;
  }
  .nav-row ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin-top: 10px;
    font-size: 2rem;
  }
  .nav-row ul:first-child {
    margin-right: auto;
  }
  .nav-row ul:last-child {
    margin-left: auto;
  }
  .nav-row ul li a {
    font-weight: 500;
    text-decoration: none;
    color: #333;
    position: relative;
  }
  .nav-row ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
  }
  .nav-row ul li a:hover::after {
    width: 100%;
  }
  .nav-row ul li a.back-link {
    font-size: 2rem;
    color: #333;
    font-weight: 500;
  }
  .name-row {
    display: flex;
    align-items: center; /* vertically center the contents */
    padding: 0px;
  }
  
  .name-row .site-name {
    font-size: 8rem;
    font-weight: 100;         /* thin font weight */
    text-transform: uppercase; /* always uppercase */
    color: #3F76E7;
    text-align: left;          /* left aligned text */
    position: relative;
    transition: color 0.3s ease;
  }

  .name-row .site-name::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 225, 225, 0.2), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
  }

  .name-row .site-name:hover::before {
    opacity: 1;
  }

  /* Header for Inner Pages */
  .header.inner-header {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .header.inner-header .container {
    
  }

  .header.inner-header .nav-row {
    margin-bottom: 20px;
    justify-content: space-between;
  }

  .header.inner-header .nav-row ul {
    margin-top: 0;
  }

  .header.inner-header .name-row {
    margin-top: 0;
  }

  .header.inner-header .site-name {
    font-size: 8rem;
    margin-top: 0;
  }

  .header.inner-header .back-link {
    text-decoration: none;
    color: #333;
    margin-right: 20px;
    font-size: 2rem;
  }
  .header.inner-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  /* Hero Section */
  .hero {
    margin-top: 0px;
  }
  .hero-spline iframe {
    width: 100%;
    border: none;
  }
  .hero-spline {
    width: 100%;
    height: 500px;
    border: none;
  }
  .hero-text {
    padding: 80px 0px 50px 0px;
    text-align: left;
  }
  .hero-text h2 {
    font-size: 5.625rem;
    margin-bottom: 10px;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }
  .hero-text h3 {
    font-size: 3.75rem;
    margin-bottom: 10px;
  }
  .hero-text p {
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 400;
  }
  .hero-text .btn {
    margin: 10px 0px;
    background-color: #3F76E7;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    width: fit-content;
    display: block;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hero-text .btn:hover {
    background-color: #345dc1;  /* a darker shade */
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .pixel-text {
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: default;
  }

  .pixel-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--color-text);
  }

  .pixel-text:hover {
    color: inherit;
  }

  .pixel-text:hover::after {
    opacity: 0;
  }

  .section-title {
    font-size: 5.625rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: left;
    color: #333;
  }
  /* Works Section */
  .works {
    padding: 60px 0 0 0;
    border-bottom: 1px solid #FFE1E1;
  }
  .work-block {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  
  .divider-work {
    width: 1px;
    background-color: #FFE1E1;  /* or choose a color that matches your design */
    margin: 0 20px;         /* horizontal spacing on each side */
    align-self: stretch;    /* ensures the divider spans the full height */
  }
  .work-block .work-info,
  .work-block .work-image {
    align-content: center;
    margin-bottom: 130px;
  }

  .work-image .swiper-container {
    position: relative;
    width: 100%;
    max-width: 443px;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin: 0 auto;
  }

  .work-image .swiper-button-prev,
.work-image .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .work-image .swiper-button-prev {
    left: 10px;
  }

  .work-image .swiper-button-next {
    right: 10px;
  }
  
  .work-image .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
  }
  
  .work-image .swiper-slide img,
  .work-image .swiper-slide spline-viewer {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .work-image .swiper-button-prev, 
  .work-image .swiper-button-next {
    background: rgba(0, 0, 0, 0.2);
  }
  .work-image .swiper-button-prev:after,
  .work-image .swiper-button-next:after {
    font-size: 20px; /* reduce chevron size */
    line-height: 40px; /* ensure vertical centering */
  }
  .work-block .work-info {
    flex: 0 0 55%;
  }
  .work-info .company {
    font-weight: regular;
    color: #3F76E7;
    font-size: 4rem;
    margin-bottom: 5px;
  }
  .work-info .work-title {
    font-size: 4rem;
    color: #333;
    margin-bottom: 10px;
  }
  .work-info .description {
    font-weight: Regular;
    margin-bottom: 10px;
    font-size: 2rem;

  }
  .role-highlights {
    background-color: transparent;
    padding: 10px;
    margin-bottom: 10px;
    margin-top: 40px;
  }
  
  .role-highlights .highlight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E2E3E6;
    padding: 8px 0;
  }
  
  .role-highlights .highlight-row .label {
    border: 1px solid #ccc;
    border-radius: 24px;
    padding: 4px 8px;
    color: #3F76E7;
    font-weight: 500;
    text-transform: uppercase;
    width: 100px;
    text-align: center;
    font-size: 1.2rem;
  }
  
  .role-highlights .highlight-row .value {
    flex: 1;
    margin-left: 20px;
  }
  .work-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  .work-image .btn {
    margin: 30px auto;
    background-color: #3F76E7;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    width: fit-content;
    display: block;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .work-image .btn:hover {
    background-color: #345dc1;  /* a darker shade */
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  /* Contact Section */
  .contact {
    padding: 60px 0;
    text-align: center;
  }
  .contact-links {
    list-style: none;
    padding: 0;
    margin: 130px 0 60px 0;
  }
  .contact-links li {
    margin-bottom: 10px;
  }
  .contact-links li a {
    text-decoration: none;
    color: #333;
    font-size: 2.2rem;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
  }
  .contact-links li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
  }
  .contact-links li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  /* Footer */
  footer {
    margin-top: 60px;
  }
  .footer-image {
      width: 100%;
      height: 120px; /* Adjust height as needed */
      background: url('../images/footer.svg') repeat-x center;
      background-size: contain;
      margin-bottom: 40px;
  }
  .footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
  }
  .footer-left {
    font-size: 0.9rem;
    color: #333;
  }
  .footer-left p {
    font-size: 1.6rem;
  }
  .footer-right ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  .footer-right ul li a {
    text-decoration: none;
    color: #333;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    /* Container and Navigation */
    .container {
      width: 90%;
      padding: 0 15px;
    }

    .nav-row {
      padding: 15px 0;
    }

    .nav-row ul {
      gap: 20px;
      font-size: 1.6rem;
      margin-top: 5px;
    }

    .name-row .site-name {
      font-size: 4rem;
      text-align: center;
      margin: 20px 0;
    }

    .nav-row, .name-row {
      flex-direction: column;
      align-items: center;
    }

    .nav-row ul:first-child,
    .nav-row ul:last-child {
      margin: 0;
    }

    .fixed-background {
      display: none;
    }

    /* Works Section */
    .works {
      padding: 30px 0 0 0;
    }

    .work-block {
      flex-direction: column;
      gap: 30px;
    }

    .work-block .work-info,
    .work-block .work-image {
      margin-bottom: 60px;
    }

    .work-info .company {
      font-size: 3rem;
    }

    .work-info .work-title {
      font-size: 3rem;
    }

    .work-info .description {
      font-size: 1.6rem;
    }

    .divider-work {
      display: none;
    }

    .work-image .swiper-container {
      max-width: 100%;
      aspect-ratio: 1/1;
    }

    /* Contact and Footer */
    .contact {
      padding: 40px 0;
    }

    .contact-links {
      margin: 60px 0 40px 0;
    }

    .contact-links li a {
      font-size: 1.8rem;
    }

    .footer-info {
      flex-direction: column;
      text-align: center;
      gap: 20px;
    }

    .footer-left p {
      font-size: 1.4rem;
    }

    .footer-right ul {
      justify-content: center;
    }

    .footer-image {
      height: 80px;
    }
  }

  @media (max-width: 480px) {
    /* Container and Navigation */
    .container {
      width: 95%;
      padding: 20px 10px 10px 0px;
    }

    .nav-row ul {
      gap: 36px;
      font-size: 2rem;
    }

    .name-row .site-name {
      font-size: 8rem;
    }

    /* Works Section */
    .works {
      padding: 20px 0 0 0;
    }

    .work-block .work-info,
    .work-block .work-image {
      margin-bottom: 40px;
    }

    .work-info .company {
      font-size: 2.4rem;
    }

    .work-info .work-title {
      font-size: 2.4rem;
    }

    .work-info .description {
      font-size: 1.4rem;
    }

    /* Contact and Footer */
    .contact {
      padding: 30px 0;
    }

    .contact-links {
      margin: 40px 0 30px 0;
    }

    .contact-links li a {
      font-size: 1.6rem;
    }

    .footer-image {
      height: 60px;
    }
  }

  /* Mouse Trail Media Query */
  @media (max-width: 1024px) {
    .mouse-trail-wrapper {
      display: none;
    }
  }

  /* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* Match your background */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#preloader-percentage {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 10rem;
  color: #3F76E7;
}

/* About Page Content Layout */
.about-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
}

.about-text {
  flex: 0 0 70%;
  max-width: 60%;
}

.about-text p {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #333;
}

.about-text h2 {
  font-size: 2.4rem;
  font-weight: 500;
  margin: 32px 0 16px;
  color: #333;
}

.about-right {
  flex: 0 0 30%;
  position: sticky;
  top: 40px;
}

.about-spline {
  margin-bottom: 40px;
  min-height: 550px;
}

.about-spline spline-viewer {
  display: block;
  height:550px;
  width: 100%;
  border-radius: 8px;
}

/* Info Columns Styles */
.info-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.info-column {
  margin-bottom: 20px;
}

.info-column h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #3F76E7;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  margin-bottom: 8px;
  font-size: 1.4rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}

.info-list .label {
  font-weight: 500;
  color: #666;
  margin-bottom: 2px;
}

.info-list a {
  color: #3F76E7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-list a:hover {
  color: #345dc1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
    gap: 32px;
  }

  .about-text,
  .about-right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .about-right {
    position: static;
  }

  .info-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .info-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-spline spline-viewer {
    height: 250px;
  }

  .about-text h2 {
    font-size: 2.2rem;
    margin: 24px 0 12px;
  }

  .about-text p {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .info-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.about {
  padding-top: 90px;
}

.case-hero {
  margin: 0 0 60px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.case-hero img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.case-section {
  margin-bottom: 80px;
}

.case-section h1 {
  font-size: 4.8rem;
  font-weight: 500;
  margin-bottom: 40px;
  color: #333;
}

.case-section h2 {
  font-size: 3.2rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #333;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-item .label {
  font-size: 1.4rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-item .value {
  font-size: 1.8rem;
  color: #333;
}

.case-image {
  margin: 90px;
  display: flex;
  justify-content: center;
}

.case-image img {
  height: auto;
  border-radius: 8px;
}

.case-section ul,
.case-section ol {
  margin-left: 20px;
  margin-bottom: 24px;
}

.case-section li {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #333;
}

.case-section p {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #333;
}

.research-stats {
  background: #f5f5f5;
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
}

/* Responsive Styles for Case Studies */
@media (max-width: 768px) {
  .case-hero {
    height: 40vh;
    min-height: 300px;
  }

  .case-section h1 {
    font-size: 3.6rem;
  }

  .case-section h2 {
    font-size: 2.8rem;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }

  .case-section {
    margin-bottom: 60px;
  }
}

.work-detail.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.case-section {
  margin-bottom: 4rem;
}

.case-section h1 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
}

.case-section h2 {
  font-size: 2.4rem;
  margin: 2rem 0 1.5rem;
}

.case-section h3 {
  font-size: 2rem;
  margin: 2rem 0 1.5rem;
}

.case-section p {
  font-size: 1.8rem;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 1.6rem;
  color: #333;
}

.case-section ul,
.case-section ol {
  font-size: 1.8rem;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 1.6rem;
  color: #333;
}

.case-section li {
  margin-bottom: 0.8rem;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0 4rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-item .label {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: #666;
}

.meta-item .value {
  font-size: 1.6rem;
  font-weight: 500;
}

.case-hero {
  margin: -2rem -2rem 4rem;
}

.case-hero img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .work-detail.container {
    padding: 0 1.6rem;
  }

  .case-section h1 {
    font-size: 2.8rem;
  }

  .case-section h2 {
    font-size: 2.2rem;
  }

  .case-section h3 {
    font-size: 1.8rem;
  }

  .case-section p,
  .case-section ul,
  .case-section ol {
    font-size: 1.6rem;
  }

  .case-hero {
    margin: -1.6rem -1.6rem 3rem;
  }
}

/* Typography Scale and Colors */
:root {
  /* Colors */
  --color-primary: #003B95;
  --color-primary-dark: #345dc1;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-background: #ffffff;
  --color-border: #E2E3E6;
  
  /* Type Scale (1.250 - Major Third) */
  --text-xs: 1.2rem;    /* 12px */
  --text-sm: 1.4rem;    /* 14px */
  --text-base: 1.6rem;  /* 16px */
  --text-lg: 1.8rem;    /* 18px */
  --text-xl: 2.0rem;    /* 20px */
  --text-2xl: 2.4rem;   /* 24px */
  --text-3xl: 3.2rem;   /* 32px */
  --text-4xl: 4.0rem;   /* 40px */
  --text-5xl: 4.8rem;   /* 48px */

  /* Font Weights */
  --font-thin: 100;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-bold: 700;

  /* Typography overrides */
  h1, h2, h3, h4, h5, h6 {
    letter-spacing: -.03rem;
  }
}

/* About Page Typography */
.about-text h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-light);
  margin-bottom: 3.2rem;
  color: var(--color-text);
}

.about-text p {
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  line-height: 1.6;
  margin-bottom: 1.6rem;
  color: var(--color-text);
}

.about-text h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-light);
  margin: 4rem 0 2rem;
  color: var(--color-text);
}

.about-right {
  flex: 0 0 30%;
  position: sticky;
  top: 40px;
}

.about-spline {
  margin-bottom: 40px;
  min-height: 550px;
}

.about-spline spline-viewer {
  display: block;
  height:550px;
  width: 100%;
  border-radius: 8px;
}

/* Info Columns Typography */
.info-column h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-list li {
  margin-bottom: 0.8rem;
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: 1.5;
}

.info-list .label {
  font-weight: var(--font-medium);
  color: var(--color-text-light);
  margin-bottom: 0.2rem;
}

.info-list a {
  color: var(--color-primary);
}

.info-list a:hover {
  color: var(--color-primary-dark);
}

/* Case Study Typography */
.case-section h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-light);
  margin-bottom: 3.2rem;
  color: var(--color-text);
}

.case-section h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-regular);
  margin: 4rem 0 2rem;
  color: var(--color-text);
}

.case-section h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-medium);
  margin: 3.2rem 0 1.6rem;
  color: var(--color-text);
}

.case-section p {
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  line-height: 1.6;
  margin-bottom: 2.4rem;
  color: var(--color-text);
}

.case-section ul,
.case-section ol {
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  line-height: 1.6;
  margin-bottom: 2.4rem;
  color: var(--color-text);
  padding-left: 2rem;
}

.case-section li {
  margin-bottom: 1.2rem;
}

/* Case Meta Information */
.meta-item .label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  color: var(--color-text-light);
}

.meta-item .value {
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  color: var(--color-text);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .case-section h1 {
    font-size: var(--text-4xl);
  }

  .case-section h2 {
    font-size: var(--text-2xl);
  }

  .case-section h3 {
    font-size: var(--text-xl);
  }

  .case-section p,
  .case-section ul,
  .case-section ol {
    font-size: var(--text-base);
    margin-bottom: 2rem;
  }

  .about-text p {
    font-size: var(--text-base);
  }

  .about-text h2 {
    font-size: var(--text-2xl);
    margin: 3.2rem 0 1.6rem;
  }
}

@media (max-width: 480px) {
  .case-section h1 {
    font-size: var(--text-3xl);
  }

  .case-section h2 {
    font-size: var(--text-xl);
  }

  .meta-item .value {
    font-size: var(--text-base);
  }
}

.mouse-trail-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: grid;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

.mouse-trail-item {
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: border-color 0.15s ease;
    border: 1.5px solid rgba(255, 225, 225, 0);
}

@media (max-width: 1024px) {
    .mouse-trail-wrapper {
        display: none;
    }
}

@media (max-width: 768px) {
  .hero-text {
    padding: 40px 0px 30px 0px;
  }

  .hero-text h2 {
    font-size: 3.2rem;
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text h2 span {
    display: inline-block;
  }

  .hero-text h3 {
    font-size: 2.4rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .hero-spline {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-text {
    padding: 30px 0px 20px 0px;
  }

  .hero-text h2 {
    font-size: 2.8rem;
    gap: 0.8rem;
  }

  .hero-text h3 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .hero-spline {
    height: 250px;
  }
}

.role-highlights {
  background-color: transparent;
  padding: 10px;
  margin-bottom: 10px;
  margin-top: 40px;
}

.role-highlights .highlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E3E6;
  padding: 8px 0;
}

.role-highlights .highlight-row .label {
  border: 1px solid #ccc;
  border-radius: 24px;
  padding: 4px 8px;
  color: #3F76E7;
  font-weight: 500;
  text-transform: uppercase;
  width: 100px;
  text-align: center;
  font-size: 1.2rem;
}

.role-highlights .highlight-row .value {
  flex: 1;
  margin-left: 20px;
}

@media (max-width: 768px) {
  .role-highlights {
    margin-top: 30px;
    padding: 5px;
  }

  .role-highlights .highlight-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    gap: 8px;
  }

  .role-highlights .highlight-row .label {
    width: auto;
    min-width: 80px;
    font-size: 1.1rem;
  }

  .role-highlights .highlight-row .value {
    margin-left: 0;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .role-highlights {
    margin-top: 25px;
  }

  .role-highlights .highlight-row {
    padding: 10px 0;
  }

  .role-highlights .highlight-row .label {
    font-size: 1rem;
  }

  .role-highlights .highlight-row .value {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .case-image {
    margin: 40px 0;
  }
}

@media (max-width: 480px) {
  .case-image {
    margin: 30px 0;
  }
}

/* Floating Menu Styles */
.floating-menu {
  position: fixed;
  top: 80px;
  right: 80px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.floating-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger {
  width: 80px;
  height: 80px;
  padding: 0px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hamburger:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
  background-color: #fff;
}
.hamburger:focus,
.hamburger:active {
  background-color: #fff;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #3F76E7;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.floating-nav {
  position: absolute;
  top: 70px;
  right: 0;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.floating-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 180px;
}

.floating-nav ul li {
  margin: 10px 0;
}

.floating-nav ul li a {
  color: #333;
  text-decoration: none;
  font-size: 1.8rem;
  display: block;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.floating-nav ul li a:hover {
  background: rgba(63, 118, 231, 0.1);
  color: #3F76E7;
}

@media (max-width: 768px) {
  .floating-menu {
    top: 30px;
    right: 15px;
  }

  .hamburger {
    width: 65px;
    height: 65px;
  }

  .floating-nav {
    top: 65px;
  }

  .floating-nav ul li a {
    font-size: 1.6rem;
  }

  .back-link {
    display: none;
  }
}

/* Override Milligram Hover Effects */
a {
  color: inherit;
}

a:hover {
  color: inherit;
}

.btn:hover,
.btn:focus {
  color: #fff;
  background-color: #345dc1;
  border-color: #345dc1;
}

.nav-row ul li a:hover,
.nav-row ul li a:focus {
  color: inherit;
}

.floating-nav ul li a:hover,
.floating-nav ul li a:focus {
  color: #3F76E7;
  background: rgba(63, 118, 231, 0.1);
}

.contact-links li a:hover,
.contact-links li a:focus {
  color: inherit;
}

.footer-right ul li a:hover,
.footer-right ul li a:focus {
  color: inherit;
}