
/* 1. Root Variables and Base Styles
-------------------------------------------------- */
:root {
    --primary-blue: #674ea7;
    --dark-text: #2d3748;
    --light-text: #6b7280;
    --background-light: #F7F9FB;
    --background-white: #FFFFFF;
    --border-color: #e2e8f0;
    --font-family: 'IBM Plex Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--background-white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Header & Navigation
-------------------------------------------------- */
.header {
    background: transparent;
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
}
.logo img {
    height: 35px;
    width: auto;
    display: block;
    filter: invert(1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-cta {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 87, 255, 0.1);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 87, 255, 0.2);
}


/* 3. Hero Section
-------------------------------------------------- */
.hero-section {
    background-color: var(--background-white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-cta {
    background-color: var(--primary-blue);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 87, 255, 0.15);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 87, 255, 0.25);
}

main {
    padding-top: 80px; /* Must match the .navbar height */
}

/* 4. Section Styling (General)
-------------------------------------------------- */
.features-section, .security-section, .roi-section, .research-section, .capabilities-section, .business-help-section, .chat-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* 5. Features Grid Section
-------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--background-white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border-color: var(--primary-blue);
}

.feature-icon { width: 50px; height: 50px; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-weight: 400; color: var(--light-text); font-size: 0.95rem; }

/* 7. Security Section
-------------------------------------------------- */
.security-section {
    background-color: var(--background-light);
    overflow: hidden; /* Prevents animation overflow */
}

.security-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.security-text {
    flex: 1.5;
}

.security-flowchart {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-family);
    min-width: 320px;
}

.flow-item {
    text-align: center;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    width: 100%;
}

.user-box {
    background: linear-gradient(120deg, #674EA7, #8E7CC3);
    color: white;
    max-width: 250px;
}

.secure-machine {
    border: 2px solid #8E7CC3;
    padding: 40px 20px 20px;
    position: relative;
}

.machine-label {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

.datawarp-box, .filesystem-box {
    border: 2px dashed #b0a3d4;
    color: var(--dark-text);
}

.filesystem-box {
    background-color: #f1f3f6;
}

.flow-connector {
    position: relative;
    width: 2px;
    /* A robust dashed line using gradients */
    background-image: linear-gradient(to bottom, #b0a3d4 60%, transparent 40%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
}

.flow-connector::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #b0a3d4;
}

.flow-connector span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 0.9rem;
    white-space: nowrap;
}

.user-connector {
    height: 50px;
}

.data-connector {
    margin: 15px auto;
    height: 30px;
}

/* Animation styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-up {
    opacity: 0;
    transform: translateY(20px); /* Start in the translated position */
}

