/* ==========================================================================
   DevsCorp Modern UI v4.0 — Premium Dark-Glassmorphism Custom Stylesheet
   ========================================================================= */
/* === GLOBAL PERFORMANCE LAYER === */
* {
    box-sizing: border-box;
}

/* === HEADER — PREMIUM DARK GLASS === */
.elementor-location-header {
    background: rgba(8, 12, 20, 0.72) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
}

/* navigation items */
.elementor-location-header a,
.elementor-location-header .elementor-item {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    transition: color 0.25s ease !important;
}
.elementor-location-header a:hover,
.elementor-location-header .elementor-item:hover,
.elementor-location-header .elementor-item-active,
.elementor-location-header .current-menu-item > a {
    color: #818cf8 !important;
}

/* === BUTTONS — GRADIENT PILL WITH GLOW === */
.elementor-button,
.elementor-button-link,
.wpr-button,
.wpforms-submit,
button.wpforms-submit {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 60%, #818cf8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 15px 34px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1;
}

.elementor-button:hover,
.elementor-button-link:hover,
.wpr-button:hover,
.wpforms-submit:hover,
button.wpforms-submit:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* sheen sweep */
.elementor-button::before,
.wpr-button::before,
.wpforms-submit::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: -75% !important;
    width: 50% !important; height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transform: skewX(-20deg) !important;
    transition: left 0.6s ease !important;
    z-index: -1;
}
.elementor-button:hover::before,
.wpr-button:hover::before,
.wpforms-submit:hover::before {
    left: 125% !important;
}

/* === CARDS — ELITE DARK GLASSMORPHIC WITH SPOTLIGHTS === */
.wpr-info-box,
.elementor-widget-icon-box,
.elementor-widget-image-box,
.elementor-card {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 36px 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    transition: border-color 0.4s ease, background-color 0.4s ease !important;
    position: relative !important;
}

/* Keep card child contents elevated above spotlights */
.wpr-info-box *,
.elementor-widget-icon-box *,
.elementor-widget-image-box *,
.elementor-card * {
    position: relative;
    z-index: 2;
}

