/* Base Styles */
:root {
    --primary-color: #6200ea;
    --secondary-color: #03dac6;
    --dark-color: #121212;
    --light-color: #f5f5f5;
    --text-color: #333333;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

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

h1, h2, h3, h4 {
    margin-bottom: 15px;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #7c4dff;
}

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

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

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

nav ul {
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: var(--text-color);
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9c27b0 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Content */
.featured-content {
    padding: 60px 0;
}

.featured-content h2 {
    text-align: center;
    margin-bottom: 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
}

.card p {
    margin-bottom: 20px;
}

/* Newsletter */
.newsletter {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

#newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
}

#newsletter-form button {
    border-radius: 0 5px 5px 0;
}

/* Footer */
footer {
    background-color: white;
    padding: 30px 0;
    text-align: center;
}

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

.social-links a {
    margin-left: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    footer .container {
        flex-direction: column;
    }

    .social-links {
        margin-top: 15px;
    }

    #newsletter-form {
        flex-direction: column;
    }

    #newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    #newsletter-form button {
        border-radius: 5px;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9c27b0 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section h3 {
    text-align: center;
    margin-bottom: 30px;
}

/* Tool Categories */
.tool-categories {
    background-color: white;
    padding: 30px 0;
    margin-bottom: 20px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.category-btn {
    background-color: #f0f0f0;
    color: var(--text-color);
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure the grid layout is applied correctly */
@media (min-width: 1080px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tool-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.tool-card h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.tool-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.rating {
    color: #f39c12;
    margin-bottom: 15px;
}

.tool-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.external-link {
    font-size: 0.9rem;
}

/* Performance Charts Page */
.benchmark-navigation {
    background-color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

.chart-container {
    height: 400px;
    margin: 30px 0;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.model-item {
    display: flex;
    align-items: center;
}

.model-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benchmark-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.score-highlight {
    margin-top: 15px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.comparison-controls {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.model-selection {
    flex: 1;
    min-width: 200px;
}

.model-selection label {
    display: block;
    margin-bottom: 5px;
}

.model-selection select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.comparison-chart-container {
    height: 350px;
    margin-top: 30px;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-vision {
    margin-bottom: 50px;
}

.what-we-do-list {
    margin: 30px 0;
}

.what-we-do-list li {
    display: flex;
    margin-bottom: 30px;
}

.what-we-do-list .icon {
    font-size: 2rem;
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.team-section {
    background-color: white;
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
}

.placeholder-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 auto 20px;
}

.member-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.member-social {
    margin-top: 15px;
}

.member-social a {
    margin: 0 10px;
    font-size: 0.9rem;
}

.values-section {
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.value-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.value-card h4 {
    color: var(--primary-color);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-item .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.faq-section {
    background-color: #f8f8f8;
    padding: 60px 0;
    margin-top: 50px;
}

.faq-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.faq-item h4 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h4::after {
    content: "+";
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-item.active h4::after {
    content: "-";
}

.faq-item p {
    margin-top: 15px;
    display: block;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-top: 30px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container, 
    .comparison-chart-container {
        height: 300px;
    }
    
    .score-highlight {
        flex-direction: column;
    }
    
    .category-buttons {
        flex-direction: column;
    }
    
    .category-btn {
        width: 100%;
    }
}

/* Article Content Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.content-section .container {
    display: block;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.info-box {
    background-color: #f0f4ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.technique-card {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.example-box {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.95rem;
}

.example-box pre {
    background-color: #eaeaea;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.model-specific {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pattern {
    margin-bottom: 25px;
}

.pattern pre {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9c27b0 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.cta-box h3 {
    color: white;
}

.cta-box .btn {
    background-color: white;
    color: var(--primary-color);
    margin-top: 15px;
}

.cta-box .btn:hover {
    background-color: #f0f0f0;
}

.resource-links {
    margin-top: 30px;
}

.resource-links ul {
    list-style-type: disc;
    padding-left: 20px;
}

.resource-links li {
    margin-bottom: 10px;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.toc, .related-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.toc ul, .related-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

.toc li, .related-content li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .content-section .container {
        grid-template-columns: 3fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 30px;
    }
}

.section-divider {
    margin: 40px 0;
    text-align: center;
}