/* 
   SuspectAI - Main Stylesheet
   Theme colors:
   - Primary: #8f0000 (Dark Red)
   - Secondary: #333333 (Dark Gray)
   - Light: #f5f5f5 (Off White)
   - Dark: #111111 (Near Black)
   - Accent: #d4af37 (Gold)
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8f0000;
    --primary-dark: #700000;
    --primary-light: #a30000;
    --secondary: #333333;
    --light: #f5f5f5;
    --dark: #111111;
    --accent: #d4af37;
    --gray: #999999;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #444444;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Header */
header {
    padding: 1rem 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--secondary);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.3rem;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--primary);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #111111 0%, #333333 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--light);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ai-assistant-container {
    width: 100%;
    height: 300px;
    position: relative;
}

/* Mission Section */
.mission {
    padding: 5rem 0;
    background-color: white;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
}

.mission-content p {
    margin-bottom: 1.5rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    background-color: rgba(143, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-card .icon i {
    font-size: 2rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* AI Assistant Section */
.ai-assistant {
    padding: 5rem 0;
    background-color: white;
}

.ai-assistant-demo {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ai-assistant-demo h2 {
    padding: 1.5rem;
    background-color: var(--primary);
    color: white;
    text-align: center;
    margin: 0;
}

.assistant-container {
    display: flex;
    padding: 1.5rem;
}

.assistant-visual {
    flex: 1;
    min-height: 300px;
}

#ai-guide-container {
    width: 100%;
    height: 300px;
}

.assistant-interaction {
    flex: 2;
    padding-left: 1.5rem;
}

.chat-messages {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.message {
    display: flex;
    margin-bottom: 1.5rem;
}

.message:last-child {
    margin-bottom: 0;
}

.message.ai {
    flex-direction: row;
}

.message.user {
    flex-direction: row-reverse;
}

.message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.ai .avatar {
    background-color: var(--primary);
    color: white;
    margin-right: 1rem;
}

.message.user .avatar {
    background-color: var(--secondary);
    color: white;
    margin-left: 1rem;
}

.message .text {
    padding: 1rem;
    border-radius: 10px;
    max-width: 80%;
}

.message.ai .text {
    background-color: #f0f0f0;
}

.message.user .text {
    background-color: var(--primary);
    color: white;
}

.chat-input {
    display: flex;
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary);
}

.send-btn {
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Timeline Preview Section */
.timeline-preview {
    padding: 5rem 0;
    background-color: var(--light);
}

.timeline-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    z-index: 1;
}

.timeline-item {
    width: 45%;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.timeline-item:nth-child(odd) {
    margin-right: auto;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
}

.timeline-item:nth-child(odd)::before {
    right: -32px;
}

.timeline-item:nth-child(even)::before {
    left: -32px;
}

.time-period {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.timeline-cta {
    text-align: center;
}

/* Technical Integration Section */
.technical-integration {
    padding: 5rem 0;
    background-color: white;
}

.integration-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.integration-description {
    flex: 1;
}

.integration-description p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.integration-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.integration-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.integration-list li i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.integration-diagram {
    flex: 1;
}

.integration-diagram img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background-color: var(--dark);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #cccccc;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent);
}

.footer-logo p {
    color: #cccccc;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.link-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 0.8rem;
}

.link-group ul li a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.link-group ul li a:hover {
    color: white;
}

.footer-social h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444444;
    color: #cccccc;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .section-title, .ai-assistant-demo, .cta, .timeline-item {
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible, .section-title.visible, .ai-assistant-demo.visible, .cta.visible, .timeline-item.visible {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        width: 60%;
    }
    
    .hero-image {
        width: 40%;
    }
    
    .integration-content {
        flex-direction: column;
    }
    
    .integration-description, 
    .integration-diagram {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-logo h2 {
        margin-bottom: 0.5rem;
    }
    
    .footer-links {
        grid-column: 1 / 2;
    }
    
    .footer-social {
        grid-column: 2 / 3;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 90%;
        margin-left: auto;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: -30px;
    }
    
    .assistant-container {
        flex-direction: column;
    }
    
    .assistant-visual {
        margin-bottom: 2rem;
    }
    
    .assistant-interaction {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 1.5rem 0;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-column: 1;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-social {
        grid-column: 1;
        margin-top: 2rem;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    
    .timeline-item {
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    .chat-messages {
        max-height: 150px;
    }
}
