/* Custom CSS Styles for FBS Innovation */

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #8b5cf6;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light-text: #ffffff;
    --muted-text: #94a3b8;
    --border-color: #334155;
}

/* Global Bootstrap color overrides */
:root {
	--bs-body-color: #ffffff;
	--bs-heading-color: #ffffff;
	--bs-link-color: #ffffff;
	--bs-link-hover-color: #ffffff;
	--bs-secondary-color: rgba(255, 255, 255, 0.75);
	--bs-card-color: #ffffff;
}

/* Force all text to white - global overrides */
:root {
	--bs-emphasis-color: #ffffff;
	--bs-body-color-rgb: 255, 255, 255;
}

/* Common Bootstrap text utility classes */
.text-black,
.text-dark,
.text-body,
.text-body-emphasis,
.text-body-secondary,
.text-secondary,
.text-primary,
.text-muted,
.text-light-emphasis,
.nav-link,
.navbar-brand,
a {
	color: #ffffff !important;
}

/* Ensure hover/focus don't revert */
.nav-link:hover,
.nav-link:focus,
a:hover,
a:focus {
	color: #ffffff !important;
}

/* Buttons text color */
.btn,
.btn:hover,
.btn:focus {
	color: #ffffff !important;
}

/* Element and class fallbacks to ensure white text */
body,
h1, h2, h3, h4, h5, h6,
p, span, small, label,
a, li, dt, dd,
.lead, .nav-link,
.card, .card-title, .card-text,
.text-body, .text-dark {
	color: #ffffff !important;
}

/* Ensure links stay white on hover */
a:hover {
	color: #ffffff !important;
}

/* Final global override to ensure all text is white */
body,
body * {
    color: #ffffff !important;
}

/* Global Styles */
body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Navigation */
.custom-navbar {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: rgba(248, 250, 252, 0.8) !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

/* Custom Buttons */
.btn-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 50%, var(--dark-bg) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('src/assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 2;
}

.hero-section .container {
    z-index: 3;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
}

.custom-badge {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 50px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    animation-delay: 0s;
}

.floating-2 {
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    animation-delay: 3s;
}

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

/* Secondary Background */
.bg-secondary {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1e293b 100%) !important;
}

/* Service Cards */
.service-card {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 65, 85, 0.5) !important;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.service-icon {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Contact Cards */
.contact-info-card {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 65, 85, 0.5) !important;
    transition: all 0.3s ease;
}

.contact-form-card {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 65, 85, 0.5) !important;
}

.form-control {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(51, 65, 85, 0.5) !important;
    color: var(--light-text) !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
    color: var(--light-text) !important;
}

.form-control::placeholder {
    color: var(--light-text) !important;
}

.form-label {
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 8px;
}

/* About Section */
.about-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

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

.text-muted {
    color: var(--light-text) !important;
}

/* Services text overrides */
#services .lead,
#services .card-text,
#services .text-muted {
    color: var(--light-text) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .floating-element {
        display: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus States 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) {
    :root {
        --primary-color: #60a5fa;
        --secondary-color: #3b82f6;
        --accent-color: #a78bfa;
    }
}