.tech-main {
    padding-top: 80px;
}

.tech-hero {
    background: linear-gradient(rgba(37,99,235,0.1), rgba(37,99,235,0.05));
    padding: 4rem 2rem;
    text-align: center;
}

.tech-hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tech-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 1rem;
}

.tech-nav-item {
    text-decoration: none;
    color: var(--dark-gray);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tech-nav-item.active {
    color: var(--primary-color);
    background: rgba(37,99,235,0.1);
}

.tech-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.tech-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-subtitle {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.tech-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.tech-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.tech-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.tech-visual {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tech-visual img {
    width: 100%;
    border-radius: 5px;
}

.caption {
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.tech-callout {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.tech-callout h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tech-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(37,99,235,0.1), rgba(37,99,235,0.05));
}

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

    .tech-nav {
        flex-direction: column;
        align-items: center;
    }

    .tech-visual {
        order: -1;
    }
}

.tech-figures {
    margin-top: 2rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 2rem;
}

/* Attention Visualization */
.figure-animation {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.word-sequence {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.word {
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.word.active {
    background: rgba(37,99,235,0.1);
    color: var(--primary-color);
}

/* LLM Statistics */
.figure-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.figure-timeline {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
    padding: 2rem 0;
}

.figure-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--light-gray);
}

.timeline-item {
    text-align: center;
    position: relative;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    z-index: 1;
}

.year {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
}

/* CNN Visualization */
.cnn-visualization {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.layer {
    text-align: center;
    padding: 1rem;
}

.filter-animation,
.pooling-animation,
.feature-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.layer-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Add animations */
@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.filter-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(37,99,235,0.2);
    animation: scan 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .figure-stats {
        grid-template-columns: 1fr;
    }

    .cnn-visualization {
        flex-direction: column;
        gap: 1rem;
    }

    .figure-timeline {
        flex-direction: column;
        gap: 1rem;
    }

    .figure-timeline::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
} 