/* AfroTender Premium Home Design */
/* ================================ */

:root {
    /* Premium Color Palette */
    primary: #4A90E2;
    primary-dark: #357AE8;
    primary-light: #5D9CEC;
    primary-soft: rgba(74, 144, 226, 0.1);
    
    secondary: #6C757D;
    success: #2ECC71;
    success-soft: rgba(46, 204, 113, 0.1);
    warning: #FF9F43;
    arning-soft: rgba(255, 159, 67, 0.1);
    danger: #E74C3C;
    danger-soft: rgba(231, 76, 60, 0.1);
    info: #3498DB;
    info-soft: rgba(52, 152, 219, 0.1);
    purple: #9B59B6;
    
    dark: #2C3E50;
    darker: #1A252F;
    light: #F8F9FA;
    lighter: #FFFFFF;
    
    gray-100: #F8F9FA;
    gray-200: #E9ECEF;
    gray-300: #DEE2E6;
    gray-700: #495057;
    gray-800: #343A40;
    gray-900: #212529;
    
    /* Gradients */
    gradient-primary: linear-gradient(135deg, #4A90E2 0%, #357AE8 100%);
    gradient-primary-dark: linear-gradient(135deg, #357AE8 0%, #2C65CC 100%);
    gradient-warning: linear-gradient(135deg, #FF9F43 0%, #FF8C00 100%);
    gradient-success: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    gradient-dark: linear-gradient(135deg, #2C3E50 0%, #1A252F 100%);
    
    /* Shadows */
    shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    shadow-xl: 0 15px 60px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-fast: all 0.2s ease;
    
    /* Border Radius */
    radius-sm: 8px;
    radius: 12px;
    radius-lg: 20px;
    radius-xl: 30px;
    
    /* Spacing */
    section-padding: 5rem;
}

/* Premium Hero Section */
.premium-hero {
    background: var(--gradient-primary-dark);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.03" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>'),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50,5 L95,95 L5,95 Z" fill="%23ffffff" fill-opacity="0.02"/></svg>');
    background-position: bottom, 20% 30%;
    background-repeat: no-repeat, repeat;
    background-size: cover, 100px 100px;
    opacity: 0.3;
}

.hero-content {
    padding: 2rem 0;
}

.trust-badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient-primary {
    background: linear-gradient(135deg, #FF9F43 0%, #FFC107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
    width: 100%;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%) rotate(3deg);
}

.floating-card:nth-child(2) {
    animation-delay: 2s;
    width: 200px;
}

.floating-card:nth-child(3) {
    animation-delay: 4s;
    width: 200px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl) !important;
}

/* Quick Stats */
.quick-stats {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    position: relative;
    padding-right: 2rem;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Scroll Indicator */
.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* Value Bar */
.value-bar {
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.value-item {
    padding: 1rem;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Process Section */
.section-process {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.process-step {
    padding: 2rem;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.step-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.process-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Tender Cards */
.tender-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.tender-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary-light);
}

.tender-card .card-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    position: relative;
    border-bottom: none;
}

.tender-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
}

.tender-code {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.company-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item {
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

/* AI Features Section */
.section-ai {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.section-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(46, 204, 113, 0.05) 0%, transparent 50%);
}

.ai-dashboard {
    padding: 2rem;
}

.bg-gray-800 {
    background-color: rgba(52, 58, 64, 0.8) !important;
}

.bg-gray-900 {
    background-color: rgba(33, 37, 41, 0.9) !important;
}

.border-gray-700 {
    border-color: #495057 !important;
}

.metric-card {
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    background-color: rgba(33, 37, 41, 1) !important;
}

/* Trust Section */
.testimonial-card {
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary);
}

.testimonial-rating i {
    margin-right: 2px;
}

.stat-highlight {
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-highlight:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Logo Grid */
.logo-grid {
    opacity: 0.8;
}

.logo-placeholder {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    opacity: 1;
}

/* CTA Section */
.section-cta {
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 159, 67, 0.1) 0%, transparent 50%);
}

.bg-gradient-primary {
    background: var(--gradient-primary-dark) !important;
}

.cta-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float-element 20s infinite linear;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.element-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 10s;
}

.element-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 5s;
}

@keyframes float-element {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Trust Signals */
.trust-signals .signal-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: var(--transition);
}

.trust-signals .signal-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Utility Classes */
.min-vh-90 {
    min-height: 90vh;
}

.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.mb-6 {
    margin-bottom: 4rem !important;
}

.mt-6 {
    margin-top: 4rem !important;
}

.bg-white-10 {
    background: rgba(255, 255, 255, 0.1) !important;
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .premium-hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 3rem;
    }
    
    .floating-card {
        position: relative !important;
        margin-bottom: 1rem;
        animation: none !important;
        transform: none !important;
    }
    
    .stat-item {
        padding-right: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.process-step,
.tender-card,
.ai-feature,
.testimonial-card {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }

.tender-card:nth-child(1) { animation-delay: 0.1s; }
.tender-card:nth-child(2) { animation-delay: 0.2s; }
.tender-card:nth-child(3) { animation-delay: 0.3s; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}