/* Enhancements for University Logo Visibility and Verification UI */

/* Option 1: Light header background for better logo visibility */
header {
    background: rgba(248, 250, 252, 0.98) !important; /* Light gray background */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Option 2: White background frames for university logos */
.orbit-logo {
    transition: all 0.3s ease;
}

.orbit-logo:hover {
    transform: scale(1.05);
}

/* Specific styling for Sharjah and Zayed logos - removed white background */

/* Credential card header enhancements */
.credential-header {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%) !important; /* Light blue gradient */
}

/* Institution logo in credential cards */
.credential-header .institution-logo {
    background: white !important;
    padding: 8px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.credential-header .institution-logo img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* Adjust text colors for light background */
.credential-header .institution-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.credential-header .program-name {
    color: #334155 !important;
}

.credential-header .institution-location {
    color: #475569 !important;
}

.credential-header .certificate-type {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0F91F2 !important;
    backdrop-filter: blur(10px) !important;
}

/* Mouse pointer animation for verify button */
@keyframes mouseClick {
    0% {
        transform: translate(100px, 100px) scale(1);
        opacity: 0;
    }
    20% {
        transform: translate(50px, 50px) scale(1);
        opacity: 1;
    }
    40% {
        transform: translate(10px, 10px) scale(1);
    }
    50% {
        transform: translate(0, 0) scale(1);
    }
    60% {
        transform: translate(0, 0) scale(0.95);
    }
    70% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

.mouse-pointer {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10;
    animation: mouseClick 3s ease-in-out infinite;
    animation-delay: 2s;
}

.mouse-pointer svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}


/* Trust badge (shield) after verification */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: fadeInScale 0.5s ease-out;
    margin-left: 12px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.trust-badge svg {
    width: 20px;
    height: 20px;
}

/* Verification success animation */
.verification-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced verify button styling */
.verify-button,
.credential-verify-btn,
button[class*="verify"] {
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.verify-button:hover,
.credential-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(9, 147, 250, 0.3);
}

/* Verify button in credential cards */
.credential-verify-btn {
    background: #0F91F2 !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.credential-verify-btn:hover {
    background: #0052cc !important;
}

/* Specific enhancements for institution cards */
.institution-card .institution-logo {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Additional header enhancements for better contrast */
.navbar .logo {
    filter: brightness(0.9) contrast(1.2);
}

/* Ensure nav links have good contrast on light background */
.nav-links a {
    color: #475569;
    font-weight: 500;
}

.nav-links a:hover {
    color: #0f172a;
}

/* Make the nav CTA button more prominent */
.nav-cta {
    box-shadow: 0 2px 8px rgba(9, 147, 250, 0.2);
}

/* Text scramble effect enhancements */
.scramble-wrapper {
    min-width: 380px !important;
    display: inline-block !important;
    text-align: left !important;
}

/* Maintain consistent font for scramble effect */
.hero-title {
    font-family: 'Gotham Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Ensure scramble maintains hero title styling */
.scramble-wrapper,
.scramble-wrapper .scramble-char {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .orbit-logo {
        /* Removed padding */
    }
    
    .trust-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .mouse-pointer {
        display: none; /* Hide mouse animation on mobile */
    }
    
    .hero-title .gradient-text:last-child {
        min-width: 280px !important;
        font-size: 0.9em;
    }
}