.brandsection {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--background);
    padding: 4rem 0;
}

.brandsection .grid-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.brandsection h1 {
    position: relative;
    z-index: 2;
    font-family: var(--font-sans);
    font-size: clamp(5rem, 15vw, 15rem);
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--foreground);
    text-transform: uppercase;
    margin: 0;
}

.brandsection h1 span {
    display: block;
    font-size: 0.4em;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}

.brandsection-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.brand-loader-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 0 2rem;
    font-family: "Poppins", var(--font-sans);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--foreground);
}

.brand-loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    mask: repeating-linear-gradient(90deg, transparent 0, transparent 6px, black 7px, black 8px);
    background-color: transparent;
}

.brand-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, #ff0 0%, transparent 50%),
        radial-gradient(circle at 45% 45%, #f00 0%, transparent 45%),
        radial-gradient(circle at 55% 55%, #0ff 0%, transparent 45%),
        radial-gradient(circle at 45% 55%, #0f0 0%, transparent 45%),
        radial-gradient(circle at 55% 45%, #00f 0%, transparent 45%);
    mask: radial-gradient(circle at 50% 50%, transparent 0%, transparent 10%, black 25%);
    animation:
        brand-transform-animation 3s infinite alternate,
        brand-opacity-animation 6s infinite;
    animation-timing-function: cubic-bezier(0.6, 0.8, 0.5, 1);
}

.brand-loader-letter {
    display: inline-block;
    opacity: 0;
    animation: brand-letter-anim 6s infinite linear;
    z-index: 2;
    letter-spacing: 0.15em;
}

.brand-loader-letter:nth-child(1) { animation-delay: 0.1s; }
.brand-loader-letter:nth-child(2) { animation-delay: 0.205s; }
.brand-loader-letter:nth-child(3) { animation-delay: 0.31s; }
.brand-loader-letter:nth-child(4) { animation-delay: 0.415s; }
.brand-loader-letter:nth-child(5) { animation-delay: 0.521s; }
.brand-loader-letter:nth-child(6) { animation-delay: 0.626s; }

@keyframes brand-transform-animation {
    0% {
        transform: translateX(-55%);
    }
    100% {
        transform: translateX(55%);
    }
}

@keyframes brand-opacity-animation {
    0%,
    100% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    65% {
        opacity: 0;
    }
}

@keyframes brand-letter-anim {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
        text-shadow: 0 0 6px #fff;
        transform: scale(1.1) translateY(-2px);
    }
    20% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
    }
}

.brandsection-caption {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.brandsection::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
    filter: blur(60px);
}

@media (max-width: 768px) {
    .brandsection {
        min-height: 100vh;
    }

    .brandsection .grid-background {
        background-size: 20px 20px;
    }
}