/* Define root variables for the glow effect */
:root {
    --x: 50%;
    --y: 50%;
    /* Darker theme with deep purple */
    --site-blue: #283593; /* Deep Indigo */
    --deep-purple-glow: rgba(108, 2, 119, 0.6); /* Deep Purple */
    --light-blue-glow: rgba(80, 120, 220, 0.5); /* Muted light blue for blending */

    --button-gradient: radial-gradient(
        circle at var(--x) var(--y), 
        var(--light-blue-glow) 0%, 
        var(--deep-purple-glow) 40%, 
        transparent 70%
    );
    --button-bg-color: var(--site-blue);
    --button-text-color: #FFFFFF;
    --button-hover-bg-color: #303F9F; /* Slightly lighter deep blue for hover */
    --button-pulse-color: rgba(80, 120, 220, 0.7); /* Blue for the border pulse */
}

/* Keyframe for border pulse */
@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0px rgba(var(--button-pulse-color), 0.7), 0 6px 20px rgba(0, 0, 0, 0.15); /* Initial shadow + base shadow */
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--button-pulse-color), 0), 0 10px 25px rgba(0, 0, 0, 0.2); /* Expanded, faded pulse + hover shadow */
    }
    100% {
        box-shadow: 0 0 0 0px rgba(var(--button-pulse-color), 0), 0 6px 20px rgba(0, 0, 0, 0.15); /* Faded pulse + base shadow */
    }
}

/* CTA button below features with orange glow */
.hero-cta-bottom {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 15px;
    width: 100%;
}

.glow-button {
    position: relative;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border-radius: 50px; /* More rounded */
    padding: 18px 36px; /* Increased padding */
    font-weight: 600; /* Slightly less bold for modern feel */
    font-size: 16px; /* Larger font size */
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
    /* Base shadow is now part of the animation to avoid conflict */
    border: none; /* Remove existing border if any */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: borderPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1); /* Added border pulse animation */
}

/* Glow effect container */
.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--button-gradient);
    /* background-position: var(--x) var(--y); // This will be controlled by JS for mouse follow */
    z-index: 1;
    opacity: 0.8; /* Initial lower opacity for the glow */
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(1.8); /* Slightly larger glow */
}

/* Text and arrow styling */
.glow-button span,
.glow-button svg {
    position: relative;
    z-index: 2;
    color: var(--button-text-color);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.glow-button svg {
    margin-left: 10px; /* Increased margin for arrow */
    width: 18px; /* Slightly larger arrow */
    height: 10px;
}

/* Remove the top reflection line for a cleaner look */
.glow-button::after {
    /* content: ''; */ /* Commenting out the reflection line */
    /* position: absolute; */
    /* top: 0; */
    /* left: 10%; */
    /* right: 10%; */
    /* height: 1px; */
    /* background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0) 100%
    ); */
    /* z-index: 3; */
}

/* Hover state - enhance the glow and button appearance */
.glow-button:hover {
    background-color: var(--button-hover-bg-color);
    transform: translateY(-3px) scale(1.03); /* Lift and slightly scale up */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.glow-button:hover::before {
    opacity: 1; /* Full opacity glow on hover */
    transform: scale(2.2); /* Expand glow further on hover */
}

.glow-button:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-cta-bottom {
        margin-top: 20px;
    }
    
    .glow-button {
        padding: 12px 24px; /* Slightly more compact padding */
        font-size: 14px; /* Slightly smaller font */
        /* The borderPulse animation will still apply, 
           but its visual impact might be less on a smaller button.
           If a more distinct mobile shadow is needed, we can override part of it here. 
           For now, let's see how the existing animation scales down. */
    }

    .glow-button svg {
        width: 16px; /* Adjust arrow size for mobile */
        height: 9px;
        margin-left: 8px; /* Adjust arrow margin for mobile */
    }
} 