/* AFRILAB Custom Styles - Mining & Chemical Theme */

/* Laboratory Visual Cards */
.laboratory-visual .lab-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    position: relative;
}

.laboratory-visual .lab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mining Pattern Background */
.lab-icon-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(0,123,255,0.05) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.lab-card:hover .lab-icon-bg::before {
    transform: rotate(45deg) scale(1.1);
}

/* Mining Service Cards */
.mining-service-card {
    overflow: hidden;
    transition: all 0.4s ease;
}

.mining-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.mining-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Lab Feature Cards */
.lab-feature-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.lab-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #007bff;
}

/* Enhanced Button Styles */
.btn-outline-light:hover {
    background-color: #fff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Section spacing improvements */
.section-gap {
    padding: 80px 0;
}

/* Typography enhancements */
.main-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.main-banner h6 {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.features-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Logo filter for dark backgrounds */
.logo-dark-filter {
    filter: brightness(0) invert(1);
}

/* Contact cards */
.contact-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.contact-card:hover::before {
    left: 100%;
}

/* Laboratory Background Patterns */
.lab-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><path d="M30 10 L40 20 L30 30 L20 20 Z" fill="rgba(0,123,255,0.05)" opacity="0.5"/><circle cx="15" cy="45" r="3" fill="rgba(40,167,69,0.05)" opacity="0.7"/><rect x="45" y="5" width="6" height="6" fill="rgba(255,193,7,0.05)" opacity="0.6"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

/* Lab Icon Wrapper */
.lab-icon-wrapper {
    position: relative;
    display: inline-block;
}

.lab-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(0,123,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

/* Login Page Enhancements */
.afrilab-login-header {
    position: relative;
}

.afrilab-login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0,123,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.afrilab-login-btn {
    position: relative;
    overflow: hidden;
}

.afrilab-login-btn::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 ease;
}

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

/* Responsive improvements */
@media (max-width: 768px) {
    .main-banner h1 {
        font-size: 2.5rem;
    }
    
    .main-banner h6 {
        font-size: 1rem;
    }
    
    .section-gap {
        padding: 60px 0;
    }
    
    .laboratory-visual {
        padding: 20px !important;
    }
}

/* Icon improvements */
.theme-avtar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
}

/* Footer link hover effects */
footer a:hover {
    color: #007bff !important;
    text-decoration: none;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Navigation improvements */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

/* Badge improvements */
.badge {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Card body padding improvements */
.features-section .card-body {
    padding: 2rem;
}

/* Background gradient for hero section */
.main-banner.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Contact section improvements */
#contact .card {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#contact .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
