:root{
  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /*--color-grey: #d3d3d3;*/
  --color-grey: #a1a1aa;
  --color-pink: #d01b9c;
  --color-purple: #7a2ed6;
  --color-black: #222222;
  --color-white: #F8F0E3;
  --color-dark-box: rgba(26, 26, 36, 0.6);
  --color-dark-box-border: rgba(255, 255, 255, 0.1);
  --color-darkest-box: rgba(122, 46, 214, 0.25);
}

/*--------------
  BACKGROUND ANIMATION
  --------------*/
.top-spacer{
  height: 100vh;
  width: 100%;
  background: rgba(11, 13, 18, -0.65);
}


body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #0b0d12;
  background-image:
  /* Dark overlay     linear-gradient(      rgba(11, 13, 18, 0.65),      rgba(11, 13, 18, 0.65)    ),*/
  /* Blue atmospheric soften layer */    radial-gradient(      circle at 50% 40%,      rgba(59, 130, 246, 0.06),      transparent 48%    ),    
  /* Purple – small, intense */    radial-gradient(      circle at 7% 6%,      rgba(124, 58, 237, 0.32) 1%,      rgba(236, 72, 153, 0.30) 17%,      transparent 44%    ),    
  /* Pink – small, intense */    radial-gradient(      circle at 112% 18%,      rgba(236, 72, 153, 0.24) 0%,      rgba(236, 72, 153, 0.12) 18%,      transparent 32%    ),
  /* Purple – large, soft */    radial-gradient(      circle at 82% 86%,      rgba(124, 58, 237, 0.16) 0%,      rgba(124, 58, 237, 0.08) 32%,      transparent 56%    );
}
.top-spacer {
  position: absolute;
  inset: 0;
  z-index: 1;

  /* Blue softening overlay */
  background: rgba(59, 130, 246, 0.08);

  /* Optional soft blur of ONLY the background */
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);

  pointer-events: none;
}


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

header{
  display: flex;
  justify-content: center;
}

.gradient {
  background-image: linear-gradient(
    90deg,
    var(--gradient-from),
    var(--gradient-via, var(--gradient-to)),
    var(--gradient-to)
  );

  /* For text gradients */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/*--------------
NAVBAR STYLES
--------------*/

.logo {
  max-width: 150px;
}
.mobileLogo {
  max-width: 35px;
}

.main-nav-bar {
    background-color: var(--color-dark-box);
    border: 0.5px solid var(--color-dark-box-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    max-width: 1280px;
    border-radius: 25px;
    position: fixed;
    width: calc(100% - 10%);
}

.burger-menu {
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
  width: 30px;
  height: 22px;
  display: flex;
  justify-content: space-between;
  background: none;
  border: none;
}


.burger-menu span {
  width: 100%;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Burger -> X */
.burger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.burger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.cta-button-header{
    background-color: var(--color-white);
    color: rgba(15, 23, 42, 0.8);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}
.cta-button-header:hover{
    background-color: var(--color-grey);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-direction: row;
    font-size: smaller;
}


.mobile-nav{
  display: none;
  position: fixed;
  top: 30%;
  right: 7%;
  width: 70%;
  display: none;
  padding: 10px;
  background-color: #f0f4f8;
  border: 1px solid #ddd;
  color: #000;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
  z-index: 1100;
  background: white;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);;
  display: flex;
  align-items: flex-start;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 998;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.25);
  transition: opacity 0.35s ease;
}
.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-text {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}
/*-------------
MAIN COLOURS
--------------*/
main {
  position: relative;
  z-index: 10;
}
h1, h2, h3, h4, h5, h6, .hero h1, a{
  color: var(--color-white);
  text-decoration: none;
}
h1 {
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  /*font-size: 500%;*/
  font-size: 5rem;
}
h2 {
  text-align: center;
  /*font-size: 350%;*/
  font-size: 3.5rem;
  margin: 2%;
  color: var(--color-white);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
h3 {
  text-align: center;
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h4 {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0;
}
p, li, ul {
  font-weight: 300;
}
strong {
  font-weight: 700;
}


/*-------------
HEADER COLOURS 
--------------*/

.from-purple{
    --gradient-from: var(--color-purple);
}
.to-purple {
    --gradient-to: var(--color-purple);
}
.from-pink {
    --gradient-from: var(--color-pink);
}
.to-pink {
    --gradient-to: var(--color-pink);
}
.via-pink {
    --gradient-via: var(--color-pink);
}
.newSectionHeader h3, .hero p{
    color: #a1a1aa
}


/*-----------------
NAVBAR COLOURS
------------------*/

.nav-links a:hover{
    color: var(--color-purple)
}


/*----------------
CTA BUTTONS
-----------------*/

.cta-button{
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.cta-button:hover{
    background-color: var(--color-grey);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} 


/*---------------
HERO SECTION 
---------------*/
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 10%;
}

.hero h2{
  color: var(--color-grey);
  font-size: 2rem;
  /*font-size: 200%;*/
  margin-top: -20px;
  margin-bottom: 20px;
}

.fourQuickPointBoxes{
  display: flex;
  flex-direction: row;
  gap: 110px;
}

.point-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  background: var(--color-dark-box);
  padding: 10px;
  border-radius: 15px;
  border: 0.5px solid var(--color-dark-box-border);
}


.point-box p{
  margin-top: 10px;
  color: var(--color-grey);
  font-size: 0.9rem;
  /*font-size: 90%;*/
}

.point-box h2{
  color: var(--color-white);
  margin: 0;
  /*font-size: 200%;*/
  font-size: 2rem;
}

/*----------------
SECTION STYLES
-----------------*/

.divider{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 20px 0px 20px;
  max-width: 1280px;
  margin: 0 auto;
  opacity: 0;
  transition: 
    opacity 0.8s ease,
    transform 0.8s ease;
}
.newSectionHeader {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5%;
}
.newSectionHeader p {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    background: var(--color-dark-box);
    padding: 10px;
    border-radius: 15px;
    border: 0.5px solid var(--color-dark-box-border);
    color: var(--color-white);
}

/*----------------
BENTO BOXES
-----------------*/

.bento-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 1.25rem;
}
.bento-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #0b0d12;
}
.bento-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: opacity(0.5);
}