.anim-fade-up.start-animation { /* Triggered by JS */
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

.security-pillars {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.security-pillars span {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.security-tagline {
    font-weight: 500;
    color: var(--primary-blue);
}

/* 7. ROI Section
-------------------------------------------------- */
.roi-section { background-color: var(--dark-text); color: white; }
.roi-content { display: flex; align-items: center; justify-content: center; gap: 50px; text-align: left; }
.roi-number { font-size: 8rem; font-weight: 600; line-height: 1; }
.roi-text h3 { font-size: 2rem; font-weight: 500; margin-bottom: 10px; }
.roi-text p { max-width: 450px; opacity: 0.8; }

/* 8. Research & Credibility Section
-------------------------------------------------- */
.research-section { background-color: var(--background-white); }
.institutions { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.institution { text-align: center; }
.institution-logo { height: 60px; margin-bottom: 20px; object-fit: contain; }
.institution p { color: var(--light-text); max-width: 350px; margin: 0 auto; }

/* 9. Core Capabilities Tab Section
-------------------------------------------------- */
.capabilities-section { background-color: var(--background-light); }
.capabilities-container { display: flex; gap: 50px; align-items: flex-start; }
.capabilities-tabs { flex: 1; display: flex; flex-direction: column; }
.tab-item { font-size: 1.1rem; font-weight: 500; color: var(--light-text); padding: 15px 20px; cursor: pointer; border-radius: 8px; border-left: 3px solid transparent; transition: all 0.3s ease; }
.tab-item:hover { background-color: var(--background-white); color: var(--primary-blue); }
.tab-item.active { color: var(--primary-blue); background-color: var(--background-white); border-left-color: var(--primary-blue); }

.capabilities-content-wrapper {
    flex: 2;
    background: var(--background-white);
    padding: 20px; /* Reduced padding to fit image nicely */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-height: 350px; /* Increased min-height for image */
    overflow: hidden; /* Ensures smooth animation */
}

.content-pane { display: none; animation: fadeIn 0.5s; }
.content-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.pane-grid {
    display: grid;
    gap: 20px;
    align-items: center;
    padding: 20px;
}

.content-text h3 { font-size: 1.6rem; margin-bottom: 15px; }
.content-text p { color: var(--light-text); }

.content-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

/* 10. Business Help Section
-------------------------------------------------- */
.business-help-section { background-color: var(--background-white); }
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.help-card { background-color: var(--background-light); border: 1px solid var(--border-color); padding: 30px; border-radius: 12px; }
.card-number { font-size: 2.5rem; font-weight: 600; color: var(--primary-blue); opacity: 0.2; margin-bottom: 10px; }
.help-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.help-card p { font-weight: 400; color: var(--light-text); font-size: 0.95rem; }

/* 11. Final CTA & Footer
-------------------------------------------------- */
.cta-final-section { background-color: var(--primary-blue); padding: 80px 0; text-align: center; }
.cta-content { max-width: 700px; }
.cta-final-section h2 { color: white; font-size: 2.5rem; font-weight: 600; margin-bottom: 15px; }
.cta-final-section p { color: white; opacity: 0.8; margin-bottom: 30px; }
.cta-final-section .hero-cta { background-color: white; color: var(--primary-blue); }
.cta-final-section .hero-cta:hover { background-color: #f0f0f0; }
.footer { background-color: var(--background-white); padding: 30px 0; border-top: 1px solid var(--border-color); text-align: center; color: var(--light-text); }

/* 12. Interactive Chat Section
-------------------------------------------------- */
.chat-section {
    background-color: var(--background-light);
}

.chat-window {
    background-color: var(--background-white);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.avatar-group { display: flex; align-items: center; }
.avatar-group .avatar { margin-right: 15px; }
.user-name { font-weight: 600; color: var(--dark-text); }
.user-status { font-size: 0.9rem; color: #22c55e; }

.chat-body {
    /* REMOVED padding and min-height */
    overflow: hidden;
}

.chat-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.chat-slide {
    flex: 0 0 100%;
    width: 100%;
    /* ADDED padding and min-height here */
    padding: 30px;
    min-height: 250px;
}

.message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.message.visible {
    opacity: 1;
    transform: translateY(0);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.ai-message .avatar {
    border: 2px solid var(--primary-blue);
    padding: 4px;
    background-color: white;
}

.bubble {
    padding: 12px 18px;
    border-radius: 20px;
    position: relative;
}
.bubble p {
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
    font-weight: 500;
    min-height: 24px; /* Prevents layout shift during typing */
}

/* User Message Styles */
.user-message {
    justify-content: flex-start;
}
.user-message .bubble {
    background-color: var(--primary-blue);
    color: white;
    border-bottom-left-radius: 4px;
}

/* AI Message Styles */
.ai-message {
    justify-content: flex-end;
    margin-left: auto;
}
.ai-message .bubble {
    background-color: #e2e8f0;
    color: var(--dark-text);
    border-bottom-right-radius: 4px;
}

/* Typing Cursor Effect */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.typing-text.done::after {
    content: '';
}

/* Thinking Indicator */
.thinking-indicator {
    display: none; /* Hidden by default, shown by JS */
    padding: 10px 0;
}
.thinking-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
    margin: 0 2px;
    animation: thinking 1.2s infinite ease-in-out;
}
.thinking-indicator span:nth-child(2) { animation-delay: 0.2s; }
.thinking-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking {
    0%, 100% { transform: scale(0.5); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
}

/* Navigation */
.chat-nav {
    display: flex;
    justify-content: center;
    padding: 0 20px 20px 20px;
    gap: 10px;
}

.nav-arrow {
    background-color: var(--dark-text);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.nav-arrow:hover {
    background-color: #000;
}

/* 13. Responsive Design
-------------------------------------------------- */
@media (max-width: 992px) {
    .nav-links { display: none; }
    
    .features-grid, .help-grid {
        grid-template-columns: 1fr;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* MODIFIED: Correctly handles stacking for the security section */
    .security-content {
        flex-direction: column;
        gap: 50px;
    }

    .roi-content { flex-direction: column; text-align: center; }
    .section-header { text-align: center !important; }

    /* --- Responsive Capabilities Section --- */
    .capabilities-container {
        flex-direction: column;
    }
    
    .capabilities-tabs {
        flex-direction: row;      
        flex-wrap: wrap;          
        justify-content: center;  
        gap: 10px;                
        margin-bottom: 30px;      
    }

    .tab-item {
        border: 1px solid var(--border-color); 
        border-radius: 50px;       
        padding: 8px 18px;         
        font-size: 0.9rem;         
        font-weight: 500;
        border-left: 1px solid var(--border-color); 
    }

    .tab-item:hover {
        background-color: #eef2f7;    
        color: var(--dark-text);
    }

    .tab-item.active {
        background-color: var(--primary-blue);
        color: white;
        border-color: var(--primary-blue);
        border-left-color: var(--primary-blue); 
    }

    .capabilities-content-wrapper {
        min-height: auto;           
        padding: 20px;
    }

    .pane-grid {
        grid-template-columns: 1fr; 
    }

    .content-image {
        margin-top: 20px; 
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    
    .institutions { 
        grid-template-columns: 1fr; 
        gap: 50px;
    }
}









/* 5b. Vision Section
-------------------------------------------------- */
.vision-section {
    background-color: var(--background-white);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.vision-text .section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
}

.vision-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 100%;
}

.accordion {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
}
.accordion-item.active .accordion-header {
    color: var(--primary-blue);
}

.accordion-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary-blue);
    font-weight: 500;
    width: 24px; /* for alignment */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.accordion-content p {
    padding: 0 20px 20px 59px; /* Aligns with text */
    color: var(--light-text);
    font-weight: 400;
}

.accordion-item.active .accordion-content {
    max-height: 200px; /* Adjust if content is taller */
    padding-top: 0;
}

/* Adjust grid for responsiveness */
@media (max-width: 992px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

