/* Custom styles for Boston Polymaths - matching original design */

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    /* Desktop: Use 75% of viewport height */
    height: 60vh;
    width: auto;
    max-width: 90vw; /* Prevent overflow on narrow screens */
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    object-fit: contain;
}

/* Mobile: Use 75% of viewport width instead */
@media (max-width: 768px) {
    .loading-logo {
        width: 75vw;
        height: auto;
        max-height: 90vh; /* Prevent overflow on short screens */
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Prevent scrolling during loading */
body.loading {
    overflow: hidden;
}

/* Hide all content during loading sequence */
body.loading > *:not(#loading-screen) {
    visibility: hidden;
    opacity: 0;
}

/* Show content after loading */
body:not(.loading) > *:not(#loading-screen) {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

/* Root color variables matching original design */
:root {
    --primary-blue: #2196f3;
    --primary-purple: #9c27b0;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-dark: #000000;
    --bg-section: #0a0a0a;
}

/* Typography improvements */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #ffffff; /* Pure white for all body text */
    background: var(--bg-dark);
}

/* Force all text elements to be pure white unless specifically styled otherwise */
p, div, span, h1, h2, h3, h4, h5, h6, li, td, th {
    color: #ffffff;
}

/* Preserve link colors */
a {
    color: inherit;
}

/* Import fonts */
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro");

/* Hero title with ellipse reveal effect */
.hero-title-glow {
  /* Non-transparent gradient - white fading to mostly opaque white */
  background: 50% 100% / 0% 0% no-repeat
              radial-gradient(ellipse at bottom,
                rgba(255, 255, 255, 1),
                rgba(255, 255, 255, 0.7),
                rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(3rem, 10vw, 8rem); /* Responsive sizing */
  font-family: 'Centrion', 'Source Sans Pro', sans-serif; /* Centrion font with fallback */
  font-weight: 600;
  animation: radial-reveal 5000ms ease-in-out forwards 3500ms,
             glow 5000ms linear infinite 7500ms;
  display: inline-block;
  padding: 0;
  margin: 0;
  line-height: 1;
}

/* Inner span for letter-spacing animation */
.hero-title-letters {
  display: inline-block;
  animation: letter-spacing 2350ms ease-in-out forwards 3500ms;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* Keyframes must be outside the class */
/* Radial gradient reveal animation */
@keyframes radial-reveal {
  0% {
    background-size: 0% 0%; /* Start from nothing */
  }
  50% {
    background-size: 150% 150%; /* Grow to medium size */
  }
  80% {
    background-size: 250% 250%;
  }
  100% {
    background-size: 300% 300%;
  }
}

/* Separate letter-spacing animation */
@keyframes letter-spacing {
  0% {
    letter-spacing: 0;
  }
  60% {
    letter-spacing: 8px; /* Spread out */
  }
  100% {
    letter-spacing: 2px; /* Recoil back */
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 0 transparent;
  }
  40% {
    text-shadow:
      0 0 15px #fff,
      0 0 30px #fff,
      0 0 45px #fff;
  }
  100% {
    text-shadow: 0 0 0 transparent;
  }
}

/* Starry Night Background - EXACT COPY FROM src/site/styles/custom-style.scss */
.stars, .twinkling {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stars {
  background: #000 url('https://s3.amazonaws.com/wizardxeon.com/Stars+Background.png') repeat top center;
  background-size: cover;
  z-index: 0;
}

.twinkling {
  background: transparent url('https://s3.amazonaws.com/wizardxeon.com/Clouds.png') repeat top center;
  z-index: 0.1;
  animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -10000px 5000px;
  }
}

.content-blockv2 {
  width: 100vw;
  position: relative;
  z-index: 10;
  background-color: transparent; /* Ensure background is transparent to see the stars */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 4rem;
  padding-top: 8rem;
}

/* Correcting the black bar and video sliver */
.content-blockv2::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* bottom: -120px; /* Slightly extend past the bottom to ensure coverage */
  z-index: -1; /* Behind content but above video */
}

/* Width-restricted and centered content inside the block */
.content-innerv2, .content-innerv4 {
  max-width: 900px; /* Max width for readable content */
  margin: 0 auto; /* Centers horizontally */
  padding: 0;
  font-family: var(--font-default);
  font-size: clamp(1rem, 2vw, 1.25rem); /* Smaller range for the subheading */
  box-shadow: var(--content-box-shadow); /* If you want to add shadow to content blocks */
  display: flex; /* Add flexbox layout */
  align-items: center; /* Vertically center items */
  justify-content: space-between; /* Distribute space between items */
}

/* Add a specific class to .content-section for transition effect */
.content-blockv2 .content-sectionv2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-in, opacity 0.1s ease-out, transform 1s ease-in, transform 0.1s ease-out; /* Smooth transition effect for opacity change */
}

/* Class to trigger visibility for .content-section */
.content-blockv2 .content-sectionv2.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-blockv2 .content-sectionv2.visible, .content-innerv4.visible {
  opacity: 1;
  transform: translateY(0);
  animation: floatAnimation 8s ease-in-out infinite; /* Apply the floating animation when visible */
}

/* Floating animation for invitation text */
@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(-7px); /* Start and end slightly higher */
  }
  50% {
    transform: translateY(7px); /* Move lower at the midpoint */
  }
}

