/* Custom CSS for Fusiofy - Visual consistency with ForteqiaVentures */

:root {
    --primary-color: #2962ff;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    --dark-color: #0f172a;
    --darker-color: #020617;
    --light-color: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gradient-primary: linear-gradient(135deg, #2962ff 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: var(--gray-50);
    color: var(--gray-900);
}

/* Text Colors */
.text-black {
    color: #000000 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* Navigation */
.navbar {
    background: #f8f9fa !important;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(28%) sepia(94%) saturate(5042%) hue-rotate(224deg) brightness(98%) contrast(103%);
}

.footer-logo {
    height: 35px;
    width: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.hero-logo {
    height: 120px;
    width: auto;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.hero-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.hero-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    color: var(--gray-700) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: #2962ff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.pulse-animation {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(0, 123, 255, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    }
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    animation: scroll 1.5s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.6);
}

@keyframes scroll {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Value Proposition Cards */
.value-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.value-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Large screens - asymmetric layout */
@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: 
            "large medium1 medium2"
            "large small small";
    }
    
    .bento-large {
        grid-area: large;
    }
    
    .bento-medium:nth-of-type(2) {
        grid-area: medium1;
    }
    
    .bento-medium:nth-of-type(3) {
        grid-area: medium2;
    }
    
    .bento-small {
        grid-area: small;
    }
}

/* Bento Card Styles */
.bento-card {
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(41, 98, 255, 0.25);
}

/* Card Size Variants */
.bento-large {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 320px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.bento-large::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
}

.bento-medium {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 200px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.bento-medium::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
}

.bento-small {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 140px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.bento-small::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
}

/* Bento Content */
.bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-icon-wrapper {
    margin-bottom: 1rem;
}

.bento-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.bento-large .bento-icon {
    width: 80px;
    height: 80px;
}

.bento-small .bento-icon {
    width: 50px;
    height: 50px;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bento-card {
        padding: 1.5rem;
        min-height: auto !important;
    }
}

/* Uniform Card Layout */
.uniform-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 320px;
    display: flex;
}

.uniform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.uniform-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.uniform-icon-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    height: 60px;
    align-items: center;
}

.uniform-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    font-size: 1.5rem;
    color: #000;
}

.uniform-card h5 {
    margin-bottom: 1rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uniform-card p {
    flex-grow: 1;
    margin-bottom: 0;
}

/* Feature section uniform cards with off-white background */
#features .uniform-card {
    background: #f8f9fa;
}

/* Mobile responsiveness for uniform cards */
@media (max-width: 767px) {
    .uniform-card {
        padding: 1.5rem;
        min-height: 240px;
    }
    
    .uniform-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Feature Cards */
.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    position: relative;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

/* Differentiator Cards */
.differentiator-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.differentiator-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.differentiator-icon {
    transition: all 0.3s ease;
}

.differentiator-card:hover .differentiator-icon {
    transform: scale(1.2);
}

.text-light-emphasis {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Newsletter Section */
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.newsletter-form .btn-light {
    background: white;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.newsletter-form .btn-light:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* Ecosystem Items */
.ecosystem-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: white;
    box-shadow: var(--shadow-sm);
}

.ecosystem-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.ecosystem-item h6 {
    color: var(--gray-900) !important;
    font-weight: 600;
}

.ecosystem-item small {
    color: var(--gray-600) !important;
}

/* Forteqia Logo Placeholder */
.forteqia-logo-placeholder {
    transition: all 0.3s ease;
}

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

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1050;
}

/* Button Enhancements */
.btn {
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 14px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-1 {
        font-size: 3rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .hero-actions .btn {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    /* AI Technology Section Mobile Optimization */
    .featured-ai-card {
        margin-bottom: 2rem;
    }
    
    .ai-feature-item {
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem 0.75rem !important;
    }
    
    .ai-feature-item i {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .ai-feature-item small {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* Support Cards Mobile */
    .support-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }
    
    .support-tags .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    /* Ecosystem Cards Mobile */
    .ecosystem-card {
        min-height: 160px !important;
        padding: 1.5rem !important;
    }
    
    .platform-logo img {
        max-height: 60px !important;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Better spacing for mobile */
    section {
        padding: 3rem 0 !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-logo {
        height: 50px;
    }
    
    .display-1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .value-card,
    .feature-card,
    .differentiator-card {
        padding: 1rem;
    }
    
    /* AI Feature Items - Stack on small mobile */
    .ai-feature-item {
        margin-bottom: 0.75rem;
    }
    
    .ai-feature-item small {
        font-size: 0.7rem;
    }
    
    /* Newsletter form mobile */
    .newsletter-form .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Ecosystem grid mobile */
    .ecosystem-card {
        min-height: 140px !important;
        margin-bottom: 1rem;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Badge adjustments */
    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
    
    /* Footer adjustments */
    footer .container {
        text-align: center;
    }
    
    footer .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Feature Check Elements */
.feature-check {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.feature-list {
    padding: 0;
}

/* Brand Card */
.forteqia-brand-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forteqia-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl) !important;
}

.brand-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forteqia-brand-card:hover .brand-logo {
    transform: scale(1.1);
}

/* Utility Classes */
.text-gray-900 {
    color: var(--gray-900) !important;
}

.text-gray-600 {
    color: var(--gray-600) !important;
}

.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-opacity-20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

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

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
        color: #fff;
    }
    
    .value-card,
    .feature-card {
        border: 2px solid #333;
    }
}
