/* ============================================
   ULTRA PREMIUM ENHANCEMENTS
   Smooth Animations & Premium Effects
   ============================================ */

/* -------------------- CUSTOM CURSOR EFFECT -------------------- */
.custom-cursor {
    display: none;
}

@media (min-width: 992px) and (pointer: fine) {
    .custom-cursor {
        display: block;
        width: 40px;
        height: 40px;
        border: 2px solid var(--primary-gold);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 99999;
        transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
        transform: translate(-50%, -50%);
        mix-blend-mode: difference;
    }

    .custom-cursor.active {
        width: 60px;
        height: 60px;
        border-color: var(--primary-gold-light);
    }

    .custom-cursor-dot {
        display: block;
        width: 8px;
        height: 8px;
        background: var(--primary-gold);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 100000;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease-out;
    }
}

/* -------------------- ULTRA SMOOTH PAGE TRANSITIONS -------------------- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-navy), var(--secondary-navy-light));
    z-index: 99998;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}

.page-transition.active {
    transform: scaleY(1);
}

/* -------------------- PREMIUM GLASSMORPHISM -------------------- */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(26, 35, 50, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* -------------------- PREMIUM GRADIENT BORDERS -------------------- */
.gradient-border {
    position: relative;
    background: var(--neutral-white);
    z-index: 1;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark), var(--primary-gold));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* -------------------- ULTRA SMOOTH HOVER EFFECTS -------------------- */
.premium-hover {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(212, 175, 55, 0.1);
}

/* -------------------- MAGNETIC BUTTON EFFECT -------------------- */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.5s, height 0.5s;
    pointer-events: none;
}

.magnetic-btn:hover::after {
    width: 400px;
    height: 400px;
}

/* -------------------- PREMIUM TEXT ANIMATIONS -------------------- */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
}

.text-reveal.active span {
    transform: translateY(0);
    opacity: 1;
}

.text-shimmer {
    background: linear-gradient(90deg, 
        var(--secondary-navy) 0%, 
        var(--primary-gold) 50%, 
        var(--secondary-navy) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* -------------------- FLOATING ELEMENTS -------------------- */
.float-animation {
    animation: premiumFloat 6s ease-in-out infinite;
}

@keyframes premiumFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-20px) rotate(-1deg); }
}

.float-delay-1 { animation-delay: 0s; }
.float-delay-2 { animation-delay: 1s; }
.float-delay-3 { animation-delay: 2s; }

/* -------------------- PARTICLE BACKGROUND -------------------- */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* -------------------- PREMIUM LEAD CAPTURE MODAL -------------------- */
.lead-capture-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.lead-capture-modal.active {
    opacity: 1;
    visibility: visible;
}

.lead-modal-content {
    background: linear-gradient(135deg, var(--neutral-white), #F8F9FA);
    border-radius: 24px;
    max-width: 520px;
    width: 90%;
    padding: 0;
    position: relative;
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.lead-capture-modal.active .lead-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.lead-modal-header {
    background: linear-gradient(135deg, var(--secondary-navy), var(--secondary-navy-light));
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lead-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lead-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--neutral-white);
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    animation: premiumFloat 4s ease-in-out infinite;
}

.lead-modal-header h3 {
    color: var(--neutral-white);
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.lead-modal-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.lead-modal-body {
    padding: 2rem;
}

.lead-form-group {
    margin-bottom: 1.25rem;
}

.lead-form-group label {
    display: block;
    font-weight: 600;
    color: var(--secondary-navy);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.lead-form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--secondary-navy);
    background: var(--neutral-white);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.lead-form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 4px 15px rgba(212, 175, 55, 0.15);
}

.lead-form-input::placeholder {
    color: rgba(26, 35, 50, 0.4);
}

.lead-submit-btn {
    width: 100%;
    padding: 1.15rem 2rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: var(--neutral-white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.lead-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.lead-submit-btn:hover::before {
    left: 100%;
}

.lead-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.45);
}

.lead-submit-btn:active {
    transform: translateY(-1px);
}

.lead-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lead-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lead-modal-footer {
    padding: 0 2rem 1.5rem;
    text-align: center;
}

.lead-modal-footer p {
    font-size: 0.85rem;
    color: var(--neutral-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lead-modal-footer i {
    color: var(--primary-gold);
}

/* -------------------- PREMIUM SUCCESS STATE -------------------- */
.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #27AE60, #229954);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--neutral-white);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.3);
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-success h4 {
    color: var(--secondary-navy);
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.form-success p {
    color: var(--neutral-gray);
    font-size: 1rem;
}

/* -------------------- FLOATING CTA TRIGGER -------------------- */
.floating-cta {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 10px 50px rgba(212, 175, 55, 0.7), 0 0 30px rgba(212, 175, 55, 0.3);
    }
}

.floating-cta:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.6);
}

.floating-cta i {
    font-size: 1.75rem;
    color: var(--neutral-white);
}

.floating-cta-tooltip {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-navy);
    color: var(--neutral-white);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.floating-cta-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--secondary-navy);
}

.floating-cta:hover .floating-cta-tooltip {
    opacity: 1;
    visibility: visible;
    right: 90px;
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 90px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .floating-cta i {
        font-size: 1.5rem;
    }
    
    .floating-cta-tooltip {
        display: none;
    }
}

/* -------------------- SCROLL PROGRESS INDICATOR -------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-dark));
    z-index: 10001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* -------------------- PREMIUM SECTION DIVIDERS -------------------- */
.section-divider {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.section-divider-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-divider-wave svg {
    width: 100%;
    height: 100%;
}

/* -------------------- NOTIFICATION STYLES -------------------- */
.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    max-width: 380px;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    z-index: 10002;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.notification.show {
    right: 30px;
}

.notification-success {
    background: linear-gradient(135deg, #27AE60, #229954);
    color: var(--neutral-white);
}

.notification-error {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: var(--neutral-white);
}

.notification-info {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: var(--neutral-white);
}

/* -------------------- FORM FIELD ERRORS -------------------- */
.field-error {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

input.error,
textarea.error,
select.error {
    border-color: #E74C3C !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

/* -------------------- SMOOTH SCROLL ENHANCEMENTS -------------------- */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* -------------------- PREMIUM LOADING STATES -------------------- */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerLoad 1.5s infinite;
}

@keyframes shimmerLoad {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* -------------------- ULTRA PREMIUM BUTTON STATES -------------------- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.btn-primary:active::after {
    width: 400px;
    height: 400px;
}