/* Remove floating from text overlay container - only paragraphs float */

.content-innerv4 {
    position: relative;
    z-index: 2;
    padding: 2rem;
    padding-bottom: 0;
    max-width: 600px;
}

.content-innerv4.right-content {
    padding-bottom: 0;
}

.hackerhouse-cta-wrapper {
    margin-top: 0.5rem !important;
}

.content-innerv4.left-content {
    text-align: left;
    margin-right: auto;
}

.content-innerv4.right-content {
    text-align: left;
    margin-left: auto;
    margin-right: 10%; /* Move content 10% to the left */
}

/* Text overlay with fade-in animation */
.text-overlay {
    position: relative;
    z-index: 3;
    color: #ffffff;
}

.text-overlay p,
.text-overlay p2,
.text-overlay p3,
.text-overlay p4 {
    opacity: 1; /* Changed to 1 for immediate visibility */
    transform: translateY(0); /* Start at normal position */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: clamp(1rem, 2vw, 1.25rem); /* Viewport-based sizing from original */
    color: #ffffff !important; /* Pure white for poem text */
    display: block;
}

/* Add floating animation to paragraphs only (not headers) */
.content-innerv4 .text-overlay p,
.content-innerv4 .text-overlay p2,
.content-innerv4 .text-overlay p3,
.content-innerv4 .text-overlay p4 {
    animation: floatAnimation 8s ease-in-out infinite;
    white-space: nowrap; /* Ensure no line breaks in poem */
}

.content-innerv4 .text-overlay p3 {
    margin-bottom: 0;
}

/* Keep "The Invitation" header stationary - positioned right of center */
.content-innerv4 .text-overlay h2 {
    animation: none;
    font-family: 'Centrion', 'Source Sans Pro', sans-serif; /* Apply Centrion font */
    font-size: clamp(1rem, 4vw, 5rem); /* Viewport-based sizing from original */
    font-weight: 300;
    text-align: center;
    margin-left: 25%; /* Moved 10% left from 35% */
    margin-bottom: 2rem;
    white-space: nowrap; /* Prevent line breaks */
}

.text-overlay p.visible,
.text-overlay p2.visible,
.text-overlay p3.visible,
.text-overlay p4.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.text-overlay p2 { transition-delay: 0.2s; }
.text-overlay p3 { transition-delay: 0.4s; }
.text-overlay p4 { transition-delay: 0.6s; }

/* Blue text accent matching original with glow effect */
.blue-text {
    color: var(--primary-blue);
    font-weight: 600;
    text-shadow: 0 0 0.5em var(--primary-blue);
}

/* Blue text accent matching original with glow effect */
.blue-text2 {
    color: #ffffff; /* White font color */
    font-weight: 400;
    text-shadow:
        0 0 0px rgba(0, 255, 255, 0.9),  /* Increased cyan edge by 50% */
        0 0 5px rgba(0, 255, 255, 0.45),   /* Increased outer glow by 50% */
        0 0 10px rgba(0, 255, 255, 0.3);    /* Added third layer for more glow */
    }

/* Override for blue-text in bento grid - white font with subtle cyan edge glow */
.bento-grid .blue-text {
    color: #ffffff; /* White font color */
    font-weight: 600;
    text-shadow:
        0 0 0px rgba(0, 255, 255, 0.9),  /* Increased cyan edge by 50% */
        0 0 5px rgba(0, 255, 255, 0.45),   /* Increased outer glow by 50% */
        0 0 10px rgba(0, 255, 255, 0.3);    /* Added third layer for more glow */
}

/* Dynamic text styling */
.dynamic-text-nextline {
    display: block;
    margin-top: 0.5rem;
    font-weight: 300;
    text-align: center;
    color: #ffffff !important; /* Pure white for descriptions */
    text-shadow: none; /* Remove any inherited text shadows */
}

