/* 
   DESIGN SYSTEM & VARIABLES 
   Style: Creative Minimalism / Neo-Brutalism
*/
:root {
    /* Color Palette */
    --color-primary: #FFE014;
    /* Yellow */
    --color-primary-hover: #FACC15;

    --color-accent: #00B80F;
    /* Green */
    --color-secondary: #2B57F5;
    /* Blue */
    --color-alert: #F52B2B;
    /* Red accents */

    --color-text-main: #000000;
    --color-text-muted: #333333;
    --color-text-light: #666666;

    --color-bg-body: #FFFFFF;
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #000000;

    --color-border: #000000;
    /* High contrast black borders */

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    /* Bold, clean sans for headings in Neo-Brutalism */
    --font-body: 'Inter', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;

    /* Neo-Brutalist Specifics */
    --radius-sm: 0px;
    /* Sharp corners preferred */
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-full: 9999px;

    --border-width: 2px;
    --shadow-hard: 4px 4px 0px 0px #000000;
    --shadow-hard-hover: 6px 6px 0px 0px #000000;

    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-smooth: 0.2s ease-out;
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 800;
    /* Extra bold */
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-2xl) 0;
    border-bottom: var(--border-width) solid var(--color-border);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

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

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* COMPONENTS */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
    background: #fff;
    box-shadow: var(--shadow-hard);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hard-hover);
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-main);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-secondary {
    background-color: #fff;
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-link {
    padding: 0;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.btn-link:hover {
    background-color: var(--color-primary);
    transform: none;
    box-shadow: none;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    background: #fff;
    box-shadow: 2px 2px 0px 0px #000;
}

.badge-green {
    background-color: var(--color-accent);
    color: #fff;
}

.badge-gray {
    background-color: #f0f0f0;
    color: #000;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: var(--border-width) solid var(--color-border);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .header-actions {
        display: flex;
    }
}

#header-cta {
    box-shadow: none !important;
    background-color: #fff;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 260px;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

#header-cta:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
}

#header-cta.scrolled {
    background-color: var(--color-primary);
}

#header-cta.scrolled:hover {
    background-color: var(--color-primary-hover);
}

.menu-toggle {
    display: block;
    background: none;
    border: 2px solid #000;
    cursor: pointer;
    padding: 0.5rem;
    box-shadow: 2px 2px 0px 0px #000;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* HERO */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    border-bottom: var(--border-width) solid var(--color-border);
}

.hero-headline {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--spacing-md);
    line-height: 0.95;
}

.hero-subhead {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 60ch;
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
}

.hero-visual {
    border: var(--border-width) solid var(--color-border);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
}

.hero-image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-image-slider::-webkit-scrollbar {
    display: none;
}

.hero-logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hero-logo-container svg {
    width: 100px;
    height: auto;
    fill: #fff;
    max-height: 80%;
}

.hero-image-slider img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.hero-image-slider:hover img {
    filter: grayscale(0%);
}

/* SOCIAL PROOF / MARQUEE */
.section-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: var(--spacing-md) 0;
    border-bottom: var(--border-width) solid var(--color-border);
}

.clients-strip {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

.client-logo {
    font-weight: 900;
    font-size: var(--text-2xl);
    text-transform: uppercase;
    color: #000;
    letter-spacing: -0.05em;
    flex-shrink: 0;
    padding-right: var(--spacing-xl);
    /* Use padding instead of gap for seamless loop */
}

/* CARDS */
.card-segment {
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hard);
    transition: var(--transition-smooth);
    display: block;
    position: relative;
    overflow: hidden;
}

.card-segment:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-hard-hover);
    border-color: #000;
}

/* Alternating hover colors handled in HTML or nth-child logic, 
   but simplistic approach: highlight text on hover */
