/* Custom Dark Theme Styles */
:root {
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --primary: #5A9BD4;
    --primary-hover: #1a64a4;
    --secondary: #2d3748;
    --text-light: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: #2d3748;
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Override Bootstrap dark theme */
.bg-dark {
    background-color: var(--card-bg) !important;
}

.bg-darker {
    background-color: var(--darker-bg) !important;
}

.navbar-dark {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.text-primary {
    color: var(--primary) !important;
}

/* Card styling */
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Hero section */
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(90, 155, 212, 0.2), rgba(10, 10, 10, 0.9)),
        url("images/hero-bg.jpg") no-repeat center center/cover;
    position: relative;
    color: var(--text-light);
    border-bottom: 3px solid var(--primary);
}

.hero-section h1 {
    text-shadow: 0 0 15px rgba(90, 155, 212, 0.8);
}

.hero-section .btn-primary {
    box-shadow: 0 0 15px rgba(90, 155, 212, 0.5);
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(90, 155, 212, 0.8);
}


.vision-section {
    background: url("images/vision-bg.jpg") no-repeat center center/cover fixed;
    padding: 80px 0;
    color: white;
    text-align: center;
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
}




/* Features section */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(109, 90, 205, 0.1);
    border-radius: 50%;
}

.card {
    perspective: 1000px;
}

.card:hover {
    transform: translateY(-8px) rotateY(5deg);
    transition: transform 0.4s ease-in-out;
}


/* services section*/
.flagship {
    text-align: center;
}

.vision {
    text-align: center;
}

.lead {
    text-align: center;
}


/* Footer styling */
footer {
    border-top: 1px solid var(--border-color);
}

footer a:hover {
    color: var(--primary) !important;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-widget-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-widget-button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.chat-widget-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    display: none;
}

.chat-header {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 5px;
}

.user-message {
    align-self: flex-end;
    background-color: var(--primary);
    color: white;
    border-top-right-radius: 4px;
}

.bot-message {
    align-self: flex-start;
    background-color: var(--secondary);
    color: white;
    border-top-left-radius: 4px;
}

.chat-input {
    padding: 15px;
    display: flex;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    background-color: var(--dark-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.chat-input input:focus {
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(109, 90, 205, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .chat-widget-container {
        width: 300px;
        right: -10px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-widget-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .chat-widget-container {
        width: 90vw;
        height: 70vh;
        bottom: 80px;
        right: -10px;
    }
}

/* Form Styling */
.form-control,
.form-select {
    background-color: var(--dark-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(109, 90, 205, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Login & Register Pages */
.auth-container {
    min-height: calc(100vh - 76px);
    /* Navbar height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    border-radius: 10px;
}

/* Pricing Tables */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
}

.pricing-card.highlighted {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 1;
}

/* FAQ Accordion */
.accordion-button {
    background-color: var(--card-bg) !important;
    color: var(--text-light) !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    box-shadow: none;
}

.accordion-body {
    background-color: var(--dark-bg);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e2e8f0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Careers Page */
.job-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.job-card:hover {
    border-left-color: var(--primary);
}

/*team and founding members page*/
.team-card {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-card img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    margin: auto;
}

/*milestones page*/
.card {
    height: 100%;
    min-height: 200px;
}

/*cta section*/
.cta-section {
    background-color: #5A9BD4;
}

/* Split background style for XMbot.ai section */
.xmbot-section {
    background: linear-gradient(90deg, #0a0a0a 50%, #121212 50%);
    border-radius: 12px;
    padding: 40px;
}

/* Animated feature list */
.feature-list li {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeIn 0.8s forwards;
}

.feature-list li:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-list li:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-list li:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-list li:nth-child(4) {
    animation-delay: 0.8s;
}

.feature-list li:nth-child(5) {
    animation-delay: 1s;
}

.feature-list li:nth-child(6) {
    animation-delay: 1.2s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Highlighted headers & badges */
h2.fw-bold {
    text-shadow: 0 0 8px rgba(90, 155, 212, 0.7);
}

.badge {
    box-shadow: 0 0 10px rgba(90, 155, 212, 0.5);
}

/* Split background style for IVA Core */
.iva-section {
    background: linear-gradient(90deg, #121212 50%, #0a0a0a 50%);
    border-radius: 12px;
    padding: 40px;
}

/* Animated IVA feature list */
.iva-list li {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeIn 0.8s forwards;
}

.iva-list li:nth-child(1) {
    animation-delay: 0.2s;
}

.iva-list li:nth-child(2) {
    animation-delay: 0.4s;
}

.iva-list li:nth-child(3) {
    animation-delay: 0.6s;
}

.iva-list li:nth-child(4) {
    animation-delay: 0.8s;
}

/* Headers & badges */
.iva-section h2 {
    text-shadow: 0 0 8px rgba(90, 155, 212, 0.7);
}

.iva-section .badge {
    box-shadow: 0 0 10px rgba(90, 155, 212, 0.5);
}


/* Footer Styling */
.footer {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #5A9BD4, #1a64a4);
    border-image-slice: 1;
}

.footer h5,
.footer h6 {
    color: var(--text-light);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(90, 155, 212, 0.5);
}

.footer-bottom {
    color: var(--text-muted);
}


/* -------------------- ABOUT PAGE CUSTOM STYLES -------------------- */

/* Hero About Section */
.hero-about {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/about-bg.jpg') center/cover no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards Hover Glow */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

/* Timeline Items */
.timeline-item {
    padding: 1.5rem 2rem;
    position: relative;
    width: 50%;
}

.timeline-item h4 {
    color: var(--primary);
    font-weight: bold;
}

.timeline-item p {
    margin: 0.5rem 0 0;
}

/* Left Side */
.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.left::before {
    content: '●';
    position: absolute;
    right: -12px;
    top: 20px;
    font-size: 18px;
    color: var(--primary);
}

/* Right Side */
.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item.right::before {
    content: '●';
    position: absolute;
    left: -12px;
    top: 20px;
    font-size: 18px;
    color: var(--primary);
}

/* Responsive Timeline */
@media (max-width: 767px) {
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        text-align: left !important;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 10px;
        right: auto;
    }
}

/* Hover effect for Team/Advisor cards */
.team-card,
.advisor-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

.team-card:hover,
.advisor-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(145deg, var(--card-bg), var(--darker-bg));
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #5A9BD4, #1a64a4);
    padding: 4rem 2rem;
    border-radius: 12px;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
}

/* contact page styling */
header.hero-contact {
    background: linear-gradient(135deg, #2D1B69, #4ECDC4);
    padding: 6rem 0;
    color: #fff;
}

.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.info-card i {
    color: #fff;
    padding: 15px;
    border-radius: 50%;
}

.cta-box {
    background: linear-gradient(135deg, #2D1B69, #4ECDC4);
    color: #fff;
    border-radius: 20px;
    padding: 3rem;
}

.cta-box h2 {
    font-weight: bold;
}

.cta-box .btn-light {
    font-weight: 600;
    border-radius: 30px;
}