/* Bento grid matching original site */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 3rem;
    color: white;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 2rem;
    box-sizing: border-box;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

@media screen and (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .bento-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.bento-grid .grid-item {
    position: relative;
    min-height: 24vh;
    background: linear-gradient(135deg, rgba(74, 0, 255, 0.2), #000000);
    backdrop-filter: blur(21px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.8s ease;
    opacity: 1;
    transform: translateY(0);
}

/* Center paragraph text in grid items - pure white */
.bento-grid .grid-item p {
    margin: 0;
    text-align: center;
    width: 100%;
    color: #ffffff !important; /* Pure white for descriptions */
}

/* Static gradient border effect */
.bento-grid .grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(90deg,
        #00ffff 0%,
        #00aaff 16.66%,
        #0084ff 33.33%,
        #00ffff 50%,
        #00aaff 66.66%,
        #0084ff 83.33%,
        #00ffff 100%);
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    animation: border-glow 8s linear infinite;
}

@keyframes border-glow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.grid-item:hover {
    transform: translateY(-5px) scale(1.02);
    transition: transform 0.3s ease;
}

.grid-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Gallery carousel - exact from original custom-style.scss */
.gallery {
    perspective: 1800px;
    transform-origin: center center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 45vh;
    width: 96vw;
    margin: 13rem auto;
    position: relative;
    z-index: 10;
}

.carousel {
    position: relative;
    transform-origin: center center;
    display: flex;
    transform-style: preserve-3d;
    animation: rotate 90s infinite linear;
    animation-play-state: running;
    height: 750px;
    width: 750px;
}

.carousel.paused {
    animation-play-state: paused;
}

.carousel:hover {
    /* Keep rotating on hover - don't pause */
}

.carousel__cell {
    position: absolute;
    width: 110px;
    height: 110px;
    left: 39%;
    top: 50%;
    transform-origin: center center;
    transform: rotateY(calc(22.5deg * var(--i))) translateZ(650px) translate(0%, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .2s, box-shadow .2s;
    border-bottom: 2px solid rgba(0,0,0,0);
}

.carousel__cell:hover {
    /* Scale up without changing position */
    transform: rotateY(calc(22.5deg * var(--i))) translateZ(650px) translate(0%, 0) scale(1.3);
}

.carousel__cell:hover:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255,255,255,.8);
    box-shadow: 0 0 10px rgba(255,255,255,.8);
    border-radius: 50%;
}

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

@keyframes rotate {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* CSS variables for carousel cells - 16 images */
.carousel__cell:nth-child(1) { --i: 0; }
.carousel__cell:nth-child(2) { --i: 1; }
.carousel__cell:nth-child(3) { --i: 2; }
.carousel__cell:nth-child(4) { --i: 3; }
.carousel__cell:nth-child(5) { --i: 4; }
.carousel__cell:nth-child(6) { --i: 5; }
.carousel__cell:nth-child(7) { --i: 6; }
.carousel__cell:nth-child(8) { --i: 7; }
.carousel__cell:nth-child(9) { --i: 8; }
.carousel__cell:nth-child(10) { --i: 9; }
.carousel__cell:nth-child(11) { --i: 10; }
.carousel__cell:nth-child(12) { --i: 11; }
.carousel__cell:nth-child(13) { --i: 12; }
.carousel__cell:nth-child(14) { --i: 13; }
.carousel__cell:nth-child(15) { --i: 14; }
.carousel__cell:nth-child(16) { --i: 15; }

/* Content block v5 for "What we're looking for" section - ALSO FROM custom-style.scss */
.content-blockv5 {
    width: 100vw;
    position: relative;
    min-height: 100vh;
    background-color: transparent; /* Transparent to show stars */
    padding: var(--file-margins);
    overflow: hidden;
    z-index: 10;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center;
}

/* Correcting the black bar and video sliver */
.content-blockv5::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -120px; /* Slightly extend past the bottom to ensure coverage */
  z-index: -1; /* Behind content but above video */
}

.content-innerv5 {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0; /* Add some vertical padding */
}

/* Text overlay container keeps max-width for readability */
.content-innerv5 .text-overlay {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: #ffffff !important; /* Pure white for "The Gist" section */
}

/* Ensure all text in "The Gist" section is pure white */
.content-innerv5 p,
.content-innerv5 h1,
.content-innerv5 h2,
.content-innerv5 h3 {
    color: #ffffff !important;
}

/* Gradient overlays matching original */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(33, 150, 243, 0.05) 50%,
        rgba(156, 39, 176, 0.05) 100%);
    pointer-events: none;
}