.card-segment:hover .card-title {
    color: var(--color-secondary);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: #000;
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

/* SELECTED CASES */
.case-card {
    margin-bottom: var(--spacing-2xl);
    display: grid;
    gap: var(--spacing-lg);
    align-items: center;
    border: 2px solid #000;
    padding: 1rem;
    background: #fff;
    box-shadow: var(--shadow-hard);
}

@media (min-width: 1024px) {
    .case-card {
        grid-template-columns: 1.2fr 1fr;
    }

    .case-card.alt {
        grid-template-columns: 1fr 1.2fr;
    }

    .case-card.alt .case-content {
        order: -1;
    }

    /* Swap standard vs alt */
}

.case-image {
    overflow: hidden;
    border: 2px solid #000;
}

.case-image img {
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.case-content h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.case-detail-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    background: var(--color-primary);
    display: inline-block;
    padding: 0 0.25rem;
    border: 1px solid #000;
    margin-bottom: 0.25rem;
}

/* SERVICES BG */
.bg-dark {
    background-color: var(--color-bg-dark);
    color: #fff;
}

.bg-dark h2,
.bg-dark h3 {
    color: #fff;
}

.bg-dark .usp-item div:first-child {
    color: var(--color-primary);
}

.usp-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
    padding: 1.5rem;
    box-shadow: 4px 4px 0px 0px #333;
}

.service-list-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px dashed #444;
}

/* PROCESS */
.process-step {
    position: relative;
    padding: 1.5rem;
    border: 2px solid #000;
    margin-bottom: 1.5rem;
    background: #fff;
    box-shadow: var(--shadow-hard);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.process-step:hover {
    transform: translate(-4px, -4px);
    /* Slightly deeper shift */
    box-shadow: var(--shadow-hard-hover);
    z-index: 10;
    /* Ensure it stays on top of section-level FX */
}

/* Specific hover for the yellow and black blocks */
#step-concepts:hover {
    background: #FFD700 !important;
    /* Brighter gold on hover */
}

#final-step:hover {
    background: #111 !important;
}

.process-step:active {
    transform: translate(0, 0);
    box-shadow: var(--shadow-hard);
}

.process-step h3 {
    text-transform: uppercase;
    color: var(--color-secondary);
}

/* Alternate colors for process steps */
.process-step:nth-child(even) {
    background: var(--color-primary);
}

.process-step:nth-child(even) h3 {
    color: #000;
}

/* 4. Final Delivery Special Animation */
#final-step {
    transition: transform 0.5s ease;
    /* Fast return */
    z-index: 1;
}

/* Triggered by JS class .fx-active */
body.fx-active #final-step {
    /* Transform set by JS for dynamic centering */
    transition: transform 3s linear 1s;
    /* 3 seconds duration, 1s delay */
    z-index: 100;
    /* Ensure it covers other elements */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    /* Optional: add depth */
}

/* Focus Overlay Logic */
#focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 90;
    /* Below final-step (100) but above everything else */
    background: radial-gradient(circle at center, transparent 10%, rgba(0, 0, 0, 0.9) 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Fast fade out */
}

/* When active via JS class */
body.fx-active #focus-overlay {
    opacity: 1;
    transition: opacity 3s linear 1s;
    /* Sync with scale animation */
}

/* Lightning Container */
#lightning-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 92;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: space-between;
}

body.fx-active #lightning-container {
    opacity: 1;
    transition-delay: 2.5s;
}

/* Video Lightning Styling */
.lightning-video {
    width: 50vw;
    /* Half screen width each */
    height: 100%;
    object-fit: cover;
    /* Chroma Key Hack: Grayscale + Contrast to turn Green to Black, White to White */
    filter: grayscale(100%) brightness(0.6) contrast(300%);
    /* Remove the resulting black background */
    mix-blend-mode: screen;
    opacity: 0.8;
}

/* Mirror the left one for symmetry */
.lightning-video.left {
    transform: scaleX(-1);
}

.lightning-video.right {
    transform: scaleX(1);
}



