/* Content Sections Styles */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, 
        rgba(12, 18, 32, 0.05) 0%, 
        rgba(248, 250, 252, 0) 50%, 
        rgba(248, 250, 252, 1) 100%);
    pointer-events: none;
}

.features::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="rgba(59,130,246,0.1)"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-description {
    color: #64748b;
    line-height: 1.7;
}

/* Quick Start Section */
.quickstart {
    padding: 8rem 2rem;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step-description {
    color: #64748b;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 2rem;
    border-radius: 16px;
    margin: 3rem 0;
    overflow-x: auto;
    border: 1px solid #334155;
}

.code-block pre {
    margin: 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #64748b;
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
}

/* Animation Classes */
.section-animate {
    /* Remove initial opacity: 0 to make content visible by default */
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* What is SAGE Section */
.what-is-sage {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.intro-highlight {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.intro-highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.highlight-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.highlight-content p {
    color: #64748b;
    line-height: 1.6;
}

.intro-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dataflow-diagram {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    min-width: 80px;
    transition: all 0.3s ease;
}

.flow-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.flow-node i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.flow-node span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    text-align: center;
}

.flow-arrow {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: bold;
}

/* Why Choose SAGE Section */
.why-choose-sage {
    padding: 8rem 2rem;
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: #f8fafc;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.why-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.why-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Usage Examples Section */
.usage-examples {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.example-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.example-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.example-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
}

.example-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.example-header p {
    color: #64748b;
    font-size: 1rem;
}

.example-video {
    margin: 1rem 2rem;
    position: relative;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-placeholder:hover .play-button {
    background: white;
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
}

.video-overlay span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.video-overlay small {
    opacity: 0.8;
}

.example-description {
    padding: 1rem 2rem 2rem;
}

.example-description p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.example-content {
    padding: 1rem 2rem 2rem;
}

.example-content .example-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.example-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.example-description {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.example-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.example-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Enhanced Quick Start Section */
.quickstart-content {
    max-width: 1000px;
    margin: 0 auto;
}

.prerequisites {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
}

.prerequisites h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.prerequisites ul {
    list-style: none;
    padding: 0;
}

.prerequisites li {
    padding: 0.5rem 0;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.prerequisites li:last-child {
    border-bottom: none;
}

.prerequisites strong {
    color: #1e293b;
}

.installation-methods {
    margin: 3rem 0;
}

.method-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-button:hover {
    color: #1e293b;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Developer & Collaboration Section */
.developer-collaboration {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.developer-collaboration .section-title,
.developer-collaboration .section-subtitle {
    color: white;
}

.collaboration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.team-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.team-details p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.research-areas h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.research-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.research-item i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.opportunity-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.opportunity-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.opportunity-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.opportunity-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* How to Contribute Section */
.how-to-contribute {
    padding: 8rem 2rem;
    background: white;
}

.contribute-ways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.contribute-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contribute-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.contribute-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.6rem;
}

.contribute-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contribute-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.contribute-card li {
    padding: 0.5rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
}

.contribute-card li::before {
    content: '•';
    color: #3b82f6;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.contribute-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contribute-link:hover {
    color: #2563eb;
    transform: translateX(4px);
}

.contribution-process {
    margin-top: 4rem;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.contribution-process h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e293b;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.step-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.process-arrow {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-content,
    .collaboration-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dataflow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contribute-ways {
        grid-template-columns: 1fr;
    }
}

/* Article Monitoring Animation Integration */
.example-card .article-monitoring-container {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    margin: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.example-card .example-video {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 1rem 2rem;
}

/* Ensure animation container fits well in example card */
@media (max-width: 768px) {
    .example-card .article-monitoring-container {
        height: 280px;
    }
    
    .example-card .example-video {
        margin: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .example-card .article-monitoring-container {
        height: 240px;
    }
    
    .example-card .example-video {
        margin: 0.5rem;
    }
}

/* Enhanced feature tags for animation */
.example-features .feature-tag:last-child {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: 600;
}