/* Invitation section title styling */
.invitation-title {
    font-size: 3.5rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff; /* Simple white color for visibility */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mobile adjustments for 3D carousel and viewport font sizing */
@media screen and (max-width: 1000px) {
    /* Fix horizontal overflow on mobile - LANDING PAGE ONLY */
    .landing-page {
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    /* Prevent hero image jarring resize on mobile when address bar hides/shows - LANDING PAGE ONLY */
    .landing-page .fixed.inset-0.z-0 {
        height: 100vh !important;
        height: 100lvh !important; /* Use large viewport height - constant size */
    }

    .landing-page .fixed.inset-0.z-0 img {
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
    }

    .landing-page .content-blockv2,
    .landing-page .content-blockv5,
    .landing-page .content-block {
        width: 100% !important;
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gallery {
        perspective: 300px;
        height: 50vh;
        width: 60vw;
        justify-content: left;
        align-items: flex-end;
    }

    .carousel {
        height: 370px;
        max-width: 100%;
    }

    .carousel__cell {
        width: 70px;
        height: 70px;
        transform: rotateY(calc(22.5deg * var(--i))) translateZ(200px) translate(0%, 0);
    }

    .carousel__cell:hover {
        width: 70px;
        height: 70px;
        margin: 0;
        transform: rotateY(calc(22.5deg * var(--i))) translateZ(200px) translate(0%, 0);
    }

    .carousel__cell {
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
    }

    .carousel__cell img {
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
    }

    /* Viewport font sizing for Invitation section on mobile */
    .content-innerv4 h2 {
        font-size: 8vw; /* Larger on mobile */
        white-space: normal; /* Allow wrapping if needed */
        margin-left: 0; /* Reset margin on mobile */
    }

    .content-innerv4 .text-overlay p,
    .content-innerv4 .text-overlay p2,
    .content-innerv4 .text-overlay p3,
    .content-innerv4 .text-overlay p4 {
        font-size: 3.3vw; /* Adjusted for mobile */
        white-space: normal; /* Allow wrapping on mobile */
        text-align: left !important; /* Left-align poem on mobile */
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .content-innerv4.right-content {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .content-innerv4.right-content .text-overlay {
        padding: 0 !important;
        margin: 0 !important;
    }

    .content-innerv5 {
        font-size: 4vw; /* Larger on mobile */
    }

    /* Footer links gap adjustment for mobile - Landing page */
    .landing-footer {
        gap: 80px !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }

    /* Footer links gap adjustment for mobile - Hackerhouse page */
    .hackerhouse-footer {
        gap: 80px !important;
        margin-left: -6vw !important;
    }

    /* Hackerhouse CTA button position adjustment for mobile */
    .hackerhouse-cta-wrapper {
        transform: translateX(-9vw) !important;
        justify-content: center !important;
        margin: 2rem auto 0 !important;
        display: flex !important;
        width: 100% !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }

    .hackerhouse-cta-wrapper .cta-button-container {
        margin: 0 auto !important;
    }

    .content-innerv4.right-content .hackerhouse-cta-wrapper {
        align-self: center !important;
    }

    /* Make CTA button responsive on mobile */
    .cta-button-container {
        width: 160px !important;
        height: 50px !important;
    }

    .cta-button {
        padding: 15px 10px !important;
    }

    .cta-button-text {
        font-size: 18px !important;
        line-height: 20px !important;
    }

    /* Hackerhouse section - simplified for mobile, no floating effects */
    .content-blockv2 {
        display: block !important;
        padding: 4rem 2rem;
    }

    .content-innerv4.left-content,
    .content-innerv4.right-content {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .content-innerv4.left-content .text-overlay {
        transform: none !important;
        animation: none !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .content-innerv4.right-content .text-overlay {
        transform: none !important;
        animation: none !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .content-innerv4.left-content .text-overlay h2,
    .invitation-title {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        font-size: clamp(1.5rem, 6vw, 3rem) !important;
        margin-bottom: 2rem !important;
        white-space: normal !important;
        display: block !important;
        width: 100% !important;
    }

    .content-innerv4 .text-overlay p,
    .content-innerv4 .text-overlay p2,
    .content-innerv4 .text-overlay p3,
    .content-innerv4 .text-overlay p4 {
        animation: none !important;
        white-space: normal !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        opacity: 1 !important;
    }

    /* Reduce bottom margin of last paragraph */
    .content-innerv4 .text-overlay p3 {
        margin-bottom: 0 !important;
    }

    .content-innerv4.right-content {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .content-blockv5 .content-innerv5 .text-overlay h1 {
        font-size: 8vw;
    }

    /* On mobile, don't center vertically to prevent content cutoff */
    .content-blockv5 {
        align-items: flex-start;
        padding-top: 2rem;
    }
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .content-blockv2 {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        row-gap: 0;
    }

    .content-innerv4 {
        max-width: 45%;
        margin-bottom: 0;
    }

    .invitation-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .carousel__cell {
        width: 200px;
        height: 250px;
    }
}

/* Content block with purple gradient background - from original custom-style.scss */
.content-block {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    background: linear-gradient(345deg, rgb(0 141 255), rgb(48, 0, 119) 25%, #000000 85%);
}

/* Animated gradient layers */
.content-block::before,
.content-block::after,
.content-block .gradient2,
.content-block .gradient3,
.content-block .gradient4,
.content-block .gradient5 {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: 100% 100%;
    opacity: 0;
    animation: gradientFadeAnimation 24s infinite alternate;
}

.content-block::before {
    background: linear-gradient(45deg, rgb(0 141 255), rgb(34, 0, 116) 25%, #000000 85%);
    animation-delay: 0s;
    background-size: 100% 100%;
    opacity: 1;
}

.content-block::after {
    background: linear-gradient(15deg, rgb(0 141 255), rgb(42, 0, 118) 25%, #000000 85%);
    background-size: 100% 100%;
    animation-delay: 4s;
}

.content-block .gradient2 {
    background: linear-gradient(345deg, rgb(0 141 255), rgb(48, 0, 119) 25%, #000000 85%);
    background-size: 100% 100%;
    animation-delay: 8s;
}

.content-block .gradient3 {
    background: linear-gradient(315deg, rgb(0 141 255), rgb(54, 0, 120) 25%, #000000 85%);
    background-size: 100% 100%;
    animation-delay: 12s;
}

.content-block .gradient4 {
    background: linear-gradient(345deg, rgb(0 141 255), rgb(60, 0, 121) 25%, #000000 85%);
    background-size: 100% 100%;
    animation-delay: 16s;
}

.content-block .gradient5 {
    background: linear-gradient(15deg, rgb(0 141 255), rgb(66, 0, 122) 25%, #000000 85%);
    background-size: 100% 100%;
    animation-delay: 20s;
}

@keyframes gradientFadeAnimation {
    0% {
        opacity: 0;
    }
    8.33% {
        opacity: 1;
    }
    16.66% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.content-block .content-inner {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    max-width: 800px; /* Reduced from 1200px to 800px (33% reduction) */
    margin: 0 auto;
}

/* FAQ and details elements viewport-based font sizing */
.content-block details summary {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #ffffff !important; /* Pure white for FAQ questions */
}

.content-block details div {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #ffffff !important; /* Pure white for FAQ answers */
}

.content-block details p,
.content-block p {
    color: #ffffff !important; /* Pure white for all FAQ text */
}

/* Apply Now Button - Exact CTA style from Joblo.app */
.cta-button-container {
    display: inline-flex;
    width: 200px;
    height: 60px;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    margin: 20px 0;
}

/* Button animations - with box-shadow pulse effect */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 20px 15px;
    position: relative;
    flex: 1;
    align-self: stretch;
    flex-grow: 1;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 0;
    overflow: visible;
    /* Animated gradient background - magenta, purple, blue theme */
    background: linear-gradient(45deg, #ff00ff, #e000e0, #c000ff, #9c27b0, #7c4dff, #7c4dff, #9c27b0, #c000ff, #e000e0, #ff00ff);
    background-size: 400%;
    /* Multiple animations: gradient flow and pulse */
    animation: glowing 40s linear infinite, pulse 3s infinite;
    box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.7);
}

/* Ensure content is above background */
.cta-button > * {
    position: relative;
    z-index: 1;
}

.cta-button-text {
    flex: 1;
    align-self: stretch;
    text-align: center;
    position: relative;
    margin-top: -1px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: white;
    font-size: 24px;
    line-height: 24px;
    white-space: nowrap;
}

.cta-button:hover {
    transform: scale(1.1);
    /* Stop pulse animation on hover, keep gradient animation */
    animation: glowing 40s linear infinite;
    box-shadow: 0 0 0 0 transparent;
}

/* Box-shadow pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(156, 39, 176, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(156, 39, 176, 0);
    }
}

/* Gradient flow animation */
@keyframes glowing {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Subtitle fade-in animation */
@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Group link hover effect */
.group-link:hover {
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section transitions */
.scroll-section {
    opacity: 1; /* Changed from 0 to 1 to ensure visibility */
    transform: translateY(0); /* Changed from 50px to 0 */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}