/* TESTIMONIALS */
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border: 2px solid #000;
    box-shadow: var(--shadow-hard);
}

.quote-mark {
    font-size: 4rem;
    line-height: 0.5;
    color: var(--color-primary);
    font-family: serif;
    margin-bottom: 1rem;
}

/* FAQ */
.faq-item {
    border: 2px solid #000;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 2px 2px 0px 0px #000;
}

.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
    border-top: 2px solid #000;
    background: #fff0f0;
    /* Slight red tint for content background */
}

.faq-item.active .faq-content {
    display: block;
}

.faq-item.active .faq-trigger svg {
    transform: rotate(180deg);
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #000;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    background: #fff;
    box-shadow: 2px 2px 0px 0px #000;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    background: var(--color-primary-hover);
    box-shadow: 4px 4px 0px 0px #000;
}

/* FOOTER */
.footer {
    background-color: #000;
    color: #fff;
    padding: var(--spacing-xl) 0;
    border-top: 4px solid var(--color-primary);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 2px solid #000;
    padding: var(--spacing-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 990;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
}

.mobile-nav-link:hover {
    color: var(--color-primary);
}

/* LANGUAGE SWITCHER */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xs);
    font-weight: 800;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.2s;
    padding: 0;
    font-weight: 800;
    text-transform: uppercase;
}

.lang-btn.active {
    color: var(--color-text-main);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.lang-btn:hover:not(.active) {
    color: var(--color-primary);
}

.divider {
    color: var(--color-text-light);
}

/* HORIZONTAL TESTIMONIALS SCROLLER */
.testimonials-section {
    padding: var(--spacing-2xl) 0;
    background: #fdfdfd;
}

.scroller-container {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.scroller-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.scroller-content {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.testimonial-card-xl {
    width: 320px;
    background: #fff;
    padding: 2.5rem;
    border: 2px solid #000;
    box-shadow: var(--shadow-hard);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .testimonial-card-xl {
        width: 450px;
    }
}

.testimonial-quote {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info strong {
    display: block;
    text-transform: uppercase;
    font-size: var(--text-sm);
}

.author-info span {
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

/* Confetti Animation (Step 2) */
#step-concepts {
    overflow: hidden;
    /* Ensure video doesn't spill out messy */
    position: relative;
    cursor: pointer;
}

.confetti-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    /* Inside step, below text */
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
    filter: brightness(1.1) contrast(1.1);
    /* Help with transparency */
}

#step-concepts:hover .confetti-video {
    opacity: 1;
}

/* Section-level Confetti Animation */
.section-confetti-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
    /* Background of the section */
    opacity: 0;
    transition: opacity 1s ease;
    mix-blend-mode: screen;
    filter: contrast(110%);
}

.section-confetti-video.active {
    opacity: 0.6;
    /* Subtle background effect */
}

/* PORTFOLIO CAPSULE BUTTON */
.portfolio-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    background: var(--color-primary);
    /* Yellow */
    padding: 0.75rem 1.25rem;
    /* Reduced padding to shorten the button */
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #000;
    gap: 1rem;
    /* Reduced gap to bring text closer to the sphere */
    transition: var(--transition-smooth);
    border: var(--border-width) solid var(--color-border);
    box-shadow: var(--shadow-hard);
    position: relative;
    overflow: visible;
}

.portfolio-capsule:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hard-hover);
    background: var(--color-accent);
    /* Green on hover */
    color: #fff;
    /* White text for better contrast on green */
}

.capsule-sphere {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    border: var(--border-width) solid var(--color-border);
    /* Apply the SVG lens filter defined in HTML */
    filter: url(#sphere-lens);
}

.sphere-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/IMG_1973.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.2);
    /* Slight scale to enhance the lens effect */
    opacity: 1;
}

.sphere-shading {
    display: none;
    /* Removed for flat look */
}

.sphere-wireframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    /* Custom grid representing volume */
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0px, rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0px, rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 20px);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0.8;
}

