/* FruitBox - Main CSS */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary-color: #6B46C1;
    --primary-light: #A78BFA;
    --primary-dark: #553C9A;
    --secondary-color: #10B981;
    --secondary-light: #6EE7B7;
    --secondary-dark: #047857;
    --accent-color: #F59E0B;
    --accent-light: #FCD34D;
    --accent-dark: #D97706;
    --tertiary-color: #EF4444;
    --tertiary-light: #FCA5A5;
    --tertiary-dark: #DC2626;
    --quaternary-color: #3B82F6;
    --quaternary-light: #93C5FD;
    --quaternary-dark: #1D4ED8;
    
    /* Light/Dark Shades */
    --light-bg: #F8FAFC;
    --light-text: #64748B;
    --dark-bg: #1E293B;
    --dark-text: #1E293B;
    --white: #FFFFFF;
    --black: #0F172A;
    --text-primary-readable: #2D3748;
    --text-secondary-readable: #4A5568;
    --text-muted-readable: #718096;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max-width: 1200px;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary-readable) !important;
    background-color: var(--white) !important;
    overflow-x: hidden;
}

/* Conservative Typography */
.navbar-brand {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--primary-color);
}

h1, .display-4 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

h2, .h2 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.3;
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

h5, .h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

p, .lead {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Custom Bootstrap Color Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

.border-success {
    border-color: var(--secondary-color) !important;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--white) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary-readable) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

#hero::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 100 100"><circle cx="20" cy="20" r="2" fill="%236B46C1" opacity="0.1"/><circle cx="80" cy="80" r="3" fill="%2310B981" opacity="0.1"/><circle cx="40" cy="70" r="1.5" fill="%23F59E0B" opacity="0.1"/></svg>');
    z-index: -1;
}

/* Section Styling */
.py-5 {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Card Enhancements */
.card {
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Service Cards */
.services .card {
    border-radius: 15px;
    overflow: hidden;
}

/* Team Member Cards */
.team .card-img-top {
    border-radius: 50%;
    margin: 1rem auto;
}

/* Pricing Cards */
.priceplan .card {
    position: relative;
}

.priceplan .card.border-primary {
    border-width: 2px;
    transform: scale(1.05);
}

.priceplan .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Reviews Section */
.reviews .card {
    background: var(--white);
    border-left: 4px solid var(--primary-color);
}

/* Gallery Section */
.gallery img {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 10px;
}

.gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* FAQ Cards */
.faq .card {
    border-left: 4px solid var(--secondary-color);
}

/* Contact Form */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(107, 70, 193, 0.25);
}

/* Footer Styles */
#footer {
    background-color: var(--dark-bg) !important;
    color: var(--white) !important;
}

#footer a {
    color: #E2E8F0 !important;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--white);
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Icon Styling */
.fas, .fab {
    transition: transform 0.3s ease, color 0.3s ease;
}

.text-center .fas:hover,
.text-center .fab:hover {
    transform: scale(1.1);
    color: var(--primary-dark);
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item img {
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.breadcrumb-item img:hover {
    transform: scale(1.1);
}

/* Additional Page Sections */
.additional-page section {
    position: relative;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.1);
}

.border-radius-lg {
    border-radius: 15px;
}

/* Performance Optimizations */
.card-img-top,
.gallery img,
.team img {
    will-change: transform;
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
} 


/* Team Social Links - Retro Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 3px solid;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
}

.social-link:hover {
    transform: translateX(3px) translateY(-3px);
    box-shadow: -3px 3px 0px currentColor;
    color: white;
}

.facebook-link {
    border-color: #1877f2;
    background: #1877f2;
}

.facebook-link:hover {
    background: transparent;
    color: #1877f2;
}

.linkedin-link {
    border-color: #0a66c2;
    background: #0a66c2;
}

.linkedin-link:hover {
    background: transparent;
    color: #0a66c2;
}

.instagram-link {
    border-color: #e4405f;
    background: #e4405f;
}

.instagram-link:hover {
    background: transparent;
    color: #e4405f;
}

.x-link {
    border-color: #000000;
    background: #000000;
    position: relative;
}

.x-link::after {
    content: 'X';
    font-weight: bold;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: transparent;
    color: #000000;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ===============================================
   HIGH CONTRAST TEXT IMPROVEMENTS
   =============================================== */

/* Ensure all text has high contrast */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-primary-readable) !important;
}

p, .lead, .card-text {
    color: var(--text-primary-readable) !important;
}

/* Navigation improvements */
.navbar-brand {
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-primary-readable) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Card content readability */
.card-title {
    color: var(--text-primary-readable) !important;
}

.card-text {
    color: var(--text-secondary-readable) !important;
}

/* Button text contrast */
.btn {
    font-weight: 600 !important;
}

.btn-primary {
    color: var(--white) !important;
    background-color: var(--primary-color) !important;
}

/* Form elements contrast */
.form-label {
    color: var(--text-primary-readable) !important;
    font-weight: 600 !important;
}

.form-control {
    color: var(--text-primary-readable) !important;
    background-color: var(--white) !important;
    border: 2px solid #CBD5E0 !important;
}

.form-control:focus {
    color: var(--text-primary-readable) !important;
    background-color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

/* Pricing and special text */
.text-primary {
    color: var(--primary-color) !important;
}

/* Ensure visibility of all critical elements */
.card, .section, .platform-card, .finding-card, 
.sector-panel, .phase-card, .standard-card, 
.prediction-card, .action-item {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Footer text improvements */
#footer * {
    color: var(--white) !important;
}

#footer a:hover {
    color: var(--primary-light) !important;
}

/* Breadcrumb and small text improvements */
.breadcrumb-item {
    color: var(--text-secondary-readable) !important;
}

small, .small {
    color: var(--text-muted-readable) !important;
}

/* Reviews and testimonials */
.blockquote-footer {
    color: var(--text-secondary-readable) !important;
}

/* FAQ section */
.faq .card-title {
    color: var(--text-primary-readable) !important;
    font-weight: 600 !important;
}

/* List items and bullet points */
ul, ol, li {
    color: var(--text-secondary-readable) !important;
}

/* Fallback mechanism for guaranteed visibility */
* {
    text-shadow: none !important;
}

/* Print accessibility */
@media print {
    * {
        color: black !important;
        background: white !important;
    }
}
