/* Additional custom styles for Jaba Services website */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom focus styles for better accessibility */
.focus\:ring-2:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3);
}

/* Enhanced button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Custom animations for brand cards */
.brand-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
}

/* Loading animation for form submission */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* Enhanced text shadows for better readability */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom border radius for modern look */
.rounded-modern {
    border-radius: 16px;
}

/* Responsive typography */
@media (max-width: 768px) {
    .text-responsive {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
}

/* Enhanced CSS3 Logo Styles */

/* Navigation Logo */
.logo-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-circle {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.logo-circle:hover::before {
    transform: translateX(100%);
}

.logo-letter {
    color: white;
    font-weight: bold;
    font-size: 20px;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #1e40af, #3b82f6, #60a5fa, #1e40af);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.7; }
}

/* Hero Logo */
.hero-logo-container {
    position: relative;
    width: 96px;
    height: 96px;
}

.hero-logo-circle {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.8),
        inset 0 2px 4px rgba(255,255,255,0.9);
    transition: all 0.4s ease;
    overflow: hidden;
}

.hero-logo-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from 0deg, transparent, rgba(30, 64, 175, 0.1), transparent, rgba(30, 64, 175, 0.1), transparent);
    animation: heroLogoRotate 4s linear infinite;
}

.hero-logo-letter {
    color: #1e40af;
    font-weight: bold;
    font-size: 48px;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
    animation: heroLogoFloat 3s ease-in-out infinite;
}

@keyframes heroLogoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.hero-logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: heroLogoGlow 2s ease-in-out infinite alternate;
}

@keyframes heroLogoGlow {
    from { opacity: 0.3; transform: scale(1); }
    to { opacity: 0.8; transform: scale(1.1); }
}

.hero-logo-pulse {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(30, 64, 175, 0.3);
    border-radius: 50%;
    animation: heroLogoPulse 2s ease-in-out infinite;
}

@keyframes heroLogoPulse {
    0% { 
        transform: scale(0.8);
        opacity: 1;
    }
    100% { 
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Footer Logo */
.footer-logo-container {
    position: relative;
    width: 32px;
    height: 32px;
}

.footer-logo-circle {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
    transition: all 0.3s ease;
}

.footer-logo-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.6);
}

.footer-logo-letter {
    color: white;
    font-weight: bold;
    font-size: 16px;
    z-index: 2;
    position: relative;
}

.footer-logo-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #1e40af, #3b82f6, #60a5fa);
    border-radius: 9px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-logo-circle:hover .footer-logo-glow {
    opacity: 0.8;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    /* Disable animations for print */
    .logo-circle::before,
    .hero-logo-circle::before,
    .hero-logo-letter,
    .hero-logo-glow,
    .hero-logo-pulse {
        animation: none !important;
    }
}