.capsule-text {
    font-size: 1.35rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
    max-width: 180px;
}

@keyframes rotate-texture {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .portfolio-capsule {
        padding: 0.4rem 1.5rem 0.4rem 0.4rem;
        gap: 1rem;
    }

    .capsule-sphere {
        width: 80px;
        height: 80px;
    }

    .capsule-text {
        font-size: 1.25rem;
        max-width: 150px;
    }
}

/* 10. Brush Stroke Animation (Step 3) */
.brush-strokes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: visible;
    pointer-events: none;
}

.brush-stroke {
    position: absolute;
    height: 12px;
    width: 0;
    border-radius: 4px;
    opacity: 0;
    filter: url(#rough-edge);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#step-refinement:hover .brush-stroke {
    width: 150px;
    opacity: 0.8;
}

/* Specific stroke styles */
.brush-stroke.s1 {
    top: 10%;
    left: -20px;
    background: var(--color-primary);
    transform: rotate(-5deg);
    transition-delay: 0.0s;
}

.brush-stroke.s2 {
    top: 30%;
    left: -40px;
    background: var(--color-secondary);
    transform: rotate(3deg);
    transition-delay: 0.1s;
}

.brush-stroke.s3 {
    top: 70%;
    left: -30px;
    background: var(--color-alert);
    transform: rotate(-2deg);
    transition-delay: 0.2s;
}

.brush-stroke.s4 {
    top: 20%;
    right: -20px;
    background: var(--color-accent);
    transform: rotate(5deg);
    transition-delay: 0.05s;
}

.brush-stroke.s5 {
    top: 50%;
    right: -50px;
    background: var(--color-primary);
    transform: rotate(-4deg);
    transition-delay: 0.15s;
}

.brush-stroke.s6 {
    top: 80%;
    right: -40px;
    background: var(--color-secondary);
    transform: rotate(2deg);
    transition-delay: 0.25s;
}

#step-refinement:hover .brush-stroke.s1,
#step-refinement:hover .brush-stroke.s2,
#step-refinement:hover .brush-stroke.s3 {
    left: -160px;
}

#step-refinement:hover .brush-stroke.s4,
#step-refinement:hover .brush-stroke.s5,
#step-refinement:hover .brush-stroke.s6 {
    right: -160px;
}

/* 11. About Section Background Reveal */
.about-bg-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    /* Tiny transition to smooth out scroll ticks */
    transition: transform 0.1s ease-out;
    z-index: 0;
    pointer-events: none;
}

.playful-hey span,
.playful-name span {
    display: inline-block;
    transition: transform 0.1s ease-out, opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.playful-hey span,
.playful-name span {
    opacity: 0;
    transform: translateY(20px) rotate(-10deg);
}

#about.text-active .playful-hey span,
#about.text-active .playful-name span {
    opacity: 1;
}

/* Staggering the letters */
.playful-name span:nth-child(1) {
    transition-delay: 0.1s;
}

.playful-name span:nth-child(2) {
    transition-delay: 0.15s;
}

.playful-name span:nth-child(3) {
    transition-delay: 0.2s;
}

.playful-name span:nth-child(4) {
    transition-delay: 0.25s;
}

.playful-name span:nth-child(5) {
    transition-delay: 0.3s;
}

.playful-name span:nth-child(6) {
    transition-delay: 0.35s;
}

.playful-name span:nth-child(7) {
    transition-delay: 0.4s;
}

.playful-name span:nth-child(8) {
    transition-delay: 0.45s;
}

.playful-name span:nth-child(9) {
    transition-delay: 0.5s;
}

.playful-name span:nth-child(10) {
    transition-delay: 0.55s;
}

/* Typing animation for About text */
.typing-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.about-text-reveal.active .typing-word {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure spaces are preserved between spans */
.about-text-reveal {
    white-space: normal;
}

.typing-space {
    display: inline;
}