
/* === RESEARCH SECTION LAYOUT === */
#research {
    background: #0e1322;
    position: relative;
    overflow: hidden;
}

.research-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.research-content {
    padding-right: 20px;
}

/* === TYPOGRAPHY === */
#research h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin: 0 0 24px;
    color: #ffffff;
}

.research-description {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: #94a3b8;
    margin: 0 0 48px;
    max-width: 680px;
}

.research-link {
    color: #5b7cff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(91, 124, 255, 0.5);
    transition: all 0.2s ease;
}

.research-link:hover {
    color: #7a94ff;
    border-bottom-style: solid;
}

.research-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.research-card {
    background: linear-gradient(135deg, rgba(17, 22, 42, 0.8) 0%, rgba(26, 31, 58, 0.8) 100%);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.research-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 124, 255, 0.3);
    box-shadow: 0 12px 40px rgba(91, 124, 255, 0.15);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.card-icon.vector {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.card-icon.security {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

.card-icon.efficiency {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.research-card h3 {
    font-size: var(--text-base);
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0 8px;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

.research-card p {
    font-size: var(--text-base);
    color: #94a3b8;
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* === RESEARCH VISUAL (Right Side) === */
.research-visual {
    position: sticky;
    top: 100px;
    border-radius: 20px;
    overflow: hidden;
}

    .research-visual img {
        width: 100%;
        transition: transform 0.5s ease;
    }

    .research-visual:hover img {
        transform: scale(1.05);
    }

.visual-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(91, 124, 255, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.visual-content {
    position: relative;
    z-index: 1;
}

/* Research Badge */
.research-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(91, 124, 255, 0.15);
    border: 1px solid rgba(91, 124, 255, 0.3);
    padding: 8px 16px;
    border-radius: 10px;
    margin-bottom: 32px;
}

.research-badge svg {
    width: 18px;
    height: 18px;
    color: #5b7cff;
}

.research-badge span {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #5b7cff;
    letter-spacing: var(--tracking-wide);
}

/* Visual Grid Animation */
.visual-grid {
    position: relative;
    height: 180px;
    margin-bottom: 32px;
}

.grid-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #5b7cff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(91, 124, 255, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.grid-node::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(91, 124, 255, 0.3);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.node-1 { top: 20%; left: 20%; animation-delay: 0s; }
.node-2 { top: 30%; right: 25%; animation-delay: 0.3s; }
.node-3 { bottom: 25%; left: 35%; animation-delay: 0.6s; }
.node-4 { bottom: 15%; right: 20%; animation-delay: 0.9s; }

.grid-connection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 1px dashed rgba(91, 124, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Stats */
.visual-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-item {
    padding: 16px 8px;
    background: rgba(17, 22, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
    display: block;
    font-size: var(--text-xl);
    font-weight: 800;
    color: #ffffff;
    line-height: var(--leading-tight);
    margin-bottom: 4px;
}

.stat-label {
    font-size: var(--text-sm);
    color: #94a3b8;
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .research-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .research-visual {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    .research-content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    #research {
        padding: 60px 20px;
    }

    #research h2 {
        font-size: var(--text-xl);
    }

    .research-description {
        font-size: var(--text-base);
        margin-bottom: 32px;
    }

    .research-cards {
        gap: 20px;
    }

    .research-card {
        padding: 24px;
        gap: 14px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
    }

    .research-card h3 {
        font-size: var(--text-base);
    }

    .research-card p {
        font-size: var(--text-base);
    }

    .research-visual {
      
    }

    .visual-grid {
        height: 140px;
    }

    .visual-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-value {
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    #research h2 {
        font-size: 1.5rem;
    }

    .research-badge {
        padding: 6px 12px;
    }

    .research-badge span {
        font-size: var(--text-xs);
    }

    .research-card {
        padding: 20px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
    }

    .card-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .research-card,
    .grid-node,
    .grid-connection,
    .research-link {
        transition: none !important;
        animation: none !important;
    }
    
    .grid-node::after {
        display: none;
    }
}