/* Dynamic Spotlight Hover Border (Tracks Mouse) */
.wpr-info-box::after,
.elementor-widget-icon-box::after,
.elementor-widget-image-box::after {
    content: '' !important;
    position: absolute !important;
    inset: -1px !important;
    border-radius: 25px !important;
    background: radial-gradient(
        250px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(99, 102, 241, 0.38),
        rgba(168, 85, 247, 0.18) 50%,
        transparent 100%
    ) !important;
    z-index: -1 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

/* Dynamic Spotlight Hover Background (Tracks Mouse) */
.wpr-info-box::before,
.elementor-widget-icon-box::before,
.elementor-widget-image-box::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 23px !important;
    background: radial-gradient(
        350px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(99, 102, 241, 0.08),
        transparent 50%
    ) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

.wpr-info-box:hover::after,
.elementor-widget-icon-box:hover::after,
.elementor-widget-image-box:hover::after,
.wpr-info-box:hover::before,
.elementor-widget-icon-box:hover::before,
.elementor-widget-image-box:hover::before {
    opacity: 1 !important;
}

.wpr-info-box:hover,
.elementor-widget-icon-box:hover,
.elementor-widget-image-box:hover {
    border-color: rgba(99, 102, 241, 0.15) !important;
    background: rgba(20, 27, 47, 0.55) !important;
}

/* CARD TYPOGRAPHY OVERRIDES (High Contrast Readable Text) */
.wpr-info-box-title, 
.elementor-icon-box-title,
.elementor-icon-box-title a,
.elementor-icon-box-title span,
.elementor-image-box-title,
.elementor-image-box-title a,
.elementor-image-box-title span {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 12px !important;
}

.elementor-icon-box-wrapper .elementor-icon-box-description,
.elementor-icon-box-content .elementor-icon-box-description,
.elementor-icon-box-description,
.wpr-info-box-description,
.elementor-image-box-description,
.wpr-info-box p,
.elementor-widget-icon-box p,
.elementor-widget-image-box p,
.elementor-card p,
.elementor-text-editor p,
.elementor-widget-text-editor p {
    color: #cbd5e1 !important; /* Extremely high contrast light-slate text */
    font-size: 15px !important;
    line-height: 1.625 !important;
    font-weight: 400 !important;
}

/* Icon animations inside interactive environment */
.elementor-icon,
.wpr-info-box-icon i,
.elementor-widget-icon-box .elementor-icon i {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.wpr-info-box:hover .wpr-info-box-icon i,
.elementor-widget-icon-box:hover .elementor-icon i,
.elementor-widget-icon-box:hover i,
.elementor-widget-image-box:hover img {
    transform: scale(1.15) rotate(5deg) !important;
    color: #818cf8 !important;
}

/* === TESTIMONIALS — SLATE GLASS === */
.elementor-testimonial-wrapper,
.wpr-testimonial-box {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 36px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.elementor-testimonial-wrapper:hover,
.wpr-testimonial-box:hover {
    transform: translateY(-6px) !important;
    background: rgba(20, 27, 47, 0.55) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

/* Testimonial typography */
.elementor-testimonial-content,
.wpr-testimonial-text {
    color: #cbd5e1 !important;
    font-size: 16px !important;
    line-height: 1.625 !important;
}
.elementor-testimonial-title,
.elementor-testimonial-name,
.wpr-testimonial-name {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}
.elementor-testimonial-job,
.wpr-testimonial-job {
    color: #818cf8 !important;
    font-weight: 500 !important;
}

/* === FORMS — ELITE DARK GLASS & GLOWING INPUTS === */
.wpforms-container,
.wpforms-container-css,
form.wpforms-form:not(.wpforms-container .wpforms-form) {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 40px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
}

/* If form is nested inside a container, strip its default style */
.wpforms-container .wpforms-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.wpforms-field-label,
.wpforms-field-sublabel,
.wpforms-title,
.wpforms-description,
.wpforms-form label {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
}

.wpforms-required-label {
    color: #ef4444 !important;
}

.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="url"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="number"],
.wpforms-form textarea,
.wpforms-form select,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 15px 18px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.wpforms-form input[type="text"]::placeholder,
.wpforms-form input[type="email"]::placeholder,
.wpforms-form textarea::placeholder,
.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
    color: #64748b !important;
}

.wpforms-form input[type="text"]:focus,
.wpforms-form input[type="email"]:focus,
.wpforms-form textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
    border-color: #6366f1 !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.22) !important;
    outline: none !important;
    color: #ffffff !important;
}

/* === FOOTER === */
.elementor-location-footer {
    background: linear-gradient(180deg, #070a12 0%, #030509 100%) !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(99, 102, 241, 0.08) !important;
}
.elementor-location-footer a {
    color: #94a3b8 !important;
    transition: all 0.25s ease !important;
}
.elementor-location-footer a:hover {
    color: #818cf8 !important;
    text-shadow: 0 0 10px rgba(129, 140, 248, 0.3) !important;
}
.elementor-location-footer h1, .elementor-location-footer h2,
.elementor-location-footer h3, .elementor-location-footer h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* === SCROLL-TO-TOP === */
.wpr-back-to-top button {
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}
.wpr-back-to-top button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5) !important;
}

/* === SCROLL REVEAL ANIMATION === */
.dc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.dc-reveal.dc-visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger classes */
.dc-reveal:nth-child(2) { transition-delay: 0.08s; }
.dc-reveal:nth-child(3) { transition-delay: 0.16s; }
.dc-reveal:nth-child(4) { transition-delay: 0.24s; }
.dc-reveal:nth-child(5) { transition-delay: 0.32s; }

/* === DARK SECTIONS OVERRIDE === */
.elementor-section[data-settings*="background_color"][data-settings*="#121723"] h1,
.elementor-section[data-settings*="background_color"][data-settings*="#121723"] h2,
.elementor-section[data-settings*="background_color"][data-settings*="#121723"] h3 {
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* === RESPONSIVE POLISH === */
@media (max-width: 767px) {
    .wpr-info-box, .elementor-widget-icon-box {
        padding: 28px 24px !important;
        border-radius: 18px !important;
    }
    .elementor-button, .wpr-button {
        padding: 13px 26px !important;
        font-size: 14px !important;
    }
    body::before, body::after {
        display: none;
    }
}

/* === SIGNUP CARD OVERLAP FIX === */
.elementor-widget-wpforms.elementor-element-edf9a91 {
    margin-top: 20px !important;
}

/* === CUSTOM SCROLLBAR OVERRIDE === */
::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
}
::-webkit-scrollbar-track {
    background: rgba(14, 19, 30, 0.4) !important;
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35) !important;
    border-radius: 10px !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    transition: background-color 0.3s ease !important;
}
::-webkit-scrollbar-thumb:hover {
    background: #6366f1 !important;
}
/* Firefox */
* {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(99, 102, 241, 0.35) rgba(14, 19, 30, 0.4) !important;
}

