/* Color Palette */
:root {
    --primary: #2B2D42;    /* Deep Blue */
    --accent: #EF233C;     /* Vibrant Red */
    --light: #EDF2F4;      /* Light Gray */
    --shadow-offset: 4px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--primary);
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background: white;
    border-bottom: 3px solid var(--primary);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary);
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--primary);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    min-height: calc(100vh - 200px);
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--primary);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--primary);
    opacity: 0.9;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.cta-primary {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--primary);
}

.cta-secondary {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--primary);
}

/* Hero Visual */
.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
}

.stats-card {
    background: white;
    padding: 2rem;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--primary);
}

.stats-card:nth-child(1) {
    grid-column: 1 / -1;
    background: var(--accent);
    color: white;
}

.stats-card i {
    font-size: 2rem;
}

.stats-card span {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Features Section */
.features-section {
    padding: 4rem;
    background: white;
    border-top: 3px solid var(--primary);
}

.features-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary);
    background: var(--light);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.feature-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--primary);
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--primary);
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
    }

    .hero-section {
        padding: 2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }
}

/* Analyzer Page Styles */

body {
    background-color: #9c7bff;
   }
.analyzer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: 100vh;
    padding: 2rem;
}

.chat-section, .visualization-section {
    border: 3px solid var(--text);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--text);
    background: white;
    display: flex;
    flex-direction: column;
    /*background: linear-gradient(315deg, #ff4d4d, #4d88ff);*/
    
        background-color: #50ffaf;
       
    

}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem;
    border: 2px solid var(--text);
    box-shadow: 2px 2px 0 var(--text);
    max-width: 80%;
}

.bot-message {
    background: var(--primary);
    align-self: flex-start;
    background-color: #ff8acd;
    
}

.user-message {
    background: var(--secondary);
    align-self: flex-end;
}

.input-container {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    border-top: 3px solid var(--text);
}

textarea {
    flex-grow: 1;
    padding: 0.5rem;
    border: 2px solid var(--text);
    resize: none;
    height: 60px;
    font-size: 1rem;
    
}

.send-btn {
    padding: 0.5rem 1.5rem;
    background: var(--accent);
    border: 2px solid var(--text);
    box-shadow: 2px 2px 0 var(--text);
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.send-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--text);
}

.visualization-section {
    padding: 1rem;
    overflow-y: auto;
}

.viz-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .analyzer-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Guidelines Section */
.guidelines-section {
    padding: 4rem;
    background: var(--light);
    border-top: 3px solid var(--primary);
    text-align: center;
}

.guidelines-section h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.guidelines-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--primary);
    background: white;
    padding: 2rem;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary);
    border-radius: 8px;
}

.guidelines-content p {
    margin: 1rem 0;
    font-weight: 500;
    color: var(--primary);
}

.guidelines-content p strong {
    color: var(--accent);
    font-size: 1.3rem;
}

