/* Force full width on Elementor container */
.elementor-widget-hero_grid_62cb60bb {
    width: 100% !important;
    max-width: 100vw !important;
}

/* Optional: if you prefix the wrapper section */
.hero-grid-yes .elementor-widget-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-grid-wrapper-62cb60bb {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    --logo-size: 100px;
    --logo-spacing: 20px;
    --logo-url: url();
    --grid-speed: 20s;
    --spotlight-radius: 400px;
    --logo-opacity-base: 0.1;
    --logo-opacity-spotlight: 0.8;
    --mouse-x: 50%;
    --mouse-y: 50%;
    background-color: #9E9E9E;
}

.hero-grid-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    background-image: var(--logo-url);
    background-size: var(--logo-size) var(--logo-size);
    background-position: 0 0;
    background-repeat: repeat;
    animation: heroGridMove62cb60bb var(--grid-speed) linear infinite;
    filter: brightness(0) invert(1);
}

.base-logo-grid {
    opacity: var(--logo-opacity-base);
    z-index: 1;
}

/* NEW: Mask layer wraps the moving background so the mask itself doesn't move */
.hero-grid-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    mask-image: radial-gradient(circle var(--spotlight-radius) at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle var(--spotlight-radius) at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
}

.hero-grid-bg.spotlight-logo-grid {
    opacity: var(--logo-opacity-spotlight);
    /* Animation handles movement; Mask handles visibility */
}

.hero-glows-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.hero-glow.glow-1 {
    top: -10%;
    left: -10%;
    background: rgba(120, 0, 255, 0.3);
}

.hero-glow.glow-2 {
    bottom: -10%;
    right: -10%;
    background: rgba(0, 180, 255, 0.3);
}

@keyframes heroGridMove62cb60bb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(calc(var(--logo-size) + var(--logo-spacing)), calc(var(--logo-size) + var(--logo-spacing))); }
}

.hero-grid-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.hero-grid-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-grid-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-grid-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
}

.hero-btn .btn-icon {
    display: inline-flex;
}

.hero-btn .btn-icon svg {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

.hero-btn-primary {
    background-color: #fff;
    color: #9E9E9E;
    border: 2px solid #fff;
}

.hero-btn-primary:hover {
    background-color: transparent;
    color: #fff;
}

.hero-btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid-title { font-size: 2.2rem; }
    .hero-grid-desc { font-size: 1.1rem; }
    .hero-btn { padding: 0.7rem 1.5rem; width: 100%; }
}