.bento-box h4 {
  position: relative;
  z-index: 2;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  opacity: 1;
  text-transform: none;
}
.bento-box p {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 1;
  color: var(--color-grey);
}
.bento-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 13, 18, 0.85),
    rgba(11, 13, 18, 0.35),
    transparent
  );
  z-index: 1;
}
.bento-box {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-box:nth-child(1) {
  grid-column: span 4;
  grid-row: span 2;
}
.bento-box {
  grid-column: span 2;
}
.bento-box {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-box:hover {
  transform: translateY(-4px);
}
.bento-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
}



/*--------------
THREE BY THREE GRID FOR SERVICES
  --------------*/
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}
.service-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  border-radius: 1.25rem;

  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border: 1px solid rgba(255, 255, 255, 0.08);
}
.service-item h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.service-item p {
  color: var(--color-white);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.service-item ul {
  color: var(--color-purple);
  margin: 0 0 1.5rem;
}
.service-item span{
  color: var(--color-white);
}

.service-item li {
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1rem;
}

.service-item li::before {
  position: absolute;
  left: 0;
  opacity: 0.4;
}
.service-item button {
  margin-top: auto;
}
.learn-more-button {
  background: transparent;
  color: var(--color-purple);
  padding: 0.6rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease;
}
.learn-more-button .arrow {
  display: inline-block; /* required for transform */
  transition-delay: 0.05s;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
.learn-more-button:hover{
  color: var(--color-pink)
}
.learn-more-button span{
  color: var(--color-purple);
}
.learn-more-button:hover .arrow {
  color: var(--color-pink);
  transform: translateX(4px) rotate(-45deg);
}
.service-item img {
  width: 32px;
  height: 32px;
  opacity: 0.85;
}
.service-item-img {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0.5px solid var(--color-dark-box-border);
  background: var(--color-darkest-box);
  border-radius: 10px;
  margin-bottom: 5%;
}
.service-item {
  transition: transform 0.4s ease, background 0.4s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}



/*---------------
CASE STUDIES SECTION
  --------------*/

.case-studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-study-card{
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.case-study-card-text{
  padding: 5%;
}
.case-study-card img {
  width: 100%;
  border-radius: 15px 15px 0 0;
}
.case-study-card p {
  color: var(--color-grey);
}
.cta-center{
  margin: 5%;
}


/*-----------
LARGE CTA SECTION
--------------*/

.large-cta{
  background: var(--color-dark-box);
  border: 0.5px solid var(--color-dark-box-border);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  text-align: center;
  margin-top: 10%;
  margin-bottom: 10%;
}



/* --------------------
   FOOTER
--------------------- */
#footer-section-homepage {
  padding: 40px;
  color: #fff;
}

.footer-column {
  margin: 0 40px;
}

.footer-menu-item {
  display: block;
  color: #ddd;
  text-decoration: none;
  margin-top: 8px;
}

.footer-inner a:hover {
  color: var(--color-white);
}

.site-footer {
  padding: 60px 20px 30px;
  font-family: inherit;
  position: relative;
}
.site-footer h4 {
  color: var(--color-white);
}
.site-footer a {
  text-decoration: none;
  color: var(--color-grey)
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-link {
  color: #04062f;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #9aa0b5;
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #d0d4e0;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #555555;
}

.footer-bottom a {
  color: #aab0ff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
}





/*--------------
MOBILE ADJUSTMENT
  --------------*/

@media (max-width: 768px) {
  h1{
    font-size: 4rem;
  };
  h2{
    font-size: 1.5rem;
  }
  h4{
    font-size: 1.5rem;
  }
  .logo{
    display: none;
  }
  .logo img{
    display: none;
  }
  .mobileLogo {
    display: flex;
  }
  .mobileLogo img{
    display: flex;
    width: 100%;
  }
  .nav-links{
    display: none;
  };
  .burger-menu{
    display: flex;
  }
  .cta-button-header{
    display: none;
  }
  .fourQuickPointBoxes{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .bento-boxes {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-box {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 240px;
  }
  .services-list {
    grid-template-columns: 1fr;
  }
  .case-studies{
    display: flex;
    flex-direction: column;
  }
  .cta-center{
    margin: 10%;
  }
  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (min-width: 769px){
  .nav-links{
    display: flex;
  }
  .burger-menu{
    display: none;
  }
  .burger-menu span{
    display: none;
  }
  .cta-button-header{
    display: flex;
  }
  .mobileLogo {
    display: none;
  }
  .logo img{
    display: flex;
    width: 100%;
  }
}


/*-------------
ANIMATIONS
-------------*/


.divider.is-visible {
  opacity: 1;
}



/*-----------
ACCESIBILITY
--------------*/

@media (prefers-reduced-motion: reduce) {
  .divider,
  .divider * {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}