/* =============================================
   Patent & Brand Inquiry Platform
   Custom Styles & Animations
   ============================================= */

/* ---- Smooth scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Gradient hero background ---- */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
}

/* ---- Glass card effect ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Fade-in-up animation ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* ---- Pulse glow on CTA ---- */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    }
    50% {
        box-shadow: 0 0 20px 6px rgba(37, 99, 235, 0.3);
    }
}

.cta-glow {
    animation: pulseGlow 2.5s infinite;
}

/* ---- Card hover lift ---- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ---- Step connector line ---- */
.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #93c5fd);
    z-index: 0;
}

.step-connector:last-child::after {
    display: none;
}

/* ---- Form focus ring ---- */
.form-input-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    border-color: #2563eb;
}

/* ---- Toast notification ---- */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}

.toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

/* ---- Blog card image hover ---- */
.blog-img-wrapper {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.blog-img-wrapper img {
    transition: transform 0.4s ease;
}

.blog-img-wrapper:hover img {
    transform: scale(1.08);
}

/* ---- Mobile menu animation ---- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* ---- Scroll-triggered visibility ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Loading spinner ---- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
